@sankhyalabs/ezui 6.1.0 → 6.2.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ApplicationUtils-c9d1205c.js → ApplicationUtils-6a76ac09.js} +43 -15
- package/dist/cjs/RichToolbarHelper-ea12328f.js +33 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/app-globals-cdb08d04.js +12 -0
- package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-avatar.cjs.entry.js +10 -2
- package/dist/cjs/ez-calendar.cjs.entry.js +7 -6
- package/dist/cjs/ez-chart.cjs.entry.js +4 -19
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +51 -47
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +14 -11
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +290 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +10 -7
- package/dist/cjs/ez-date-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +8 -6
- package/dist/cjs/ez-double-list.cjs.entry.js +12 -4
- package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +9 -6
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +11 -3
- package/dist/cjs/ez-form.cjs.entry.js +19 -16
- package/dist/cjs/ez-grid.cjs.entry.js +919 -233
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +5 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
- package/dist/cjs/ez-list.cjs.entry.js +4 -2
- package/dist/cjs/ez-modal-container.cjs.entry.js +6 -2
- package/dist/cjs/ez-modal.cjs.entry.js +5 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +9 -5
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js +9 -7
- package/dist/cjs/ez-search-result-list.cjs.entry.js +5 -2
- package/dist/cjs/ez-search.cjs.entry.js +8 -9
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +5 -7
- package/dist/cjs/ez-skeleton.cjs.entry.js +5 -3
- package/dist/cjs/ez-sortable-list.cjs.entry.js +12 -5
- package/dist/cjs/ez-split-button.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-item.cjs.entry.js +6 -2
- package/dist/cjs/ez-tag.cjs.entry.js +38 -0
- package/dist/cjs/ez-text-area.cjs.entry.js +34 -27
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -0
- package/dist/cjs/ez-tile-medium.cjs.entry.js +79 -0
- package/dist/cjs/ez-tile.cjs.entry.js +62 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +12 -10
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
- package/dist/cjs/ez-tree.cjs.entry.js +5 -1
- package/dist/cjs/ez-underface.cjs.entry.js +35 -0
- package/dist/cjs/ez-upload.cjs.entry.js +17 -11
- package/dist/cjs/ezui.cjs.js +5 -1
- package/dist/cjs/filter-column.cjs.entry.js +8 -4
- package/dist/cjs/index-425b1f67.js +3672 -0
- package/dist/cjs/index-a7b0c73d.js +48 -16
- package/dist/cjs/loader.cjs.js +5 -1
- package/dist/cjs/purify-0bd8a150.js +1359 -0
- package/dist/cjs/{search-column-27d1f72f.js → search-column-78dd20d5.js} +11 -9
- package/dist/collection/collection-manifest.json +45 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
- package/dist/collection/components/ez-avatar/ez-avatar.js +26 -2
- package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
- package/dist/collection/components/ez-check/ez-check.css +1 -1
- package/dist/collection/components/ez-chip/ez-chip.css +102 -83
- package/dist/collection/components/ez-chip/ez-chip.js +158 -53
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +28 -8
- package/dist/collection/components/ez-date-input/ez-date-input.js +5 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +5 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
- package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
- package/dist/collection/components/ez-empty-card/ez-empty-card.css +55 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +91 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
- package/dist/collection/components/ez-form/ez-form.js +5 -3
- package/dist/collection/components/ez-form-view/ez-form-view.js +2 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
- package/dist/collection/components/ez-grid/ez-grid.js +17 -15
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
- package/dist/collection/components/ez-icon/ez-icon.css +1339 -161
- package/dist/collection/components/ez-list/ez-list.js +4 -2
- package/dist/collection/components/ez-modal/ez-modal.js +5 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
- package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +135 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +30 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +575 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +27 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +187 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +220 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
- package/dist/collection/components/ez-search/ez-search.js +7 -8
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +8 -6
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +5 -2
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
- package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
- package/dist/collection/components/ez-tag/ez-tag.css +105 -0
- package/dist/collection/components/ez-tag/ez-tag.js +112 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css +244 -212
- package/dist/collection/components/ez-text-area/ez-text-area.js +35 -28
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
- package/dist/collection/components/ez-text-input/ez-text-input.js +1 -0
- package/dist/collection/components/ez-tile/ez-tile.css +151 -0
- package/dist/collection/components/ez-tile/ez-tile.js +269 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.css +183 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.js +353 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
- package/dist/collection/components/ez-tree/ez-tree.js +5 -1
- package/dist/collection/components/ez-underface/ez-underface.css +51 -0
- package/dist/collection/components/ez-underface/ez-underface.js +109 -0
- package/dist/collection/components/ez-upload/ez-upload.js +18 -12
- package/dist/collection/global/app-init.js +6 -0
- package/dist/collection/setupTests.js +1 -1
- package/dist/collection/utils/ApplicationUtils.js +43 -15
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/form/FormMetadata.js +3 -1
- package/dist/collection/utils/i18n/elanguages.js +6 -0
- package/dist/collection/utils/i18n/index.js +30 -0
- package/dist/collection/utils/i18n/locales/en-us.js +280 -0
- package/dist/collection/utils/i18n/locales/es-es.js +280 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +280 -0
- package/dist/collection/utils/i18n/translations.js +9 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/searchColumn/search-column.js +0 -2
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
- package/dist/custom-elements/index.d.ts +78 -0
- package/dist/custom-elements/index.js +7150 -444
- package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-1fd662ab.js} +43 -15
- package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/app-globals-8c57b015.js +10 -0
- package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
- package/dist/esm/ez-actions-button.entry.js +2 -1
- package/dist/esm/ez-alert-list.entry.js +5 -3
- package/dist/esm/ez-avatar.entry.js +10 -2
- package/dist/esm/ez-calendar.entry.js +7 -6
- package/dist/esm/ez-chart.entry.js +2 -17
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +51 -47
- package/dist/esm/ez-collapsible-box.entry.js +14 -11
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +291 -6
- package/dist/esm/ez-combo-box.entry.js +10 -7
- package/dist/esm/ez-date-input.entry.js +5 -1
- package/dist/esm/ez-date-time-input.entry.js +5 -1
- package/dist/esm/ez-dialog.entry.js +8 -6
- package/dist/esm/ez-double-list.entry.js +12 -4
- package/dist/esm/ez-empty-card.entry.js +30 -0
- package/dist/esm/ez-file-item.entry.js +9 -6
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +11 -3
- package/dist/esm/ez-form.entry.js +8 -5
- package/dist/esm/ez-grid.entry.js +901 -215
- package/dist/esm/ez-guide-navigator.entry.js +5 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +306 -0
- package/dist/esm/ez-list.entry.js +4 -2
- package/dist/esm/ez-modal-container.entry.js +6 -2
- package/dist/esm/ez-modal.entry.js +5 -1
- package/dist/esm/ez-multi-selection-list.entry.js +9 -5
- package/dist/esm/ez-number-input.entry.js +5 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/ez-search-plus.entry.js +9 -7
- package/dist/esm/ez-search-result-list.entry.js +5 -2
- package/dist/esm/ez-search.entry.js +8 -9
- package/dist/esm/ez-sidebar-navigator.entry.js +5 -7
- package/dist/esm/ez-skeleton.entry.js +5 -3
- package/dist/esm/ez-sortable-list.entry.js +12 -5
- package/dist/esm/ez-split-button.entry.js +5 -4
- package/dist/esm/ez-split-item.entry.js +6 -2
- package/dist/esm/ez-tag.entry.js +34 -0
- package/dist/esm/ez-text-area.entry.js +34 -27
- package/dist/esm/ez-text-input.entry.js +1 -0
- package/dist/esm/ez-tile-medium.entry.js +75 -0
- package/dist/esm/ez-tile.entry.js +58 -0
- package/dist/esm/ez-time-input.entry.js +12 -10
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ez-tree.entry.js +5 -1
- package/dist/esm/ez-underface.entry.js +31 -0
- package/dist/esm/ez-upload.entry.js +17 -11
- package/dist/esm/ezui.js +5 -1
- package/dist/esm/filter-column.entry.js +8 -4
- package/dist/esm/index-498e0126.js +3669 -0
- package/dist/esm/index-baa5e267.js +48 -16
- package/dist/esm/loader.js +5 -1
- package/dist/esm/purify-34e6ff6f.js +1357 -0
- package/dist/esm/{search-column-e609d513.js → search-column-729f3655.js} +10 -6
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-02e1efa8.entry.js +1 -0
- package/dist/ezui/p-0c1a288c.entry.js +1 -0
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/p-1e21d31b.entry.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-24732fea.entry.js +1 -0
- package/dist/ezui/p-2879c45f.entry.js +1 -0
- package/dist/ezui/p-31450a28.entry.js +1 -0
- package/dist/ezui/p-39b16566.entry.js +1 -0
- package/dist/ezui/p-3cecb4cb.entry.js +1 -0
- package/dist/ezui/p-3e767a74.js +1 -0
- package/dist/ezui/p-451a17ad.entry.js +1 -0
- package/dist/ezui/p-49321ac6.entry.js +309 -0
- package/dist/ezui/p-4c5cb0da.entry.js +1 -0
- package/dist/ezui/p-4e6e0740.entry.js +1 -0
- package/dist/ezui/p-5172793a.entry.js +1 -0
- package/dist/ezui/p-52d9b604.entry.js +1 -0
- package/dist/ezui/p-53bc30a1.entry.js +1 -0
- package/dist/ezui/p-559b915a.entry.js +1 -0
- package/dist/ezui/p-5ac7c4b3.entry.js +1 -0
- package/dist/ezui/p-5b9060ad.entry.js +1 -0
- package/dist/ezui/p-5dd12c80.entry.js +1 -0
- package/dist/ezui/p-60f5483c.entry.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/p-66b00dec.entry.js +1 -0
- package/dist/ezui/p-6d596a5a.entry.js +1 -0
- package/dist/ezui/p-762a1033.entry.js +1 -0
- package/dist/ezui/p-76ad2e26.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/p-7aed8d32.entry.js +1 -0
- package/dist/ezui/p-7e5c7b4c.js +1 -0
- package/dist/ezui/p-7eb6115c.entry.js +1 -0
- package/dist/ezui/{p-b81881ac.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/p-82fa431b.entry.js +1 -0
- package/dist/ezui/p-86b065e6.entry.js +1 -0
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/p-93e1c917.entry.js +1 -0
- package/dist/ezui/p-94630d41.entry.js +1 -0
- package/dist/ezui/p-9dc31fc6.js +1 -0
- package/dist/ezui/p-a3ada561.entry.js +1 -0
- package/dist/ezui/p-af47458b.js +1 -0
- package/dist/ezui/p-b1e45320.js +1 -0
- package/dist/ezui/p-bc22f56d.entry.js +1 -0
- package/dist/ezui/p-c2d38fbf.entry.js +1 -0
- package/dist/ezui/p-d2364956.js +3 -0
- package/dist/ezui/p-d2645bdf.entry.js +1 -0
- package/dist/ezui/p-d512cb84.entry.js +1 -0
- package/dist/ezui/p-d845fa56.entry.js +1 -0
- package/dist/ezui/p-d8cc640d.entry.js +1 -0
- package/dist/ezui/p-da4419a6.entry.js +1 -0
- package/dist/ezui/p-e20ad35d.entry.js +7 -0
- package/dist/ezui/p-e5e623d9.entry.js +1 -0
- package/dist/ezui/p-e78b5a16.entry.js +1 -0
- package/dist/ezui/p-e7a7c594.entry.js +1 -0
- package/dist/ezui/p-ec04285e.entry.js +1 -0
- package/dist/ezui/p-fcdc7d0b.entry.js +1 -0
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
- package/dist/types/components/ez-chip/ez-chip.d.ts +32 -6
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +6 -2
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +18 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
- package/dist/types/components/ez-form/ez-form.d.ts +1 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
- package/dist/types/components/ez-list/ez-list.d.ts +2 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +19 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +105 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +31 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +35 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +39 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
- package/dist/types/components/ez-search/ez-search.d.ts +2 -3
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +2 -1
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +2 -1
- package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
- package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
- package/dist/types/components/ez-tag/ez-tag.d.ts +23 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +6 -3
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
- package/dist/types/components/ez-tile/ez-tile.d.ts +58 -0
- package/dist/types/components/ez-tile-medium/ez-tile-medium.d.ts +98 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
- package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
- package/dist/types/components/ez-underface/ez-underface.d.ts +23 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
- package/dist/types/components.d.ts +758 -2
- package/dist/types/global/app-init.d.ts +1 -0
- package/dist/types/utils/ApplicationUtils.d.ts +3 -1
- package/dist/types/utils/constants.d.ts +0 -1
- package/dist/types/utils/i18n/elanguages.d.ts +5 -0
- package/dist/types/utils/i18n/index.d.ts +5 -0
- package/dist/types/utils/i18n/locales/en-us.d.ts +281 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +281 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +281 -0
- package/dist/types/utils/i18n/translations.d.ts +843 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/searchColumn/search-column.d.ts +0 -2
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
- package/package.json +9 -2
- package/react/components.d.ts +13 -0
- package/react/components.js +13 -0
- package/react/components.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/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-18853e70.js.gz +0 -0
- package/dist/cjs/constants-569271bc.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-avatar.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.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-filter-input_2.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-plus.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search-result-list.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-skeleton.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sortable-list.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-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/floating-ui.dom.esm-017acce4.js.gz +0 -0
- package/dist/cjs/index-a7b0c73d.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/search-column-27d1f72f.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-avatar/ez-avatar.css.gz +0 -0
- package/dist/collection/components/ez-avatar/ez-avatar.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/SearchInputPlus.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/SearchPlus.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 +0 -75
- 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/IGridMode.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/interfaces/IStaticOptionsFetchConfig.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-search-plus/ez-search-plus.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.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 +0 -5
- 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-sortable-list/ez-sortable-list.css.gz +0 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.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/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/search/types.js.gz +0 -0
- package/dist/collection/utils/searchColumn/search-column.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/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-071d324c.js.gz +0 -0
- package/dist/esm/constants-b036528f.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-avatar.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.entry.js.gz +0 -0
- package/dist/esm/ez-file-item.entry.js.gz +0 -0
- package/dist/esm/ez-filter-input_2.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-plus.entry.js.gz +0 -0
- package/dist/esm/ez-search-result-list.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-skeleton.entry.js.gz +0 -0
- package/dist/esm/ez-sortable-list.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-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/floating-ui.dom.esm-5d3da819.js.gz +0 -0
- package/dist/esm/index-baa5e267.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/search-column-e609d513.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-0306dff7.entry.js +0 -1
- package/dist/ezui/p-0306dff7.entry.js.gz +0 -0
- package/dist/ezui/p-04c17dca.entry.js +0 -1
- package/dist/ezui/p-04c17dca.entry.js.gz +0 -0
- package/dist/ezui/p-07894c4a.entry.js +0 -1
- package/dist/ezui/p-07894c4a.entry.js.gz +0 -0
- package/dist/ezui/p-09de35a2.entry.js +0 -1
- package/dist/ezui/p-09de35a2.entry.js.gz +0 -0
- package/dist/ezui/p-191843ca.entry.js +0 -309
- package/dist/ezui/p-191843ca.entry.js.gz +0 -0
- package/dist/ezui/p-1bcfd88c.entry.js.gz +0 -0
- package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
- package/dist/ezui/p-1eb34cad.entry.js +0 -1
- package/dist/ezui/p-1eb34cad.entry.js.gz +0 -0
- package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
- package/dist/ezui/p-2187f86c.js +0 -1
- package/dist/ezui/p-2187f86c.js.gz +0 -0
- package/dist/ezui/p-2279190f.entry.js +0 -1
- package/dist/ezui/p-2279190f.entry.js.gz +0 -0
- package/dist/ezui/p-23a36bb6.js.gz +0 -0
- package/dist/ezui/p-26685c50.entry.js +0 -1
- package/dist/ezui/p-26685c50.entry.js.gz +0 -0
- package/dist/ezui/p-288631d1.entry.js.gz +0 -0
- package/dist/ezui/p-2b42abbb.entry.js +0 -1
- package/dist/ezui/p-2b42abbb.entry.js.gz +0 -0
- package/dist/ezui/p-30ffb9ed.js.gz +0 -0
- package/dist/ezui/p-33326ac5.entry.js +0 -1
- package/dist/ezui/p-33326ac5.entry.js.gz +0 -0
- package/dist/ezui/p-3ba9565c.entry.js +0 -1
- package/dist/ezui/p-3ba9565c.entry.js.gz +0 -0
- package/dist/ezui/p-40a60148.js.gz +0 -0
- package/dist/ezui/p-44caad9a.entry.js.gz +0 -0
- package/dist/ezui/p-4bb47bbe.entry.js +0 -1
- package/dist/ezui/p-4bb47bbe.entry.js.gz +0 -0
- package/dist/ezui/p-4bd6dd6a.entry.js +0 -1
- package/dist/ezui/p-4bd6dd6a.entry.js.gz +0 -0
- package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
- package/dist/ezui/p-555c9018.entry.js +0 -1
- package/dist/ezui/p-555c9018.entry.js.gz +0 -0
- package/dist/ezui/p-57363cfd.entry.js +0 -1
- package/dist/ezui/p-57363cfd.entry.js.gz +0 -0
- package/dist/ezui/p-58f69d24.entry.js +0 -1
- package/dist/ezui/p-58f69d24.entry.js.gz +0 -0
- package/dist/ezui/p-59561756.entry.js +0 -7
- package/dist/ezui/p-59561756.entry.js.gz +0 -0
- package/dist/ezui/p-5dde9df3.entry.js +0 -1
- package/dist/ezui/p-5dde9df3.entry.js.gz +0 -0
- package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
- package/dist/ezui/p-5eea9886.js +0 -1
- package/dist/ezui/p-5eea9886.js.gz +0 -0
- package/dist/ezui/p-603ef267.entry.js.gz +0 -0
- package/dist/ezui/p-63cb493e.entry.js +0 -1
- package/dist/ezui/p-63cb493e.entry.js.gz +0 -0
- package/dist/ezui/p-6b3e4940.entry.js +0 -1
- package/dist/ezui/p-6b3e4940.entry.js.gz +0 -0
- package/dist/ezui/p-6bcf4ba2.entry.js +0 -1
- package/dist/ezui/p-6bcf4ba2.entry.js.gz +0 -0
- package/dist/ezui/p-6e429cff.entry.js +0 -1
- package/dist/ezui/p-6e429cff.entry.js.gz +0 -0
- package/dist/ezui/p-77a4bd35.entry.js +0 -1
- package/dist/ezui/p-77a4bd35.entry.js.gz +0 -0
- package/dist/ezui/p-7828dab5.entry.js +0 -1
- package/dist/ezui/p-7828dab5.entry.js.gz +0 -0
- package/dist/ezui/p-7ab19270.entry.js +0 -1
- package/dist/ezui/p-7ab19270.entry.js.gz +0 -0
- package/dist/ezui/p-7eae6986.entry.js +0 -1
- package/dist/ezui/p-7eae6986.entry.js.gz +0 -0
- package/dist/ezui/p-80dfc50b.js.gz +0 -0
- package/dist/ezui/p-87831cd0.entry.js +0 -1
- package/dist/ezui/p-87831cd0.entry.js.gz +0 -0
- package/dist/ezui/p-8afb6e8a.entry.js.gz +0 -0
- package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
- package/dist/ezui/p-9478b13b.entry.js +0 -1
- package/dist/ezui/p-9478b13b.entry.js.gz +0 -0
- package/dist/ezui/p-98bb8b16.js.gz +0 -0
- package/dist/ezui/p-9c5cd3b2.entry.js.gz +0 -0
- package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
- package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
- package/dist/ezui/p-ab574d59.js.gz +0 -0
- package/dist/ezui/p-ad79f9d1.entry.js +0 -1
- package/dist/ezui/p-ad79f9d1.entry.js.gz +0 -0
- package/dist/ezui/p-b796e213.entry.js +0 -1
- package/dist/ezui/p-b796e213.entry.js.gz +0 -0
- package/dist/ezui/p-b81881ac.entry.js.gz +0 -0
- package/dist/ezui/p-b853763b.js.gz +0 -0
- package/dist/ezui/p-bac0f920.entry.js +0 -1
- package/dist/ezui/p-bac0f920.entry.js.gz +0 -0
- package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
- package/dist/ezui/p-beb42de1.entry.js +0 -1
- package/dist/ezui/p-beb42de1.entry.js.gz +0 -0
- package/dist/ezui/p-bff24a7b.js +0 -1
- package/dist/ezui/p-bff24a7b.js.gz +0 -0
- package/dist/ezui/p-c0d9c4f8.entry.js.gz +0 -0
- package/dist/ezui/p-c1015f27.entry.js +0 -1
- package/dist/ezui/p-c1015f27.entry.js.gz +0 -0
- package/dist/ezui/p-cb75eb46.entry.js +0 -1
- package/dist/ezui/p-cb75eb46.entry.js.gz +0 -0
- package/dist/ezui/p-dc628ed3.js.gz +0 -0
- package/dist/ezui/p-dc73e1fe.entry.js +0 -1
- package/dist/ezui/p-dc73e1fe.entry.js.gz +0 -0
- package/dist/ezui/p-e07e4671.js.gz +0 -0
- package/dist/ezui/p-e4528470.entry.js +0 -1
- package/dist/ezui/p-e4528470.entry.js.gz +0 -0
- package/dist/ezui/p-e6a9041d.entry.js +0 -1
- package/dist/ezui/p-e6a9041d.entry.js.gz +0 -0
- package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
- package/dist/ezui/p-ec7db713.js.gz +0 -0
- package/dist/ezui/p-ecdb200a.entry.js +0 -1
- package/dist/ezui/p-ecdb200a.entry.js.gz +0 -0
- package/dist/ezui/p-f007eb33.entry.js +0 -1
- package/dist/ezui/p-f007eb33.entry.js.gz +0 -0
- package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
- package/dist/index.cjs.js.gz +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
- package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
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
|
-
import { A as ApplicationUtils } from './ApplicationUtils-
|
|
4
|
+
import { A as ApplicationUtils } from './ApplicationUtils-1fd662ab.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
+
import { g as getI18n, i as initI18n } from './index-498e0126.js';
|
|
7
8
|
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,
|
|
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-
|
|
9
|
+
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, a as buildFieldSearch } from './search-column-729f3655.js';
|
|
10
|
+
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-3fabe81e.js';
|
|
10
11
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
12
|
+
import { p as purify } from './purify-34e6ff6f.js';
|
|
13
|
+
import './_commonjsHelpers-9943807e.js';
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
@@ -432,6 +435,7 @@ function removeAllReferences(obj, objectName) {
|
|
|
432
435
|
// leave all basic types - this is needed for GridAPI to leave the "destroyed: boolean" attribute alone
|
|
433
436
|
if (typeof value === 'function') {
|
|
434
437
|
var func = function () {
|
|
438
|
+
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.");
|
|
435
439
|
};
|
|
436
440
|
properties[key] = { value: func, writable: true };
|
|
437
441
|
}
|
|
@@ -602,6 +606,9 @@ function waitUntil(condition, callback, timeout, timeoutMessage) {
|
|
|
602
606
|
window.clearInterval(interval);
|
|
603
607
|
interval = null;
|
|
604
608
|
}
|
|
609
|
+
if (reachedTimeout && timeoutMessage) {
|
|
610
|
+
console.warn(timeoutMessage);
|
|
611
|
+
}
|
|
605
612
|
}
|
|
606
613
|
};
|
|
607
614
|
internalCallback();
|
|
@@ -703,9 +710,14 @@ var Context = /** @class */ (function () {
|
|
|
703
710
|
Context.prototype.createBeanWrapper = function (BeanClass) {
|
|
704
711
|
var metaData = BeanClass.__agBeanMetaData;
|
|
705
712
|
if (!metaData) {
|
|
713
|
+
var beanName = void 0;
|
|
706
714
|
if (BeanClass.prototype.constructor) {
|
|
707
|
-
getFunctionName(BeanClass.prototype.constructor);
|
|
715
|
+
beanName = getFunctionName(BeanClass.prototype.constructor);
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
beanName = "" + BeanClass;
|
|
708
719
|
}
|
|
720
|
+
console.error("Context item " + beanName + " is not a bean");
|
|
709
721
|
return;
|
|
710
722
|
}
|
|
711
723
|
var beanEntry = {
|
|
@@ -777,6 +789,7 @@ var Context = /** @class */ (function () {
|
|
|
777
789
|
return beansList;
|
|
778
790
|
};
|
|
779
791
|
Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {
|
|
792
|
+
if (optional === void 0) { optional = false; }
|
|
780
793
|
if (beanName === "context") {
|
|
781
794
|
return this;
|
|
782
795
|
}
|
|
@@ -787,6 +800,9 @@ var Context = /** @class */ (function () {
|
|
|
787
800
|
if (beanEntry) {
|
|
788
801
|
return beanEntry.beanInstance;
|
|
789
802
|
}
|
|
803
|
+
if (!optional) {
|
|
804
|
+
console.error("AG Grid: unable to find bean reference " + beanName + " while initialising " + wiringBean);
|
|
805
|
+
}
|
|
790
806
|
return null;
|
|
791
807
|
};
|
|
792
808
|
Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {
|
|
@@ -893,9 +909,11 @@ function Optional(name) {
|
|
|
893
909
|
}
|
|
894
910
|
function autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {
|
|
895
911
|
if (name === null) {
|
|
912
|
+
console.error("AG Grid: Autowired name should not be null");
|
|
896
913
|
return;
|
|
897
914
|
}
|
|
898
915
|
if (typeof index === "number") {
|
|
916
|
+
console.error("AG Grid: Autowired should be on an attribute");
|
|
899
917
|
return;
|
|
900
918
|
}
|
|
901
919
|
// it's an attribute on the class
|
|
@@ -1227,6 +1245,8 @@ var ModuleRegistry = /** @class */ (function () {
|
|
|
1227
1245
|
else {
|
|
1228
1246
|
if (ModuleRegistry.moduleBased !== moduleBased) {
|
|
1229
1247
|
doOnce(function () {
|
|
1248
|
+
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.");
|
|
1249
|
+
console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');
|
|
1230
1250
|
}, 'ModulePackageCheck');
|
|
1231
1251
|
}
|
|
1232
1252
|
}
|
|
@@ -1244,7 +1264,15 @@ var ModuleRegistry = /** @class */ (function () {
|
|
|
1244
1264
|
return true;
|
|
1245
1265
|
}
|
|
1246
1266
|
var warningKey = reason + moduleName;
|
|
1267
|
+
var warningMessage;
|
|
1268
|
+
if (ModuleRegistry.moduleBased) {
|
|
1269
|
+
warningMessage = "AG Grid: unable to use " + reason + " as module " + moduleName + " is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";
|
|
1270
|
+
}
|
|
1271
|
+
else {
|
|
1272
|
+
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/";
|
|
1273
|
+
}
|
|
1247
1274
|
doOnce(function () {
|
|
1275
|
+
console.warn(warningMessage);
|
|
1248
1276
|
}, warningKey);
|
|
1249
1277
|
return false;
|
|
1250
1278
|
};
|
|
@@ -1437,9 +1465,11 @@ var Column = /** @class */ (function () {
|
|
|
1437
1465
|
var colDefAny = this.colDef;
|
|
1438
1466
|
function warnOnce(msg, key, obj) {
|
|
1439
1467
|
doOnce(function () {
|
|
1440
|
-
if (obj)
|
|
1468
|
+
if (obj) {
|
|
1469
|
+
console.warn(msg, obj);
|
|
1470
|
+
}
|
|
1441
1471
|
else {
|
|
1442
|
-
doOnce(function () { return (
|
|
1472
|
+
doOnce(function () { return console.warn(msg); }, key);
|
|
1443
1473
|
}
|
|
1444
1474
|
}, key);
|
|
1445
1475
|
}
|
|
@@ -1907,16 +1937,19 @@ var Column = /** @class */ (function () {
|
|
|
1907
1937
|
// this used to be needed, as previous version of ag-grid had lockPosition as column state,
|
|
1908
1938
|
// so couldn't depend on colDef version.
|
|
1909
1939
|
Column.prototype.isLockPosition = function () {
|
|
1940
|
+
console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');
|
|
1910
1941
|
return this.colDef ? !!this.colDef.lockPosition : false;
|
|
1911
1942
|
};
|
|
1912
1943
|
// this used to be needed, as previous version of ag-grid had lockVisible as column state,
|
|
1913
1944
|
// so couldn't depend on colDef version.
|
|
1914
1945
|
Column.prototype.isLockVisible = function () {
|
|
1946
|
+
console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');
|
|
1915
1947
|
return this.colDef ? !!this.colDef.lockVisible : false;
|
|
1916
1948
|
};
|
|
1917
1949
|
// this used to be needed, as previous version of ag-grid had lockPinned as column state,
|
|
1918
1950
|
// so couldn't depend on colDef version.
|
|
1919
1951
|
Column.prototype.isLockPinned = function () {
|
|
1952
|
+
console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');
|
|
1920
1953
|
return this.colDef ? !!this.colDef.lockPinned : false;
|
|
1921
1954
|
};
|
|
1922
1955
|
// + renderedHeaderCell - for making header cell transparent when moving
|
|
@@ -2312,6 +2345,7 @@ var ColumnGroup = /** @class */ (function () {
|
|
|
2312
2345
|
};
|
|
2313
2346
|
/** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */
|
|
2314
2347
|
ColumnGroup.prototype.getOriginalColumnGroup = function () {
|
|
2348
|
+
console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');
|
|
2315
2349
|
return this.getProvidedColumnGroup();
|
|
2316
2350
|
};
|
|
2317
2351
|
ColumnGroup.prototype.getPaddingLevel = function () {
|
|
@@ -3187,7 +3221,9 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3187
3221
|
var typeKeys = [];
|
|
3188
3222
|
if (type instanceof Array) {
|
|
3189
3223
|
var invalidArray = type.some(function (a) { return typeof a !== 'string'; });
|
|
3190
|
-
if (invalidArray)
|
|
3224
|
+
if (invalidArray) {
|
|
3225
|
+
console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'");
|
|
3226
|
+
}
|
|
3191
3227
|
else {
|
|
3192
3228
|
typeKeys = type;
|
|
3193
3229
|
}
|
|
@@ -3196,13 +3232,16 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3196
3232
|
typeKeys = type.split(',');
|
|
3197
3233
|
}
|
|
3198
3234
|
else {
|
|
3235
|
+
console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");
|
|
3199
3236
|
return;
|
|
3200
3237
|
}
|
|
3201
3238
|
// merge user defined with default column types
|
|
3202
3239
|
var allColumnTypes = Object.assign({}, DefaultColumnTypes);
|
|
3203
3240
|
var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};
|
|
3204
3241
|
iterateObject(userTypes, function (key, value) {
|
|
3205
|
-
if (key in allColumnTypes)
|
|
3242
|
+
if (key in allColumnTypes) {
|
|
3243
|
+
console.warn("AG Grid: the column type '" + key + "' is a default column type and cannot be overridden.");
|
|
3244
|
+
}
|
|
3206
3245
|
else {
|
|
3207
3246
|
allColumnTypes[key] = value;
|
|
3208
3247
|
}
|
|
@@ -3212,12 +3251,34 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3212
3251
|
if (typeColDef) {
|
|
3213
3252
|
mergeDeep(colDefMerged, typeColDef, false, true);
|
|
3214
3253
|
}
|
|
3254
|
+
else {
|
|
3255
|
+
console.warn("AG Grid: colDef.type '" + t + "' does not correspond to defined gridOptions.columnTypes");
|
|
3256
|
+
}
|
|
3215
3257
|
});
|
|
3216
3258
|
};
|
|
3217
3259
|
ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {
|
|
3218
3260
|
if (colDef) {
|
|
3219
3261
|
var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type
|
|
3262
|
+
if (colDefNoType.group !== undefined) {
|
|
3263
|
+
console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');
|
|
3264
|
+
}
|
|
3265
|
+
if (colDefNoType.headerGroup !== undefined) {
|
|
3266
|
+
console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');
|
|
3267
|
+
}
|
|
3268
|
+
if (colDefNoType.headerGroupShow !== undefined) {
|
|
3269
|
+
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');
|
|
3270
|
+
}
|
|
3271
|
+
if (colDefNoType.suppressRowGroup !== undefined) {
|
|
3272
|
+
console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');
|
|
3273
|
+
}
|
|
3274
|
+
if (colDefNoType.suppressAggregation !== undefined) {
|
|
3275
|
+
console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');
|
|
3276
|
+
}
|
|
3277
|
+
if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {
|
|
3278
|
+
console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');
|
|
3279
|
+
}
|
|
3220
3280
|
if (colDefNoType.displayName) {
|
|
3281
|
+
console.warn("AG Grid: Found displayName " + colDefNoType.displayName + ", please use headerName instead, displayName is deprecated.");
|
|
3221
3282
|
colDefNoType.headerName = colDefNoType.displayName;
|
|
3222
3283
|
}
|
|
3223
3284
|
}
|
|
@@ -4279,6 +4340,7 @@ var SideBarDefParser = /** @class */ (function () {
|
|
|
4279
4340
|
toParse.forEach(function (key) {
|
|
4280
4341
|
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];
|
|
4281
4342
|
if (!lookupResult) {
|
|
4343
|
+
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(','));
|
|
4282
4344
|
return;
|
|
4283
4345
|
}
|
|
4284
4346
|
comps_1.push(lookupResult);
|
|
@@ -4309,6 +4371,7 @@ var SideBarDefParser = /** @class */ (function () {
|
|
|
4309
4371
|
if (typeof it === 'string') {
|
|
4310
4372
|
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];
|
|
4311
4373
|
if (!lookupResult) {
|
|
4374
|
+
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(','));
|
|
4312
4375
|
return;
|
|
4313
4376
|
}
|
|
4314
4377
|
toAdd = lookupResult;
|
|
@@ -4905,6 +4968,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4905
4968
|
this.destroyed = true;
|
|
4906
4969
|
};
|
|
4907
4970
|
GridOptionsWrapper.prototype.init = function () {
|
|
4971
|
+
var _this = this;
|
|
4908
4972
|
if (this.gridOptions.suppressPropertyNamesCheck !== true) {
|
|
4909
4973
|
this.checkGridOptionsProperties();
|
|
4910
4974
|
this.checkColumnDefProperties();
|
|
@@ -4915,26 +4979,61 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4915
4979
|
}
|
|
4916
4980
|
var async = this.useAsyncEvents();
|
|
4917
4981
|
this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);
|
|
4918
|
-
if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes())
|
|
4982
|
+
if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {
|
|
4983
|
+
console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work");
|
|
4984
|
+
}
|
|
4919
4985
|
if (this.isGroupSelectsChildren()) {
|
|
4920
|
-
if (!this.isRowSelectionMulti())
|
|
4921
|
-
|
|
4986
|
+
if (!this.isRowSelectionMulti()) {
|
|
4987
|
+
console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense");
|
|
4988
|
+
}
|
|
4989
|
+
if (this.isRowModelServerSide()) {
|
|
4990
|
+
console.warn('AG Grid: group selects children is NOT support for Server Side Row Model. ' +
|
|
4991
|
+
'This is because the rows are lazy loaded, so selecting a group is not possible as' +
|
|
4992
|
+
'the grid has no way of knowing what the children are.');
|
|
4993
|
+
}
|
|
4994
|
+
}
|
|
4995
|
+
if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {
|
|
4996
|
+
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!");
|
|
4922
4997
|
}
|
|
4923
|
-
if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) ;
|
|
4924
4998
|
if (this.isRowModelServerSide()) {
|
|
4925
|
-
|
|
4926
|
-
if (exists(this.gridOptions.groupDefaultExpanded))
|
|
4927
|
-
|
|
4999
|
+
var msg = function (prop) { return "AG Grid: '" + prop + "' is not supported on the Server-Side Row Model"; };
|
|
5000
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5001
|
+
console.warn(msg('groupDefaultExpanded'));
|
|
5002
|
+
}
|
|
5003
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5004
|
+
console.warn(msg('groupIncludeFooter'));
|
|
5005
|
+
}
|
|
5006
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5007
|
+
console.warn(msg('groupIncludeTotalFooter'));
|
|
5008
|
+
}
|
|
4928
5009
|
}
|
|
4929
5010
|
if (isTrue(this.gridOptions.enableRangeSelection)) {
|
|
4930
5011
|
ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'enableRangeSelection');
|
|
4931
5012
|
}
|
|
4932
|
-
else if (this.isEnableRangeHandle() || this.isEnableFillHandle())
|
|
5013
|
+
else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) {
|
|
5014
|
+
console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");
|
|
5015
|
+
}
|
|
4933
5016
|
if (this.isGroupRowsSticky()) {
|
|
4934
|
-
if (this.isGroupHideOpenParents())
|
|
4935
|
-
|
|
4936
|
-
|
|
5017
|
+
if (this.isGroupHideOpenParents()) {
|
|
5018
|
+
console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.");
|
|
5019
|
+
}
|
|
5020
|
+
if (this.isMasterDetail()) {
|
|
5021
|
+
console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one.");
|
|
5022
|
+
}
|
|
5023
|
+
if (this.isPagination()) {
|
|
5024
|
+
console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one.");
|
|
5025
|
+
}
|
|
4937
5026
|
}
|
|
5027
|
+
var warnOfDeprecaredIcon = function (name) {
|
|
5028
|
+
if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {
|
|
5029
|
+
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/");
|
|
5030
|
+
}
|
|
5031
|
+
};
|
|
5032
|
+
warnOfDeprecaredIcon('radioButtonOff');
|
|
5033
|
+
warnOfDeprecaredIcon('radioButtonOn');
|
|
5034
|
+
warnOfDeprecaredIcon('checkboxChecked');
|
|
5035
|
+
warnOfDeprecaredIcon('checkboxUnchecked');
|
|
5036
|
+
warnOfDeprecaredIcon('checkboxIndeterminate');
|
|
4938
5037
|
// sets an initial calculation for the scrollbar width
|
|
4939
5038
|
this.getScrollbarWidth();
|
|
4940
5039
|
};
|
|
@@ -4958,7 +5057,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4958
5057
|
GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {
|
|
4959
5058
|
var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);
|
|
4960
5059
|
iterateObject(invalidProperties, function (key, value) {
|
|
5060
|
+
console.warn("ag-grid: invalid " + containerName + " property '" + key + "' did you mean any of these: " + value.slice(0, 8).join(", "));
|
|
4961
5061
|
});
|
|
5062
|
+
if (Object.keys(invalidProperties).length > 0) {
|
|
5063
|
+
console.warn("ag-grid: to see all the valid " + containerName + " properties please check: " + docsUrl);
|
|
5064
|
+
}
|
|
4962
5065
|
};
|
|
4963
5066
|
/**
|
|
4964
5067
|
* Wrap the user callback and attach the api, columnApi and context to the params object on the way through.
|
|
@@ -5217,7 +5320,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5217
5320
|
];
|
|
5218
5321
|
if (validLayouts.indexOf(domLayout) === -1) {
|
|
5219
5322
|
doOnce(function () {
|
|
5220
|
-
return (
|
|
5323
|
+
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);
|
|
5221
5324
|
}, 'warn about dom layout values');
|
|
5222
5325
|
return Constants.DOM_LAYOUT_NORMAL;
|
|
5223
5326
|
}
|
|
@@ -5612,7 +5715,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5612
5715
|
return 'xy';
|
|
5613
5716
|
}
|
|
5614
5717
|
if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {
|
|
5615
|
-
doOnce(function () { return (
|
|
5718
|
+
doOnce(function () { return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'."); }, 'warn invalid fill direction');
|
|
5616
5719
|
return 'xy';
|
|
5617
5720
|
}
|
|
5618
5721
|
return direction;
|
|
@@ -5711,6 +5814,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5711
5814
|
};
|
|
5712
5815
|
GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {
|
|
5713
5816
|
if (this.gridOptions.defaultExportParams) {
|
|
5817
|
+
console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default" + capitalise(type) + "ExportParams`'");
|
|
5714
5818
|
if (type === 'csv') {
|
|
5715
5819
|
return this.gridOptions.defaultExportParams;
|
|
5716
5820
|
}
|
|
@@ -5843,7 +5947,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5843
5947
|
GridOptionsWrapper.prototype.isServerSideSortAllLevels = function () {
|
|
5844
5948
|
var isEnabled = isTrue(this.gridOptions.serverSideSortAllLevels);
|
|
5845
5949
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5846
|
-
doOnce(function () { return (
|
|
5950
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.'); }, 'serverSideSortAllLevels');
|
|
5847
5951
|
return false;
|
|
5848
5952
|
}
|
|
5849
5953
|
return isEnabled;
|
|
@@ -5851,7 +5955,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5851
5955
|
GridOptionsWrapper.prototype.isServerSideFilterAllLevels = function () {
|
|
5852
5956
|
var isEnabled = isTrue(this.gridOptions.serverSideFilterAllLevels);
|
|
5853
5957
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5854
|
-
doOnce(function () { return (
|
|
5958
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.'); }, 'serverSideFilterAllLevels');
|
|
5855
5959
|
return false;
|
|
5856
5960
|
}
|
|
5857
5961
|
return isEnabled;
|
|
@@ -5859,11 +5963,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5859
5963
|
GridOptionsWrapper.prototype.isServerSideSortOnServer = function () {
|
|
5860
5964
|
var isEnabled = isTrue(this.gridOptions.serverSideSortOnServer);
|
|
5861
5965
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5862
|
-
doOnce(function () { return (
|
|
5966
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.'); }, 'serverSideSortOnServerRowModel');
|
|
5863
5967
|
return false;
|
|
5864
5968
|
}
|
|
5865
5969
|
if (this.isTreeData() && isEnabled) {
|
|
5866
|
-
doOnce(function () { return (
|
|
5970
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.'); }, 'serverSideSortOnServerTreeData');
|
|
5867
5971
|
return false;
|
|
5868
5972
|
}
|
|
5869
5973
|
return isEnabled;
|
|
@@ -5871,11 +5975,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5871
5975
|
GridOptionsWrapper.prototype.isServerSideFilterOnServer = function () {
|
|
5872
5976
|
var isEnabled = isTrue(this.gridOptions.serverSideFilterOnServer);
|
|
5873
5977
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5874
|
-
doOnce(function () { return (
|
|
5978
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.'); }, 'serverSideFilterOnServerRowModel');
|
|
5875
5979
|
return false;
|
|
5876
5980
|
}
|
|
5877
5981
|
if (this.isTreeData() && isEnabled) {
|
|
5878
|
-
doOnce(function () { return (
|
|
5982
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.'); }, 'serverSideFilterOnServerTreeData');
|
|
5879
5983
|
return false;
|
|
5880
5984
|
}
|
|
5881
5985
|
return isEnabled;
|
|
@@ -5984,7 +6088,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5984
6088
|
var capitalisedType = capitalise(type);
|
|
5985
6089
|
if (exists(delay)) {
|
|
5986
6090
|
if (delay < 0) {
|
|
5987
|
-
doOnce(function () { return (
|
|
6091
|
+
doOnce(function () { return console.warn("ag-grid: tooltip" + capitalisedType + "Delay should not be lower than 0"); }, "tooltip" + capitalisedType + "DelayWarn");
|
|
5988
6092
|
}
|
|
5989
6093
|
return Math.max(200, delay);
|
|
5990
6094
|
}
|
|
@@ -6035,7 +6139,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6035
6139
|
var rowBuffer = this.gridOptions.rowBuffer;
|
|
6036
6140
|
if (typeof rowBuffer === 'number') {
|
|
6037
6141
|
if (rowBuffer < 0) {
|
|
6038
|
-
doOnce(function () { return (
|
|
6142
|
+
doOnce(function () { return console.warn("AG Grid: rowBuffer should not be negative"); }, 'warn rowBuffer negative');
|
|
6039
6143
|
this.gridOptions.rowBuffer = rowBuffer = 0;
|
|
6040
6144
|
}
|
|
6041
6145
|
}
|
|
@@ -6069,23 +6173,45 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6069
6173
|
// casting to generic object, so typescript compiles even though
|
|
6070
6174
|
// we are looking for attributes that don't exist
|
|
6071
6175
|
var options = this.gridOptions;
|
|
6176
|
+
if (options.deprecatedEmbedFullWidthRows) {
|
|
6177
|
+
console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.");
|
|
6178
|
+
}
|
|
6179
|
+
if (options.rowDeselection) {
|
|
6180
|
+
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.');
|
|
6181
|
+
}
|
|
6072
6182
|
if (options.enableMultiRowDragging) {
|
|
6073
6183
|
options.rowDragMultiRow = true;
|
|
6074
6184
|
delete options.enableMultiRowDragging;
|
|
6185
|
+
console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');
|
|
6075
6186
|
}
|
|
6076
6187
|
var checkRenamedProperty = function (oldProp, newProp, version) {
|
|
6077
6188
|
if (options[oldProp] != null) {
|
|
6189
|
+
console.warn("AG Grid: since version " + version + ", '" + oldProp + "' is deprecated / renamed, please use the new property name '" + newProp + "' instead.");
|
|
6078
6190
|
if (options[newProp] == null) {
|
|
6079
6191
|
options[newProp] = options[oldProp];
|
|
6080
6192
|
}
|
|
6081
6193
|
}
|
|
6082
6194
|
};
|
|
6083
|
-
checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis');
|
|
6084
|
-
checkRenamedProperty('deltaRowDataMode', 'immutableData');
|
|
6085
|
-
checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels');
|
|
6086
|
-
checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels');
|
|
6087
|
-
|
|
6195
|
+
checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');
|
|
6196
|
+
checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');
|
|
6197
|
+
checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels', '28.0.0');
|
|
6198
|
+
checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels', '28.0.0');
|
|
6199
|
+
if (options.immutableColumns || options.deltaColumnMode) {
|
|
6200
|
+
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');
|
|
6201
|
+
}
|
|
6202
|
+
checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');
|
|
6088
6203
|
if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {
|
|
6204
|
+
console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');
|
|
6205
|
+
console.warn(' Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');
|
|
6206
|
+
console.warn(' For example instead of this:');
|
|
6207
|
+
console.warn(' groupRowInnerRenderer: "myRenderer"');
|
|
6208
|
+
console.warn(' groupRowInnerRendererParams: {x: a}');
|
|
6209
|
+
console.warn(' Replace with this:');
|
|
6210
|
+
console.warn(' groupRowRendererParams: {');
|
|
6211
|
+
console.warn(' innerRenderer: "myRenderer",');
|
|
6212
|
+
console.warn(' innerRendererParams: {x: a}');
|
|
6213
|
+
console.warn(' }');
|
|
6214
|
+
console.warn(' We have copied the properties over for you. However to stop this error message, please change your application code.');
|
|
6089
6215
|
if (!options.groupRowRendererParams) {
|
|
6090
6216
|
options.groupRowRendererParams = {};
|
|
6091
6217
|
}
|
|
@@ -6100,36 +6226,105 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6100
6226
|
params.innerRendererFramework = options.groupRowInnerRendererFramework;
|
|
6101
6227
|
}
|
|
6102
6228
|
}
|
|
6229
|
+
if (options.rememberGroupStateWhenNewData) {
|
|
6230
|
+
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.');
|
|
6231
|
+
}
|
|
6103
6232
|
if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {
|
|
6233
|
+
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');
|
|
6104
6234
|
options.detailRowAutoHeight = true;
|
|
6105
6235
|
}
|
|
6236
|
+
if (options.suppressKeyboardEvent) {
|
|
6237
|
+
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.");
|
|
6238
|
+
}
|
|
6239
|
+
if (options.suppressEnterpriseResetOnNewColumns) {
|
|
6240
|
+
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.');
|
|
6241
|
+
}
|
|
6242
|
+
if (options.suppressColumnStateEvents) {
|
|
6243
|
+
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');
|
|
6244
|
+
}
|
|
6245
|
+
if (options.defaultExportParams) {
|
|
6246
|
+
console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');
|
|
6247
|
+
}
|
|
6106
6248
|
if (options.stopEditingWhenGridLosesFocus) {
|
|
6249
|
+
console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');
|
|
6107
6250
|
options.stopEditingWhenCellsLoseFocus = true;
|
|
6108
6251
|
}
|
|
6252
|
+
if (options.applyColumnDefOrder) {
|
|
6253
|
+
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');
|
|
6254
|
+
}
|
|
6109
6255
|
if (options.groupMultiAutoColumn) {
|
|
6256
|
+
console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`");
|
|
6110
6257
|
options.groupDisplayType = 'multipleColumns';
|
|
6111
6258
|
}
|
|
6112
6259
|
if (options.groupUseEntireRow) {
|
|
6260
|
+
console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`");
|
|
6113
6261
|
options.groupDisplayType = 'groupRows';
|
|
6114
6262
|
}
|
|
6115
6263
|
if (options.groupSuppressAutoColumn) {
|
|
6264
|
+
var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';
|
|
6265
|
+
console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `" + propName + " = 'custom'`");
|
|
6116
6266
|
options.groupDisplayType = 'custom';
|
|
6117
6267
|
}
|
|
6268
|
+
if (options.defaultGroupOrderComparator) {
|
|
6269
|
+
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.");
|
|
6270
|
+
}
|
|
6118
6271
|
if (options.defaultGroupSortComparator) {
|
|
6272
|
+
console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`");
|
|
6119
6273
|
options.defaultGroupOrderComparator = options.defaultGroupSortComparator;
|
|
6120
6274
|
}
|
|
6275
|
+
if (options.groupRowAggNodes) {
|
|
6276
|
+
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.");
|
|
6277
|
+
}
|
|
6278
|
+
if (options.postSort) {
|
|
6279
|
+
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.");
|
|
6280
|
+
}
|
|
6281
|
+
if (options.isFullWidthCell) {
|
|
6282
|
+
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.");
|
|
6283
|
+
}
|
|
6284
|
+
if (options.localeTextFunc) {
|
|
6285
|
+
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.");
|
|
6286
|
+
}
|
|
6287
|
+
if (options.colWidth) {
|
|
6288
|
+
console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');
|
|
6289
|
+
}
|
|
6290
|
+
if (options.minColWidth) {
|
|
6291
|
+
console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');
|
|
6292
|
+
}
|
|
6293
|
+
if (options.maxColWidth) {
|
|
6294
|
+
console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');
|
|
6295
|
+
}
|
|
6296
|
+
if (options.reactUi) {
|
|
6297
|
+
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.');
|
|
6298
|
+
}
|
|
6299
|
+
if (options.suppressReactUi) {
|
|
6300
|
+
console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');
|
|
6301
|
+
}
|
|
6121
6302
|
if (options.suppressCellSelection) {
|
|
6303
|
+
console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');
|
|
6122
6304
|
options.suppressCellFocus = options.suppressCellSelection;
|
|
6123
6305
|
}
|
|
6306
|
+
if (options.getRowNodeId) {
|
|
6307
|
+
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.');
|
|
6308
|
+
}
|
|
6309
|
+
if (options.immutableData) {
|
|
6310
|
+
if (options.getRowId) {
|
|
6311
|
+
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`.');
|
|
6312
|
+
}
|
|
6313
|
+
else {
|
|
6314
|
+
console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');
|
|
6315
|
+
}
|
|
6316
|
+
}
|
|
6124
6317
|
if (options.clipboardDeliminator) {
|
|
6318
|
+
console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');
|
|
6125
6319
|
options.clipboardDelimiter = options.clipboardDeliminator;
|
|
6126
6320
|
}
|
|
6127
|
-
checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef');
|
|
6128
|
-
checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef');
|
|
6321
|
+
checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef', '28.0.x');
|
|
6322
|
+
checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef', '28.0.x');
|
|
6129
6323
|
if (options.serverSideStoreType) {
|
|
6324
|
+
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.');
|
|
6130
6325
|
options.serverSideInfiniteScroll = options.serverSideStoreType === 'partial';
|
|
6131
6326
|
}
|
|
6132
|
-
checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams');
|
|
6327
|
+
checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams', '28.0.x');
|
|
6133
6328
|
};
|
|
6134
6329
|
GridOptionsWrapper.prototype.checkForViolations = function () {
|
|
6135
6330
|
if (this.isTreeData()) {
|
|
@@ -6138,11 +6333,20 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6138
6333
|
};
|
|
6139
6334
|
GridOptionsWrapper.prototype.treeDataViolations = function () {
|
|
6140
6335
|
if (this.isRowModelDefault()) {
|
|
6141
|
-
if (missing(this.getDataPathFunc()))
|
|
6336
|
+
if (missing(this.getDataPathFunc())) {
|
|
6337
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not ' +
|
|
6338
|
+
'provide getDataPath function, please provide getDataPath function if using tree data.');
|
|
6339
|
+
}
|
|
6142
6340
|
}
|
|
6143
6341
|
if (this.isRowModelServerSide()) {
|
|
6144
|
-
if (missing(this.getIsServerSideGroupFunc()))
|
|
6145
|
-
|
|
6342
|
+
if (missing(this.getIsServerSideGroupFunc())) {
|
|
6343
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
|
|
6344
|
+
'provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.');
|
|
6345
|
+
}
|
|
6346
|
+
if (missing(this.getServerSideGroupKeyFunc())) {
|
|
6347
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
|
|
6348
|
+
'provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.');
|
|
6349
|
+
}
|
|
6146
6350
|
}
|
|
6147
6351
|
};
|
|
6148
6352
|
GridOptionsWrapper.prototype.getLocaleTextFunc = function () {
|
|
@@ -6211,6 +6415,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6211
6415
|
this.setRowHeightVariable(rowHeight);
|
|
6212
6416
|
return rowHeight;
|
|
6213
6417
|
}
|
|
6418
|
+
console.warn('AG Grid row height must be a number if not using standard row model');
|
|
6214
6419
|
return this.getDefaultRowHeight();
|
|
6215
6420
|
};
|
|
6216
6421
|
GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {
|
|
@@ -6235,7 +6440,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6235
6440
|
var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);
|
|
6236
6441
|
if (this.isNumeric(height)) {
|
|
6237
6442
|
if (height === 0) {
|
|
6238
|
-
doOnce(function () { return (
|
|
6443
|
+
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');
|
|
6239
6444
|
}
|
|
6240
6445
|
return { height: Math.max(1, height), estimated: false };
|
|
6241
6446
|
}
|
|
@@ -6280,6 +6485,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6280
6485
|
GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {
|
|
6281
6486
|
var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];
|
|
6282
6487
|
if (groupDisplayTypeValues.indexOf(supplied) < 0) {
|
|
6488
|
+
console.warn("AG Grid: '" + supplied + "' is not a valid groupDisplayType value - possible values are: '" + groupDisplayTypeValues.join("', '") + "'");
|
|
6283
6489
|
return false;
|
|
6284
6490
|
}
|
|
6285
6491
|
return supplied === toMatch;
|
|
@@ -6287,6 +6493,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6287
6493
|
GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {
|
|
6288
6494
|
var treeDataDisplayTypeValues = ['auto', 'custom'];
|
|
6289
6495
|
if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {
|
|
6496
|
+
console.warn("AG Grid: '" + supplied + "' is not a valid treeDataDisplayType value - possible values are: '" + treeDataDisplayTypeValues.join("', '") + "'");
|
|
6290
6497
|
return false;
|
|
6291
6498
|
}
|
|
6292
6499
|
return supplied === toMatch;
|
|
@@ -6671,6 +6878,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
6671
6878
|
};
|
|
6672
6879
|
ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {
|
|
6673
6880
|
if (pivot && this.gridOptionsWrapper.isTreeData()) {
|
|
6881
|
+
console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'");
|
|
6674
6882
|
return false;
|
|
6675
6883
|
}
|
|
6676
6884
|
return true;
|
|
@@ -7301,6 +7509,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7301
7509
|
if (loopCount > 1000) {
|
|
7302
7510
|
// this should never happen, but in the future, someone might introduce a bug here,
|
|
7303
7511
|
// so we stop the browser from hanging and report bug properly
|
|
7512
|
+
console.error('AG Grid: infinite loop in resizeColumnSets');
|
|
7304
7513
|
return "break";
|
|
7305
7514
|
}
|
|
7306
7515
|
finishedColsGrew = false;
|
|
@@ -7418,6 +7627,8 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7418
7627
|
if (source === void 0) { source = "api"; }
|
|
7419
7628
|
this.columnAnimationService.start();
|
|
7420
7629
|
if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {
|
|
7630
|
+
console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);
|
|
7631
|
+
console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');
|
|
7421
7632
|
return;
|
|
7422
7633
|
}
|
|
7423
7634
|
// we want to pull all the columns out first and put them into an ordered list
|
|
@@ -7670,6 +7881,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7670
7881
|
ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {
|
|
7671
7882
|
if (source === void 0) { source = "api"; }
|
|
7672
7883
|
if (this.gridOptionsWrapper.getDomLayout() === 'print') {
|
|
7884
|
+
console.warn("Changing the column pinning status is not allowed with domLayout='print'");
|
|
7673
7885
|
return;
|
|
7674
7886
|
}
|
|
7675
7887
|
this.columnAnimationService.start();
|
|
@@ -7939,6 +8151,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7939
8151
|
return false;
|
|
7940
8152
|
}
|
|
7941
8153
|
if (params && params.state && !params.state.forEach) {
|
|
8154
|
+
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.');
|
|
7942
8155
|
return false;
|
|
7943
8156
|
}
|
|
7944
8157
|
var applyStates = function (states, existingColumns, getById) {
|
|
@@ -8085,6 +8298,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8085
8298
|
// is less sexy for the code here, but it keeps consistency.
|
|
8086
8299
|
newOrder = this.placeLockedColumns(newOrder);
|
|
8087
8300
|
if (!this.doesMovePassMarryChildren(newOrder)) {
|
|
8301
|
+
console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');
|
|
8088
8302
|
return;
|
|
8089
8303
|
}
|
|
8090
8304
|
this.gridColumns = newOrder;
|
|
@@ -8336,7 +8550,11 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8336
8550
|
}
|
|
8337
8551
|
}
|
|
8338
8552
|
else {
|
|
8339
|
-
if (exists(aggFunc))
|
|
8553
|
+
if (exists(aggFunc)) {
|
|
8554
|
+
console.warn('AG Grid: stateItem.aggFunc must be a string. if using your own aggregation ' +
|
|
8555
|
+
'functions, register the functions first before using them in get/set state. This is because it is ' +
|
|
8556
|
+
'intended for the column state to be stored and retrieved as simple JSON.');
|
|
8557
|
+
}
|
|
8340
8558
|
// Note: we do not call column.setAggFunc(null), so that next time we aggregate
|
|
8341
8559
|
// by this column (eg drag the column to the agg section int he toolpanel) it will
|
|
8342
8560
|
// default to the last aggregation function.
|
|
@@ -8404,6 +8622,9 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8404
8622
|
return null;
|
|
8405
8623
|
}
|
|
8406
8624
|
var column = this.getGridColumn(key);
|
|
8625
|
+
if (!column) {
|
|
8626
|
+
console.warn('AG Grid: could not find column ' + key);
|
|
8627
|
+
}
|
|
8407
8628
|
return column;
|
|
8408
8629
|
};
|
|
8409
8630
|
ColumnModel.prototype.getPrimaryColumn = function (key) {
|
|
@@ -8506,6 +8727,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8506
8727
|
// valueGetter is an expression, so execute the expression
|
|
8507
8728
|
return this.expressionService.evaluate(headerValueGetter, params);
|
|
8508
8729
|
}
|
|
8730
|
+
console.warn('ag-grid: headerValueGetter must be a function or a string');
|
|
8509
8731
|
return '';
|
|
8510
8732
|
}
|
|
8511
8733
|
else if (colDef.headerName != null) {
|
|
@@ -8800,6 +9022,10 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8800
9022
|
this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);
|
|
8801
9023
|
};
|
|
8802
9024
|
ColumnModel.prototype.getProvidedColumnGroup = function (key) {
|
|
9025
|
+
// if (key instanceof ProvidedColumnGroup) { return key; }
|
|
9026
|
+
if (typeof key !== 'string') {
|
|
9027
|
+
console.error('AG Grid: group key must be a string');
|
|
9028
|
+
}
|
|
8803
9029
|
// otherwise, search for the column group by id
|
|
8804
9030
|
var res = null;
|
|
8805
9031
|
this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {
|
|
@@ -9010,7 +9236,8 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
9010
9236
|
var rowModelType = this.rowModel.getType();
|
|
9011
9237
|
var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;
|
|
9012
9238
|
if (!supportedRowModel) {
|
|
9013
|
-
|
|
9239
|
+
var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';
|
|
9240
|
+
doOnce(function () { return console.warn(message_1); }, 'autoHeightActive.wrongRowModel');
|
|
9014
9241
|
}
|
|
9015
9242
|
}
|
|
9016
9243
|
};
|
|
@@ -10002,6 +10229,7 @@ var DisplayedGroupCreator = /** @class */ (function (_super) {
|
|
|
10002
10229
|
if (found) {
|
|
10003
10230
|
return result;
|
|
10004
10231
|
}
|
|
10232
|
+
console.warn('AG Grid: could not get path');
|
|
10005
10233
|
return null;
|
|
10006
10234
|
};
|
|
10007
10235
|
DisplayedGroupCreator = __decorate$36([
|
|
@@ -11685,12 +11913,14 @@ function createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {
|
|
|
11685
11913
|
if (isNodeOrElement(rendererResult)) {
|
|
11686
11914
|
return rendererResult;
|
|
11687
11915
|
}
|
|
11916
|
+
console.warn('AG Grid: iconRenderer should return back a string or a dom object');
|
|
11688
11917
|
}
|
|
11689
11918
|
else {
|
|
11690
11919
|
var span = document.createElement('span');
|
|
11691
11920
|
var cssClass = iconNameClassMap[iconName];
|
|
11692
11921
|
if (!cssClass) {
|
|
11693
11922
|
if (!forceCreate) {
|
|
11923
|
+
console.warn("AG Grid: Did not find icon " + iconName);
|
|
11694
11924
|
cssClass = '';
|
|
11695
11925
|
}
|
|
11696
11926
|
else {
|
|
@@ -12129,6 +12359,7 @@ var AgPromise = /** @class */ (function () {
|
|
|
12129
12359
|
this.waiters.forEach(function (waiter) { return waiter(value); });
|
|
12130
12360
|
};
|
|
12131
12361
|
AgPromise.prototype.onReject = function (params) {
|
|
12362
|
+
console.warn('TBI');
|
|
12132
12363
|
};
|
|
12133
12364
|
return AgPromise;
|
|
12134
12365
|
}());
|
|
@@ -12754,9 +12985,11 @@ function RefSelector(ref) {
|
|
|
12754
12985
|
}
|
|
12755
12986
|
function querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {
|
|
12756
12987
|
if (selector === null) {
|
|
12988
|
+
console.error('AG Grid: QuerySelector selector should not be null');
|
|
12757
12989
|
return;
|
|
12758
12990
|
}
|
|
12759
12991
|
if (typeof index === 'number') {
|
|
12992
|
+
console.error('AG Grid: QuerySelector should be on an attribute');
|
|
12760
12993
|
return;
|
|
12761
12994
|
}
|
|
12762
12995
|
addToObjectProps(classPrototype, 'querySelectors', {
|
|
@@ -12991,8 +13224,12 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
12991
13224
|
this.checkForDeprecatedParams();
|
|
12992
13225
|
};
|
|
12993
13226
|
OptionsFactory.prototype.checkForDeprecatedParams = function () {
|
|
12994
|
-
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; }))
|
|
12995
|
-
|
|
13227
|
+
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) {
|
|
13228
|
+
console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().");
|
|
13229
|
+
}
|
|
13230
|
+
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) {
|
|
13231
|
+
console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.");
|
|
13232
|
+
}
|
|
12996
13233
|
};
|
|
12997
13234
|
OptionsFactory.prototype.getFilterOptions = function () {
|
|
12998
13235
|
return this.filterOptions;
|
|
@@ -13009,6 +13246,7 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
13009
13246
|
var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];
|
|
13010
13247
|
var propertyCheck = function (keys) {
|
|
13011
13248
|
if (!keys.some(function (key) { return filterOption[key] != null; })) {
|
|
13249
|
+
console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '" + keys + "'");
|
|
13012
13250
|
return false;
|
|
13013
13251
|
}
|
|
13014
13252
|
return true;
|
|
@@ -13042,9 +13280,13 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
13042
13280
|
else if (firstFilterOption.displayKey) {
|
|
13043
13281
|
this.defaultOption = firstFilterOption.displayKey;
|
|
13044
13282
|
}
|
|
13045
|
-
else
|
|
13283
|
+
else {
|
|
13284
|
+
console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'");
|
|
13285
|
+
}
|
|
13286
|
+
}
|
|
13287
|
+
else {
|
|
13288
|
+
console.warn('AG Grid: no filter options for filter');
|
|
13046
13289
|
}
|
|
13047
|
-
else ;
|
|
13048
13290
|
};
|
|
13049
13291
|
OptionsFactory.prototype.getDefaultOption = function () {
|
|
13050
13292
|
return this.defaultOption;
|
|
@@ -13307,6 +13549,7 @@ var ProvidedFilter = /** @class */ (function (_super) {
|
|
|
13307
13549
|
clickListener = function (e) { _this.onBtCancel(e); };
|
|
13308
13550
|
break;
|
|
13309
13551
|
default:
|
|
13552
|
+
console.warn('AG Grid: Unknown button type specified');
|
|
13310
13553
|
return;
|
|
13311
13554
|
}
|
|
13312
13555
|
var buttonType = type === 'apply' ? 'submit' : 'button';
|
|
@@ -13447,6 +13690,9 @@ var ProvidedFilter = /** @class */ (function (_super) {
|
|
|
13447
13690
|
// static, as used by floating filter also
|
|
13448
13691
|
ProvidedFilter.getDebounceMs = function (params, debounceDefault) {
|
|
13449
13692
|
if (ProvidedFilter.isUseApplyButton(params)) {
|
|
13693
|
+
if (params.debounceMs != null) {
|
|
13694
|
+
console.warn('AG Grid: debounceMs is ignored when apply button is present');
|
|
13695
|
+
}
|
|
13450
13696
|
return 0;
|
|
13451
13697
|
}
|
|
13452
13698
|
return params.debounceMs != null ? params.debounceMs : debounceDefault;
|
|
@@ -14823,6 +15069,7 @@ var ScalarFilter = /** @class */ (function (_super) {
|
|
|
14823
15069
|
case ScalarFilter.NOT_BLANK:
|
|
14824
15070
|
return !this.isBlank(cellValue);
|
|
14825
15071
|
default:
|
|
15072
|
+
console.warn('AG Grid: Unexpected type of filter "' + filterModel.type + '", it looks like the filter was configured with incorrect Filter Options');
|
|
14826
15073
|
return true;
|
|
14827
15074
|
}
|
|
14828
15075
|
};
|
|
@@ -14916,11 +15163,17 @@ var DateFilter = /** @class */ (function (_super) {
|
|
|
14916
15163
|
if (!isNaN(params[param])) {
|
|
14917
15164
|
return params[param] == null ? fallback : Number(params[param]);
|
|
14918
15165
|
}
|
|
15166
|
+
else {
|
|
15167
|
+
console.warn("AG Grid: DateFilter " + param + " is not a number");
|
|
15168
|
+
}
|
|
14919
15169
|
}
|
|
14920
15170
|
return fallback;
|
|
14921
15171
|
};
|
|
14922
15172
|
this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);
|
|
14923
15173
|
this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);
|
|
15174
|
+
if (this.minValidYear > this.maxValidYear) {
|
|
15175
|
+
console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear");
|
|
15176
|
+
}
|
|
14924
15177
|
this.createDateComponents();
|
|
14925
15178
|
};
|
|
14926
15179
|
DateFilter.prototype.createDateComponents = function () {
|
|
@@ -15621,7 +15874,7 @@ var TextFilter = /** @class */ (function (_super) {
|
|
|
15621
15874
|
TextFilter.prototype.getTextMatcher = function () {
|
|
15622
15875
|
var legacyComparator = this.textFilterParams.textCustomComparator;
|
|
15623
15876
|
if (legacyComparator) {
|
|
15624
|
-
_.doOnce(function () { return (
|
|
15877
|
+
_.doOnce(function () { return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.'); }, 'textCustomComparator.deprecated');
|
|
15625
15878
|
return function (_a) {
|
|
15626
15879
|
var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;
|
|
15627
15880
|
return legacyComparator(filterOption, value, filterText);
|
|
@@ -16547,7 +16800,8 @@ var HeaderGroupComp = /** @class */ (function (_super) {
|
|
|
16547
16800
|
HeaderGroupComp.prototype.checkWarnings = function () {
|
|
16548
16801
|
var paramsAny = this.params;
|
|
16549
16802
|
if (paramsAny.template) {
|
|
16550
|
-
|
|
16803
|
+
var message_1 = "AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";
|
|
16804
|
+
doOnce(function () { return console.warn(message_1); }, 'HeaderGroupComp.templateNotSupported');
|
|
16551
16805
|
}
|
|
16552
16806
|
};
|
|
16553
16807
|
HeaderGroupComp.prototype.setupExpandIcons = function () {
|
|
@@ -16778,6 +17032,7 @@ var SelectCellEditor = /** @class */ (function (_super) {
|
|
|
16778
17032
|
var _this = this;
|
|
16779
17033
|
this.focusAfterAttached = params.cellStartedEdit;
|
|
16780
17034
|
if (missing(params.values)) {
|
|
17035
|
+
console.warn('AG Grid: no values found for select cellEditor');
|
|
16781
17036
|
return;
|
|
16782
17037
|
}
|
|
16783
17038
|
this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;
|
|
@@ -16851,7 +17106,7 @@ var PopupSelectCellEditor = /** @class */ (function (_super) {
|
|
|
16851
17106
|
__extends$2_(PopupSelectCellEditor, _super);
|
|
16852
17107
|
function PopupSelectCellEditor() {
|
|
16853
17108
|
var _this = _super.call(this) || this;
|
|
16854
|
-
doOnce(function () { return (
|
|
17109
|
+
doOnce(function () { return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} '); }, 'PopupSelectCellEditor.deprecated');
|
|
16855
17110
|
return _this;
|
|
16856
17111
|
}
|
|
16857
17112
|
PopupSelectCellEditor.prototype.isPopup = function () {
|
|
@@ -17005,7 +17260,7 @@ var PopupTextCellEditor = /** @class */ (function (_super) {
|
|
|
17005
17260
|
__extends$2Y(PopupTextCellEditor, _super);
|
|
17006
17261
|
function PopupTextCellEditor() {
|
|
17007
17262
|
var _this = _super.call(this) || this;
|
|
17008
|
-
doOnce(function () { return (
|
|
17263
|
+
doOnce(function () { return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} '); }, 'PopupTextCellEditor.deprecated');
|
|
17009
17264
|
return _this;
|
|
17010
17265
|
}
|
|
17011
17266
|
PopupTextCellEditor.prototype.isPopup = function () {
|
|
@@ -17382,7 +17637,9 @@ var RowNode = /** @class */ (function () {
|
|
|
17382
17637
|
});
|
|
17383
17638
|
// make sure id provided doesn't start with 'row-group-' as this is reserved. also check that
|
|
17384
17639
|
// it has 'startsWith' in case the user provided a number.
|
|
17385
|
-
if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP))
|
|
17640
|
+
if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {
|
|
17641
|
+
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.");
|
|
17642
|
+
}
|
|
17386
17643
|
// force id to be a string
|
|
17387
17644
|
if (this.id !== null && typeof this.id !== 'string') {
|
|
17388
17645
|
this.id = '' + this.id;
|
|
@@ -17841,9 +18098,11 @@ var RowNode = /** @class */ (function () {
|
|
|
17841
18098
|
// groupSelectsFiltered only makes sense when group selects children
|
|
17842
18099
|
var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);
|
|
17843
18100
|
if (this.id === undefined) {
|
|
18101
|
+
console.warn('AG Grid: cannot select node until id for node is known');
|
|
17844
18102
|
return 0;
|
|
17845
18103
|
}
|
|
17846
18104
|
if (this.rowPinned) {
|
|
18105
|
+
console.warn('AG Grid: cannot select pinned rows');
|
|
17847
18106
|
return 0;
|
|
17848
18107
|
}
|
|
17849
18108
|
// if we are a footer, we don't do selection, just pass the info
|
|
@@ -18618,7 +18877,9 @@ var DragAndDropService = /** @class */ (function (_super) {
|
|
|
18618
18877
|
}
|
|
18619
18878
|
}
|
|
18620
18879
|
this.eGhostParent = targetEl;
|
|
18621
|
-
if (!this.eGhostParent)
|
|
18880
|
+
if (!this.eGhostParent) {
|
|
18881
|
+
console.warn('AG Grid: could not find document body, it is needed for dragging columns');
|
|
18882
|
+
}
|
|
18622
18883
|
else {
|
|
18623
18884
|
this.eGhostParent.appendChild(this.eGhost);
|
|
18624
18885
|
}
|
|
@@ -18781,7 +19042,7 @@ var RowDragComp = /** @class */ (function (_super) {
|
|
|
18781
19042
|
var treeData = this.beans.gridOptionsWrapper.isTreeData();
|
|
18782
19043
|
if (treeData && managed) {
|
|
18783
19044
|
doOnce(function () {
|
|
18784
|
-
return (
|
|
19045
|
+
return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');
|
|
18785
19046
|
}, 'RowDragComp.managedAndTreeData');
|
|
18786
19047
|
}
|
|
18787
19048
|
};
|
|
@@ -19190,7 +19451,9 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
|
|
|
19190
19451
|
else if (typeof footerValueGetter === 'string') {
|
|
19191
19452
|
footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);
|
|
19192
19453
|
}
|
|
19193
|
-
else
|
|
19454
|
+
else {
|
|
19455
|
+
console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');
|
|
19456
|
+
}
|
|
19194
19457
|
}
|
|
19195
19458
|
else {
|
|
19196
19459
|
footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');
|
|
@@ -19408,7 +19671,7 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
|
|
|
19408
19671
|
var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;
|
|
19409
19672
|
var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;
|
|
19410
19673
|
if (userProvidedPaddingPixelsTheDeprecatedWay) {
|
|
19411
|
-
doOnce(function () { return (
|
|
19674
|
+
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');
|
|
19412
19675
|
}
|
|
19413
19676
|
if (this.indentClass) {
|
|
19414
19677
|
this.comp.addOrRemoveCssClass(this.indentClass, false);
|
|
@@ -19913,6 +20176,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19913
20176
|
UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {
|
|
19914
20177
|
var name = this.translateIfDeprecated(rawName);
|
|
19915
20178
|
if (this.agGridDefaults[name]) {
|
|
20179
|
+
console.error("Trying to overwrite a default component. You should call registerComponent");
|
|
19916
20180
|
return;
|
|
19917
20181
|
}
|
|
19918
20182
|
this.agGridDefaults[name] = component;
|
|
@@ -19920,6 +20184,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19920
20184
|
UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {
|
|
19921
20185
|
var name = this.translateIfDeprecated(rawName);
|
|
19922
20186
|
if (this.fwComps[name]) {
|
|
20187
|
+
console.error("Trying to register a component that you have already registered for frameworks: " + name);
|
|
19923
20188
|
return;
|
|
19924
20189
|
}
|
|
19925
20190
|
this.jsComps[name] = component;
|
|
@@ -19929,7 +20194,8 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19929
20194
|
* A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
|
|
19930
20195
|
*/
|
|
19931
20196
|
UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {
|
|
19932
|
-
|
|
20197
|
+
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.";
|
|
20198
|
+
doOnce(function () { return console.warn(warningMessage); }, "UserComponentRegistry.frameworkComponentsDeprecated");
|
|
19933
20199
|
var name = this.translateIfDeprecated(rawName);
|
|
19934
20200
|
this.fwComps[name] = component;
|
|
19935
20201
|
};
|
|
@@ -19956,13 +20222,16 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19956
20222
|
if (defaultComponent) {
|
|
19957
20223
|
return createResult(defaultComponent, false);
|
|
19958
20224
|
}
|
|
19959
|
-
if (Object.keys(this.agGridDefaults).indexOf(name) < 0)
|
|
20225
|
+
if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {
|
|
20226
|
+
console.warn("AG Grid: Looking for component [" + name + "] but it wasn't found.");
|
|
20227
|
+
}
|
|
19960
20228
|
return null;
|
|
19961
20229
|
};
|
|
19962
20230
|
UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {
|
|
19963
20231
|
var deprecatedInfo = this.agDeprecatedNames[raw];
|
|
19964
20232
|
if (deprecatedInfo != null) {
|
|
19965
20233
|
doOnce(function () {
|
|
20234
|
+
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);
|
|
19966
20235
|
}, 'DEPRECATE_COMPONENT_' + raw);
|
|
19967
20236
|
return deprecatedInfo.newComponentName;
|
|
19968
20237
|
}
|
|
@@ -20180,6 +20449,7 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20180
20449
|
};
|
|
20181
20450
|
UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {
|
|
20182
20451
|
var _this = this;
|
|
20452
|
+
if (mandatory === void 0) { mandatory = false; }
|
|
20183
20453
|
var propertyName = type.propertyName, cellRenderer = type.cellRenderer;
|
|
20184
20454
|
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;
|
|
20185
20455
|
var lookupFromRegistry = function (key) {
|
|
@@ -20202,6 +20472,9 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20202
20472
|
jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);
|
|
20203
20473
|
}
|
|
20204
20474
|
if (!jsComp && !fwComp) {
|
|
20475
|
+
if (mandatory) {
|
|
20476
|
+
console.error("Could not find component " + compName + ", did you forget to configure this component?");
|
|
20477
|
+
}
|
|
20205
20478
|
return;
|
|
20206
20479
|
}
|
|
20207
20480
|
var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);
|
|
@@ -20238,7 +20511,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20238
20511
|
var selectorRes = selectorFunc ? selectorFunc(params) : null;
|
|
20239
20512
|
var assignComp = function (providedJsComp, providedFwComp) {
|
|
20240
20513
|
var xxxFrameworkDeprecatedWarn = function () {
|
|
20241
|
-
|
|
20514
|
+
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.";
|
|
20515
|
+
doOnce(function () { return console.warn(warningMessage); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
|
|
20242
20516
|
};
|
|
20243
20517
|
if (typeof providedJsComp === 'string') {
|
|
20244
20518
|
compName = providedJsComp;
|
|
@@ -20264,7 +20538,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20264
20538
|
};
|
|
20265
20539
|
if (selectorRes) {
|
|
20266
20540
|
if (selectorRes.frameworkComponent != null) {
|
|
20267
|
-
|
|
20541
|
+
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.";
|
|
20542
|
+
doOnce(function () { return console.warn(warningMessage_1); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
|
|
20268
20543
|
assignComp(selectorRes.frameworkComponent, undefined);
|
|
20269
20544
|
}
|
|
20270
20545
|
else {
|
|
@@ -20769,13 +21044,16 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20769
21044
|
modelKeys_1.forEach(function (colId) {
|
|
20770
21045
|
var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);
|
|
20771
21046
|
if (!column) {
|
|
21047
|
+
console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);
|
|
20772
21048
|
return;
|
|
20773
21049
|
}
|
|
20774
21050
|
if (!column.isFilterAllowed()) {
|
|
21051
|
+
console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);
|
|
20775
21052
|
return;
|
|
20776
21053
|
}
|
|
20777
21054
|
var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');
|
|
20778
21055
|
if (!filterWrapper) {
|
|
21056
|
+
console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);
|
|
20779
21057
|
return;
|
|
20780
21058
|
}
|
|
20781
21059
|
allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));
|
|
@@ -20805,6 +21083,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20805
21083
|
return new AgPromise(function (resolve) {
|
|
20806
21084
|
filterPromise.then(function (filter) {
|
|
20807
21085
|
if (typeof filter.setModel !== 'function') {
|
|
21086
|
+
console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');
|
|
20808
21087
|
resolve();
|
|
20809
21088
|
}
|
|
20810
21089
|
(filter.setModel(newModel) || AgPromise.resolve()).then(function () { return resolve(); });
|
|
@@ -20821,6 +21100,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20821
21100
|
return null;
|
|
20822
21101
|
}
|
|
20823
21102
|
if (typeof filter.getModel !== 'function') {
|
|
21103
|
+
console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');
|
|
20824
21104
|
return;
|
|
20825
21105
|
}
|
|
20826
21106
|
var model = filter.getModel();
|
|
@@ -20854,6 +21134,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20854
21134
|
return false;
|
|
20855
21135
|
} // this never happens, including to avoid compile error
|
|
20856
21136
|
if (!filter.isFilterActive) {
|
|
21137
|
+
console.warn('AG Grid: Filter is missing isFilterActive() method');
|
|
20857
21138
|
return false;
|
|
20858
21139
|
}
|
|
20859
21140
|
return filter.isFilterActive();
|
|
@@ -20927,12 +21208,14 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20927
21208
|
return null;
|
|
20928
21209
|
}
|
|
20929
21210
|
if (!this.gridOptionsWrapper.isRowModelDefault()) {
|
|
21211
|
+
console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');
|
|
20930
21212
|
return null;
|
|
20931
21213
|
}
|
|
20932
21214
|
return newFilter.toUpperCase();
|
|
20933
21215
|
};
|
|
20934
21216
|
FilterManager.prototype.setQuickFilter = function (newFilter) {
|
|
20935
21217
|
if (newFilter != null && typeof newFilter !== 'string') {
|
|
21218
|
+
console.warn("AG Grid - setQuickFilter() only supports string inputs, received: " + typeof newFilter);
|
|
20936
21219
|
return;
|
|
20937
21220
|
}
|
|
20938
21221
|
var parsedFilter = this.parseQuickFilter(newFilter);
|
|
@@ -21192,7 +21475,9 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
21192
21475
|
filterWrapper.guiPromise = new AgPromise(function (resolve) {
|
|
21193
21476
|
filterWrapper.filterPromise.then(function (filter) {
|
|
21194
21477
|
var guiFromFilter = filter.getGui();
|
|
21195
|
-
if (!exists(guiFromFilter))
|
|
21478
|
+
if (!exists(guiFromFilter)) {
|
|
21479
|
+
console.warn("AG Grid: getGui method from filter returned " + guiFromFilter + ", it should be a DOM element or an HTML template string.");
|
|
21480
|
+
}
|
|
21196
21481
|
// for backwards compatibility with Angular 1 - we
|
|
21197
21482
|
// used to allow providing back HTML from getGui().
|
|
21198
21483
|
// once we move away from supporting Angular 1
|
|
@@ -21784,6 +22069,7 @@ var GridBodyScrollFeature = /** @class */ (function (_super) {
|
|
|
21784
22069
|
}
|
|
21785
22070
|
var rowCount = this.paginationProxy.getRowCount();
|
|
21786
22071
|
if (typeof index !== 'number' || index < 0 || index >= rowCount) {
|
|
22072
|
+
console.warn('invalid row index for ensureIndexVisible: ' + index);
|
|
21787
22073
|
return;
|
|
21788
22074
|
}
|
|
21789
22075
|
var isPaging = this.gridOptionsWrapper.isPagination();
|
|
@@ -22278,10 +22564,11 @@ var RowDragFeature = /** @class */ (function (_super) {
|
|
|
22278
22564
|
RowDragFeature.prototype.addRowDropZone = function (params) {
|
|
22279
22565
|
var _this = this;
|
|
22280
22566
|
if (!params.getContainer()) {
|
|
22281
|
-
doOnce(function () { return (
|
|
22567
|
+
doOnce(function () { return console.warn('AG Grid: addRowDropZone - A container target needs to be provided'); }, 'add-drop-zone-empty-target');
|
|
22282
22568
|
return;
|
|
22283
22569
|
}
|
|
22284
22570
|
if (this.dragAndDropService.findExternalZone(params)) {
|
|
22571
|
+
console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');
|
|
22285
22572
|
return;
|
|
22286
22573
|
}
|
|
22287
22574
|
var processedParams = {
|
|
@@ -22808,7 +23095,10 @@ var GridBodyCtrl = /** @class */ (function (_super) {
|
|
|
22808
23095
|
_this.sizeColumnsToFit(params, -1);
|
|
22809
23096
|
}, 500);
|
|
22810
23097
|
}
|
|
22811
|
-
else
|
|
23098
|
+
else {
|
|
23099
|
+
console.warn('AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with ' +
|
|
23100
|
+
'zero width, maybe the grid is not visible yet on the screen?');
|
|
23101
|
+
}
|
|
22812
23102
|
};
|
|
22813
23103
|
// + rangeService
|
|
22814
23104
|
GridBodyCtrl.prototype.addScrollEventListener = function (listener) {
|
|
@@ -24469,6 +24759,7 @@ var CellCtrl = /** @class */ (function (_super) {
|
|
|
24469
24759
|
CellCtrl.prototype.createCellRendererParams = function () {
|
|
24470
24760
|
var _this = this;
|
|
24471
24761
|
var addRowCompListener = function (eventType, listener) {
|
|
24762
|
+
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.');
|
|
24472
24763
|
_this.rowCtrl.addEventListener(eventType, listener);
|
|
24473
24764
|
};
|
|
24474
24765
|
var res = {
|
|
@@ -24997,11 +25288,11 @@ var CellCtrl = /** @class */ (function (_super) {
|
|
|
24997
25288
|
if (rowDragManaged) {
|
|
24998
25289
|
// row dragging only available in default row model
|
|
24999
25290
|
if (!clientSideRowModelActive) {
|
|
25000
|
-
doOnce(function () { return (
|
|
25291
|
+
doOnce(function () { return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model'); }, 'CellComp.addRowDragging');
|
|
25001
25292
|
return;
|
|
25002
25293
|
}
|
|
25003
25294
|
if (pagination) {
|
|
25004
|
-
doOnce(function () { return (
|
|
25295
|
+
doOnce(function () { return console.warn('AG Grid: managed row dragging is not possible when doing pagination'); }, 'CellComp.addRowDragging');
|
|
25005
25296
|
return;
|
|
25006
25297
|
}
|
|
25007
25298
|
}
|
|
@@ -25218,6 +25509,7 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25218
25509
|
var gow = this.beans.gridOptionsWrapper;
|
|
25219
25510
|
if (gow.isEnableRangeSelection()) {
|
|
25220
25511
|
doOnce(function () {
|
|
25512
|
+
console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\'t work with `enableRangeSelection: true`');
|
|
25221
25513
|
}, 'rowDragAndRangeSelectionEnabled');
|
|
25222
25514
|
return;
|
|
25223
25515
|
}
|
|
@@ -25230,7 +25522,12 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25230
25522
|
var params = this.createFullWidthParams(gui.element, pinned);
|
|
25231
25523
|
var masterDetailModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.MasterDetailModule);
|
|
25232
25524
|
if (this.rowType == RowType$1.FullWidthDetail && !masterDetailModuleLoaded) {
|
|
25233
|
-
if (ModuleRegistry.isPackageBased())
|
|
25525
|
+
if (ModuleRegistry.isPackageBased()) {
|
|
25526
|
+
console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.");
|
|
25527
|
+
}
|
|
25528
|
+
else {
|
|
25529
|
+
console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module " + ModuleNames.MasterDetailModule);
|
|
25530
|
+
}
|
|
25234
25531
|
return;
|
|
25235
25532
|
}
|
|
25236
25533
|
var compDetails;
|
|
@@ -25981,6 +26278,7 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25981
26278
|
// part 1 - rowStyle
|
|
25982
26279
|
var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();
|
|
25983
26280
|
if (rowStyle && typeof rowStyle === 'function') {
|
|
26281
|
+
console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');
|
|
25984
26282
|
return;
|
|
25985
26283
|
}
|
|
25986
26284
|
// part 1 - rowStyleFunc
|
|
@@ -26095,12 +26393,14 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
26095
26393
|
RowCtrl.prototype.addEventListener = function (eventType, listener) {
|
|
26096
26394
|
if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
|
|
26097
26395
|
eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
|
|
26396
|
+
console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
|
|
26098
26397
|
}
|
|
26099
26398
|
_super.prototype.addEventListener.call(this, eventType, listener);
|
|
26100
26399
|
};
|
|
26101
26400
|
RowCtrl.prototype.removeEventListener = function (eventType, listener) {
|
|
26102
26401
|
if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
|
|
26103
26402
|
eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
|
|
26403
|
+
console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
|
|
26104
26404
|
}
|
|
26105
26405
|
_super.prototype.removeEventListener.call(this, eventType, listener);
|
|
26106
26406
|
};
|
|
@@ -28260,7 +28560,7 @@ var NavigationService = /** @class */ (function (_super) {
|
|
|
28260
28560
|
var userCell = userFunc(params);
|
|
28261
28561
|
if (exists(userCell)) {
|
|
28262
28562
|
if (userCell.floating) {
|
|
28263
|
-
doOnce(function () { }, 'no floating in userCell');
|
|
28563
|
+
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');
|
|
28264
28564
|
userCell.rowPinned = userCell.floating;
|
|
28265
28565
|
}
|
|
28266
28566
|
nextPosition = {
|
|
@@ -28393,7 +28693,7 @@ var NavigationService = /** @class */ (function (_super) {
|
|
|
28393
28693
|
var userCell = userFunc(params);
|
|
28394
28694
|
if (exists(userCell)) {
|
|
28395
28695
|
if (userCell.floating) {
|
|
28396
|
-
doOnce(function () { }, 'no floating in userCell');
|
|
28696
|
+
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');
|
|
28397
28697
|
userCell.rowPinned = userCell.floating;
|
|
28398
28698
|
}
|
|
28399
28699
|
nextCell = {
|
|
@@ -28948,6 +29248,7 @@ var CellComp = /** @class */ (function (_super) {
|
|
|
28948
29248
|
return;
|
|
28949
29249
|
}
|
|
28950
29250
|
if (!cellEditor.getGui) {
|
|
29251
|
+
console.warn("AG Grid: cellEditor for column " + this.column.getId() + " is missing getGui() method");
|
|
28951
29252
|
this.beans.context.destroyBean(cellEditor);
|
|
28952
29253
|
return;
|
|
28953
29254
|
}
|
|
@@ -28985,7 +29286,10 @@ var CellComp = /** @class */ (function (_super) {
|
|
|
28985
29286
|
};
|
|
28986
29287
|
CellComp.prototype.addPopupCellEditor = function (params, position) {
|
|
28987
29288
|
var _this = this;
|
|
28988
|
-
if (this.beans.gridOptionsWrapper.isFullRowEdit())
|
|
29289
|
+
if (this.beans.gridOptionsWrapper.isFullRowEdit()) {
|
|
29290
|
+
console.warn('AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both ' +
|
|
29291
|
+
'- either turn off fullRowEdit, or stop using popup editors.');
|
|
29292
|
+
}
|
|
28989
29293
|
var cellEditor = this.cellEditor;
|
|
28990
29294
|
// if a popup, then we wrap in a popup editor and return the popup
|
|
28991
29295
|
this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));
|
|
@@ -29169,6 +29473,9 @@ var RowComp = /** @class */ (function (_super) {
|
|
|
29169
29473
|
};
|
|
29170
29474
|
RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {
|
|
29171
29475
|
var _this = this;
|
|
29476
|
+
if (this.fullWidthCellRenderer) {
|
|
29477
|
+
console.error('AG Grid - should not be setting fullWidthRowComponent twice');
|
|
29478
|
+
}
|
|
29172
29479
|
this.fullWidthCellRenderer = fullWidthRowComponent;
|
|
29173
29480
|
this.addDestroyFunc(function () {
|
|
29174
29481
|
_this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);
|
|
@@ -29593,6 +29900,7 @@ var MoveColumnFeature = /** @class */ (function () {
|
|
|
29593
29900
|
switch (hDirection) {
|
|
29594
29901
|
case HorizontalDirection.Left: return HorizontalDirection.Right;
|
|
29595
29902
|
case HorizontalDirection.Right: return HorizontalDirection.Left;
|
|
29903
|
+
default: console.error("AG Grid: Unknown direction " + hDirection);
|
|
29596
29904
|
}
|
|
29597
29905
|
}
|
|
29598
29906
|
else {
|
|
@@ -30633,6 +30941,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30633
30941
|
}
|
|
30634
30942
|
var exportMode = this.getExcelExportMode(params);
|
|
30635
30943
|
if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
|
|
30944
|
+
console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
|
|
30636
30945
|
return;
|
|
30637
30946
|
}
|
|
30638
30947
|
return this.excelCreator.getDataAsExcel(params);
|
|
@@ -30644,6 +30953,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30644
30953
|
}
|
|
30645
30954
|
var exportMode = this.getExcelExportMode(params);
|
|
30646
30955
|
if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
|
|
30956
|
+
console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
|
|
30647
30957
|
return;
|
|
30648
30958
|
}
|
|
30649
30959
|
this.excelCreator.exportDataAsExcel(params);
|
|
@@ -30671,6 +30981,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30671
30981
|
};
|
|
30672
30982
|
/** @deprecated AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource() */
|
|
30673
30983
|
GridApi.prototype.setEnterpriseDatasource = function (datasource) {
|
|
30984
|
+
console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()");
|
|
30674
30985
|
this.setServerSideDatasource(datasource);
|
|
30675
30986
|
};
|
|
30676
30987
|
/**
|
|
@@ -30699,6 +31010,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30699
31010
|
// should really have an IEnterpriseRowModel interface, so we are not casting to any
|
|
30700
31011
|
this.serverSideRowModel.setDatasource(datasource);
|
|
30701
31012
|
}
|
|
31013
|
+
else {
|
|
31014
|
+
console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
|
|
31015
|
+
}
|
|
30702
31016
|
};
|
|
30703
31017
|
/**
|
|
30704
31018
|
* Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.
|
|
@@ -30707,6 +31021,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30707
31021
|
* */
|
|
30708
31022
|
GridApi.prototype.setCacheBlockSize = function (blockSize) {
|
|
30709
31023
|
if (!this.serverSideRowModel) {
|
|
31024
|
+
console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
|
|
30710
31025
|
return;
|
|
30711
31026
|
}
|
|
30712
31027
|
this.gridOptionsWrapper.setProperty('cacheBlockSize', blockSize);
|
|
@@ -30717,6 +31032,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30717
31032
|
if (this.gridOptionsWrapper.isRowModelInfinite()) {
|
|
30718
31033
|
this.rowModel.setDatasource(datasource);
|
|
30719
31034
|
}
|
|
31035
|
+
else {
|
|
31036
|
+
console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_INFINITE + "'");
|
|
31037
|
+
}
|
|
30720
31038
|
};
|
|
30721
31039
|
/** Set new datasource for Viewport Row Model. */
|
|
30722
31040
|
GridApi.prototype.setViewportDatasource = function (viewportDatasource) {
|
|
@@ -30726,12 +31044,16 @@ var GridApi = /** @class */ (function () {
|
|
|
30726
31044
|
// the enterprise implement it, rather than casting to 'any' here
|
|
30727
31045
|
this.rowModel.setViewportDatasource(viewportDatasource);
|
|
30728
31046
|
}
|
|
31047
|
+
else {
|
|
31048
|
+
console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_VIEWPORT + "'");
|
|
31049
|
+
}
|
|
30729
31050
|
};
|
|
30730
31051
|
/** Set the row data. */
|
|
30731
31052
|
GridApi.prototype.setRowData = function (rowData) {
|
|
30732
31053
|
// immutable service is part of the CSRM module, if missing, no CSRM
|
|
30733
31054
|
var missingImmutableService = this.immutableService == null;
|
|
30734
31055
|
if (missingImmutableService) {
|
|
31056
|
+
console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');
|
|
30735
31057
|
return;
|
|
30736
31058
|
}
|
|
30737
31059
|
// if no keys provided provided for rows, then we can tread the operation as Immutable
|
|
@@ -30745,26 +31067,32 @@ var GridApi = /** @class */ (function () {
|
|
|
30745
31067
|
};
|
|
30746
31068
|
/** @deprecated AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData() */
|
|
30747
31069
|
GridApi.prototype.setFloatingTopRowData = function (rows) {
|
|
31070
|
+
console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');
|
|
30748
31071
|
this.setPinnedTopRowData(rows);
|
|
30749
31072
|
};
|
|
30750
31073
|
/** @deprecated AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData() */
|
|
30751
31074
|
GridApi.prototype.setFloatingBottomRowData = function (rows) {
|
|
31075
|
+
console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');
|
|
30752
31076
|
this.setPinnedBottomRowData(rows);
|
|
30753
31077
|
};
|
|
30754
31078
|
/** @deprecated AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount() */
|
|
30755
31079
|
GridApi.prototype.getFloatingTopRowCount = function () {
|
|
31080
|
+
console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');
|
|
30756
31081
|
return this.getPinnedTopRowCount();
|
|
30757
31082
|
};
|
|
30758
31083
|
/** @deprecated AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount() */
|
|
30759
31084
|
GridApi.prototype.getFloatingBottomRowCount = function () {
|
|
31085
|
+
console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');
|
|
30760
31086
|
return this.getPinnedBottomRowCount();
|
|
30761
31087
|
};
|
|
30762
31088
|
/** @deprecated AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow() */
|
|
30763
31089
|
GridApi.prototype.getFloatingTopRow = function (index) {
|
|
31090
|
+
console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');
|
|
30764
31091
|
return this.getPinnedTopRow(index);
|
|
30765
31092
|
};
|
|
30766
31093
|
/** @deprecated AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow() */
|
|
30767
31094
|
GridApi.prototype.getFloatingBottomRow = function (index) {
|
|
31095
|
+
console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');
|
|
30768
31096
|
return this.getPinnedBottomRow(index);
|
|
30769
31097
|
};
|
|
30770
31098
|
/** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */
|
|
@@ -30845,6 +31173,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30845
31173
|
if (params === void 0) { params = {}; }
|
|
30846
31174
|
if (Array.isArray(params)) {
|
|
30847
31175
|
// the old version of refreshCells() took an array of rowNodes for the first argument
|
|
31176
|
+
console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');
|
|
30848
31177
|
return;
|
|
30849
31178
|
}
|
|
30850
31179
|
this.rowRenderer.refreshCells(params);
|
|
@@ -30898,8 +31227,12 @@ var GridApi = /** @class */ (function () {
|
|
|
30898
31227
|
* It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).
|
|
30899
31228
|
*/
|
|
30900
31229
|
GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {
|
|
30901
|
-
if (missing(this.clientSideRowModel))
|
|
30902
|
-
|
|
31230
|
+
if (missing(this.clientSideRowModel)) {
|
|
31231
|
+
console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');
|
|
31232
|
+
}
|
|
31233
|
+
if (exists(deprecated_refreshFromIndex)) {
|
|
31234
|
+
console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');
|
|
31235
|
+
}
|
|
30903
31236
|
// we don't really want the user calling this if only one rowNode was expanded, instead they should be
|
|
30904
31237
|
// calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole
|
|
30905
31238
|
// grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,
|
|
@@ -30908,6 +31241,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30908
31241
|
};
|
|
30909
31242
|
/** @deprecated AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel() */
|
|
30910
31243
|
GridApi.prototype.refreshInMemoryRowModel = function (step) {
|
|
31244
|
+
console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()");
|
|
30911
31245
|
this.refreshClientSideRowModel(step);
|
|
30912
31246
|
};
|
|
30913
31247
|
/**
|
|
@@ -30915,7 +31249,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30915
31249
|
* Optionally provide the step you wish the refresh to apply from. Defaults to `everything`.
|
|
30916
31250
|
*/
|
|
30917
31251
|
GridApi.prototype.refreshClientSideRowModel = function (step) {
|
|
30918
|
-
if (missing(this.clientSideRowModel))
|
|
31252
|
+
if (missing(this.clientSideRowModel)) {
|
|
31253
|
+
console.warn('cannot call refreshClientSideRowModel unless using normal row model');
|
|
31254
|
+
}
|
|
30919
31255
|
var paramsStep = ClientSideRowModelSteps.EVERYTHING;
|
|
30920
31256
|
var stepsMapped = {
|
|
30921
31257
|
everything: ClientSideRowModelSteps.EVERYTHING,
|
|
@@ -30930,6 +31266,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30930
31266
|
paramsStep = stepsMapped[step];
|
|
30931
31267
|
}
|
|
30932
31268
|
if (missing(paramsStep)) {
|
|
31269
|
+
console.error("AG Grid: invalid step " + step + ", available steps are " + Object.keys(stepsMapped).join(', '));
|
|
30933
31270
|
return;
|
|
30934
31271
|
}
|
|
30935
31272
|
var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();
|
|
@@ -30975,7 +31312,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30975
31312
|
else if (this.serverSideRowModel) {
|
|
30976
31313
|
this.serverSideRowModel.expandAll(true);
|
|
30977
31314
|
}
|
|
30978
|
-
else
|
|
31315
|
+
else {
|
|
31316
|
+
console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');
|
|
31317
|
+
}
|
|
30979
31318
|
};
|
|
30980
31319
|
/** Collapse all groups. */
|
|
30981
31320
|
GridApi.prototype.collapseAll = function () {
|
|
@@ -30985,17 +31324,23 @@ var GridApi = /** @class */ (function () {
|
|
|
30985
31324
|
else if (this.serverSideRowModel) {
|
|
30986
31325
|
this.serverSideRowModel.expandAll(false);
|
|
30987
31326
|
}
|
|
30988
|
-
else
|
|
31327
|
+
else {
|
|
31328
|
+
console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');
|
|
31329
|
+
}
|
|
30989
31330
|
};
|
|
30990
31331
|
/** Gets the tool panel instance corresponding to the supplied `id`. */
|
|
30991
31332
|
GridApi.prototype.getToolPanelInstance = function (id) {
|
|
30992
31333
|
if (!this.sideBarComp) {
|
|
31334
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
30993
31335
|
return;
|
|
30994
31336
|
}
|
|
30995
31337
|
var comp = this.sideBarComp.getToolPanelInstance(id);
|
|
30996
31338
|
return unwrapUserComp(comp);
|
|
30997
31339
|
};
|
|
30998
31340
|
GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {
|
|
31341
|
+
if (typeof eventName !== 'string') {
|
|
31342
|
+
console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');
|
|
31343
|
+
}
|
|
30999
31344
|
this.addRenderedRowListener(eventName, rowIndex, callback);
|
|
31000
31345
|
};
|
|
31001
31346
|
/**
|
|
@@ -31006,6 +31351,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31006
31351
|
* listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.
|
|
31007
31352
|
*/
|
|
31008
31353
|
GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {
|
|
31354
|
+
if (eventName === 'virtualRowSelected') {
|
|
31355
|
+
console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node.");
|
|
31356
|
+
}
|
|
31009
31357
|
this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);
|
|
31010
31358
|
};
|
|
31011
31359
|
/** Pass a quick filter text into the grid for filtering. */
|
|
@@ -31014,19 +31362,38 @@ var GridApi = /** @class */ (function () {
|
|
|
31014
31362
|
};
|
|
31015
31363
|
/** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead */
|
|
31016
31364
|
GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {
|
|
31365
|
+
console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
|
|
31366
|
+
if (suppressEvents) {
|
|
31367
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31368
|
+
}
|
|
31017
31369
|
this.selectionService.selectIndex(index, tryMulti);
|
|
31018
31370
|
};
|
|
31019
31371
|
/** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead. */
|
|
31020
31372
|
GridApi.prototype.deselectIndex = function (index, suppressEvents) {
|
|
31373
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31374
|
+
console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
|
|
31375
|
+
if (suppressEvents) {
|
|
31376
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31377
|
+
}
|
|
31021
31378
|
this.selectionService.deselectIndex(index);
|
|
31022
31379
|
};
|
|
31023
31380
|
/** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
|
|
31024
31381
|
GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {
|
|
31025
31382
|
if (tryMulti === void 0) { tryMulti = false; }
|
|
31383
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31384
|
+
console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
|
|
31385
|
+
if (suppressEvents) {
|
|
31386
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31387
|
+
}
|
|
31026
31388
|
node.setSelectedParams({ newValue: true, clearSelection: !tryMulti });
|
|
31027
31389
|
};
|
|
31028
31390
|
/** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
|
|
31029
31391
|
GridApi.prototype.deselectNode = function (node, suppressEvents) {
|
|
31392
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31393
|
+
console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
|
|
31394
|
+
if (suppressEvents) {
|
|
31395
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31396
|
+
}
|
|
31030
31397
|
node.setSelectedParams({ newValue: false });
|
|
31031
31398
|
};
|
|
31032
31399
|
/** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */
|
|
@@ -31047,7 +31414,10 @@ var GridApi = /** @class */ (function () {
|
|
|
31047
31414
|
};
|
|
31048
31415
|
/** @deprecated recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead */
|
|
31049
31416
|
GridApi.prototype.recomputeAggregates = function () {
|
|
31050
|
-
if (missing(this.clientSideRowModel))
|
|
31417
|
+
if (missing(this.clientSideRowModel)) {
|
|
31418
|
+
console.warn('cannot call recomputeAggregates unless using normal row model');
|
|
31419
|
+
}
|
|
31420
|
+
console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead");
|
|
31051
31421
|
this.clientSideRowModel.refreshModel({ step: ClientSideRowModelSteps.AGGREGATE });
|
|
31052
31422
|
};
|
|
31053
31423
|
/**
|
|
@@ -31069,10 +31439,12 @@ var GridApi = /** @class */ (function () {
|
|
|
31069
31439
|
this.overlayWrapperComp.hideOverlay();
|
|
31070
31440
|
};
|
|
31071
31441
|
GridApi.prototype.isNodeSelected = function (node) {
|
|
31442
|
+
console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');
|
|
31072
31443
|
return node.isSelected();
|
|
31073
31444
|
};
|
|
31074
31445
|
/** @deprecated Use getSelectedNodesById no longer exists, use getSelectedNodes(). */
|
|
31075
31446
|
GridApi.prototype.getSelectedNodesById = function () {
|
|
31447
|
+
console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');
|
|
31076
31448
|
return null;
|
|
31077
31449
|
};
|
|
31078
31450
|
/**
|
|
@@ -31101,6 +31473,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31101
31473
|
};
|
|
31102
31474
|
/** @deprecated ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead. */
|
|
31103
31475
|
GridApi.prototype.ensureColIndexVisible = function (index) {
|
|
31476
|
+
console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');
|
|
31104
31477
|
};
|
|
31105
31478
|
/**
|
|
31106
31479
|
* Ensures the column is visible by scrolling the table if needed.
|
|
@@ -31142,7 +31515,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31142
31515
|
* but excluding groups the grid created where gaps were missing in the hierarchy.
|
|
31143
31516
|
*/
|
|
31144
31517
|
GridApi.prototype.forEachLeafNode = function (callback) {
|
|
31145
|
-
if (missing(this.clientSideRowModel))
|
|
31518
|
+
if (missing(this.clientSideRowModel)) {
|
|
31519
|
+
console.warn('cannot call forEachNode unless using normal row model');
|
|
31520
|
+
}
|
|
31146
31521
|
this.clientSideRowModel.forEachLeafNode(callback);
|
|
31147
31522
|
};
|
|
31148
31523
|
/**
|
|
@@ -31156,12 +31531,16 @@ var GridApi = /** @class */ (function () {
|
|
|
31156
31531
|
};
|
|
31157
31532
|
/** Similar to `forEachNode`, except skips any filtered out data. */
|
|
31158
31533
|
GridApi.prototype.forEachNodeAfterFilter = function (callback) {
|
|
31159
|
-
if (missing(this.clientSideRowModel))
|
|
31534
|
+
if (missing(this.clientSideRowModel)) {
|
|
31535
|
+
console.warn('cannot call forEachNodeAfterFilter unless using normal row model');
|
|
31536
|
+
}
|
|
31160
31537
|
this.clientSideRowModel.forEachNodeAfterFilter(callback);
|
|
31161
31538
|
};
|
|
31162
31539
|
/** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */
|
|
31163
31540
|
GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {
|
|
31164
|
-
if (missing(this.clientSideRowModel))
|
|
31541
|
+
if (missing(this.clientSideRowModel)) {
|
|
31542
|
+
console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');
|
|
31543
|
+
}
|
|
31165
31544
|
this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);
|
|
31166
31545
|
};
|
|
31167
31546
|
/**
|
|
@@ -31399,10 +31778,12 @@ var GridApi = /** @class */ (function () {
|
|
|
31399
31778
|
};
|
|
31400
31779
|
/** @deprecated use `setProcessPivotResultColDef` instead */
|
|
31401
31780
|
GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {
|
|
31781
|
+
console.warn('AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead');
|
|
31402
31782
|
this.setProcessPivotResultColDef(processSecondaryColDefFunc);
|
|
31403
31783
|
};
|
|
31404
31784
|
/** @deprecated use `setProcessPivotResultColGroupDef` instead */
|
|
31405
31785
|
GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {
|
|
31786
|
+
console.warn('AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead');
|
|
31406
31787
|
this.setProcessPivotResultColGroupDef(processSecondaryColGroupDefFunc);
|
|
31407
31788
|
};
|
|
31408
31789
|
GridApi.prototype.setProcessPivotResultColDef = function (processPivotResultColDefFunc) {
|
|
@@ -31458,6 +31839,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31458
31839
|
/** Show/hide the entire side bar, including any visible panel and the tab buttons. */
|
|
31459
31840
|
GridApi.prototype.setSideBarVisible = function (show) {
|
|
31460
31841
|
if (!this.sideBarComp) {
|
|
31842
|
+
if (show) {
|
|
31843
|
+
console.warn('AG Grid: sideBar is not loaded');
|
|
31844
|
+
}
|
|
31461
31845
|
return;
|
|
31462
31846
|
}
|
|
31463
31847
|
this.sideBarComp.setDisplayed(show);
|
|
@@ -31465,6 +31849,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31465
31849
|
/** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */
|
|
31466
31850
|
GridApi.prototype.setSideBarPosition = function (position) {
|
|
31467
31851
|
if (!this.sideBarComp) {
|
|
31852
|
+
console.warn('AG Grid: sideBar is not loaded');
|
|
31468
31853
|
return;
|
|
31469
31854
|
}
|
|
31470
31855
|
this.sideBarComp.setSideBarPosition(position);
|
|
@@ -31472,6 +31857,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31472
31857
|
/** Opens a particular tool panel. Provide the ID of the tool panel to open. */
|
|
31473
31858
|
GridApi.prototype.openToolPanel = function (key) {
|
|
31474
31859
|
if (!this.sideBarComp) {
|
|
31860
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
31475
31861
|
return;
|
|
31476
31862
|
}
|
|
31477
31863
|
this.sideBarComp.openToolPanel(key);
|
|
@@ -31479,6 +31865,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31479
31865
|
/** Closes the currently open tool panel (if any). */
|
|
31480
31866
|
GridApi.prototype.closeToolPanel = function () {
|
|
31481
31867
|
if (!this.sideBarComp) {
|
|
31868
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
31482
31869
|
return;
|
|
31483
31870
|
}
|
|
31484
31871
|
this.sideBarComp.close();
|
|
@@ -31504,12 +31891,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31504
31891
|
};
|
|
31505
31892
|
/** @deprecated AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically. */
|
|
31506
31893
|
GridApi.prototype.doLayout = function () {
|
|
31507
|
-
|
|
31894
|
+
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";
|
|
31895
|
+
doOnce(function () { return console.warn(message); }, 'doLayoutDeprecated');
|
|
31508
31896
|
};
|
|
31509
31897
|
/** Tells the grid to recalculate the row heights. */
|
|
31510
31898
|
GridApi.prototype.resetRowHeights = function () {
|
|
31511
31899
|
if (exists(this.clientSideRowModel)) {
|
|
31512
31900
|
if (this.columnModel.isAutoRowHeightActive()) {
|
|
31901
|
+
console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');
|
|
31513
31902
|
return;
|
|
31514
31903
|
}
|
|
31515
31904
|
this.clientSideRowModel.resetRowHeights();
|
|
@@ -31596,6 +31985,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31596
31985
|
setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);
|
|
31597
31986
|
};
|
|
31598
31987
|
GridApi.prototype.warnIfDestroyed = function (methodName) {
|
|
31988
|
+
if (this.destroyCalled) {
|
|
31989
|
+
console.warn("AG Grid: Grid API method " + methodName + " was called on a grid that was destroyed.");
|
|
31990
|
+
}
|
|
31599
31991
|
return this.destroyCalled;
|
|
31600
31992
|
};
|
|
31601
31993
|
/** Reset the quick filter cache text on every rowNode. */
|
|
@@ -31607,6 +31999,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31607
31999
|
};
|
|
31608
32000
|
/** @deprecated AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead. */
|
|
31609
32001
|
GridApi.prototype.getRangeSelections = function () {
|
|
32002
|
+
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.");
|
|
31610
32003
|
return null;
|
|
31611
32004
|
};
|
|
31612
32005
|
/** Returns the list of selected cell ranges. */
|
|
@@ -31614,6 +32007,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31614
32007
|
if (this.rangeService) {
|
|
31615
32008
|
return this.rangeService.getCellRanges();
|
|
31616
32009
|
}
|
|
32010
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
31617
32011
|
return null;
|
|
31618
32012
|
};
|
|
31619
32013
|
GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {
|
|
@@ -31621,13 +32015,20 @@ var GridApi = /** @class */ (function () {
|
|
|
31621
32015
|
};
|
|
31622
32016
|
/** @deprecated AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection() */
|
|
31623
32017
|
GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {
|
|
32018
|
+
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()');
|
|
31624
32019
|
};
|
|
31625
32020
|
/** Adds the provided cell range to the selected ranges. */
|
|
31626
32021
|
GridApi.prototype.addCellRange = function (params) {
|
|
32022
|
+
if (!this.rangeService) {
|
|
32023
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
32024
|
+
}
|
|
31627
32025
|
this.rangeService.addCellRange(params);
|
|
31628
32026
|
};
|
|
31629
32027
|
/** Clears the selected ranges. */
|
|
31630
32028
|
GridApi.prototype.clearRangeSelection = function () {
|
|
32029
|
+
if (!this.rangeService) {
|
|
32030
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
32031
|
+
}
|
|
31631
32032
|
this.rangeService.removeAllCellRanges();
|
|
31632
32033
|
};
|
|
31633
32034
|
/** Reverts the last cell edit. */
|
|
@@ -31714,18 +32115,30 @@ var GridApi = /** @class */ (function () {
|
|
|
31714
32115
|
};
|
|
31715
32116
|
/** Copies data to clipboard by following the same rules as pressing Ctrl+C. */
|
|
31716
32117
|
GridApi.prototype.copyToClipboard = function (params) {
|
|
32118
|
+
if (!this.clipboardService) {
|
|
32119
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32120
|
+
}
|
|
31717
32121
|
this.clipboardService.copyToClipboard(params);
|
|
31718
32122
|
};
|
|
31719
32123
|
/** Copies the selected rows to the clipboard. */
|
|
31720
32124
|
GridApi.prototype.copySelectedRowsToClipboard = function (params) {
|
|
32125
|
+
if (!this.clipboardService) {
|
|
32126
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32127
|
+
}
|
|
31721
32128
|
this.clipboardService.copySelectedRowsToClipboard(params);
|
|
31722
32129
|
};
|
|
31723
32130
|
/** Copies the selected ranges to the clipboard. */
|
|
31724
32131
|
GridApi.prototype.copySelectedRangeToClipboard = function (params) {
|
|
32132
|
+
if (!this.clipboardService) {
|
|
32133
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32134
|
+
}
|
|
31725
32135
|
this.clipboardService.copySelectedRangeToClipboard(params);
|
|
31726
32136
|
};
|
|
31727
32137
|
/** Copies the selected range down, similar to `Ctrl + D` in Excel. */
|
|
31728
32138
|
GridApi.prototype.copySelectedRangeDown = function () {
|
|
32139
|
+
if (!this.clipboardService) {
|
|
32140
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32141
|
+
}
|
|
31729
32142
|
this.clipboardService.copyRangeDown();
|
|
31730
32143
|
};
|
|
31731
32144
|
/** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */
|
|
@@ -31742,6 +32155,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31742
32155
|
column = this.columnModel.getPrimaryColumn(colKey);
|
|
31743
32156
|
}
|
|
31744
32157
|
if (!column) {
|
|
32158
|
+
console.error("AG Grid: column '" + colKey + "' not found");
|
|
31745
32159
|
return;
|
|
31746
32160
|
}
|
|
31747
32161
|
this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);
|
|
@@ -31794,6 +32208,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31794
32208
|
GridApi.prototype.startEditingCell = function (params) {
|
|
31795
32209
|
var column = this.columnModel.getGridColumn(params.colKey);
|
|
31796
32210
|
if (!column) {
|
|
32211
|
+
console.warn("AG Grid: no column found for " + params.colKey);
|
|
31797
32212
|
return;
|
|
31798
32213
|
}
|
|
31799
32214
|
var cellPosition = {
|
|
@@ -31832,12 +32247,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31832
32247
|
/** Apply transactions to the server side row model. */
|
|
31833
32248
|
GridApi.prototype.applyServerSideTransaction = function (transaction) {
|
|
31834
32249
|
if (!this.serverSideTransactionManager) {
|
|
32250
|
+
console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
|
|
31835
32251
|
return;
|
|
31836
32252
|
}
|
|
31837
32253
|
return this.serverSideTransactionManager.applyTransaction(transaction);
|
|
31838
32254
|
};
|
|
31839
32255
|
GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {
|
|
31840
32256
|
if (!this.serverSideTransactionManager) {
|
|
32257
|
+
console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
|
|
31841
32258
|
return;
|
|
31842
32259
|
}
|
|
31843
32260
|
return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);
|
|
@@ -31845,12 +32262,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31845
32262
|
/** Gets all failed server side loads to retry. */
|
|
31846
32263
|
GridApi.prototype.retryServerSideLoads = function () {
|
|
31847
32264
|
if (!this.serverSideRowModel) {
|
|
32265
|
+
console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');
|
|
31848
32266
|
return;
|
|
31849
32267
|
}
|
|
31850
32268
|
this.serverSideRowModel.retryLoads();
|
|
31851
32269
|
};
|
|
31852
32270
|
GridApi.prototype.flushServerSideAsyncTransactions = function () {
|
|
31853
32271
|
if (!this.serverSideTransactionManager) {
|
|
32272
|
+
console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');
|
|
31854
32273
|
return;
|
|
31855
32274
|
}
|
|
31856
32275
|
return this.serverSideTransactionManager.flushAsyncTransactions();
|
|
@@ -31858,6 +32277,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31858
32277
|
/** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */
|
|
31859
32278
|
GridApi.prototype.applyTransaction = function (rowDataTransaction) {
|
|
31860
32279
|
if (!this.clientSideRowModel) {
|
|
32280
|
+
console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');
|
|
31861
32281
|
return;
|
|
31862
32282
|
}
|
|
31863
32283
|
var res = this.clientSideRowModel.updateRowData(rowDataTransaction);
|
|
@@ -31875,12 +32295,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31875
32295
|
};
|
|
31876
32296
|
/** @deprecated AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). */
|
|
31877
32297
|
GridApi.prototype.updateRowData = function (rowDataTransaction) {
|
|
31878
|
-
|
|
32298
|
+
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.';
|
|
32299
|
+
doOnce(function () { return console.warn(message); }, 'updateRowData deprecated');
|
|
31879
32300
|
return this.applyTransaction(rowDataTransaction);
|
|
31880
32301
|
};
|
|
31881
32302
|
/** Same as `applyTransaction` except executes asynchronously for efficiency. */
|
|
31882
32303
|
GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {
|
|
31883
32304
|
if (!this.clientSideRowModel) {
|
|
32305
|
+
console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
|
|
31884
32306
|
return;
|
|
31885
32307
|
}
|
|
31886
32308
|
this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);
|
|
@@ -31888,34 +32310,41 @@ var GridApi = /** @class */ (function () {
|
|
|
31888
32310
|
/** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */
|
|
31889
32311
|
GridApi.prototype.flushAsyncTransactions = function () {
|
|
31890
32312
|
if (!this.clientSideRowModel) {
|
|
32313
|
+
console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
|
|
31891
32314
|
return;
|
|
31892
32315
|
}
|
|
31893
32316
|
this.clientSideRowModel.flushAsyncTransactions();
|
|
31894
32317
|
};
|
|
31895
32318
|
/** @deprecated AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). */
|
|
31896
32319
|
GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {
|
|
31897
|
-
|
|
32320
|
+
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.';
|
|
32321
|
+
doOnce(function () { return console.warn(message); }, 'batchUpdateRowData deprecated');
|
|
31898
32322
|
this.applyTransactionAsync(rowDataTransaction, callback);
|
|
31899
32323
|
};
|
|
31900
32324
|
/** @deprecated AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.*/
|
|
31901
32325
|
GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {
|
|
32326
|
+
console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');
|
|
31902
32327
|
this.updateRowData({ add: items, addIndex: index, update: null, remove: null });
|
|
31903
32328
|
};
|
|
31904
32329
|
/** @deprecated AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead. */
|
|
31905
32330
|
GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {
|
|
32331
|
+
console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');
|
|
31906
32332
|
var dataToRemove = rowNodes.map(function (rowNode) { return rowNode.data; });
|
|
31907
32333
|
this.updateRowData({ add: null, addIndex: null, update: null, remove: dataToRemove });
|
|
31908
32334
|
};
|
|
31909
32335
|
/** @deprecated AG Grid: addItems() is deprecated, use updateRowData(transaction) instead. */
|
|
31910
32336
|
GridApi.prototype.addItems = function (items, skipRefresh) {
|
|
32337
|
+
console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');
|
|
31911
32338
|
this.updateRowData({ add: items, addIndex: null, update: null, remove: null });
|
|
31912
32339
|
};
|
|
31913
32340
|
/** @deprecated AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
|
|
31914
32341
|
GridApi.prototype.refreshVirtualPageCache = function () {
|
|
32342
|
+
console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
|
|
31915
32343
|
this.refreshInfiniteCache();
|
|
31916
32344
|
};
|
|
31917
32345
|
/** @deprecated AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
|
|
31918
32346
|
GridApi.prototype.refreshInfinitePageCache = function () {
|
|
32347
|
+
console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
|
|
31919
32348
|
this.refreshInfiniteCache();
|
|
31920
32349
|
};
|
|
31921
32350
|
/**
|
|
@@ -31927,13 +32356,18 @@ var GridApi = /** @class */ (function () {
|
|
|
31927
32356
|
if (this.infiniteRowModel) {
|
|
31928
32357
|
this.infiniteRowModel.refreshCache();
|
|
31929
32358
|
}
|
|
32359
|
+
else {
|
|
32360
|
+
console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.");
|
|
32361
|
+
}
|
|
31930
32362
|
};
|
|
31931
32363
|
/** @deprecated AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
|
|
31932
32364
|
GridApi.prototype.purgeVirtualPageCache = function () {
|
|
32365
|
+
console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
|
|
31933
32366
|
this.purgeInfinitePageCache();
|
|
31934
32367
|
};
|
|
31935
32368
|
/** @deprecated AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
|
|
31936
32369
|
GridApi.prototype.purgeInfinitePageCache = function () {
|
|
32370
|
+
console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
|
|
31937
32371
|
this.purgeInfiniteCache();
|
|
31938
32372
|
};
|
|
31939
32373
|
/**
|
|
@@ -31946,20 +32380,28 @@ var GridApi = /** @class */ (function () {
|
|
|
31946
32380
|
if (this.infiniteRowModel) {
|
|
31947
32381
|
this.infiniteRowModel.purgeCache();
|
|
31948
32382
|
}
|
|
32383
|
+
else {
|
|
32384
|
+
console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.");
|
|
32385
|
+
}
|
|
31949
32386
|
};
|
|
31950
32387
|
/** @deprecated AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true}) */
|
|
31951
32388
|
GridApi.prototype.purgeEnterpriseCache = function (route) {
|
|
32389
|
+
console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})");
|
|
31952
32390
|
this.purgeServerSideCache(route);
|
|
31953
32391
|
};
|
|
31954
32392
|
/** @deprecated AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead. */
|
|
31955
32393
|
GridApi.prototype.purgeServerSideCache = function (route) {
|
|
31956
32394
|
if (route === void 0) { route = []; }
|
|
31957
32395
|
if (this.serverSideRowModel) {
|
|
32396
|
+
console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead.");
|
|
31958
32397
|
this.refreshServerSide({
|
|
31959
32398
|
route: route,
|
|
31960
32399
|
purge: true
|
|
31961
32400
|
});
|
|
31962
32401
|
}
|
|
32402
|
+
else {
|
|
32403
|
+
console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.");
|
|
32404
|
+
}
|
|
31963
32405
|
};
|
|
31964
32406
|
/**
|
|
31965
32407
|
* Refresh a server-side level.
|
|
@@ -31968,29 +32410,34 @@ var GridApi = /** @class */ (function () {
|
|
|
31968
32410
|
*/
|
|
31969
32411
|
GridApi.prototype.refreshServerSide = function (params) {
|
|
31970
32412
|
if (!this.serverSideRowModel) {
|
|
32413
|
+
console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.");
|
|
31971
32414
|
return;
|
|
31972
32415
|
}
|
|
31973
32416
|
this.serverSideRowModel.refreshStore(params);
|
|
31974
32417
|
};
|
|
31975
32418
|
/** @deprecated use `refreshServerSide` instead */
|
|
31976
32419
|
GridApi.prototype.refreshServerSideStore = function (params) {
|
|
31977
|
-
|
|
32420
|
+
var message = "AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";
|
|
32421
|
+
doOnce(function () { return console.warn(message); }, 'refreshServerSideStore-renamed');
|
|
31978
32422
|
return this.refreshServerSide(params);
|
|
31979
32423
|
};
|
|
31980
32424
|
/** @deprecated use `getServerSideGroupLevelState` instead */
|
|
31981
32425
|
GridApi.prototype.getServerSideStoreState = function () {
|
|
31982
|
-
|
|
32426
|
+
var message = "AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";
|
|
32427
|
+
doOnce(function () { return console.warn(message); }, 'getServerSideStoreState-renamed');
|
|
31983
32428
|
return this.getServerSideGroupLevelState();
|
|
31984
32429
|
};
|
|
31985
32430
|
/** Returns info on all server side group levels. */
|
|
31986
32431
|
GridApi.prototype.getServerSideGroupLevelState = function () {
|
|
31987
32432
|
if (!this.serverSideRowModel) {
|
|
32433
|
+
console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'.");
|
|
31988
32434
|
return [];
|
|
31989
32435
|
}
|
|
31990
32436
|
return this.serverSideRowModel.getStoreState();
|
|
31991
32437
|
};
|
|
31992
32438
|
/** @deprecated AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead */
|
|
31993
32439
|
GridApi.prototype.getVirtualRowCount = function () {
|
|
32440
|
+
console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');
|
|
31994
32441
|
return this.getInfiniteRowCount();
|
|
31995
32442
|
};
|
|
31996
32443
|
/** The row count defines how many rows the grid allows scrolling to. */
|
|
@@ -31998,9 +32445,13 @@ var GridApi = /** @class */ (function () {
|
|
|
31998
32445
|
if (this.infiniteRowModel) {
|
|
31999
32446
|
return this.infiniteRowModel.getRowCount();
|
|
32000
32447
|
}
|
|
32448
|
+
else {
|
|
32449
|
+
console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.");
|
|
32450
|
+
}
|
|
32001
32451
|
};
|
|
32002
32452
|
/** @deprecated AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown() */
|
|
32003
32453
|
GridApi.prototype.isMaxRowFound = function () {
|
|
32454
|
+
console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()");
|
|
32004
32455
|
return this.isLastRowIndexKnown();
|
|
32005
32456
|
};
|
|
32006
32457
|
/** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */
|
|
@@ -32008,13 +32459,18 @@ var GridApi = /** @class */ (function () {
|
|
|
32008
32459
|
if (this.infiniteRowModel) {
|
|
32009
32460
|
return this.infiniteRowModel.isLastRowIndexKnown();
|
|
32010
32461
|
}
|
|
32462
|
+
else {
|
|
32463
|
+
console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.");
|
|
32464
|
+
}
|
|
32011
32465
|
};
|
|
32012
32466
|
/** @deprecated AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead */
|
|
32013
32467
|
GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {
|
|
32468
|
+
console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');
|
|
32014
32469
|
this.setRowCount(rowCount, maxRowFound);
|
|
32015
32470
|
};
|
|
32016
32471
|
/** @deprecated AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead */
|
|
32017
32472
|
GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {
|
|
32473
|
+
console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');
|
|
32018
32474
|
this.setRowCount(rowCount, maxRowFound);
|
|
32019
32475
|
};
|
|
32020
32476
|
/**
|
|
@@ -32028,13 +32484,18 @@ var GridApi = /** @class */ (function () {
|
|
|
32028
32484
|
if (this.infiniteRowModel) {
|
|
32029
32485
|
this.infiniteRowModel.setRowCount(rowCount, maxRowFound);
|
|
32030
32486
|
}
|
|
32487
|
+
else {
|
|
32488
|
+
console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.");
|
|
32489
|
+
}
|
|
32031
32490
|
};
|
|
32032
32491
|
/** @deprecated AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
|
|
32033
32492
|
GridApi.prototype.getVirtualPageState = function () {
|
|
32493
|
+
console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
|
|
32034
32494
|
return this.getCacheBlockState();
|
|
32035
32495
|
};
|
|
32036
32496
|
/** @deprecated getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
|
|
32037
32497
|
GridApi.prototype.getInfinitePageState = function () {
|
|
32498
|
+
console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
|
|
32038
32499
|
return this.getCacheBlockState();
|
|
32039
32500
|
};
|
|
32040
32501
|
/**
|
|
@@ -32045,9 +32506,11 @@ var GridApi = /** @class */ (function () {
|
|
|
32045
32506
|
};
|
|
32046
32507
|
/** @deprecated In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful. */
|
|
32047
32508
|
GridApi.prototype.checkGridSize = function () {
|
|
32509
|
+
console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.");
|
|
32048
32510
|
};
|
|
32049
32511
|
/** @deprecated In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow() */
|
|
32050
32512
|
GridApi.prototype.getFirstRenderedRow = function () {
|
|
32513
|
+
console.warn('In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');
|
|
32051
32514
|
return this.getFirstDisplayedRow();
|
|
32052
32515
|
};
|
|
32053
32516
|
/** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */
|
|
@@ -32056,6 +32519,7 @@ var GridApi = /** @class */ (function () {
|
|
|
32056
32519
|
};
|
|
32057
32520
|
/** @deprecated In AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow() */
|
|
32058
32521
|
GridApi.prototype.getLastRenderedRow = function () {
|
|
32522
|
+
console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');
|
|
32059
32523
|
return this.getLastDisplayedRow();
|
|
32060
32524
|
};
|
|
32061
32525
|
/** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */
|
|
@@ -33107,7 +33571,11 @@ var SelectAllFeature = /** @class */ (function (_super) {
|
|
|
33107
33571
|
};
|
|
33108
33572
|
};
|
|
33109
33573
|
SelectAllFeature.prototype.checkRightRowModelType = function () {
|
|
33110
|
-
this.rowModel.getType();
|
|
33574
|
+
var rowModelType = this.rowModel.getType();
|
|
33575
|
+
var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
|
|
33576
|
+
if (!rowModelMatches) {
|
|
33577
|
+
console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using " + rowModelType);
|
|
33578
|
+
}
|
|
33111
33579
|
};
|
|
33112
33580
|
SelectAllFeature.prototype.onCbSelectAll = function () {
|
|
33113
33581
|
if (this.processingEventFromCheckbox) {
|
|
@@ -33139,12 +33607,15 @@ var SelectAllFeature = /** @class */ (function (_super) {
|
|
|
33139
33607
|
}
|
|
33140
33608
|
if (result) {
|
|
33141
33609
|
if (this.gridOptionsWrapper.isRowModelServerSide()) {
|
|
33610
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');
|
|
33142
33611
|
return false;
|
|
33143
33612
|
}
|
|
33144
33613
|
if (this.gridOptionsWrapper.isRowModelInfinite()) {
|
|
33614
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');
|
|
33145
33615
|
return false;
|
|
33146
33616
|
}
|
|
33147
33617
|
if (this.gridOptionsWrapper.isRowModelViewport()) {
|
|
33618
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');
|
|
33148
33619
|
return false;
|
|
33149
33620
|
}
|
|
33150
33621
|
// otherwise the row model is compatible, so return true
|
|
@@ -35761,6 +36232,9 @@ var AnimationFrameService = /** @class */ (function (_super) {
|
|
|
35761
36232
|
// frames. this stops bugs - where some code is asking for a frame to be executed
|
|
35762
36233
|
// when it should not.
|
|
35763
36234
|
AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {
|
|
36235
|
+
if (this.useAnimationFrame === false) {
|
|
36236
|
+
console.warn("AG Grid: AnimationFrameService." + methodName + " called but animation frames are off");
|
|
36237
|
+
}
|
|
35764
36238
|
};
|
|
35765
36239
|
AnimationFrameService.prototype.createTask = function (task, index, list) {
|
|
35766
36240
|
this.verifyAnimationFrameOn(list);
|
|
@@ -36997,10 +37471,10 @@ var RowRenderer = /** @class */ (function (_super) {
|
|
|
36997
37471
|
this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));
|
|
36998
37472
|
if (this.gridOptionsWrapper.isGroupRowsSticky()) {
|
|
36999
37473
|
if (this.rowModel.getType() != Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
37000
|
-
doOnce(function () { return (
|
|
37474
|
+
doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model'); }, 'rowRenderer.stickyWorksWithCsrmOnly');
|
|
37001
37475
|
}
|
|
37002
37476
|
else if (this.gridOptionsWrapper.isTreeData()) {
|
|
37003
|
-
doOnce(function () { return (
|
|
37477
|
+
doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups does not work with Tree Data.'); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
|
|
37004
37478
|
}
|
|
37005
37479
|
else {
|
|
37006
37480
|
this.stickyRowFeature = this.createManagedBean(new StickyRowFeature(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));
|
|
@@ -41144,7 +41618,9 @@ var AgMenuList = /** @class */ (function (_super) {
|
|
|
41144
41618
|
if (menuItemOrString === 'separator') {
|
|
41145
41619
|
_this.addSeparator();
|
|
41146
41620
|
}
|
|
41147
|
-
else if (typeof menuItemOrString === 'string')
|
|
41621
|
+
else if (typeof menuItemOrString === 'string') {
|
|
41622
|
+
console.warn("AG Grid: unrecognised menu item " + menuItemOrString);
|
|
41623
|
+
}
|
|
41148
41624
|
else {
|
|
41149
41625
|
_this.addItem(menuItemOrString);
|
|
41150
41626
|
}
|
|
@@ -41509,7 +41985,9 @@ var AgMenuItemComponent = /** @class */ (function (_super) {
|
|
|
41509
41985
|
else if (typeof this.params.icon === 'string') {
|
|
41510
41986
|
icon.innerHTML = this.params.icon;
|
|
41511
41987
|
}
|
|
41512
|
-
else
|
|
41988
|
+
else {
|
|
41989
|
+
console.warn('AG Grid: menu item icon must be DOM node or string');
|
|
41990
|
+
}
|
|
41513
41991
|
}
|
|
41514
41992
|
this.getGui().appendChild(icon);
|
|
41515
41993
|
};
|
|
@@ -42459,6 +42937,7 @@ var PopupService = /** @class */ (function (_super) {
|
|
|
42459
42937
|
var eDocument = this.gridOptionsWrapper.getDocument();
|
|
42460
42938
|
var destroyPositionTracker = new AgPromise(function (resolve) { return resolve(function () { }); });
|
|
42461
42939
|
if (!eDocument) {
|
|
42940
|
+
console.warn('ag-grid: could not find the document, document is empty');
|
|
42462
42941
|
return { hideFunc: function () { }, stopAnchoringPromise: destroyPositionTracker };
|
|
42463
42942
|
}
|
|
42464
42943
|
var pos = this.popupList.findIndex(function (popup) { return popup.element === eChild; });
|
|
@@ -42871,6 +43350,7 @@ var VirtualList = /** @class */ (function (_super) {
|
|
|
42871
43350
|
VirtualList.prototype.ensureIndexVisible = function (index) {
|
|
42872
43351
|
var lastRow = this.model.getRowCount();
|
|
42873
43352
|
if (typeof index !== 'number' || index < 0 || index >= lastRow) {
|
|
43353
|
+
console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);
|
|
42874
43354
|
return;
|
|
42875
43355
|
}
|
|
42876
43356
|
var rowTopPixel = index * this.rowHeight;
|
|
@@ -43174,6 +43654,7 @@ var CellNavigationService = /** @class */ (function (_super) {
|
|
|
43174
43654
|
break;
|
|
43175
43655
|
default:
|
|
43176
43656
|
pointer = null;
|
|
43657
|
+
console.warn('AG Grid: unknown key for navigation ' + key);
|
|
43177
43658
|
break;
|
|
43178
43659
|
}
|
|
43179
43660
|
if (pointer) {
|
|
@@ -43568,6 +44049,12 @@ var AlignedGridsService = /** @class */ (function (_super) {
|
|
|
43568
44049
|
var groupOpenedEvent = event;
|
|
43569
44050
|
_this.processGroupOpenedEvent(groupOpenedEvent);
|
|
43570
44051
|
break;
|
|
44052
|
+
case Events.EVENT_COLUMN_PIVOT_CHANGED:
|
|
44053
|
+
// we cannot support pivoting with aligned grids as the columns will be out of sync as the
|
|
44054
|
+
// grids will have columns created based on the row data of the grid.
|
|
44055
|
+
console.warn('AG Grid: pivoting is not supported with aligned grids. ' +
|
|
44056
|
+
'You can only use one of these features at a time in a grid.');
|
|
44057
|
+
break;
|
|
43571
44058
|
}
|
|
43572
44059
|
});
|
|
43573
44060
|
};
|
|
@@ -43869,11 +44356,13 @@ var SelectionService = /** @class */ (function (_super) {
|
|
|
43869
44356
|
// where groups don't actually appear in the selection normally.
|
|
43870
44357
|
SelectionService.prototype.getBestCostNodeSelection = function () {
|
|
43871
44358
|
if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
44359
|
+
console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');
|
|
43872
44360
|
return;
|
|
43873
44361
|
}
|
|
43874
44362
|
var clientSideRowModel = this.rowModel;
|
|
43875
44363
|
var topLevelNodes = clientSideRowModel.getTopLevelNodes();
|
|
43876
44364
|
if (topLevelNodes === null) {
|
|
44365
|
+
console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');
|
|
43877
44366
|
return;
|
|
43878
44367
|
}
|
|
43879
44368
|
var result = [];
|
|
@@ -43915,6 +44404,7 @@ var SelectionService = /** @class */ (function (_super) {
|
|
|
43915
44404
|
var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
|
|
43916
44405
|
if (justFiltered) {
|
|
43917
44406
|
if (!rowModelClientSide) {
|
|
44407
|
+
console.error('AG Grid: selecting just filtered only works with In Memory Row Model');
|
|
43918
44408
|
return;
|
|
43919
44409
|
}
|
|
43920
44410
|
var clientSideRowModel = this.rowModel;
|
|
@@ -44027,6 +44517,11 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44027
44517
|
}
|
|
44028
44518
|
/** 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. */
|
|
44029
44519
|
ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {
|
|
44520
|
+
// AG-3403 validate that gridWidth is provided because this method has the same name as
|
|
44521
|
+
// a method on the grid API that takes no arguments, and it's easy to confuse the two
|
|
44522
|
+
if (typeof gridWidth === "undefined") {
|
|
44523
|
+
console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');
|
|
44524
|
+
}
|
|
44030
44525
|
this.columnModel.sizeColumnsToFit(gridWidth, 'api');
|
|
44031
44526
|
};
|
|
44032
44527
|
/** Call this if you want to open or close a column group. */
|
|
@@ -44095,6 +44590,7 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44095
44590
|
ColumnApi.prototype.moveColumn = function (key, toIndex) {
|
|
44096
44591
|
if (typeof key === 'number') {
|
|
44097
44592
|
// moveColumn used to take indexes, so this is advising user who hasn't moved to new method name
|
|
44593
|
+
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');
|
|
44098
44594
|
this.columnModel.moveColumnByIndex(key, toIndex, 'api');
|
|
44099
44595
|
}
|
|
44100
44596
|
else {
|
|
@@ -44125,6 +44621,7 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44125
44621
|
ColumnApi.prototype.isPivotMode = function () { return this.columnModel.isPivotMode(); };
|
|
44126
44622
|
/** @deprecated Use `getPivotResultColumn` instead */
|
|
44127
44623
|
ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {
|
|
44624
|
+
console.warn('AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead');
|
|
44128
44625
|
return this.getPivotResultColumn(pivotKeys, valueColKey);
|
|
44129
44626
|
};
|
|
44130
44627
|
/** Returns the pivot result column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */
|
|
@@ -44183,18 +44680,21 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44183
44680
|
ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) { this.columnModel.autoSizeAllColumns(skipHeader, 'api'); };
|
|
44184
44681
|
/** @deprecated Use `setPivotResultColumns` instead. */
|
|
44185
44682
|
ColumnApi.prototype.setSecondaryColumns = function (colDefs) {
|
|
44683
|
+
console.warn('AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead');
|
|
44186
44684
|
this.setPivotResultColumns(colDefs);
|
|
44187
44685
|
};
|
|
44188
44686
|
/** Set the pivot result columns. */
|
|
44189
44687
|
ColumnApi.prototype.setPivotResultColumns = function (colDefs) { this.columnModel.setSecondaryColumns(colDefs, 'api'); };
|
|
44190
44688
|
/** @deprecated Use `getPivotResultColumns` instead. */
|
|
44191
44689
|
ColumnApi.prototype.getSecondaryColumns = function () {
|
|
44690
|
+
console.warn('AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead');
|
|
44192
44691
|
return this.getPivotResultColumns();
|
|
44193
44692
|
};
|
|
44194
44693
|
/** Returns the grid's pivot result columns. */
|
|
44195
44694
|
ColumnApi.prototype.getPivotResultColumns = function () { return this.columnModel.getSecondaryColumns(); };
|
|
44196
44695
|
/** @deprecated Use `getColumns` instead. */
|
|
44197
44696
|
ColumnApi.prototype.getPrimaryColumns = function () {
|
|
44697
|
+
console.warn('AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead');
|
|
44198
44698
|
return this.getColumns();
|
|
44199
44699
|
};
|
|
44200
44700
|
ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {
|
|
@@ -44213,66 +44713,82 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44213
44713
|
// }
|
|
44214
44714
|
/** @deprecated Use `getColumns` instead */
|
|
44215
44715
|
ColumnApi.prototype.getAllColumns = function () {
|
|
44716
|
+
console.warn('AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead');
|
|
44216
44717
|
return this.getColumns();
|
|
44217
44718
|
};
|
|
44218
44719
|
/** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */
|
|
44219
44720
|
ColumnApi.prototype.columnGroupOpened = function (group, newValue) {
|
|
44721
|
+
console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');
|
|
44220
44722
|
this.setColumnGroupOpened(group, newValue);
|
|
44221
44723
|
};
|
|
44222
44724
|
/** @deprecated hideColumns is deprecated, use setColumnsVisible */
|
|
44223
44725
|
ColumnApi.prototype.hideColumns = function (colIds, hide) {
|
|
44726
|
+
console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');
|
|
44224
44727
|
this.columnModel.setColumnsVisible(colIds, !hide, 'api');
|
|
44225
44728
|
};
|
|
44226
44729
|
/** @deprecated hideColumn is deprecated, use setColumnVisible */
|
|
44227
44730
|
ColumnApi.prototype.hideColumn = function (colId, hide) {
|
|
44731
|
+
console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');
|
|
44228
44732
|
this.columnModel.setColumnVisible(colId, !hide, 'api');
|
|
44229
44733
|
};
|
|
44230
44734
|
/** @deprecated setState is deprecated, use setColumnState */
|
|
44231
44735
|
ColumnApi.prototype.setState = function (columnState) {
|
|
44736
|
+
console.error('AG Grid: setState is deprecated, use setColumnState');
|
|
44232
44737
|
return this.setColumnState(columnState);
|
|
44233
44738
|
};
|
|
44234
44739
|
/** @deprecated getState is deprecated, use getColumnState */
|
|
44235
44740
|
ColumnApi.prototype.getState = function () {
|
|
44741
|
+
console.error('AG Grid: getState is deprecated, use getColumnState');
|
|
44236
44742
|
return this.getColumnState();
|
|
44237
44743
|
};
|
|
44238
44744
|
/** @deprecated resetState is deprecated, use resetColumnState */
|
|
44239
44745
|
ColumnApi.prototype.resetState = function () {
|
|
44746
|
+
console.error('AG Grid: resetState is deprecated, use resetColumnState');
|
|
44240
44747
|
this.resetColumnState();
|
|
44241
44748
|
};
|
|
44242
44749
|
/** @deprecated getAggregationColumns is deprecated, use getValueColumns */
|
|
44243
44750
|
ColumnApi.prototype.getAggregationColumns = function () {
|
|
44751
|
+
console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');
|
|
44244
44752
|
return this.columnModel.getValueColumns();
|
|
44245
44753
|
};
|
|
44246
44754
|
/** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */
|
|
44247
44755
|
ColumnApi.prototype.removeAggregationColumn = function (colKey) {
|
|
44756
|
+
console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');
|
|
44248
44757
|
this.columnModel.removeValueColumn(colKey, 'api');
|
|
44249
44758
|
};
|
|
44250
44759
|
/** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */
|
|
44251
44760
|
ColumnApi.prototype.removeAggregationColumns = function (colKeys) {
|
|
44761
|
+
console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');
|
|
44252
44762
|
this.columnModel.removeValueColumns(colKeys, 'api');
|
|
44253
44763
|
};
|
|
44254
44764
|
/** @deprecated addAggregationColumn is deprecated, use addValueColumn */
|
|
44255
44765
|
ColumnApi.prototype.addAggregationColumn = function (colKey) {
|
|
44766
|
+
console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');
|
|
44256
44767
|
this.columnModel.addValueColumn(colKey, 'api');
|
|
44257
44768
|
};
|
|
44258
44769
|
/** @deprecated addAggregationColumns is deprecated, use addValueColumns */
|
|
44259
44770
|
ColumnApi.prototype.addAggregationColumns = function (colKeys) {
|
|
44771
|
+
console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');
|
|
44260
44772
|
this.columnModel.addValueColumns(colKeys, 'api');
|
|
44261
44773
|
};
|
|
44262
44774
|
/** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */
|
|
44263
44775
|
ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {
|
|
44776
|
+
console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');
|
|
44264
44777
|
this.columnModel.setColumnAggFunc(column, aggFunc, 'api');
|
|
44265
44778
|
};
|
|
44266
44779
|
/** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */
|
|
44267
44780
|
ColumnApi.prototype.getDisplayNameForCol = function (column) {
|
|
44781
|
+
console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');
|
|
44268
44782
|
return this.getDisplayNameForColumn(column, null);
|
|
44269
44783
|
};
|
|
44270
44784
|
/** @deprecated setColumnState is deprecated, use applyColumnState. */
|
|
44271
44785
|
ColumnApi.prototype.setColumnState = function (columnState) {
|
|
44786
|
+
console.error('AG Grid: setColumnState is deprecated, use applyColumnState');
|
|
44272
44787
|
return this.columnModel.applyColumnState({ state: columnState, applyOrder: true }, 'api');
|
|
44273
44788
|
};
|
|
44274
44789
|
/** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */
|
|
44275
44790
|
ColumnApi.prototype.getOriginalColumnGroup = function (name) {
|
|
44791
|
+
console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');
|
|
44276
44792
|
return this.columnModel.getProvidedColumnGroup(name);
|
|
44277
44793
|
};
|
|
44278
44794
|
__decorate$1n([
|
|
@@ -44425,6 +44941,7 @@ var ValueService = /** @class */ (function (_super) {
|
|
|
44425
44941
|
// need either a field or a newValueHandler for this to work
|
|
44426
44942
|
if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {
|
|
44427
44943
|
// we don't tell user about newValueHandler, as that is deprecated
|
|
44944
|
+
console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");
|
|
44428
44945
|
return false;
|
|
44429
44946
|
}
|
|
44430
44947
|
var params = {
|
|
@@ -44601,6 +45118,7 @@ var ValueService = /** @class */ (function (_super) {
|
|
|
44601
45118
|
result = String(result);
|
|
44602
45119
|
if (result === '[object Object]') {
|
|
44603
45120
|
doOnce(function () {
|
|
45121
|
+
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');
|
|
44604
45122
|
}, 'getKeyForNode - warn about [object,object]');
|
|
44605
45123
|
}
|
|
44606
45124
|
return result;
|
|
@@ -44672,7 +45190,9 @@ var ExpressionService = /** @class */ (function (_super) {
|
|
|
44672
45190
|
var expression = expressionOrFunc;
|
|
44673
45191
|
return this.evaluateExpression(expression, params);
|
|
44674
45192
|
}
|
|
44675
|
-
else
|
|
45193
|
+
else {
|
|
45194
|
+
console.error('AG Grid: value should be either a string or a function', expressionOrFunc);
|
|
45195
|
+
}
|
|
44676
45196
|
};
|
|
44677
45197
|
ExpressionService.prototype.evaluateExpression = function (expression, params) {
|
|
44678
45198
|
try {
|
|
@@ -44686,9 +45206,13 @@ var ExpressionService = /** @class */ (function (_super) {
|
|
|
44686
45206
|
// the expression failed, which can happen, as it's the client that
|
|
44687
45207
|
// provides the expression. so print a nice message
|
|
44688
45208
|
// tslint:disable-next-line
|
|
45209
|
+
console.log('Processing of the expression failed');
|
|
44689
45210
|
// tslint:disable-next-line
|
|
45211
|
+
console.log('Expression = ' + expression);
|
|
44690
45212
|
// tslint:disable-next-line
|
|
45213
|
+
console.log('Params =', params);
|
|
44691
45214
|
// tslint:disable-next-line
|
|
45215
|
+
console.log('Exception = ' + e);
|
|
44692
45216
|
return null;
|
|
44693
45217
|
}
|
|
44694
45218
|
};
|
|
@@ -44786,6 +45310,7 @@ var TemplateService = /** @class */ (function (_super) {
|
|
|
44786
45310
|
};
|
|
44787
45311
|
TemplateService.prototype.handleHttpResult = function (httpResult, url) {
|
|
44788
45312
|
if (httpResult.status !== 200 || httpResult.response === null) {
|
|
45313
|
+
console.warn("AG Grid: Unable to get template error " + httpResult.status + " - " + url);
|
|
44789
45314
|
return;
|
|
44790
45315
|
}
|
|
44791
45316
|
// response success, so process it
|
|
@@ -44866,7 +45391,10 @@ var Logger = /** @class */ (function () {
|
|
|
44866
45391
|
return this.isLoggingFunc();
|
|
44867
45392
|
};
|
|
44868
45393
|
Logger.prototype.log = function (message) {
|
|
44869
|
-
if (this.isLoggingFunc())
|
|
45394
|
+
if (this.isLoggingFunc()) {
|
|
45395
|
+
// tslint:disable-next-line
|
|
45396
|
+
console.log('AG Grid.' + this.name + ': ' + message);
|
|
45397
|
+
}
|
|
44870
45398
|
};
|
|
44871
45399
|
return Logger;
|
|
44872
45400
|
}());
|
|
@@ -45266,6 +45794,7 @@ var SortController = /** @class */ (function (_super) {
|
|
|
45266
45794
|
sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;
|
|
45267
45795
|
}
|
|
45268
45796
|
if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {
|
|
45797
|
+
console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's " + sortingOrder);
|
|
45269
45798
|
return null;
|
|
45270
45799
|
}
|
|
45271
45800
|
var currentIndex = sortingOrder.indexOf(column.getSort());
|
|
@@ -45280,6 +45809,7 @@ var SortController = /** @class */ (function (_super) {
|
|
|
45280
45809
|
}
|
|
45281
45810
|
// verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid
|
|
45282
45811
|
if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {
|
|
45812
|
+
console.warn('AG Grid: invalid sort type ' + result);
|
|
45283
45813
|
return null;
|
|
45284
45814
|
}
|
|
45285
45815
|
return result;
|
|
@@ -45608,6 +46138,7 @@ var AutoGroupColService = /** @class */ (function (_super) {
|
|
|
45608
46138
|
var doingTreeData = this.gridOptionsWrapper.isTreeData();
|
|
45609
46139
|
var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();
|
|
45610
46140
|
if (doingTreeData && doingMultiAutoColumn) {
|
|
46141
|
+
console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');
|
|
45611
46142
|
doingMultiAutoColumn = false;
|
|
45612
46143
|
}
|
|
45613
46144
|
// if doing groupMultiAutoColumn, then we call the method multiple times, once
|
|
@@ -46291,8 +46822,8 @@ var Environment = /** @class */ (function (_super) {
|
|
|
46291
46822
|
var theme = themeMatch[0];
|
|
46292
46823
|
var usingOldTheme = themeMatch[2] === undefined;
|
|
46293
46824
|
if (usingOldTheme) {
|
|
46294
|
-
theme.replace('ag-', 'ag-theme-');
|
|
46295
|
-
doOnce(function () { return (
|
|
46825
|
+
var newTheme_1 = theme.replace('ag-', 'ag-theme-');
|
|
46826
|
+
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');
|
|
46296
46827
|
}
|
|
46297
46828
|
return { theme: theme, el: el, themeFamily: theme.replace(/-dark$/, ''), allThemes: allThemes };
|
|
46298
46829
|
};
|
|
@@ -47798,6 +48329,7 @@ var RowCssClassCalculator = /** @class */ (function () {
|
|
|
47798
48329
|
var rowClass = this.gridOptionsWrapper.getRowClass();
|
|
47799
48330
|
if (rowClass) {
|
|
47800
48331
|
if (typeof rowClass === 'function') {
|
|
48332
|
+
console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');
|
|
47801
48333
|
return [];
|
|
47802
48334
|
}
|
|
47803
48335
|
process(rowClass);
|
|
@@ -48638,6 +49170,7 @@ var __spread$6 = (undefined && undefined.__spread) || function () {
|
|
|
48638
49170
|
var Grid = /** @class */ (function () {
|
|
48639
49171
|
function Grid(eGridDiv, gridOptions, params) {
|
|
48640
49172
|
if (!gridOptions) {
|
|
49173
|
+
console.error('AG Grid: no gridOptions provided to the grid');
|
|
48641
49174
|
return;
|
|
48642
49175
|
}
|
|
48643
49176
|
this.gridOptions = gridOptions;
|
|
@@ -48843,7 +49376,32 @@ var GridCoreCreator = /** @class */ (function () {
|
|
|
48843
49376
|
if (exists(rowModelClass)) {
|
|
48844
49377
|
return rowModelClass;
|
|
48845
49378
|
}
|
|
48846
|
-
if (ModuleRegistry.isPackageBased())
|
|
49379
|
+
if (ModuleRegistry.isPackageBased()) {
|
|
49380
|
+
if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType)) {
|
|
49381
|
+
// If package based only the enterprise row models could be missing.
|
|
49382
|
+
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/");
|
|
49383
|
+
}
|
|
49384
|
+
else {
|
|
49385
|
+
console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
|
|
49386
|
+
}
|
|
49387
|
+
}
|
|
49388
|
+
else {
|
|
49389
|
+
if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {
|
|
49390
|
+
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/");
|
|
49391
|
+
}
|
|
49392
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {
|
|
49393
|
+
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/");
|
|
49394
|
+
}
|
|
49395
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {
|
|
49396
|
+
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/");
|
|
49397
|
+
}
|
|
49398
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
49399
|
+
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/");
|
|
49400
|
+
}
|
|
49401
|
+
else {
|
|
49402
|
+
console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
|
|
49403
|
+
}
|
|
49404
|
+
}
|
|
48847
49405
|
};
|
|
48848
49406
|
return GridCoreCreator;
|
|
48849
49407
|
}());
|
|
@@ -49105,15 +49663,51 @@ var LicenseManager = /** @class */ (function (_super) {
|
|
|
49105
49663
|
}
|
|
49106
49664
|
};
|
|
49107
49665
|
LicenseManager.prototype.outputInvalidLicenseKey = function () {
|
|
49666
|
+
console.error('*****************************************************************************************************************');
|
|
49667
|
+
console.error('***************************************** AG Grid Enterprise License ********************************************');
|
|
49668
|
+
console.error('********************************************* Invalid License ***************************************************');
|
|
49669
|
+
console.error('* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *');
|
|
49670
|
+
console.error('*****************************************************************************************************************');
|
|
49671
|
+
console.error('*****************************************************************************************************************');
|
|
49108
49672
|
this.watermarkMessage = "Invalid License";
|
|
49109
49673
|
};
|
|
49110
49674
|
LicenseManager.prototype.outputExpiredTrialKey = function (formattedExpiryDate) {
|
|
49675
|
+
console.error('****************************************************************************************************************');
|
|
49676
|
+
console.error('***************************************** AG Grid Enterprise License *******************************************');
|
|
49677
|
+
console.error('***************************************** Trial Period Expired. *******************************************');
|
|
49678
|
+
console.error("* Your license for AG Grid Enterprise expired on " + formattedExpiryDate + ". *");
|
|
49679
|
+
console.error('* Please email info@ag-grid.com to purchase a license. *');
|
|
49680
|
+
console.error('****************************************************************************************************************');
|
|
49681
|
+
console.error('****************************************************************************************************************');
|
|
49111
49682
|
this.watermarkMessage = "Trial Period Expired";
|
|
49112
49683
|
};
|
|
49113
49684
|
LicenseManager.prototype.outputMissingLicenseKey = function () {
|
|
49685
|
+
console.error('****************************************************************************************************************');
|
|
49686
|
+
console.error('***************************************** AG Grid Enterprise License *******************************************');
|
|
49687
|
+
console.error('****************************************** License Key Not Found ***********************************************');
|
|
49688
|
+
console.error('* All AG Grid Enterprise features are unlocked. *');
|
|
49689
|
+
console.error('* This is an evaluation only version, it is not licensed for development projects intended for production. *');
|
|
49690
|
+
console.error('* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *');
|
|
49691
|
+
console.error('****************************************************************************************************************');
|
|
49692
|
+
console.error('****************************************************************************************************************');
|
|
49114
49693
|
this.watermarkMessage = "For Trial Use Only";
|
|
49115
49694
|
};
|
|
49116
49695
|
LicenseManager.prototype.outputIncompatibleVersion = function (formattedExpiryDate, formattedReleaseDate) {
|
|
49696
|
+
console.error('****************************************************************************************************************************');
|
|
49697
|
+
console.error('****************************************************************************************************************************');
|
|
49698
|
+
console.error('* AG Grid Enterprise License *');
|
|
49699
|
+
console.error('* License not compatible with installed version of AG Grid Enterprise. *');
|
|
49700
|
+
console.error('* *');
|
|
49701
|
+
console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *");
|
|
49702
|
+
console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *");
|
|
49703
|
+
console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *");
|
|
49704
|
+
console.error("* license end date. The license key that you have expires on " + formattedExpiryDate + ", however the version of AG Grid you *");
|
|
49705
|
+
console.error("* are trying to use was released on " + formattedReleaseDate + ". *");
|
|
49706
|
+
console.error('* *');
|
|
49707
|
+
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 *');
|
|
49708
|
+
console.error('* version of AG Grid. *');
|
|
49709
|
+
console.error('****************************************************************************************************************************');
|
|
49710
|
+
console.error('****************************************************************************************************************************');
|
|
49117
49711
|
this.watermarkMessage = "License Expired";
|
|
49118
49712
|
};
|
|
49119
49713
|
var LicenseManager_1;
|
|
@@ -49875,81 +50469,6 @@ class SelectionHeader {
|
|
|
49875
50469
|
}
|
|
49876
50470
|
}
|
|
49877
50471
|
|
|
49878
|
-
const gridTerms = {
|
|
49879
|
-
// for filter panel
|
|
49880
|
-
page: "Página",
|
|
49881
|
-
more: "mais",
|
|
49882
|
-
to: "para",
|
|
49883
|
-
of: "de",
|
|
49884
|
-
next: "Próximo",
|
|
49885
|
-
last: "Último",
|
|
49886
|
-
first: "Primeiro",
|
|
49887
|
-
previous: "Anterior",
|
|
49888
|
-
loadingOoo: "Carregar",
|
|
49889
|
-
// for set filter
|
|
49890
|
-
selectAll: "Selecionar tudo",
|
|
49891
|
-
searchOoo: "Procurar",
|
|
49892
|
-
blanks: "Vazio",
|
|
49893
|
-
// for number filter and text filter
|
|
49894
|
-
filterOoo: "Filtrar",
|
|
49895
|
-
applyFilter: "Aplicar filtro",
|
|
49896
|
-
// for number filter
|
|
49897
|
-
equals: "Igual",
|
|
49898
|
-
lessThan: "Menor que",
|
|
49899
|
-
greaterThan: "Maior que",
|
|
49900
|
-
// for text filter
|
|
49901
|
-
contains: "Contém",
|
|
49902
|
-
startsWith: "Começa com",
|
|
49903
|
-
endsWith: "Termina com",
|
|
49904
|
-
// the header of the default group column
|
|
49905
|
-
group: "Grupo",
|
|
49906
|
-
// tool panel
|
|
49907
|
-
columns: "Colunas",
|
|
49908
|
-
rowGroupColumns: "Colunas do grupo de linhas",
|
|
49909
|
-
rowGroupColumnsEmptyMessage: "Colunas do grupo de linhas vazias",
|
|
49910
|
-
valueColumns: "Valores das colunas",
|
|
49911
|
-
pivotMode: "Modo pivô",
|
|
49912
|
-
groups: "Grupos",
|
|
49913
|
-
values: "Valores",
|
|
49914
|
-
pivots: "Pivôs",
|
|
49915
|
-
valueColumnsEmptyMessage: "Valores de colunas vazias",
|
|
49916
|
-
pivotColumnsEmptyMessage: "Pivôs de colunas vazias",
|
|
49917
|
-
toolPanelButton: "Botão de painel de ferramentas",
|
|
49918
|
-
// other
|
|
49919
|
-
noRowsToShow: "Não há registros para mostrar.",
|
|
49920
|
-
// enterprise menu
|
|
49921
|
-
pinColumn: "Fixar coluna",
|
|
49922
|
-
valueAggregation: "Agregar valor",
|
|
49923
|
-
autosizeThiscolumn: "Redimensionar esta coluna",
|
|
49924
|
-
autosizeAllColumns: "Redimensionar todas colunas",
|
|
49925
|
-
groupBy: "Agrupar por",
|
|
49926
|
-
ungroupBy: "Desagrupar por",
|
|
49927
|
-
resetColumns: "Resetar colunas",
|
|
49928
|
-
expandAll: "Expandir tudo",
|
|
49929
|
-
collapseAll: "Contrair tudo",
|
|
49930
|
-
toolPanel: "Painel de ferramentas",
|
|
49931
|
-
export: "Exportar",
|
|
49932
|
-
csvExport: "Exportar para CSV",
|
|
49933
|
-
excelExport: "Exportar para Excel",
|
|
49934
|
-
// enterprise menu pinning
|
|
49935
|
-
pinLeft: "Fixar coluna",
|
|
49936
|
-
pinRight: "Fixar a direita",
|
|
49937
|
-
noPin: "Desfixar coluna",
|
|
49938
|
-
// enterprise menu aggregation and status panel
|
|
49939
|
-
sum: "Soma",
|
|
49940
|
-
min: "Mínimo",
|
|
49941
|
-
max: "Máximo",
|
|
49942
|
-
none: "Nenhum",
|
|
49943
|
-
count: "Contagem",
|
|
49944
|
-
average: "Média",
|
|
49945
|
-
// standard menu
|
|
49946
|
-
copy: "Copiar",
|
|
49947
|
-
copyWithHeaders: "Copiar com cabeçalho",
|
|
49948
|
-
ctrlC: "Ctrl+C",
|
|
49949
|
-
paste: "Colar",
|
|
49950
|
-
ctrlV: "Ctrl+V"
|
|
49951
|
-
};
|
|
49952
|
-
|
|
49953
50472
|
const buildEditorMetadata = (descriptor, eGridCell, dataUnit, editionManager) => {
|
|
49954
50473
|
return Object.assign(Object.assign({}, buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
|
|
49955
50474
|
};
|
|
@@ -50694,11 +51213,14 @@ class GridEditionManager {
|
|
|
50694
51213
|
}
|
|
50695
51214
|
isColEditable(fieldName) {
|
|
50696
51215
|
const fieldDefinition = this._dataUnit.getField(fieldName);
|
|
50697
|
-
if (fieldDefinition) {
|
|
51216
|
+
if (fieldDefinition && !this.isTypeFile(fieldDefinition)) {
|
|
50698
51217
|
return !fieldDefinition.readOnly;
|
|
50699
51218
|
}
|
|
50700
51219
|
return false;
|
|
50701
51220
|
}
|
|
51221
|
+
isTypeFile(file) {
|
|
51222
|
+
return file.userInterface === UserInterface.FILE;
|
|
51223
|
+
}
|
|
50702
51224
|
isSecondClick(cellClicked) {
|
|
50703
51225
|
if (!this._lastCellClicked) {
|
|
50704
51226
|
return false;
|
|
@@ -51548,10 +52070,12 @@ var RangeService = /** @class */ (function (_super) {
|
|
|
51548
52070
|
var isSameColumn = columnFrom === columnTo;
|
|
51549
52071
|
var fromIndex = allColumns.indexOf(columnFrom);
|
|
51550
52072
|
if (fromIndex < 0) {
|
|
52073
|
+
console.warn("AG Grid: column " + columnFrom.getId() + " is not visible");
|
|
51551
52074
|
return;
|
|
51552
52075
|
}
|
|
51553
52076
|
var toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);
|
|
51554
52077
|
if (toIndex < 0) {
|
|
52078
|
+
console.warn("AG Grid: column " + columnTo.getId() + " is not visible");
|
|
51555
52079
|
return;
|
|
51556
52080
|
}
|
|
51557
52081
|
if (isSameColumn) {
|
|
@@ -52486,10 +53010,12 @@ var ServerSideRowModel = /** @class */ (function (_super) {
|
|
|
52486
53010
|
};
|
|
52487
53011
|
ServerSideRowModel.prototype.verifyProps = function () {
|
|
52488
53012
|
if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {
|
|
52489
|
-
|
|
53013
|
+
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.";
|
|
53014
|
+
_.doOnce(function () { return console.warn(message_1); }, 'SSRM.InitialGroupOrderComparator');
|
|
52490
53015
|
}
|
|
52491
53016
|
if (this.gridOptionsWrapper.isRowSelection() && this.gridOptionsWrapper.getRowIdFunc() == null) {
|
|
52492
|
-
|
|
53017
|
+
var message_2 = "AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.";
|
|
53018
|
+
_.doOnce(function () { return console.warn(message_2); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
|
|
52493
53019
|
}
|
|
52494
53020
|
};
|
|
52495
53021
|
ServerSideRowModel.prototype.setDatasource = function (datasource) {
|
|
@@ -53039,6 +53565,11 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
53039
53565
|
rowNode.key = this.valueService.getValue(rowNode.rowGroupColumn, rowNode);
|
|
53040
53566
|
if (rowNode.key === null || rowNode.key === undefined) {
|
|
53041
53567
|
_.doOnce(function () {
|
|
53568
|
+
console.warn("AG Grid: null and undefined values are not allowed for server side row model keys");
|
|
53569
|
+
if (rowNode.rowGroupColumn) {
|
|
53570
|
+
console.warn("column = " + rowNode.rowGroupColumn.getId());
|
|
53571
|
+
}
|
|
53572
|
+
console.warn("data is ", rowNode.data);
|
|
53042
53573
|
}, 'ServerSideBlock-CannotHaveNullOrUndefinedForKey');
|
|
53043
53574
|
}
|
|
53044
53575
|
};
|
|
@@ -53155,6 +53686,7 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
53155
53686
|
var bottomPointer = 0;
|
|
53156
53687
|
var topPointer = rowNodes.length - 1;
|
|
53157
53688
|
if (_.missing(topPointer) || _.missing(bottomPointer)) {
|
|
53689
|
+
console.warn("AG Grid: error: topPointer = " + topPointer + ", bottomPointer = " + bottomPointer);
|
|
53158
53690
|
return undefined;
|
|
53159
53691
|
}
|
|
53160
53692
|
while (true) {
|
|
@@ -53183,6 +53715,7 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
53183
53715
|
topPointer = midPointer - 1;
|
|
53184
53716
|
}
|
|
53185
53717
|
else {
|
|
53718
|
+
console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
|
|
53186
53719
|
return undefined;
|
|
53187
53720
|
}
|
|
53188
53721
|
}
|
|
@@ -53298,6 +53831,11 @@ var NodeManager = /** @class */ (function () {
|
|
|
53298
53831
|
}
|
|
53299
53832
|
NodeManager.prototype.addRowNode = function (rowNode) {
|
|
53300
53833
|
var id = rowNode.id;
|
|
53834
|
+
if (this.rowNodes[id]) {
|
|
53835
|
+
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.");
|
|
53836
|
+
console.warn('first instance', this.rowNodes[id].data);
|
|
53837
|
+
console.warn('second instance', rowNode.data);
|
|
53838
|
+
}
|
|
53301
53839
|
this.rowNodes[id] = rowNode;
|
|
53302
53840
|
};
|
|
53303
53841
|
NodeManager.prototype.removeNode = function (rowNode) {
|
|
@@ -54229,7 +54767,8 @@ var InfiniteStore = /** @class */ (function (_super) {
|
|
|
54229
54767
|
Object.assign(this.info, info);
|
|
54230
54768
|
}
|
|
54231
54769
|
if (!params.rowData) {
|
|
54232
|
-
|
|
54770
|
+
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.';
|
|
54771
|
+
_.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');
|
|
54233
54772
|
}
|
|
54234
54773
|
var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;
|
|
54235
54774
|
// if we are not active, then we ignore all events, otherwise we could end up getting the
|
|
@@ -54988,7 +55527,8 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
54988
55527
|
this.nodesAfterFilter = [];
|
|
54989
55528
|
this.allNodesMap = {};
|
|
54990
55529
|
if (!params.rowData) {
|
|
54991
|
-
|
|
55530
|
+
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.';
|
|
55531
|
+
_.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');
|
|
54992
55532
|
}
|
|
54993
55533
|
this.createOrRecycleNodes(nodesToRecycle, params.rowData);
|
|
54994
55534
|
if (nodesToRecycle) {
|
|
@@ -55363,6 +55903,7 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
55363
55903
|
});
|
|
55364
55904
|
rowNode = this.allNodesMap[id];
|
|
55365
55905
|
if (!rowNode) {
|
|
55906
|
+
console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
|
|
55366
55907
|
return null;
|
|
55367
55908
|
}
|
|
55368
55909
|
}
|
|
@@ -55370,6 +55911,7 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
55370
55911
|
// find rowNode using object references
|
|
55371
55912
|
rowNode = this.allRowNodes.find(function (currentRowNode) { return currentRowNode.data === data; });
|
|
55372
55913
|
if (!rowNode) {
|
|
55914
|
+
console.error("AG Grid: could not find data item as object was not found", data);
|
|
55373
55915
|
return null;
|
|
55374
55916
|
}
|
|
55375
55917
|
}
|
|
@@ -55517,11 +56059,15 @@ var StoreFactory = /** @class */ (function () {
|
|
|
55517
56059
|
return undefined;
|
|
55518
56060
|
}
|
|
55519
56061
|
if (ssrmParams.dynamicRowHeight) {
|
|
55520
|
-
|
|
56062
|
+
var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
|
|
56063
|
+
'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';
|
|
56064
|
+
_.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
|
|
55521
56065
|
return undefined;
|
|
55522
56066
|
}
|
|
55523
56067
|
if (this.columnModel.isAutoRowHeightActive()) {
|
|
55524
|
-
|
|
56068
|
+
var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
|
|
56069
|
+
'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';
|
|
56070
|
+
_.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
|
|
55525
56071
|
return undefined;
|
|
55526
56072
|
}
|
|
55527
56073
|
return maxBlocksInCache;
|
|
@@ -55749,6 +56295,7 @@ var Downloader = /** @class */ (function () {
|
|
|
55749
56295
|
Downloader.download = function (fileName, content) {
|
|
55750
56296
|
var win = document.defaultView || window;
|
|
55751
56297
|
if (!win) {
|
|
56298
|
+
console.warn('AG Grid: There is no `window` associated with the current `document`');
|
|
55752
56299
|
return;
|
|
55753
56300
|
}
|
|
55754
56301
|
var element = document.createElement('a');
|
|
@@ -55882,6 +56429,7 @@ var CsvSerializingSession = /** @class */ (function (_super) {
|
|
|
55882
56429
|
stringValue = value.toString();
|
|
55883
56430
|
}
|
|
55884
56431
|
else {
|
|
56432
|
+
console.warn('AG Grid: unknown value type during csv conversion');
|
|
55885
56433
|
stringValue = '';
|
|
55886
56434
|
}
|
|
55887
56435
|
// replace each " with "" (ie two sets of double quotes is how to do double quotes in csv)
|
|
@@ -55936,6 +56484,7 @@ var CsvCreator = /** @class */ (function (_super) {
|
|
|
55936
56484
|
};
|
|
55937
56485
|
CsvCreator.prototype.export = function (userParams) {
|
|
55938
56486
|
if (this.isExportSuppressed()) {
|
|
56487
|
+
console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");
|
|
55939
56488
|
return '';
|
|
55940
56489
|
}
|
|
55941
56490
|
var mergedParams = this.getMergedParams(userParams);
|
|
@@ -56055,7 +56604,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56055
56604
|
var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;
|
|
56056
56605
|
var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);
|
|
56057
56606
|
if (skipRowGroups && params.skipGroups) {
|
|
56058
|
-
_.doOnce(function () { return (
|
|
56607
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.'); }, 'gridSerializer-skipGroups');
|
|
56059
56608
|
}
|
|
56060
56609
|
if ((!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents)) ||
|
|
56061
56610
|
(params.onlySelected && !node.isSelected()) ||
|
|
@@ -56089,7 +56638,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56089
56638
|
var appendContent = params.customFooter || params.appendContent;
|
|
56090
56639
|
if (appendContent) {
|
|
56091
56640
|
if (params.customFooter) {
|
|
56092
|
-
_.doOnce(function () { return (
|
|
56641
|
+
_.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.'); }, 'gridSerializer-customFooter');
|
|
56093
56642
|
}
|
|
56094
56643
|
gridSerializingSession.addCustomContent(appendContent);
|
|
56095
56644
|
}
|
|
@@ -56101,7 +56650,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56101
56650
|
var prependContent = params.customHeader || params.prependContent;
|
|
56102
56651
|
if (prependContent) {
|
|
56103
56652
|
if (params.customHeader) {
|
|
56104
|
-
_.doOnce(function () { return (
|
|
56653
|
+
_.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.'); }, 'gridSerializer-customHeader');
|
|
56105
56654
|
}
|
|
56106
56655
|
gridSerializingSession.addCustomContent(prependContent);
|
|
56107
56656
|
}
|
|
@@ -56123,7 +56672,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56123
56672
|
_this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);
|
|
56124
56673
|
}
|
|
56125
56674
|
else if (params.columnGroups) {
|
|
56126
|
-
_.doOnce(function () { return (
|
|
56675
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.'); }, 'gridSerializer-columnGroups');
|
|
56127
56676
|
}
|
|
56128
56677
|
return gridSerializingSession;
|
|
56129
56678
|
};
|
|
@@ -56137,7 +56686,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56137
56686
|
});
|
|
56138
56687
|
}
|
|
56139
56688
|
else if (params.skipHeader) {
|
|
56140
|
-
_.doOnce(function () { return (
|
|
56689
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.'); }, 'gridSerializer-skipHeader');
|
|
56141
56690
|
}
|
|
56142
56691
|
return gridSerializingSession;
|
|
56143
56692
|
};
|
|
@@ -56385,6 +56934,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56385
56934
|
.then(this.processClipboardData.bind(this))
|
|
56386
56935
|
.catch(function (e) {
|
|
56387
56936
|
_.doOnce(function () {
|
|
56937
|
+
console.warn(e);
|
|
56938
|
+
console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). ' +
|
|
56939
|
+
'The reason why it could not be used has been logged in the previous line. ' +
|
|
56940
|
+
'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
|
|
56941
|
+
'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
|
|
56942
|
+
'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API');
|
|
56388
56943
|
}, 'clipboardApiError');
|
|
56389
56944
|
_this.navigatorApiFailed = true;
|
|
56390
56945
|
_this.pasteFromClipboardLegacy();
|
|
@@ -56911,6 +57466,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56911
57466
|
if (allowNavigator && navigator.clipboard) {
|
|
56912
57467
|
navigator.clipboard.writeText(data).catch(function (e) {
|
|
56913
57468
|
_.doOnce(function () {
|
|
57469
|
+
console.warn(e);
|
|
57470
|
+
console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). ' +
|
|
57471
|
+
'The reason why it could not be used has been logged in the previous line. ' +
|
|
57472
|
+
'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
|
|
57473
|
+
'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
|
|
57474
|
+
'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.');
|
|
56914
57475
|
}, 'clipboardApiError');
|
|
56915
57476
|
_this.copyDataToClipboardLegacy(data);
|
|
56916
57477
|
});
|
|
@@ -56927,7 +57488,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56927
57488
|
element.value = data || ' '; // has to be non-empty value or execCommand will not do anything
|
|
56928
57489
|
element.select();
|
|
56929
57490
|
element.focus({ preventScroll: true });
|
|
56930
|
-
eDocument.execCommand('copy');
|
|
57491
|
+
var result = eDocument.execCommand('copy');
|
|
57492
|
+
if (!result) {
|
|
57493
|
+
console.warn('AG Grid: Browser did not allow document.execCommand(\'copy\'). Ensure ' +
|
|
57494
|
+
'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise ' +
|
|
57495
|
+
'the browser will prevent it for security reasons.');
|
|
57496
|
+
}
|
|
56931
57497
|
if (focusedElementBefore != null && focusedElementBefore.focus != null) {
|
|
56932
57498
|
focusedElementBefore.focus({ preventScroll: true });
|
|
56933
57499
|
}
|
|
@@ -56951,6 +57517,7 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56951
57517
|
callbackNow(eTempInput);
|
|
56952
57518
|
}
|
|
56953
57519
|
catch (err) {
|
|
57520
|
+
console.warn('AG Grid: Browser does not support document.execCommand(\'copy\') for clipboard operations');
|
|
56954
57521
|
}
|
|
56955
57522
|
//It needs 100 otherwise OS X seemed to not always be able to paste... Go figure...
|
|
56956
57523
|
if (callbackAfter) {
|
|
@@ -58223,6 +58790,7 @@ var ToolPanelColumnComp = /** @class */ (function (_super) {
|
|
|
58223
58790
|
return false;
|
|
58224
58791
|
};
|
|
58225
58792
|
ToolPanelColumnComp.prototype.setExpanded = function (value) {
|
|
58793
|
+
console.warn('AG Grid: can not expand a column item that does not represent a column group header');
|
|
58226
58794
|
};
|
|
58227
58795
|
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>";
|
|
58228
58796
|
__decorate$q([
|
|
@@ -58517,7 +59085,10 @@ var PRIMARY_COLS_LIST_PANEL_CLASS = 'ag-column-select-list';
|
|
|
58517
59085
|
expandedGroupIds.push(groupId);
|
|
58518
59086
|
}
|
|
58519
59087
|
});
|
|
58520
|
-
groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
|
|
59088
|
+
var unrecognisedGroupIds = groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
|
|
59089
|
+
if (unrecognisedGroupIds.length > 0) {
|
|
59090
|
+
console.warn('AG Grid: unable to find group(s) for supplied groupIds:', unrecognisedGroupIds);
|
|
59091
|
+
}
|
|
58521
59092
|
};
|
|
58522
59093
|
PrimaryColsListPanel.prototype.getExpandState = function () {
|
|
58523
59094
|
var expandedCount = 0;
|
|
@@ -58911,6 +59482,7 @@ var __decorate$n = (undefined && undefined.__decorate) || function (decorators,
|
|
|
58911
59482
|
this.aggFuncService.getAggFunc(aggFuncOrString) :
|
|
58912
59483
|
aggFuncOrString;
|
|
58913
59484
|
if (typeof aggFunc !== 'function') {
|
|
59485
|
+
console.error("AG Grid: unrecognised aggregation function " + aggFuncOrString);
|
|
58914
59486
|
return null;
|
|
58915
59487
|
}
|
|
58916
59488
|
var aggFuncAny = aggFunc;
|
|
@@ -59437,6 +60009,9 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
|
|
|
59437
60009
|
GroupStage.prototype.insertOneNode = function (childNode, details, isMove) {
|
|
59438
60010
|
var path = this.getGroupInfo(childNode, details);
|
|
59439
60011
|
var parentGroup = this.findParentForNode(childNode, path, details);
|
|
60012
|
+
if (!parentGroup.group) {
|
|
60013
|
+
console.warn("AG Grid: duplicate group keys for row data, keys should be unique", [parentGroup.data, childNode.data]);
|
|
60014
|
+
}
|
|
59440
60015
|
if (this.usingTreeData) {
|
|
59441
60016
|
this.swapGroupWithUserNode(parentGroup, childNode, isMove);
|
|
59442
60017
|
}
|
|
@@ -59574,7 +60149,7 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
|
|
|
59574
60149
|
GroupStage.prototype.getGroupInfoFromCallback = function (rowNode) {
|
|
59575
60150
|
var keys = this.getDataPath ? this.getDataPath(rowNode.data) : null;
|
|
59576
60151
|
if (keys === null || keys === undefined || keys.length === 0) {
|
|
59577
|
-
_.doOnce(function () { return (
|
|
60152
|
+
_.doOnce(function () { return console.warn("AG Grid: getDataPath() should not return an empty path for data", rowNode.data); }, 'groupStage.getGroupInfoFromCallback');
|
|
59578
60153
|
}
|
|
59579
60154
|
var groupInfoMapper = function (key) { return ({ key: key, field: null, rowGroupColumn: null }); };
|
|
59580
60155
|
return keys ? keys.map(groupInfoMapper) : [];
|
|
@@ -62299,6 +62874,7 @@ var ToolPanelWrapper = /** @class */ (function (_super) {
|
|
|
62299
62874
|
var compDetails = this.userComponentFactory.getToolPanelCompDetails(toolPanelDef, params);
|
|
62300
62875
|
var componentPromise = compDetails.newAgStackInstance();
|
|
62301
62876
|
if (componentPromise == null) {
|
|
62877
|
+
console.warn("AG Grid: error processing tool panel component " + id + ". You need to specify either 'toolPanel' or 'toolPanelFramework'");
|
|
62302
62878
|
return;
|
|
62303
62879
|
}
|
|
62304
62880
|
componentPromise.then(this.setToolPanelComponent.bind(this));
|
|
@@ -62493,6 +63069,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62493
63069
|
var _this = this;
|
|
62494
63070
|
defs.forEach(function (def) {
|
|
62495
63071
|
if (def.id == null) {
|
|
63072
|
+
console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id");
|
|
62496
63073
|
return;
|
|
62497
63074
|
}
|
|
62498
63075
|
// helpers, in case user doesn't have the right module loaded
|
|
@@ -62538,6 +63115,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62538
63115
|
SideBarComp.prototype.getToolPanelInstance = function (key) {
|
|
62539
63116
|
var toolPanelWrapper = this.toolPanelWrappers.filter(function (toolPanel) { return toolPanel.getToolPanelId() === key; })[0];
|
|
62540
63117
|
if (!toolPanelWrapper) {
|
|
63118
|
+
console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: " + key);
|
|
62541
63119
|
return;
|
|
62542
63120
|
}
|
|
62543
63121
|
return toolPanelWrapper.getToolPanelInstance();
|
|
@@ -62623,6 +63201,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62623
63201
|
}
|
|
62624
63202
|
ToolPanelColDefService.prototype.createColumnTree = function (colDefs) {
|
|
62625
63203
|
var _this = this;
|
|
63204
|
+
var invalidColIds = [];
|
|
62626
63205
|
var createDummyColGroup = function (abstractColDef, depth) {
|
|
62627
63206
|
if (_this.isColGroupDef(abstractColDef)) {
|
|
62628
63207
|
// creating 'dummy' group which is not associated with grid column group
|
|
@@ -62644,6 +63223,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62644
63223
|
var colDef = abstractColDef;
|
|
62645
63224
|
var key = colDef.colId ? colDef.colId : colDef.field;
|
|
62646
63225
|
var column = _this.columnModel.getPrimaryColumn(key);
|
|
63226
|
+
if (!column) {
|
|
63227
|
+
invalidColIds.push(colDef);
|
|
63228
|
+
}
|
|
62647
63229
|
return column;
|
|
62648
63230
|
}
|
|
62649
63231
|
};
|
|
@@ -62655,6 +63237,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62655
63237
|
mappedResults.push(result);
|
|
62656
63238
|
}
|
|
62657
63239
|
});
|
|
63240
|
+
if (invalidColIds.length > 0) {
|
|
63241
|
+
console.warn('AG Grid: unable to find grid columns for the supplied colDef(s):', invalidColIds);
|
|
63242
|
+
}
|
|
62658
63243
|
return mappedResults;
|
|
62659
63244
|
};
|
|
62660
63245
|
ToolPanelColDefService.prototype.syncLayoutWithGrid = function (syncLayoutCallback) {
|
|
@@ -63209,10 +63794,15 @@ var EnterpriseMenu = /** @class */ (function (_super) {
|
|
|
63209
63794
|
};
|
|
63210
63795
|
EnterpriseMenu.prototype.isValidMenuTabItem = function (menuTabName) {
|
|
63211
63796
|
var isValid = true;
|
|
63797
|
+
var itemsToConsider = EnterpriseMenu.TABS_DEFAULT;
|
|
63212
63798
|
if (this.restrictTo != null) {
|
|
63213
63799
|
isValid = this.restrictTo.indexOf(menuTabName) > -1;
|
|
63800
|
+
itemsToConsider = this.restrictTo;
|
|
63214
63801
|
}
|
|
63215
63802
|
isValid = isValid && EnterpriseMenu.TABS_DEFAULT.indexOf(menuTabName) > -1;
|
|
63803
|
+
if (!isValid) {
|
|
63804
|
+
console.warn("AG Grid: Trying to render an invalid menu item '" + menuTabName + "'. Check that your 'menuTabs' contains one of [" + itemsToConsider + "]");
|
|
63805
|
+
}
|
|
63216
63806
|
return isValid;
|
|
63217
63807
|
};
|
|
63218
63808
|
EnterpriseMenu.prototype.isNotSuppressed = function (menuTabName) {
|
|
@@ -63923,6 +64513,7 @@ var MenuItemMapper = /** @class */ (function (_super) {
|
|
|
63923
64513
|
return chartMenuItem;
|
|
63924
64514
|
}
|
|
63925
64515
|
else {
|
|
64516
|
+
console.warn("AG Grid: unknown menu item type " + key);
|
|
63926
64517
|
return null;
|
|
63927
64518
|
}
|
|
63928
64519
|
}
|
|
@@ -64149,6 +64740,74 @@ var MenuModule = {
|
|
|
64149
64740
|
]
|
|
64150
64741
|
};
|
|
64151
64742
|
|
|
64743
|
+
function buildLocaleText(i18n) {
|
|
64744
|
+
return ({
|
|
64745
|
+
page: i18n("ez-grid.pageLabel"),
|
|
64746
|
+
more: i18n("ez-grid.remainingPageLabel"),
|
|
64747
|
+
to: i18n("ez-grid.remainingTotalLabel"),
|
|
64748
|
+
of: i18n("ez-grid.remainingTotalLabel"),
|
|
64749
|
+
next: i18n("ez-grid.nextPage"),
|
|
64750
|
+
previous: i18n("ez-grid.previousPage"),
|
|
64751
|
+
loadingOoo: i18n("app.loading"),
|
|
64752
|
+
noRowsToShow: i18n("ez-grid.noRowsToShow"),
|
|
64753
|
+
pinColumn: i18n("ez-grid.pinColumn"),
|
|
64754
|
+
unpinColumn: i18n("ez-grid.unpinColumn"),
|
|
64755
|
+
filterOoo: i18n("ez-grid.filter"),
|
|
64756
|
+
sortAscending: i18n("ez-grid.sortAscending"),
|
|
64757
|
+
sortDescending: i18n("ez-grid.sortDescending"),
|
|
64758
|
+
last: i18n("ez-grid.last"),
|
|
64759
|
+
first: i18n("ez-grid.first"),
|
|
64760
|
+
selectAll: i18n("ez-grid.selectAll"),
|
|
64761
|
+
searchOoo: i18n("ez-grid.searchOoo"),
|
|
64762
|
+
blanks: i18n("ez-grid.blanks"),
|
|
64763
|
+
applyFilter: i18n("ez-grid.applyFilter"),
|
|
64764
|
+
equals: i18n("ez-grid.equals"),
|
|
64765
|
+
lessThan: i18n("ez-grid.lessThan"),
|
|
64766
|
+
greaterThan: i18n("ez-grid.greaterThan"),
|
|
64767
|
+
contains: i18n("ez-grid.contains"),
|
|
64768
|
+
startsWith: i18n("ez-grid.startsWith"),
|
|
64769
|
+
endsWith: i18n("ez-grid.endsWith"),
|
|
64770
|
+
group: i18n("ez-grid.group"),
|
|
64771
|
+
columns: i18n("ez-grid.columns"),
|
|
64772
|
+
rowGroupColumns: i18n("ez-grid.rowGroupColumns"),
|
|
64773
|
+
rowGroupColumnsEmptyMessage: i18n("ez-grid.rowGroupColumnsEmptyMessage"),
|
|
64774
|
+
valueColumns: i18n("ez-grid.valueColumns"),
|
|
64775
|
+
pivotMode: i18n("ez-grid.pivotMode"),
|
|
64776
|
+
groups: i18n("ez-grid.groups"),
|
|
64777
|
+
values: i18n("ez-grid.values"),
|
|
64778
|
+
pivots: i18n("ez-grid.pivots"),
|
|
64779
|
+
valueColumnsEmptyMessage: i18n("ez-grid.valueColumnsEmptyMessage"),
|
|
64780
|
+
pivotColumnsEmptyMessage: i18n("ez-grid.pivotColumnsEmptyMessage"),
|
|
64781
|
+
toolPanelButton: i18n("ez-grid.toolPanelButton"),
|
|
64782
|
+
valueAggregation: i18n("ez-grid.valueAggregation"),
|
|
64783
|
+
autosizeThiscolumn: i18n("ez-grid.autosizeThiscolumn"),
|
|
64784
|
+
autosizeAllColumns: i18n("ez-grid.autosizeAllColumns"),
|
|
64785
|
+
groupBy: i18n("ez-grid.groupBy"),
|
|
64786
|
+
ungroupBy: i18n("ez-grid.ungroupBy"),
|
|
64787
|
+
resetColumns: i18n("ez-grid.resetColumns"),
|
|
64788
|
+
expandAll: i18n("ez-grid.expandAll"),
|
|
64789
|
+
collapseAll: i18n("ez-grid.collapseAll"),
|
|
64790
|
+
toolPanel: i18n("ez-grid.toolPanel"),
|
|
64791
|
+
export: i18n("ez-grid.export"),
|
|
64792
|
+
csvExport: i18n("ez-grid.csvExport"),
|
|
64793
|
+
excelExport: i18n("ez-grid.excelExport"),
|
|
64794
|
+
pinLeft: i18n("ez-grid.pinLeft"),
|
|
64795
|
+
pinRight: i18n("ez-grid.pinRight"),
|
|
64796
|
+
noPin: i18n("ez-grid.noPin"),
|
|
64797
|
+
sum: i18n("ez-grid.sum"),
|
|
64798
|
+
min: i18n("ez-grid.min"),
|
|
64799
|
+
max: i18n("ez-grid.max"),
|
|
64800
|
+
none: i18n("ez-grid.none"),
|
|
64801
|
+
count: i18n("ez-grid.count"),
|
|
64802
|
+
average: i18n("ez-grid.average"),
|
|
64803
|
+
copy: i18n("ez-grid.copy"),
|
|
64804
|
+
copyWithHeaders: i18n("ez-grid.copyWithHeaders"),
|
|
64805
|
+
ctrlC: i18n("ez-grid.ctrlC"),
|
|
64806
|
+
paste: i18n("ez-grid.paste"),
|
|
64807
|
+
ctrlV: i18n("ez-grid.ctrlV"),
|
|
64808
|
+
});
|
|
64809
|
+
}
|
|
64810
|
+
|
|
64152
64811
|
class AgGridController {
|
|
64153
64812
|
configFilterColumn(filterColumn) {
|
|
64154
64813
|
this._filterColumn = filterColumn;
|
|
@@ -64303,6 +64962,7 @@ class AgGridController {
|
|
|
64303
64962
|
}
|
|
64304
64963
|
if (this._grid === undefined) {
|
|
64305
64964
|
LicenseManager.setLicenseKey(ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
|
|
64965
|
+
this._i18n = options.i18n;
|
|
64306
64966
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
64307
64967
|
this._selectionChangeCallback = options.onSelectionChange;
|
|
64308
64968
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
@@ -64316,7 +64976,7 @@ class AgGridController {
|
|
|
64316
64976
|
}
|
|
64317
64977
|
this._gridOptions = {
|
|
64318
64978
|
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
64319
|
-
localeText:
|
|
64979
|
+
localeText: buildLocaleText(this._options.i18n),
|
|
64320
64980
|
enableRangeSelection: this._multipleSelection,
|
|
64321
64981
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
64322
64982
|
sortingOrder: ['desc', 'asc', null],
|
|
@@ -64430,7 +65090,7 @@ class AgGridController {
|
|
|
64430
65090
|
buildMenuItemOptionSort(params, sortOrder) {
|
|
64431
65091
|
return {
|
|
64432
65092
|
icon: sortOrder === 'asc' ? `<i class='ez-icon-ordem-ascendente'></i>` : `<i class='ez-icon-ordem-descendente'></i>`,
|
|
64433
|
-
name: sortOrder === 'asc' ?
|
|
65093
|
+
name: sortOrder === 'asc' ? this._i18n("ez-grid.sortAscending") : this._i18n("ez-grid.sortDescending"),
|
|
64434
65094
|
action: () => this.sortDataByColumn(params, sortOrder),
|
|
64435
65095
|
};
|
|
64436
65096
|
}
|
|
@@ -64439,7 +65099,7 @@ class AgGridController {
|
|
|
64439
65099
|
const columnLabel = params.column.getColDef().headerName;
|
|
64440
65100
|
return {
|
|
64441
65101
|
icon: `<i class='ez-icon-filter'></i>`,
|
|
64442
|
-
name:
|
|
65102
|
+
name: this._i18n("ez-grid.filter"),
|
|
64443
65103
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
64444
65104
|
};
|
|
64445
65105
|
}
|
|
@@ -64465,7 +65125,7 @@ class AgGridController {
|
|
|
64465
65125
|
const isPinned = params.column.isPinned();
|
|
64466
65126
|
return {
|
|
64467
65127
|
icon: `<i class='ez-icon-${isPinned ? 'un-pin' : 'push-pin'}'></i>`,
|
|
64468
|
-
name: isPinned ?
|
|
65128
|
+
name: isPinned ? this._i18n("ez-grid.unpinColumn") : this._i18n("ez-grid.pinColumn"),
|
|
64469
65129
|
action: () => {
|
|
64470
65130
|
columnApi.applyColumnState({
|
|
64471
65131
|
state: [{ colId: column.getColId(), pinned: column.isPinned() ? null : 'left' }],
|
|
@@ -65070,7 +65730,7 @@ class AgGridController {
|
|
|
65070
65730
|
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get('gridHeaderTooltip');
|
|
65071
65731
|
}
|
|
65072
65732
|
else if (propSortable === false) {
|
|
65073
|
-
tooltip = '
|
|
65733
|
+
tooltip = this._i18n('ez-grid.columnCantBeOrder');
|
|
65074
65734
|
}
|
|
65075
65735
|
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);
|
|
65076
65736
|
return this._editionManager.configureColumn({
|
|
@@ -65095,7 +65755,11 @@ class AgGridController {
|
|
|
65095
65755
|
return "";
|
|
65096
65756
|
}
|
|
65097
65757
|
if (params.value instanceof Promise) {
|
|
65098
|
-
return "
|
|
65758
|
+
return `${this._i18n("app.loading")}...`;
|
|
65759
|
+
}
|
|
65760
|
+
if (source.userInterface === UserInterface.HTML) {
|
|
65761
|
+
this.setHTMLRender(params, source);
|
|
65762
|
+
return "";
|
|
65099
65763
|
}
|
|
65100
65764
|
const customFormatter = this._customFormatters.get(source.name);
|
|
65101
65765
|
if (customFormatter) {
|
|
@@ -65113,6 +65777,24 @@ class AgGridController {
|
|
|
65113
65777
|
editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(PRESENTATION_FROM_COL_PROP_NAME))
|
|
65114
65778
|
});
|
|
65115
65779
|
}
|
|
65780
|
+
setHTMLRender(params, source) {
|
|
65781
|
+
const htmlSanitized = purify.sanitize(params.value);
|
|
65782
|
+
params.colDef.cellRenderer = (cellParams) => {
|
|
65783
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65784
|
+
const element = document.createElement('span');
|
|
65785
|
+
element.innerHTML = htmlSanitized;
|
|
65786
|
+
return element;
|
|
65787
|
+
}
|
|
65788
|
+
return cellParams.value;
|
|
65789
|
+
};
|
|
65790
|
+
params.colDef.cellStyle = (cellParams) => {
|
|
65791
|
+
const defaultStyle = this.getStyleByColumn(source);
|
|
65792
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65793
|
+
return Object.assign(defaultStyle, { padding: 0 });
|
|
65794
|
+
}
|
|
65795
|
+
return defaultStyle;
|
|
65796
|
+
};
|
|
65797
|
+
}
|
|
65116
65798
|
setCustomFormatters(customFormatters) {
|
|
65117
65799
|
this._customFormatters = customFormatters;
|
|
65118
65800
|
}
|
|
@@ -65169,10 +65851,10 @@ class AgGridController {
|
|
|
65169
65851
|
}
|
|
65170
65852
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SWITCH) {
|
|
65171
65853
|
if ((params === null || params === void 0 ? void 0 : params.value) === 'S' || (params === null || params === void 0 ? void 0 : params.value) === true || (params === null || params === void 0 ? void 0 : params.value) === 'true') {
|
|
65172
|
-
return
|
|
65854
|
+
return this._i18n("app.yes");
|
|
65173
65855
|
}
|
|
65174
65856
|
else if ((params === null || params === void 0 ? void 0 : params.value) === 'N' || (params === null || params === void 0 ? void 0 : params.value) === false || (params === null || params === void 0 ? void 0 : params.value) === 'false') {
|
|
65175
|
-
return
|
|
65857
|
+
return this._i18n("app.no");
|
|
65176
65858
|
}
|
|
65177
65859
|
}
|
|
65178
65860
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCH) {
|
|
@@ -65395,27 +66077,30 @@ function enableSelectAll(total) {
|
|
|
65395
66077
|
return total !== undefined;
|
|
65396
66078
|
}
|
|
65397
66079
|
function buildSelectAllLabel(allRecordSelected, count, total) {
|
|
66080
|
+
const i18n = getI18n();
|
|
65398
66081
|
if (allRecordSelected)
|
|
65399
|
-
return '
|
|
66082
|
+
return i18n('utils.selectAllPage');
|
|
65400
66083
|
if (total === undefined)
|
|
65401
|
-
return
|
|
65402
|
-
return
|
|
66084
|
+
return i18n('utils.loadingAllRecords', { count });
|
|
66085
|
+
return i18n('utils.selectAllRecords', { total });
|
|
65403
66086
|
}
|
|
65404
66087
|
function buildSelectAllTitle(total) {
|
|
65405
66088
|
if (enableSelectAll(total))
|
|
65406
66089
|
return '';
|
|
65407
|
-
|
|
66090
|
+
const i18n = getI18n();
|
|
66091
|
+
return i18n('utils.waitForLoad');
|
|
65408
66092
|
}
|
|
65409
66093
|
function getText(selectionCount, allSelectedRecords) {
|
|
66094
|
+
const i18n = getI18n();
|
|
65410
66095
|
if (allSelectedRecords) {
|
|
65411
|
-
return
|
|
66096
|
+
return i18n('utils.allRecordsSelected', { selectionCount });
|
|
65412
66097
|
}
|
|
65413
|
-
const
|
|
65414
|
-
return
|
|
66098
|
+
const plural = selectionCount > 1 ? "s" : "";
|
|
66099
|
+
return i18n('utils.selectedRecords', { selectionCount, plural });
|
|
65415
66100
|
}
|
|
65416
66101
|
|
|
65417
66102
|
const SelectionCounter = (props) => {
|
|
65418
|
-
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose } = props;
|
|
66103
|
+
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose, i18n } = props;
|
|
65419
66104
|
const { total, hasMore, count } = paginationInfo || {};
|
|
65420
66105
|
const shouldRenderSelectionButton = () => {
|
|
65421
66106
|
if ((!allRecordSelected && selectionCount === total) || (allRecordSelected && !hasMore))
|
|
@@ -65431,8 +66116,8 @@ const SelectionCounter = (props) => {
|
|
|
65431
66116
|
h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
65432
66117
|
shouldRenderSelectionButton() &&
|
|
65433
66118
|
h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
65434
|
-
h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: "
|
|
65435
|
-
h("button", Object.assign({ class: "grid__btn-close", title: "
|
|
66119
|
+
h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: i18n("ez-grid.clearSelection"), mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
66120
|
+
h("button", Object.assign({ class: "grid__btn-close", title: i18n("app.close"), onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
65436
66121
|
h("ez-icon", { iconName: "close" })))));
|
|
65437
66122
|
};
|
|
65438
66123
|
function getElementID(sufix) {
|
|
@@ -65582,7 +66267,6 @@ const EzGrid = class {
|
|
|
65582
66267
|
this.configChange = createEvent(this, "configChange", 7);
|
|
65583
66268
|
this.componentReady = createEvent(this, "componentReady", 7);
|
|
65584
66269
|
this._gridController = new AgGridController(false);
|
|
65585
|
-
this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
|
|
65586
66270
|
this._customEditor = new Map();
|
|
65587
66271
|
this._customRenders = new Map();
|
|
65588
66272
|
this._paginationInfo = undefined;
|
|
@@ -65976,7 +66660,7 @@ const EzGrid = class {
|
|
|
65976
66660
|
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
65977
66661
|
}
|
|
65978
66662
|
renderCancelPagination() {
|
|
65979
|
-
return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, "
|
|
66663
|
+
return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, this.i18n("ez-grid.cancelPagination")))));
|
|
65980
66664
|
}
|
|
65981
66665
|
handleShowCancelPagination() {
|
|
65982
66666
|
var _a, _b, _c;
|
|
@@ -65992,7 +66676,7 @@ const EzGrid = class {
|
|
|
65992
66676
|
if (!this._paginationInfo)
|
|
65993
66677
|
return null;
|
|
65994
66678
|
const { currentPage, hasMore } = this._paginationInfo;
|
|
65995
|
-
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "
|
|
66679
|
+
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: this.i18n("ez-grid.previousPage") }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: this.i18n("ez-grid.nextPage") }))));
|
|
65996
66680
|
}
|
|
65997
66681
|
shouldPresentPaginationLabel() {
|
|
65998
66682
|
return this.paginationCounterMode === 'show' || this.paginationCounterMode === 'auto';
|
|
@@ -66032,7 +66716,8 @@ const EzGrid = class {
|
|
|
66032
66716
|
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
66033
66717
|
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
66034
66718
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66035
|
-
suppressHorizontalScroll: this.suppressHorizontalScroll
|
|
66719
|
+
suppressHorizontalScroll: this.suppressHorizontalScroll,
|
|
66720
|
+
i18n: this.i18n
|
|
66036
66721
|
});
|
|
66037
66722
|
if (this.config) {
|
|
66038
66723
|
this.observeConfig(this.config);
|
|
@@ -66065,7 +66750,7 @@ const EzGrid = class {
|
|
|
66065
66750
|
}
|
|
66066
66751
|
_getRemainingPageLabel() {
|
|
66067
66752
|
const { total, count } = this._paginationInfo;
|
|
66068
|
-
return `${total == undefined ?
|
|
66753
|
+
return `${total == undefined ? this.i18n("ez-grid.remainingPageLabel", { count: count + 1 }) : this.i18n("ez-grid.remainingTotalLabel", { total })}`;
|
|
66069
66754
|
}
|
|
66070
66755
|
_hasToShowCancelPagination() {
|
|
66071
66756
|
var _a;
|
|
@@ -66141,10 +66826,11 @@ const EzGrid = class {
|
|
|
66141
66826
|
}
|
|
66142
66827
|
componentDidRender() {
|
|
66143
66828
|
windowInstace.addEventListener('onSubmitFilter', () => {
|
|
66144
|
-
ApplicationUtils.info(this.
|
|
66829
|
+
ApplicationUtils.info(this.i18n("ez-grid.filterAppliedSuccess"));
|
|
66145
66830
|
});
|
|
66146
66831
|
}
|
|
66147
|
-
componentWillLoad() {
|
|
66832
|
+
async componentWillLoad() {
|
|
66833
|
+
this.i18n = await initI18n();
|
|
66148
66834
|
this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
|
|
66149
66835
|
if (!this.dataUnit.name.includes("InMemoryDataUnit"))
|
|
66150
66836
|
return;
|
|
@@ -66183,12 +66869,12 @@ const EzGrid = class {
|
|
|
66183
66869
|
if (!this._paginationInfo)
|
|
66184
66870
|
return;
|
|
66185
66871
|
this.nextRecord();
|
|
66186
|
-
}, { description: "
|
|
66872
|
+
}, { description: this.i18n("ez-grid.nextRecord"), element: this._element })
|
|
66187
66873
|
.bind("ctrl + ,", () => {
|
|
66188
66874
|
if (!this._paginationInfo)
|
|
66189
66875
|
return;
|
|
66190
66876
|
this.previousRecord();
|
|
66191
|
-
}, { description: "
|
|
66877
|
+
}, { description: this.i18n("ez-grid.previousRecord"), element: this._element })
|
|
66192
66878
|
.bind("ctrl + alt + ArrowLeft", () => {
|
|
66193
66879
|
if (!this._paginationInfo)
|
|
66194
66880
|
return;
|
|
@@ -66196,7 +66882,7 @@ const EzGrid = class {
|
|
|
66196
66882
|
if (currentPage > 0) {
|
|
66197
66883
|
this.previousPage();
|
|
66198
66884
|
}
|
|
66199
|
-
}, { description: "
|
|
66885
|
+
}, { description: this.i18n("ez-grid.previousPage"), element: this._element })
|
|
66200
66886
|
.bind("ctrl + alt + ArrowRight", () => {
|
|
66201
66887
|
if (!this._paginationInfo)
|
|
66202
66888
|
return;
|
|
@@ -66204,7 +66890,7 @@ const EzGrid = class {
|
|
|
66204
66890
|
if (hasMore) {
|
|
66205
66891
|
this.nextPage();
|
|
66206
66892
|
}
|
|
66207
|
-
}, { description: "
|
|
66893
|
+
}, { description: this.i18n("ez-grid.nextPage"), element: this._element });
|
|
66208
66894
|
if (this.useSearchColumn) {
|
|
66209
66895
|
this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
|
|
66210
66896
|
if (!this._container || !this._ezPopoverSearchColumn)
|
|
@@ -66212,7 +66898,7 @@ const EzGrid = class {
|
|
|
66212
66898
|
const container = this._container.getBoundingClientRect();
|
|
66213
66899
|
await focusOnFieldSerch(this._columnSearch);
|
|
66214
66900
|
this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
66215
|
-
}, { description:
|
|
66901
|
+
}, { description: this.i18n("ez-grid.searchColumn"), element: this._element });
|
|
66216
66902
|
}
|
|
66217
66903
|
}
|
|
66218
66904
|
async removeShortcuts() {
|
|
@@ -66222,7 +66908,7 @@ const EzGrid = class {
|
|
|
66222
66908
|
renderFieldSearchColumn() {
|
|
66223
66909
|
this._columnSearch = buildFieldSearch({
|
|
66224
66910
|
value: StringUtils$1.generateUUID(),
|
|
66225
|
-
label:
|
|
66911
|
+
label: this.i18n("ez-grid.labelSearchColumn"),
|
|
66226
66912
|
}, ({ argument }) => new Promise(accept => {
|
|
66227
66913
|
this.filterColumns(argument).then((columns) => {
|
|
66228
66914
|
accept(columns
|
|
@@ -66257,7 +66943,7 @@ const EzGrid = class {
|
|
|
66257
66943
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
66258
66944
|
}, 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
|
|
66259
66945
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66260
|
-
` }, 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" }))));
|
|
66946
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, i18n: this.i18n, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
66261
66947
|
}
|
|
66262
66948
|
static get assetsDirs() { return ["../assets"]; }
|
|
66263
66949
|
get _element() { return getElement(this); }
|