bromcom-ui 2.9.0-rc.10 → 2.9.0-rc.12
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/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +1 -1
- package/dist/bromcom-ui/{p-d2ff474a.entry.js → p-02fc6c76.entry.js} +1 -1
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/{p-2b3610b4.entry.js → p-0bc35a82.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6a7c6ef2.entry.js → p-0d0fc47b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-535eae03.entry.js → p-13070661.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c537f73b.entry.js → p-1ad5b7dd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-30b43b3a.entry.js → p-1fc491fc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fd03e308.entry.js → p-203c8e37.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5559362d.entry.js → p-20422d81.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e506b7c.entry.js → p-23a805b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-280736e0.entry.js → p-26da70f2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d9f26a59.entry.js → p-29722bff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2baa0a6b.entry.js → p-3a83e2ed.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f3424c60.entry.js → p-3c2db0c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e080bdf.entry.js → p-3d983699.entry.js} +1 -1
- package/dist/bromcom-ui/p-416f6233.entry.js +5 -0
- package/dist/bromcom-ui/{p-e1689f47.js → p-43a16ce4.js} +1 -1
- package/dist/bromcom-ui/{p-5caf6360.js → p-44407faa.js} +1 -1
- package/dist/bromcom-ui/{p-2c43873c.entry.js → p-4772e438.entry.js} +1 -1
- package/dist/bromcom-ui/p-49f37d54.js +5 -0
- package/dist/bromcom-ui/{p-48b925ad.js → p-509cfa99.js} +1 -1
- package/dist/bromcom-ui/p-55931686.entry.js +5 -0
- package/dist/bromcom-ui/{p-53d6a137.entry.js → p-5c27d09b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1df4d111.entry.js → p-5f11b62c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-412732f4.js → p-64096fe2.js} +1 -1
- package/dist/bromcom-ui/{p-fe83aac0.entry.js → p-6abc4fdf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b94d494.js → p-6b60a4d3.js} +1 -1
- package/dist/bromcom-ui/{p-2d2ff5fc.entry.js → p-6c878da5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d4a0a66.entry.js → p-6e592196.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b1613d12.entry.js → p-70994ba0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e4bc863b.entry.js → p-78e70a44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2f4c8c67.entry.js → p-7e10f626.entry.js} +1 -1
- package/dist/bromcom-ui/p-8507df31.js +5 -0
- package/dist/bromcom-ui/p-8abe303b.entry.js +5 -0
- package/dist/bromcom-ui/{p-cff8ef93.js → p-91246af3.js} +1 -1
- package/dist/bromcom-ui/{p-a54a47ed.entry.js → p-94a9bd14.entry.js} +1 -1
- package/dist/bromcom-ui/p-965703ec.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c17fbd6.entry.js → p-98afbb62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-edcc8c69.entry.js → p-9a21398e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-52c6d2e5.entry.js → p-9d911ba3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cea71a01.entry.js → p-a2ab6adb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37c48622.entry.js → p-a31e475a.entry.js} +1 -1
- package/dist/bromcom-ui/p-a799b910.entry.js +5 -0
- package/dist/bromcom-ui/{p-2f81dd36.entry.js → p-a7a5da82.entry.js} +1 -1
- package/dist/bromcom-ui/p-a81644d6.entry.js +5 -0
- package/dist/bromcom-ui/{p-cca6e9c5.js → p-a89cff9b.js} +1 -1
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/p-ab53fd56.entry.js +5 -0
- package/dist/bromcom-ui/{p-167e1654.js → p-ab7bd6e1.js} +1 -1
- package/dist/bromcom-ui/{p-f521cbb4.entry.js → p-ac385400.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1286e447.entry.js → p-aedc59f3.entry.js} +1 -1
- package/dist/bromcom-ui/p-b9cfa2c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-e304d0f8.entry.js → p-bcef2201.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9dec497d.entry.js → p-c0a62a71.entry.js} +1 -1
- package/dist/bromcom-ui/{p-74dc0103.entry.js → p-c9212343.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0271c48.entry.js → p-cb3bc0f4.entry.js} +1 -1
- package/dist/bromcom-ui/p-d3d07c8c.js +5 -0
- package/dist/bromcom-ui/{p-21cd7ad3.entry.js → p-d57f3587.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c6f8cf6.entry.js → p-d61af652.entry.js} +1 -1
- package/dist/bromcom-ui/{p-778529e9.entry.js → p-e6f888b3.entry.js} +1 -1
- package/dist/bromcom-ui/p-e7cbc79a.js +5 -0
- package/dist/bromcom-ui/{p-d479398d.entry.js → p-eb279a80.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b96dbbf.entry.js → p-ebe49b26.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4fc0c9db.entry.js → p-eefcd035.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b426546b.js → p-f394a316.js} +1 -1
- package/dist/bromcom-ui/{p-af4c2c90.entry.js → p-f4634124.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6909817b.entry.js → p-f533a1b5.entry.js} +1 -1
- package/dist/bromcom-ui/p-fa9e6264.entry.js +5 -0
- package/dist/bromcom-ui/{p-0e99fd08.entry.js → p-faad6962.entry.js} +1 -1
- package/dist/bromcom-ui/{p-42616ae0.entry.js → p-fb36ab9c.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +17 -2580
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
- package/dist/cjs/{bcm-button_8.cjs.entry.js → bcm-button_9.cjs.entry.js} +338 -137
- package/dist/cjs/bcm-card.cjs.entry.js +4 -4
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +5 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
- package/dist/cjs/bcm-date.cjs.entry.js +7 -7
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +10 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +5 -5
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
- package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-form.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +14 -13
- package/dist/cjs/bcm-menu.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-select.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +6 -6
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
- package/dist/cjs/bcm-table.cjs.entry.js +7421 -8
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
- package/dist/cjs/bromcom-ui.cjs.js +4 -4
- package/dist/cjs/{generate-225c30c9.js → generate-4911eaae.js} +1 -1
- package/dist/cjs/{global-d30014b0.js → global-efef2bd1.js} +3 -3
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/{input-template-27576361.js → input-template-11d547bd.js} +1 -1
- package/dist/cjs/{json-parse-decarator-c7dda47d.js → json-parse-decarator-fdcd20df.js} +1 -1
- package/dist/cjs/{label-template-8d34230f.js → label-template-15c3c0ed.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{number-helper-2b3bd61e.js → number-helper-72d5f146.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-e7a4d8ef.js → package-70273fae.js} +1 -1
- package/dist/cjs/{popover-placement-86ece590.js → popover-placement-8866eab1.js} +1 -1
- package/dist/cjs/{slot-template-758beb71.js → slot-template-de6a91b1.js} +1 -1
- package/dist/cjs/{stepper-states-b56fbad9.js → stepper-states-56e660a4.js} +1 -1
- package/dist/cjs/{string-helper-b89a9828.js → string-helper-9b392049.js} +2 -2
- package/dist/cjs/{tooltip-helper-85b4c726.js → tooltip-helper-3b8b977f.js} +4 -4
- package/dist/cjs/{validators-9e7f7995.js → validators-c43fa1d0.js} +1 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +9 -2
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +200 -149
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
- package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
- package/dist/collection/components/organism/list/list.css +1 -1
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/third-parts/table/table.css +1 -7034
- package/dist/collection/components/third-parts/table/table.js +6 -2
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/components/avatar.js +2 -1
- package/dist/components/badge.js +2 -2565
- package/dist/components/bcm-date-picker.js +4 -2
- package/dist/components/bcm-input-dropdown.js +214 -149
- package/dist/components/bcm-table.js +8436 -65181
- package/dist/components/bcm-textarea.js +1 -214
- package/dist/components/bcm-time-picker.js +4 -2
- package/dist/components/datetime-picker.js +5 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/list.js +5 -3
- package/dist/components/string-helper.js +2 -2
- package/dist/{esm/bcm-textarea.entry.js → components/textarea.js} +80 -19
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +3 -3
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +6 -2569
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +3 -3
- package/dist/esm/{bcm-button_8.entry.js → bcm-button_9.entry.js} +339 -139
- package/dist/esm/bcm-card.entry.js +4 -4
- package/dist/esm/bcm-checkbox-group.entry.js +5 -5
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-checkbox_2.entry.js +4 -4
- package/dist/esm/bcm-chip-group.entry.js +7 -7
- package/dist/esm/bcm-chip.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +5 -5
- package/dist/esm/bcm-date-picker.entry.js +5 -4
- package/dist/esm/bcm-date.entry.js +7 -7
- package/dist/esm/bcm-datetime-picker.entry.js +10 -8
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +5 -5
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +3 -3
- package/dist/esm/bcm-form.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-item.entry.js +2 -2
- package/dist/esm/bcm-items.entry.js +3 -3
- package/dist/esm/bcm-list_3.entry.js +14 -13
- package/dist/esm/bcm-menu.entry.js +6 -6
- package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
- package/dist/esm/bcm-modal-2-header.entry.js +5 -5
- package/dist/esm/bcm-modal-2.entry.js +5 -5
- package/dist/esm/bcm-modal.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +5 -5
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +5 -5
- package/dist/esm/bcm-radio.entry.js +5 -5
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +2 -2
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +6 -6
- package/dist/esm/bcm-switch.entry.js +2 -2
- package/dist/esm/bcm-tab-group.entry.js +5 -5
- package/dist/esm/bcm-tab-item-header.entry.js +5 -5
- package/dist/esm/bcm-tab-item.entry.js +5 -5
- package/dist/esm/bcm-table.entry.js +7420 -7
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-text.entry.js +2 -2
- package/dist/esm/bcm-time-picker.entry.js +5 -4
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +4 -4
- package/dist/esm/{generate-93b8bdf9.js → generate-c890c880.js} +1 -1
- package/dist/esm/{global-d82f2bc7.js → global-80f07324.js} +2 -2
- package/dist/esm/index-3bc8c6e3.js +2569 -0
- package/dist/esm/{input-template-f7c67bc9.js → input-template-7f96e7e6.js} +1 -1
- package/dist/esm/{json-parse-decarator-1e5367cd.js → json-parse-decarator-2c6f525f.js} +1 -1
- package/dist/esm/{label-template-f156f33f.js → label-template-62e49c38.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{number-helper-ff29314e.js → number-helper-1ae23de5.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +5 -5
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-64966ec6.js → package-22f4a05f.js} +1 -1
- package/dist/esm/{popover-placement-018109c4.js → popover-placement-7cce412f.js} +1 -1
- package/dist/esm/{slot-template-46035685.js → slot-template-7447145d.js} +1 -1
- package/dist/esm/{stepper-states-7c75d904.js → stepper-states-46d8bf00.js} +1 -1
- package/dist/esm/{string-helper-4a28f775.js → string-helper-5ef67a66.js} +2 -2
- package/dist/esm/{tooltip-helper-6154996e.js → tooltip-helper-a72d4674.js} +4 -4
- package/dist/esm/{validators-2956054d.js → validators-0601fa22.js} +1 -1
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +25 -17
- package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components/third-parts/table/table.d.ts +1 -1
- package/dist/types/components.d.ts +22 -8
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -1
- package/package.json +5 -3
- package/dist/bromcom-ui/p-0523863a.entry.js +0 -5
- package/dist/bromcom-ui/p-07ff085d.entry.js +0 -5
- package/dist/bromcom-ui/p-14c7e2a8.js +0 -297
- package/dist/bromcom-ui/p-2a9053d8.js +0 -5
- package/dist/bromcom-ui/p-30abd87e.entry.js +0 -5
- package/dist/bromcom-ui/p-324b9364.js +0 -5
- package/dist/bromcom-ui/p-5600c817.js +0 -5
- package/dist/bromcom-ui/p-637fb9e8.entry.js +0 -5
- package/dist/bromcom-ui/p-a1412b63.js +0 -5
- package/dist/bromcom-ui/p-dc97634a.entry.js +0 -5
- package/dist/bromcom-ui/p-dd65dec9.entry.js +0 -5
- package/dist/bromcom-ui/p-e3a66478.entry.js +0 -5
- package/dist/bromcom-ui/p-eed0258a.entry.js +0 -5
- package/dist/bromcom-ui/p-fd87349e.entry.js +0 -5
- package/dist/bromcom-ui/p-fd93d2a4.entry.js +0 -5
- package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +0 -111638
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
- package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +0 -111635
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
7
|
+
* @version v29.0.0
|
|
8
|
+
* @link https://www.ag-grid.com/
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
function t(t){return null==t||""===t?null:t}function i(t,i){return void 0===i&&(i=!1),null!=t&&(""!==t||i)}function n(t){return!i(t)}function e(t){return null==t||0===t.length}function r(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function o(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var i=parseInt(t,10);return isNaN(i)?void 0:i}}function s(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function u(t){if(t instanceof Set||t instanceof Map){var i=[];return t.forEach((function(t){return i.push(t)})),i}return Object.values(t)}const h=Object.freeze({__proto__:null,makeNull:t,exists:i,missing:n,missingOrEmpty:e,toStringOrNull:r,attrToNumber:o,attrToBoolean:s,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,i){return null==t&&null==i||(null!=t||null==i)&&(null==t||null!=i)&&t===i},jsonEquals:function(t,i){return(t?JSON.stringify(t):null)===(i?JSON.stringify(i):null)},defaultComparator:function(t,i,n){void 0===n&&(n=!1);var e=null==t,r=null==i;if(t&&t.toNumber&&(t=t.toNumber()),i&&i.toNumber&&(i=i.toNumber()),e&&r)return 0;if(e)return-1;if(r)return 1;function o(t,i){return t>i?1:t<i?-1:0}if("string"!=typeof t)return o(t,i);if(!n)return o(t,i);try{return t.localeCompare(i)}catch(n){return o(t,i)}},values:u});
|
|
12
|
+
/**
|
|
13
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
14
|
+
* @version v29.0.0
|
|
15
|
+
* @link https://www.ag-grid.com/
|
|
16
|
+
* @license MIT
|
|
17
|
+
*/var c=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var i=0;i<t.length;i++)this.existingKeys[t[i]]=!0},t.prototype.getUniqueKey=function(t,i){t=r(t);for(var n=0;;){var e=void 0;if(t?(e=t,0!==n&&(e+="_"+n)):i?(e=i,0!==n&&(e+="_"+n)):e=""+n,!this.existingKeys[e])return this.existingKeys[e]=!0,e;n++}},t}();
|
|
18
|
+
/**
|
|
19
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
20
|
+
* @version v29.0.0
|
|
21
|
+
* @link https://www.ag-grid.com/
|
|
22
|
+
* @license MIT
|
|
23
|
+
*/function a(t,i){null!=t&&(Array.isArray(t)?t.forEach((function(t,n){return i(""+n,t)})):Object.keys(t).forEach((function(n){return i(n,t[n])})))}function f(t){for(var i={},n=Object.keys(t),e=0;e<n.length;e++){var r=n[e];i[r]=t[r]}return i}function l(t,i){if(t){var n=t,e={};return Object.keys(n).forEach((function(t){if(!(i&&i.indexOf(t)>=0)){var r=n[t],o=O(r)&&r.constructor===Object;e[t]=o?l(r):r}})),e}}function v(t,i){return t[i]}function d(t,i,n){t[i]=n}function p(t,i,n,e){var r=v(t,n);void 0!==r&&d(i,n,e?e(r):r)}function g(t){var i={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return i[t]=null}))})),Object.keys(i)}function b(t){if(!t)return[];var i=Object;if("function"==typeof i.values)return i.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&t.propertyIsEnumerable(e)&&n.push(t[e]);return n}function m(t,n,e,r){void 0===e&&(e=!0),void 0===r&&(r=!1),i(n)&&a(n,(function(i,n){var o=t[i];o!==n&&(r&&null==o&&null!=n&&"object"==typeof n&&n.constructor===Object&&(t[i]=o={}),O(n)&&O(o)&&!Array.isArray(o)?m(o,n,e,r):(e||void 0!==n)&&(t[i]=n))}))}function w(t,i,n){if(i&&t){if(!n)return t[i];for(var e=i.split("."),r=t,o=0;o<e.length;o++){if(null==r)return;r=r[e[o]]}return r}}function y(t,i){Object.keys(t).forEach((function(i){"object"==typeof t[i]&&(t[i]=void 0)}));var n=Object.getPrototypeOf(t),e={};Object.keys(n).forEach((function(t){"function"==typeof n[t]&&(e[t]={value:function(){console.warn("AG Grid: "+i+" function "+t+"() 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.")},writable:!0})})),Object.defineProperties(t,e)}function O(t){return"object"==typeof t&&null!==t}const S=Object.freeze({__proto__:null,iterateObject:a,cloneObject:f,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:l,getProperty:v,setProperty:d,copyPropertiesIfPresent:function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];n.forEach((function(n){return p(t,i,n)}))},copyPropertyIfPresent:p,getAllKeysInObjects:g,getAllValuesInObject:b,mergeDeep:m,missingOrEmptyObject:function(t){return n(t)||0===Object.keys(t).length},get:function(t,i,n){if(null==t)return n;for(var e=i.split("."),r=t;e.length>1;)if(null==(r=r[e.shift()]))return n;var o=r[e[0]];return null!=o?o:n},set:function(t,i,n){if(null!=t){var e=i.split("."),r=t;e.forEach((function(t,i){r[t]||(r[t]={}),i<e.length-1&&(r=r[t])})),r[e[e.length-1]]=n}},deepFreeze:function t(i){return Object.freeze(i),u(i).forEach((function(i){(O(i)||"function"==typeof i)&&t(i)})),i},getValueUsingField:w,removeAllReferences:y,isNonNullObject:O});
|
|
24
|
+
/**
|
|
25
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
26
|
+
* @version v29.0.0
|
|
27
|
+
* @link https://www.ag-grid.com/
|
|
28
|
+
* @license MIT
|
|
29
|
+
*/var C={};function R(t,i){C[i]||(t(),C[i]=!0)}function j(t){if(t.name)return t.name;var i=/function\s+([^\(]+)/.exec(t.toString());return i&&2===i.length?i[1].trim():null}function _(t){return!!(t&&t.constructor&&t.call&&t.apply)}function A(t){G(t,400)}var x=[],F=!1;function M(t){x.push(t),F||(F=!0,window.setTimeout((function(){var t=x.slice();x.length=0,F=!1,t.forEach((function(t){return t()}))}),0))}function G(t,i){void 0===i&&(i=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),i)}function D(t,i){var n;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this;window.clearTimeout(n),n=window.setTimeout((function(){t.apply(o,e)}),i)}}function P(t,i){var n=0;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,s=(new Date).getTime();s-n<i||(n=s,t.apply(o,e))}}function k(t,i,n,e){void 0===n&&(n=100);var r=(new Date).getTime(),o=null,s=!1,u=function(){var u=(new Date).getTime()-r>n;(t()||u)&&(i(),s=!0,null!=o&&(window.clearInterval(o),o=null),u&&e&&console.warn(e))};u(),s||(o=window.setInterval(u,10))}function T(t){t&&t()}const I=Object.freeze({__proto__:null,doOnce:R,getFunctionName:j,isFunction:_,executeInAWhile:A,executeNextVMTurn:M,executeAfter:G,debounce:D,throttle:P,waitUntil:k,compose:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return function(i){return t.reduce((function(t,i){return i(t)}),i)}},callIfPresent:T,noop:function(){}});
|
|
30
|
+
/**
|
|
31
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
32
|
+
* @version v29.0.0
|
|
33
|
+
* @link https://www.ag-grid.com/
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/var E=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},N=function(){function t(t,i){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=i,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return u(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,i){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],i),t},t.prototype.wireBeans=function(t,n){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),i(n)&&t.forEach(n),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),a(this.beanWrappers,(function(i,n){var e;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(e=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=t.getBeansForParameters(e,n.bean.name),o=new(n.bean.bind.apply(n.bean,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(E(arguments[i]));return t}([null],r)));n.beanInstance=o}));var i=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+i)},t.prototype.createBeanWrapper=function(t){var i=t.__agBeanMetaData;if(!i){var n;return n=t.prototype.constructor?j(t.prototype.constructor):""+t,void console.error("Context item "+n+" is not a bean")}this.beanWrappers[i.beanName]={bean:t,beanInstance:null,beanName:i.beanName}},t.prototype.autoWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=i.lookupBeanInstance(e,n.beanName,n.optional);t[n.attributeName]=r}))}))}))},t.prototype.methodWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){a(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var o=i.getBeansForParameters(r,e);t[n].apply(t,o)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,i){for(var n=Object.getPrototypeOf(t);null!=n;){var e=n.constructor;e.hasOwnProperty("__agBeanMetaData")&&i(e.__agBeanMetaData,this.getBeanName(e)),n=Object.getPrototypeOf(n)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var i=t.toString();return i.substring(9,i.indexOf("("))},t.prototype.getBeansForParameters=function(t,i){var n=this,e=[];return t&&a(t,(function(t,r){var o=n.lookupBeanInstance(i,r);e[Number(t)]=o})),e},t.prototype.lookupBeanInstance=function(t,i,n){if(void 0===n&&(n=!1),"context"===i)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(i))return this.contextParams.providedBeanInstances[i];var e=this.beanWrappers[i];return e?e.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+i+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,i){var n=this;t.forEach((function(t){return n.callLifeCycleMethodsOnBean(t,i)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,i,n){var e={};this.forEachMetaDataInHierarchy(t,(function(t){var r=t[i];r&&r.forEach((function(t){t!=n&&(e[t]=!0)}))})),Object.keys(e).forEach((function(i){return t[i]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var i=this;return t?(t.forEach((function(t){i.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy"),"function"==typeof t.destroy&&t.destroy()})),[]):[]},t}();function H(t,i){var n=Y(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(i)}function L(t,i){var n=Y(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(i)}function B(t,i){var n=Y(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(i)}function W(t){return function(i){Y(i).beanName=t}}function z(t){return function(i,n){U(i,t,!1,0,n,null)}}function V(t){return function(i,n){U(i,t,!0,0,n,null)}}function U(t,i,n,e,r,o){if(null!==i)if("number"!=typeof o){var s=Y(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:i,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function K(t){return function(i,n,e){var r,o="function"==typeof i?i:i.constructor;if("number"==typeof e){var s=void 0;n?(r=Y(o),s=n):(r=Y(o),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][e]=t}}}function Y(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}
|
|
36
|
+
/**
|
|
37
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
38
|
+
* @version v29.0.0
|
|
39
|
+
* @link https://www.ag-grid.com/
|
|
40
|
+
* @license MIT
|
|
41
|
+
*/var q,J=function(){return J=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},J.apply(this,arguments)},Z=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$=function(t,i){return function(n,e){i(n,e,t)}},Q=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,i,n,e){if(void 0===e&&(e=null),this.frameworkOverrides=n,this.gridOptionsService=i,e){var r=i.useAsyncEvents();this.addGlobalListener(e,r)}},t.prototype.getListeners=function(t,i,n){var e=i?this.allAsyncListeners:this.allSyncListeners,r=e.get(t);return!r&&n&&(r=new Set,e.set(t,r)),r},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,i,n){void 0===n&&(n=!1),this.getListeners(t,n,!0).add(i)},t.prototype.removeEventListener=function(t,i,n){void 0===n&&(n=!1);var e=this.getListeners(t,n,!1);e&&(e.delete(i),0===e.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var i=t;this.gridOptionsService&&(i=J(J({},t),{api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")})),this.dispatchToListeners(i,!0),this.dispatchToListeners(i,!1),this.firedEvents[i.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,i){var n=this,e=t.type,r=this.getListeners(e,i,!1);r&&function(e){e.forEach((function(e){i?n.dispatchAsync((function(){return e(t)})):e(t)}))}(r),(i?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){i?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,t)}),!0)})):n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},Z([$(0,K("loggerFactory")),$(1,K("gridOptionsService")),$(2,K("frameworkOverrides")),$(3,K("globalEventListener"))],t.prototype,"setBeans",null),Z([W("eventService")],t)}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(q||(q={}));
|
|
42
|
+
/**
|
|
43
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
44
|
+
* @version v29.0.0
|
|
45
|
+
* @link https://www.ag-grid.com/
|
|
46
|
+
* @license MIT
|
|
47
|
+
*/
|
|
48
|
+
var X=function(){function t(){}return t.register=function(i,n){void 0===n&&(n=!0),t.runVersionChecks(i),t.modulesMap[i.moduleName]=i,t.setModuleBased(n)},t.runVersionChecks=function(i){if(t.currentModuleVersion||(t.currentModuleVersion=i.version),i.version?i.version!==t.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+i.moduleName+"' is version "+i.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+i.moduleName+"' is incompatible. Please update all modules to the same version."),i.validate){var n=i.validate();n.isValid||console.error("AG Grid: "+n.message)}},t.setModuleBased=function(i){void 0===t.moduleBased?t.moduleBased=i:t.moduleBased!==i&&R((function(){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."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},t.registerModules=function(i,n){void 0===n&&(n=!0),t.setModuleBased(n),i&&i.forEach((function(i){return t.register(i,n)}))},t.assertRegistered=function(i,n){var e;if(this.isRegistered(i))return!0;var r,o=n+i;if(t.moduleBased){var s=null===(e=Object.entries(q).find((function(t){return function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(t,2)[1]===i})))||void 0===e?void 0:e[0];r="AG Grid: unable to use "+n+" as the "+s+" is not registered. Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+s+" } from '"+i+"';\n \n ModuleRegistry.registerModules([ "+s+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else r="AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return R((function(){console.warn(r)}),o),!1},t.isRegistered=function(i){return!!t.modulesMap[i]},t.getRegisteredModules=function(){return u(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),tt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},it=0;function nt(){return it++}var et=function(){function t(t,i,n,e){this.instanceId=nt(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Q,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=i,this.colId=n,this.primary=e,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?"asc"!==t.sort&&"desc"!==t.sort||(this.sort=t.sort):"asc"!==t.initialSort&&"desc"!==t.initialSort||(this.sort=t.initialSort);var i=o(t.sortIndex),n=o(t.initialSortIndex);void 0!==i?null!==i&&(this.sortIndex=i):null!==n&&(this.sortIndex=n);var e=s(t.hide),r=s(t.initialHide);this.visible=void 0!==e?!e:!r,this.setPinned(void 0!==t.pinned?t.pinned:t.initialPinned);var u=o(t.flex),h=o(t.initialFlex);void 0!==u?this.flex=u:void 0!==h&&(this.flex=h)},t.prototype.setColDef=function(t,i){this.colDef=t,this.userProvidedColDef=i,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=i(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=i(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var i=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(i,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){return!(n(this.colDef)||n(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==t)},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t,n=this.colDef;function e(t,i,n){R((function(){n?console.warn(t,n):R((function(){return console.warn(t)}),i)}),i)}(this.gridOptionsService.isRowModelType("clientSide")&&!X.isRegistered(q.RowGroupingModule)&&(t=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(t){return i(n[t])}))).length>0&&X.assertRegistered(q.RowGroupingModule,t.map((function(t){return"colDef."+t})).join(", ")),"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||X.assertRegistered(q.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData())&&((t=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(t){return i(n[t])}))).length>0&&e("AG Grid: "+t.join()+" is not possible when doing tree data, your column definition should not have "+t.join(),"TreeDataCannotRowGroup"));i(n.menuTabs)&&X.assertRegistered(q.MenuModule,"menuTabs"),i(n.columnsMenuParams)&&X.assertRegistered(q.MenuModule,"columnsMenuParams"),i(n.columnsMenuParams)&&X.assertRegistered(q.ColumnToolPanelModule,"columnsMenuParams"),i(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),(n.pinnedRowCellRenderer||n.pinnedRowCellRendererParams||n.pinnedRowCellRendererFramework)&&e("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.","colDef.pinnedRowCellRenderer-deprecated"),i(n.columnGroupShow)&&"closed"!==n.columnGroupShow&&"open"!==n.columnGroupShow&&e("AG Grid: '"+n.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed'","columnGroupShow_invalid")},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsService.get("context"),api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi")}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var i=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(i)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!s(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!s(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!s(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!s(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,i){return"boolean"==typeof i?i:"function"==typeof i&&i(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(t,i){void 0===i&&(i="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",i))},t.prototype.createColumnEvent=function(t,i){return{type:t,column:this,columns:[this],source:i,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(t,i){void 0===i&&(i="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",i)))},t.prototype.setMenuVisible=function(t,i){void 0===i&&(i="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",i)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return"asc"===this.sort},t.prototype.isSortDescending=function(){return"desc"===this.sort},t.prototype.isSortNone=function(){return n(this.sort)},t.prototype.isSorting=function(){return i(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t},t.prototype.setAggFunc=function(t){this.aggFunc=t},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(t,i){void 0===i&&(i="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",i)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(t,i,n){void 0===i&&(i="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",i)));var e=this.createColumnEvent("filterChanged",i);n&&m(e,n),this.eventService.dispatchEvent(e)},t.prototype.setPinned=function(t){this.pinned=!0===t||"left"===t?"left":"right"===t?"right":null},t.prototype.setFirstRightPinned=function(t,i){void 0===i&&(i="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",i)))},t.prototype.setLastLeftPinned=function(t,i){void 0===i&&(i="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",i)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},t.prototype.isPinnedLeft=function(){return"left"===this.pinned},t.prototype.isPinnedRight=function(){return"right"===this.pinned},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(t,i){void 0===i&&(i="api");var n=!0===t;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",i)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var i=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,i},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")}},t.prototype.getColSpan=function(t){if(n(this.colDef.colSpan))return 1;var i=this.createBaseColDefParams(t),e=this.colDef.colSpan(i);return Math.max(e,1)},t.prototype.getRowSpan=function(t){if(n(this.colDef.rowSpan))return 1;var i=this.createBaseColDefParams(t),e=this.colDef.rowSpan(i);return Math.max(e,1)},t.prototype.setActualWidth=function(t,i,n){void 0===i&&(i="api"),void 0===n&&(n=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==i&&"gridInitializing"!==i&&(this.flex=null),n||this.fireColumnWidthChangedEvent(i))},t.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),i(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(t,i){void 0===i&&(i="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",i)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(t,i){void 0===i&&(i="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",i)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(t,i){void 0===i&&(i="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",i)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var i=this.getColDef().menuTabs;return null==i&&(i=t),i},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",tt([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),tt([z("columnUtils")],t.prototype,"columnUtils",void 0),tt([L],t.prototype,"initialise",null),t}(),rt=function(){function t(t,i,n,e){this.localEventService=new Q,this.expandable=!1,this.instanceId=nt(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=i,this.expanded=!!t&&!!t.openByDefault,this.padding=n,this.level=e}return t.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},t.prototype.reset=function(t,i){this.colGroupDef=t,this.level=i,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(i){this.expanded=void 0!==i&&i,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED})},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(i){this.children&&this.children.forEach((function(n){n instanceof et?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var i=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(t){return t.addEventListener("visibleChanged",i)})),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach((function(t){return t.removeEventListener("visibleChanged",i)})),t.expandableListenerRemoveCallback=null}},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var i=!1,n=!1,e=!1,r=this.findChildrenRemovingPadding(),o=0,s=r.length;o<s;o++){var u=r[o];if(u.isVisible()){var h=u.getColumnGroupShow();"open"===h?(i=!0,e=!0):"closed"===h?(n=!0,e=!0):(i=!0,n=!0)}}var c=i&&n&&e;this.expandable!==c&&(this.expandable=c,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDABLE_CHANGED}))}},t.prototype.findChildrenRemovingPadding=function(){var i=[],n=function(e){e.forEach((function(e){e instanceof t&&e.isPadding()?n(e.children):i.push(e)}))};return n(this.children),i},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([B],t.prototype,"destroy",null),t}(),ot={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};
|
|
49
|
+
/**
|
|
50
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
51
|
+
* @version v29.0.0
|
|
52
|
+
* @link https://www.ag-grid.com/
|
|
53
|
+
* @license MIT
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
57
|
+
* @version v29.0.0
|
|
58
|
+
* @link https://www.ag-grid.com/
|
|
59
|
+
* @license MIT
|
|
60
|
+
*/
|
|
61
|
+
function st(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var e=0;e<t.length;e++){var r=t[e];if(i(r))return r}return null}function ut(t){if(t&&t.length)return t[t.length-1]}function ht(t,i,n){return null==t&&null==i||null!=t&&null!=i&&t.length===i.length&&t.every((function(t,e){return n?n(t,i[e]):i[e]===t}))}function ct(t){return t.sort((function(t,i){return t-i}))}function at(t,i){var n=t.indexOf(i);n>=0&&t.splice(n,1)}function ft(t,i){i.forEach((function(i){return at(t,i)}))}function lt(t,i,n){t.splice(n,0,i)}function vt(t,i,n){ft(t,i),i.slice().reverse().forEach((function(i){return lt(t,i,n)}))}function dt(t,i){return t.indexOf(i)>-1}function pt(t){return[].concat.apply([],t)}function gt(t,i){null!=i&&null!=t&&i.forEach((function(i){return t.push(i)}))}const bt=Object.freeze({__proto__:null,firstExistingValue:st,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:ut,areEqual:ht,compareArrays:function(t,i){return ht(t,i)},shallowCompare:function(t,i){return ht(t,i)},sortNumerically:ct,removeRepeatsFromArray:function(t,i){if(t)for(var n=t.length-2;n>=0;n--)t[n]===i&&t[n+1]===i&&t.splice(n+1,1)},removeFromArray:at,removeAllFromArray:ft,insertIntoArray:lt,insertArrayIntoArray:function(t,i,n){if(null!=t&&null!=i)for(var e=i.length-1;e>=0;e--)lt(t,i[e],n)},moveInArray:vt,includes:dt,flatten:pt,pushAll:gt,toStrings:function(t){return t.map(r)},forEachReverse:function(t,i){if(null!=t)for(var n=t.length-1;n>=0;n--)i(t[n],n)}});
|
|
62
|
+
/**
|
|
63
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
64
|
+
* @version v29.0.0
|
|
65
|
+
* @link https://www.ag-grid.com/
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/var mt="__ag_Grid_Stop_Propagation",wt=["touchstart","touchend","touchmove","touchcancel","scroll"],yt={};function Ot(t){t[mt]=!0}function St(t){return!0===t[mt]}var Ct,Rt=(Ct={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof yt[t])return yt[t];var i=document.createElement(Ct[t]||"div");return yt[t="on"+t]=t in i});function jt(t,i,n){for(var e=i.target;e;){var r=t.getDomData(e,n);if(r)return r;e=e.parentElement}return null}function _t(t,i){return!(!i||!t)&&xt(i).indexOf(t)>=0}function At(t){for(var i=[],n=t.target;n;)i.push(n),n=n.parentElement;return i}function xt(t){var i=t;return i.path?i.path:i.composedPath?i.composedPath():At(i)}function Ft(t,i,n,e){var r=dt(wt,n);t&&t.addEventListener&&t.addEventListener(i,n,e,r?{passive:!0}:void 0)}const Mt=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ot,isStopPropagationForAgGrid:St,isEventSupported:Rt,getCtrlForEvent:jt,isElementInEventPath:_t,createEventPath:At,getEventPath:xt,addSafePassiveEventListener:Ft});
|
|
68
|
+
/**
|
|
69
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
70
|
+
* @version v29.0.0
|
|
71
|
+
* @link https://www.ag-grid.com/
|
|
72
|
+
* @license MIT
|
|
73
|
+
*/var Gt,Dt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,i){this.localEventService||(this.localEventService=new Q),this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService&&this.localEventService.removeEventListener(t,i)},t.prototype.dispatchEventAsync=function(t){var i=this;window.setTimeout((function(){return i.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,i,n){var e=this;if(!this.destroyed){t instanceof HTMLElement?Ft(this.getFrameworkOverrides(),t,i,n):t.addEventListener(i,n);var r=function(){return t.removeEventListener(i,n),e.destroyFunctions=e.destroyFunctions.filter((function(t){return t!==r})),null};return this.destroyFunctions.push(r),r}},t.prototype.addManagedPropertyListener=function(t,i){var n=this;if(!this.destroyed){this.gridOptionsService.addEventListener(t,i);var e=function(){return n.gridOptionsService.removeEventListener(t,i),n.destroyFunctions=n.destroyFunctions.filter((function(t){return t!==e})),null};return this.destroyFunctions.push(e),e}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,i){var n=this.createBean(t,i);return this.addDestroyFunc(this.destroyBean.bind(this,t,i)),n},t.prototype.createBean=function(t,i,n){return(i||this.getContext()).createBean(t,n)},t.prototype.destroyBean=function(t,i){return(i||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,i){var n=this;return t&&t.forEach((function(t){return n.destroyBean(t,i)})),[]},t.EVENT_DESTROYED="destroyed",Dt([z("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Dt([z("context")],t.prototype,"context",void 0),Dt([z("eventService")],t.prototype,"eventService",void 0),Dt([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Dt([z("localeService")],t.prototype,"localeService",void 0),Dt([z("environment")],t.prototype,"environment",void 0),Dt([B],t.prototype,"destroy",null),t}(),kt=(Gt=function(t,i){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Gt(t,i)},function(t,i){function n(){this.constructor=t}Gt(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),Tt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},It=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return kt(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},i.prototype.createColumnTree=function(t,i,n){var e=new c,r=this.extractExistingTreeData(n),o=r.existingCols,s=r.existingGroups;e.addExistingKeys(r.existingColKeys);var u=this.recursivelyCreateColumns(t,0,i,o,e,s),h=this.findMaxDept(u,0);this.logger.log("Number of levels for grouped columns is "+h);var a=this.balanceColumnTree(u,0,h,e);return this.columnUtils.depthFirstOriginalTreeSearch(null,a,(function(t,i){t instanceof rt&&t.setupExpandable(),t.setOriginalParent(i)})),{columnTree:a,treeDept:h}},i.prototype.extractExistingTreeData=function(t){var i=[],n=[],e=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof rt)n.push(t);else{var r=t;e.push(r.getId()),i.push(r)}})),{existingCols:i,existingGroups:n,existingColKeys:e}},i.prototype.createForAutoGroups=function(t,i){var n=this;return t.map((function(t){return n.createAutoGroupTreeItem(i,t)}))},i.prototype.createAutoGroupTreeItem=function(t,i){for(var n=i,e=this.findDepth(t)-1;e>=0;e--){var r=new rt(null,"FAKE_PATH_"+i.getId()+"}_"+e,!0,e);this.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},i.prototype.findDepth=function(t){for(var i=0,n=t;n&&n[0]&&n[0]instanceof rt;)i++,n=n[0].getChildren();return i},i.prototype.balanceColumnTree=function(t,i,n,e){for(var r=[],o=0;o<t.length;o++){var s=t[o];if(s instanceof rt){var u=s,h=this.balanceColumnTree(u.getChildren(),i+1,n,e);u.setChildren(h),r.push(u)}else{for(var c=void 0,a=void 0,f=n-1;f>=i;f--){var l=e.getUniqueKey(null,null),v=this.createMergedColGroupDef(null),d=new rt(v,l,!0,i);this.createBean(d),a&&a.setChildren([d]),a=d,c||(c=a)}if(c&&a){if(r.push(c),t.some((function(t){return t instanceof rt}))){a.setChildren([s]);continue}a.setChildren(t);break}r.push(s)}}return r},i.prototype.findMaxDept=function(t,i){for(var n=i,e=0;e<t.length;e++){var r=t[e];if(r instanceof rt){var o=this.findMaxDept(r.getChildren(),i+1);n<o&&(n=o)}}return n},i.prototype.recursivelyCreateColumns=function(t,i,n,e,r,o){var s=this;return(t||[]).map((function(t){return s.isColumnGroup(t)?s.createColumnGroup(n,t,i,e,r,o):s.createColumn(n,t,e,r)}))},i.prototype.createColumnGroup=function(t,i,n,e,r,o){var s,u=this.createMergedColGroupDef(i),h=r.getUniqueKey(u.groupId||null,null),c=this.findExistingGroup(i,o);c?((s=c).reset(u,n),at(o,c)):(s=new rt(u,h,!1,n),this.createBean(s));var a=this.recursivelyCreateColumns(u.children,n+1,t,e,r,o);return s.setChildren(a),s},i.prototype.createMergedColGroupDef=function(t){var i={};return Object.assign(i,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(i,t),i},i.prototype.createColumn=function(t,i,n,e){var r=this.mergeColDefs(i),o=this.findExistingColumn(i,n);if(n&&o&&at(n,o),o)o.setColDef(r,i),this.applyColumnState(o,r);else{var s=e.getUniqueKey(r.colId,r.field);o=new et(r,i,s,t),this.context.createBean(o)}return o},i.prototype.applyColumnState=function(t,i){var n=o(i.flex);if(void 0!==n&&t.setFlex(n),t.getFlex()<=0){var e=o(i.width);if(null!=e)t.setActualWidth(e);else{var r=t.getActualWidth();t.setActualWidth(r)}}void 0!==i.sort&&t.setSort("asc"==i.sort||"desc"==i.sort?i.sort:void 0);var u=o(i.sortIndex);void 0!==u&&t.setSortIndex(u);var h=s(i.hide);void 0!==h&&t.setVisible(!h),void 0!==i.pinned&&t.setPinned(i.pinned)},i.prototype.findExistingColumn=function(t,i){return(i||[]).find((function(i){var n=i.getUserProvidedColDef();if(!n)return!1;var e=null!=t.field;return null!=t.colId?i.getId()===t.colId:e?n.field===t.field:n===t}))},i.prototype.findExistingGroup=function(t,i){return i.find((function(i){return!(!i.getColGroupDef()||null==t.groupId||i.getId()!==t.groupId)}))},i.prototype.mergeColDefs=function(t){var i={},n=this.gridOptionsService.get("defaultColDef");m(i,n,!1,!0);var e=t.type;e||(e=n&&n.type),e&&this.assignColumnTypes(e,i),m(i,t,!1,!0);var r=this.gridOptionsService.get("autoGroupColumnDef"),o=this.gridOptionsService.isColumnsSortingCoupledToGroup();return t.rowGroup&&r&&o&&m(i,{sort:r.sort,initialSort:r.initialSort},!1,!0),i},i.prototype.assignColumnTypes=function(t,i){var n=[];if(t instanceof Array)t.some((function(t){return"string"!=typeof t}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=t;else{if("string"!=typeof t)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=t.split(",")}var e=Object.assign({},ot);a(this.gridOptionsService.get("columnTypes")||{},(function(t,i){t in e?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):e[t]=i})),n.forEach((function(t){var n=e[t.trim()];n?m(i,n,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},i.prototype.isColumnGroup=function(t){return void 0!==t.children},Tt([z("columnUtils")],i.prototype,"columnUtils",void 0),Tt([(n=0,e=K("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Tt([W("columnFactory")],i);var n,e}(Pt),Et=function(){function t(){}return t.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0},t.ALL_PROPERTIES=Object.keys(t.ColDefPropertyMap),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Nt=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t}(),Ht=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Lt=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Ht(arguments[i]));return t},Bt=function(){function t(){}return t.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],t.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter"],t.FUNCTION_PROPERTIES=Lt(t.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupOrderComparator","rowDragText","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],t.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"]),t.ALL_PROPERTIES=Lt(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES,t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Wt=function(){return Wt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Wt.apply(this,arguments)},zt=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Vt=function(){function t(){}return t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.getCoercionLookup=function(){var i={};return function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(zt(arguments[i]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.FUNCTION_PROPERTIES,t.EVENT_CALLBACKS).forEach((function(t){return i[t]="none"})),t.BOOLEAN_PROPERTIES.forEach((function(t){return i[t]="boolean"})),t.NUMBER_PROPERTIES.forEach((function(t){return i[t]="number"})),i},t.getValue=function(i,n){var e=t.coercionLookup[i];if(e){var r=n;switch(e){case"number":r=t.toNumber(n);break;case"boolean":r=t.toBoolean(n);break;case"none":"groupAggFiltering"===i&&"function"!=typeof n&&(r=t.toBoolean(n))}return r}},t.getGridOptionKeys=function(i,n){return Object.keys(n?t.coercionLookup:i)},t.copyAttributesToGridOptions=function(i,n,e){void 0===e&&(e=!1),"object"!=typeof i&&(i={});var r=i;return t.getGridOptionKeys(n,e).forEach((function(i){var e=n[i];if(void 0!==e){var o=t.getValue(i,e);void 0!==o&&(r[i]=o)}})),i},t.processOnChange=function(i,n){if(i&&0!==Object.keys(i).length){var e=Wt({},i);e.autoGroupColumnDef&&(n.setAutoGroupColumnDef(e.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete e.autoGroupColumnDef),e.defaultColDef&&(n.setDefaultColDef(e.defaultColDef.currentValue,"gridOptionsChanged"),delete e.defaultColDef),e.columnDefs&&(n.setColumnDefs(e.columnDefs.currentValue,"gridOptionsChanged"),delete e.columnDefs),Object.keys(e).forEach((function(i){var r=i,o=t.getValue(r,e[r].currentValue);n.__setProperty(r,o)}));var r={type:Nt.EVENT_COMPONENT_STATE_CHANGED};a(i,(function(t,i){r[t]=i})),n.dispatchEvent(r)}},t.toBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t&&("TRUE"===t.toUpperCase()||""==t)},t.toNumber=function(t){return"number"==typeof t?t:"string"==typeof t?Number(t):void 0},t.EVENTS=u(Nt),t.EXCLUDED_INTERNAL_EVENTS=[Nt.EVENT_SCROLLBAR_WIDTH_CHANGED,Nt.EVENT_CHECKBOX_CHANGED,Nt.EVENT_HEIGHT_SCALE_CHANGED,Nt.EVENT_BODY_HEIGHT_CHANGED,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,Nt.EVENT_COLUMN_HOVER_CHANGED,Nt.EVENT_FLASH_CELLS,Nt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Nt.EVENT_DISPLAYED_ROWS_CHANGED,Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED,Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Nt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Nt.EVENT_POPUP_TO_FRONT,Nt.EVENT_KEYBOARD_FOCUS,Nt.EVENT_MOUSE_FOCUS,Nt.EVENT_STORE_UPDATED,Nt.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Nt.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Nt.EVENT_FILL_START,Nt.EVENT_FILL_END,Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,Nt.EVENT_FULL_WIDTH_ROW_FOCUSED,Nt.EVENT_HEADER_HEIGHT_CHANGED,Nt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],t.PUBLIC_EVENTS=t.EVENTS.filter((function(i){return!dt(t.EXCLUDED_INTERNAL_EVENTS,i)})),t.EVENT_CALLBACKS=t.EVENTS.map((function(i){return t.getCallbackForEvent(i)})),t.STRING_PROPERTIES=Bt.STRING_PROPERTIES,t.OBJECT_PROPERTIES=Bt.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=Bt.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=Bt.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=Bt.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=Bt.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=Bt.ALL_PROPERTIES,t.ALL_PROPERTIES_SET=new Set(Bt.ALL_PROPERTIES),t.coercionLookup=t.getCoercionLookup(),t}();
|
|
74
|
+
/**
|
|
75
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
76
|
+
* @version v29.0.0
|
|
77
|
+
* @link https://www.ag-grid.com/
|
|
78
|
+
* @license MIT
|
|
79
|
+
*/
|
|
80
|
+
function Ut(t,i,n){var e={},r=t.filter((function(t){return!i.some((function(i){return i===t}))}));return r.length>0&&r.forEach((function(t){return e[t]=Kt(t,n)})),e}function Kt(t,i,n,e){var r=e?Jt:qt,o=i.map((function(i){return{value:i,relevance:r(t.toLowerCase(),i.toLocaleLowerCase())}}));return o.sort((function(t,i){return i.relevance-t.relevance})),n&&(o=o.filter((function(t){return 0!==t.relevance}))),o.map((function(t){return t.value}))}function Yt(t){var i,n,e,r=t.toLowerCase(),o=new Array(r.length-1);for(i=n=0,e=o.length;n<=e;i=n+=1)o[i]=r.slice(i,i+2);return o}function qt(t,i){if(0===t.length&&0===i.length)return 0;var n,e,r=Yt(t),o=Yt(i),s=r.length+o.length,u=0;for(n=0,e=r.length;n<e;n++){var h,c=r[n],a=void 0;for(a=0,h=o.length;a<h;a++)c===o[a]&&u++}return u>0?2*u/s:0}function Jt(t,i){for(var n=t.replace(/\s/g,""),e=i.replace(/\s/g,""),r=0,o=-1,s=0;s<n.length;s++){var u=e.indexOf(n[s],o+1);-1!==u&&(r+=100-100*(o=u)/1e4*100)}return r}const Zt=Object.freeze({__proto__:null,fuzzyCheckStrings:Ut,fuzzySuggestions:Kt,get_bigrams:Yt,string_distances:qt,string_weighted_distances:Jt});
|
|
81
|
+
/**
|
|
82
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
83
|
+
* @version v29.0.0
|
|
84
|
+
* @link https://www.ag-grid.com/
|
|
85
|
+
* @license MIT
|
|
86
|
+
*/var $t=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qt=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Xt=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Qt(arguments[i]));return t};function ti(t,i,n,e){var r=n?"Please use '"+n+"' instead. ":"";R((function(){return console.warn("AG Grid: since v"+t+", '"+i+"' is deprecated. "+r+(null!=e?e:""))}),"Deprecated_"+i)}var ii=function(){function t(){this.deprecatedProperties={serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},suppressEnterpriseResetOnNewColumns:{version:"25",message:"Now that it is possible to dynamically change columns in the grid, this is no longer needed."},suppressColumnStateEvents:{version:"25",message:'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.'},defaultExportParams:{version:"25.2",message:"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`"},stopEditingWhenGridLosesFocus:{version:"25.2.2",newProp:"stopEditingWhenCellsLoseFocus",copyToNewProp:!0},applyColumnDefOrder:{version:"26",message:"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"},groupMultiAutoColumn:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"multipleColumns"},groupUseEntireRow:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"groupRows"},defaultGroupSortComparator:{version:"26",newProp:"initialGroupOrderComparator"},enableMultiRowDragging:{version:"26.1",newProp:"rowDragMultiRow",copyToNewProp:!0},colWidth:{version:"26.1",newProp:"defaultColDef.width"},minColWidth:{version:"26.1",newProp:"defaultColDef.minWidth"},maxColWidth:{version:"26.1",newProp:"defaultColDef.maxWidth"},reactUi:{version:"26.1",message:"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."},suppressCellSelection:{version:"27",newProp:"suppressCellFocus",copyToNewProp:!0},clipboardDeliminator:{version:"27.1",newProp:"clipboardDelimiter",copyToNewProp:!0},getRowNodeId:{version:"27.1",newProp:"getRowId",message:"The difference: if getRowId() is implemented then immutable data is enabled by default."},defaultGroupOrderComparator:{version:"27.2",newProp:"initialGroupOrderComparator"},groupRowAggNodes:{version:"27.2",newProp:"getGroupRowAgg"},postSort:{version:"27.2",newProp:"postSortRows"},isFullWidthCell:{version:"27.2",newProp:"isFullWidthRow"},localeTextFunc:{version:"27.2",newProp:"getLocaleText"},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideFilterAllLevels",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."}}}return t.prototype.pickOneWarning=function(t,i){console.warn("AG Grid: "+t+" and "+i+" do not work with each other, you need to pick one.")},t.prototype.init=function(){var t=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&("multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.isRowModelType("serverSide")&&console.warn("AG Grid: group selects children is NOT supported for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),this.gridOptionsService.isRowModelType("serverSide")){var i=function(t,i){return"AG Grid: '"+t+"' is not supported on the Server-Side Row Model."+(i?" Please use "+i+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(i("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&console.warn(i("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(i("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?X.assertRegistered(q.RangeSelectionModule,"enableRangeSelection"):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var n=function(i,n){return t.gridOptionsService.exists(i)&&X.assertRegistered(n,i)};n("sideBar",q.SideBarModule),n("statusBar",q.StatusBarModule),n("enableCharts",q.GridChartsModule),n("getMainMenuItems",q.MenuModule),n("getContextMenuItems",q.MenuModule),n("allowContextMenuWithControlKey",q.MenuModule),this.gridOptionsService.is("groupRowsSticky")&&(this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRowsSticky","groupHideOpenParents"),this.gridOptionsService.is("masterDetail")&&this.pickOneWarning("groupRowsSticky","masterDetail"),this.gridOptionsService.is("pagination")&&this.pickOneWarning("groupRowsSticky","pagination"))},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(i){var n=Object.getOwnPropertyNames(i),e=Xt(Et.ALL_PROPERTIES,Et.FRAMEWORK_PROPERTIES);t.checkProperties(n,e,e,"colDef","https://www.ag-grid.com/javascript-data-grid/column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),i=Xt(Bt.ALL_PROPERTIES,Bt.FRAMEWORK_PROPERTIES,Vt.EVENT_CALLBACKS),n=Xt(i,["api","columnApi"],Object.keys(this.deprecatedProperties));this.checkProperties(t,n,i,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,i,n,e,r){var o=Ut(t,i,n);a(o,(function(t,i){console.warn("AG Grid: invalid "+e+" property '"+t+"' did you mean any of these: "+i.slice(0,8).join(", "))})),Object.keys(o).length>0&&console.warn("AG Grid: to see all the valid "+e+" properties please check: "+r)},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;if(Object.entries(this.deprecatedProperties).map((function(i){var n,e=Qt(i,2),r=e[0],o=e[1],s=t[r];s&&(ti(o.version,r,o.newProp,o.message),o.copyToNewProp&&o.newProp&&null==t[o.newProp]&&(t[o.newProp]=null!==(n=o.newPropValue)&&void 0!==n?n:s))})),t.groupSuppressAutoColumn){var i=t.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+i+" = 'custom'`"),t[i]="custom"}t.immutableData&&(t.getRowId?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`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),t.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),t.suppressServerSideInfiniteScroll="partial"!==t.serverSideStoreType)},t.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},$t([z("gridOptions")],t.prototype,"gridOptions",void 0),$t([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),$t([L],t.prototype,"init",null),$t([W("gridOptionsValidator")],t)}();function ni(t,i){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===t}
|
|
87
|
+
/**
|
|
88
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
89
|
+
* @version v29.0.0
|
|
90
|
+
* @link https://www.ag-grid.com/
|
|
91
|
+
* @license MIT
|
|
92
|
+
*/
|
|
93
|
+
var ei=function(){function t(t,i,n,e){this.displayedChildren=[],this.localEventService=new Q,this.groupId=i,this.partId=n,this.providedColumnGroup=t,this.pinned=e}return t.createUniqueId=function(t,i){return t+"_"+i},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){this.parent=t},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.partId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every((function(t){return t.isMoving()}))},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(i){i instanceof t&&i.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var i=ut(this.displayedChildren).getLeft();this.setLeft(i)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(i){this.oldLeft=i,this.left!==i&&(this.left=i,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getPartId=function(){return this.partId},t.prototype.isChildInThisGroupDeepSearch=function(i){var n=!1;return this.children.forEach((function(e){i===e&&(n=!0),e instanceof t&&e.isChildInThisGroupDeepSearch(i)&&(n=!0)})),n},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(i){t+=i.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(i){i.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(i){t+=i.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(i){this.displayedChildren.forEach((function(n){n instanceof et?i.push(n):n instanceof t&&n.addDisplayedLeafColumns(i)}))},t.prototype.addLeafColumns=function(i){this.children.forEach((function(n){n instanceof et?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return ti("27","getOriginalColumnGroup","getProvidedColumnGroup"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var i=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!n||!n.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(e){if(!(e instanceof t)||e.displayedChildren&&e.displayedChildren.length)switch(e.getColumnGroupShow()){case"open":n.providedColumnGroup.isExpanded()&&i.displayedChildren.push(e);break;case"closed":n.providedColumnGroup.isExpanded()||i.displayedChildren.push(e);break;default:i.displayedChildren.push(e)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),ri=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var i,n=this.existingIds[t];return this.existingIds[t]=i="number"!=typeof n?0:n+1,i},t}(),oi=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),si=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ui="ag-Grid-AutoColumn",hi=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oi(i,t),i.prototype.createAutoGroupColumns=function(t,i){var n=this,e=[],r=this.gridOptionsService.isTreeData(),o=this.gridOptionsService.isGroupMultiAutoColumn();return r&&o&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),o=!1),o?i.forEach((function(i,r){e.push(n.createOneAutoGroupColumn(t,i,r))})):e.push(this.createOneAutoGroupColumn(t)),e},i.prototype.createOneAutoGroupColumn=function(t,i,e){var r,o=this.generateDefaultColDef(i);r=i?ui+"-"+i.getId():ui,m(o,this.gridOptionsService.get("autoGroupColumnDef")),(o=this.columnFactory.mergeColDefs(o)).colId=r,this.gridOptionsService.isTreeData()||n(o.field)&&n(o.valueGetter)&&n(o.filterValueGetter)&&(o.filter=!1),e&&e>0&&(o.headerCheckboxSelection=!1);var s=t.find((function(t){return t.getId()==r}));if(s)return s.setColDef(o,null),this.columnFactory.applyColumnState(s,o),s;var u=new et(o,null,r,!0);return this.context.createBean(u),u},i.prototype.generateDefaultColDef=function(t){var i=this.gridOptionsService.get("autoGroupColumnDef"),n={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(i&&(i.cellRenderer||i.cellRendererFramework||i.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),t){var e=t.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:e.headerValueGetter}),(e.cellRenderer||e.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:e.cellRenderer,innerRendererFramework:e.cellRendererFramework,innerRendererParams:e.cellRendererParams}}),n.showRowGroup=t.getColId()}else n.showRowGroup=!0;return n},si([z("columnModel")],i.prototype,"columnModel",void 0),si([z("columnFactory")],i.prototype,"columnFactory",void 0),si([W("autoGroupColService")],i)}(Pt),ci=/[&<>"']/g,ai={"&":"&","<":"<",">":">",'"':""","'":"'"};function fi(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function li(t,i){if(null==t)return null;var n=t.toString().toString();return i?n:n.replace(ci,(function(t){return ai[t]}))}function vi(t){return t&&null!=t?t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" "):null}const di=Object.freeze({__proto__:null,utf8_encode:function(t){var i=String.fromCharCode;function n(t,n){return i(t>>n&63|128)}function e(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(function(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}(t),e=i(t>>12&15|224),e+=n(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=n(t,12),e+=n(t,6)),e+i(63&t|128)}for(var r=function(t){var i=[];if(!t)return[];for(var n,e,r=t.length,o=0;o<r;)(n=t.charCodeAt(o++))>=55296&&n<=56319&&o<r?56320==(64512&(e=t.charCodeAt(o++)))?i.push(((1023&n)<<10)+(1023&e)+65536):(i.push(n),o--):i.push(n);return i}(t),o=r.length,s=-1,u="";++s<o;)u+=e(r[s]);return u},capitalise:fi,escapeString:li,camelCaseToHumanText:vi});
|
|
94
|
+
/**
|
|
95
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
96
|
+
* @version v29.0.0
|
|
97
|
+
* @link https://www.ag-grid.com/
|
|
98
|
+
* @license MIT
|
|
99
|
+
*/function pi(t){var i=new Map;return t.forEach((function(t){return i.set(t[0],t[1])})),i}const gi=Object.freeze({__proto__:null,convertToMap:pi,mapById:function(t,i){var n=new Map;return t.forEach((function(t){return n.set(i(t),t)})),n},keys:function(t){var i=[];return t.forEach((function(t,n){return i.push(n)})),i}});
|
|
100
|
+
/**
|
|
101
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
102
|
+
* @version v29.0.0
|
|
103
|
+
* @link https://www.ag-grid.com/
|
|
104
|
+
* @license MIT
|
|
105
|
+
*/var bi=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mi=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wi=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},yi=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Oi=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(yi(arguments[i]));return t},Si=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.primaryHeaderRowCount=0,i.secondaryHeaderRowCount=0,i.gridHeaderRowCount=0,i.displayedColumnsLeft=[],i.displayedColumnsRight=[],i.displayedColumnsCenter=[],i.displayedColumns=[],i.displayedColumnsAndGroupsMap={},i.viewportColumns=[],i.viewportColumnsHash="",i.headerViewportColumns=[],i.viewportColumnsCenter=[],i.headerViewportColumnsCenter=[],i.autoHeightActiveAtLeastOnce=!1,i.rowGroupColumns=[],i.valueColumns=[],i.pivotColumns=[],i.ready=!1,i.autoGroupsNeedBuilding=!1,i.forceRecreateAutoGroups=!1,i.pivotMode=!1,i.bodyWidth=0,i.leftWidth=0,i.rightWidth=0,i.bodyWidthDirty=!0,i.flexColsCalculatedAtLestOnce=!1,i}return bi(r,t),r.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var i=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(i)&&(this.pivotMode=i),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener("groupDisplayType",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("defaultColDef",(function(i){return t.onDefaultColDefChanged(i.source)}))},r.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},r.prototype.onDefaultColDefChanged=function(t){void 0===t&&(t="api"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,t)},r.prototype.setColumnDefs=function(t,i){void 0===i&&(i="api");var n=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(n,i)},r.prototype.destroyOldColumns=function(t,i){var n={};if(t){this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){n[t.getInstanceId()]=t})),i&&this.columnUtils.depthFirstOriginalTreeSearch(null,i,(function(t){n[t.getInstanceId()]=null}));var e=Object.values(n).filter((function(t){return null!=t}));this.destroyBeans(e)}},r.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},r.prototype.createColumnsFromColumnDefs=function(t,i){var n=this;void 0===i&&(i="api");var e=t?this.compareColumnStatesAndDispatchEvents(i):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,o=this.columnFactory.createColumnTree(this.columnDefs,!0,this.primaryColumnTree);this.destroyOldColumns(this.primaryColumnTree,o.columnTree),this.primaryColumnTree=o.columnTree,this.primaryHeaderRowCount=o.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return n.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(i,r),this.extractPivotColumns(i,r),this.extractValueColumns(i,r),this.ready=!0,(this.gridColsArePrimary||void 0===this.gridColsArePrimary)&&(this.updateGridColumns(),t&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(i),this.checkViewportColumns()),this.dispatchEverythingChanged(i),e&&e(),this.dispatchNewColumnsLoaded()},r.prototype.dispatchNewColumnsLoaded=function(){this.eventService.dispatchEvent({type:Nt.EVENT_NEW_COLUMNS_LOADED})},r.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api"),this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_EVERYTHING_CHANGED,source:t})},r.prototype.orderGridColumnsLikePrimary=function(){var t=this,i=this.primaryColumns;i&&(this.gridColumns.sort((function(n,e){var r=i.indexOf(n),o=i.indexOf(e),s=r>=0,u=o>=0;return s&&u?r-o:s?1:u?-1:t.gridColumns.indexOf(n)-t.gridColumns.indexOf(e)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},r.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},r.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},r.prototype.getDisplayedColumnsStartingAt=function(t){for(var i=t,n=[];null!=i;)n.push(i),i=this.getDisplayedColAfter(i);return n},r.prototype.checkViewportColumns=function(){null!=this.displayedColumnsCenter&&this.extractViewport()&&this.eventService.dispatchEvent({type:Nt.EVENT_VIRTUAL_COLUMNS_CHANGED})},r.prototype.setViewportPosition=function(t,i){(t!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},r.prototype.isPivotMode=function(){return this.pivotMode},r.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsService.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},r.prototype.setPivotMode=function(t,i){void 0===i&&(i="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i),this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_PIVOT_MODE_CHANGED}))},r.prototype.getSecondaryPivotColumn=function(t,i){if(n(this.secondaryColumns))return null;var e=this.getPrimaryColumn(i),r=null;return this.secondaryColumns.forEach((function(i){var n=i.getColDef().pivotKeys,o=i.getColDef().pivotValueColumn;ht(n,t)&&o===e&&(r=i)})),r},r.prototype.setBeans=function(t){this.logger=t.create("columnModel")},r.prototype.setFirstRightAndLastLeftPinned=function(t){var i,n;this.gridOptionsService.is("enableRtl")?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ut(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?ut(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(e){e.setLastLeftPinned(e===i,t),e.setFirstRightPinned(e===n,t)}))},r.prototype.autoSizeColumns=function(t){var i=this,n=t.columns,e=t.skipHeader,r=t.skipHeaderGroups,o=t.stopAtGroup,s=t.source,u=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var h=[],c=-1,a=null!=e?e:this.gridOptionsService.is("skipHeaderOnAutoSize"),f=null!=r?r:a;0!==c;)c=0,this.actionOnGridColumns(n,(function(t){if(h.indexOf(t)>=0)return!1;var n=i.autoWidthCalculator.getPreferredWidthForColumn(t,a);if(n>0){var e=i.normaliseColumnWidth(t,n);t.setActualWidth(e,u),h.push(t),c++}return!0}),u);f||this.autoSizeColumnGroupsByColumns(n,o),this.dispatchColumnResizedEvent(h,!0,"autosizeColumns")},r.prototype.dispatchColumnResizedEvent=function(t,i,n,e){void 0===e&&(e=null),t&&t.length&&this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:e,finished:i,source:n})},r.prototype.dispatchColumnChangedEvent=function(t,i,n){this.eventService.dispatchEvent({type:t,columns:i,column:i&&1==i.length?i[0]:null,source:n})},r.prototype.dispatchColumnMovedEvent=function(t){var i=t.movedColumns;this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_MOVED,columns:i,column:i&&1===i.length?i[0]:null,toIndex:t.toIndex,finished:t.finished,source:t.source})},r.prototype.dispatchColumnPinnedEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.getPinned()}));this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_PINNED,pinned:null!=e?e:null,columns:t,column:n,source:i})}},r.prototype.dispatchColumnVisibleEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.isVisible()}));this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_VISIBLE,visible:e,columns:t,column:n,source:i})}},r.prototype.autoSizeColumn=function(t,i,n){void 0===n&&(n="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:i,skipHeaderGroups:!0,source:n})},r.prototype.autoSizeColumnGroupsByColumns=function(t,i){var n,e,r,o,s,u=new Set;this.getGridColumns(t).forEach((function(t){for(var n=t.getParent();n&&n!=i;)n.isPadding()||u.add(n),n=n.getParent()}));try{for(var h=wi(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var f=(r=void 0,wi(this.ctrlsService.getHeaderRowContainerCtrls())),l=f.next();!l.done&&!(s=l.value.getHeaderCtrlForColumn(a));l=f.next());}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return[]},r.prototype.autoSizeAllColumns=function(t,i){void 0===i&&(i="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:i})},r.prototype.getColumnsFromTree=function(t){var i=[],n=function(t){for(var e=0;e<t.length;e++){var r=t[e];r instanceof et?i.push(r):r instanceof rt&&n(r.getChildren())}};return n(t),i},r.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},r.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},r.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},r.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},r.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},r.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},r.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},r.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},r.prototype.getViewportColumns=function(){return this.viewportColumns},r.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},r.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},r.prototype.getDisplayedColumnsForRow=function(t,i,n,e){for(var r,o=[],s=null,u=function(u){var h,c=i[u],a=i.length-u,f=Math.min(c.getColSpan(t),a),l=[c];if(f>1){for(var v=f-1,d=1;d<=v;d++)l.push(i[u+d]);u+=v}n?(h=!1,l.forEach((function(t){n(t)&&(h=!0)}))):h=!0,h&&(0===o.length&&s&&e&&e(c)&&o.push(s),o.push(c)),s=c,r=u},h=0;h<i.length;h++)u(h),h=r;return o},r.prototype.getViewportCenterColumnsForRow=function(t){var n=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var e=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,e,(function(t){var e=t.getLeft();return i(e)&&e>n.viewportLeft}))},r.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},r.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},r.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var i=t.getLeft()||0,n=i+t.getActualWidth(),e=this.viewportLeft-200,r=this.viewportRight+200;return!(i<e&&n<e||i>r&&n>r)},r.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},r.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},r.prototype.updatePrimaryColumnList=function(t,i,n,r,o,s){var u=this;if(void 0===s&&(s="api"),t&&!e(t)){var h=!1;t.forEach((function(t){var e=u.getPrimaryColumn(t);if(e){if(n){if(i.indexOf(e)>=0)return;i.push(e)}else{if(i.indexOf(e)<0)return;at(i,e)}r(e),h=!0}})),h&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.eventService.dispatchEvent({type:o,columns:i,column:1===i.length?i[0]:null,source:s}))}},r.prototype.setRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),i)},r.prototype.setRowGroupActive=function(t,i,n){t!==i.isRowGroupActive()&&(i.setRowGroupActive(t,n),t&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(i,!1,n),t||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(i,!0,n))},r.prototype.addRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.addRowGroupColumns([t],i)},r.prototype.addRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.removeRowGroupColumns([t],i)},r.prototype.addPivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,i)}),Nt.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.setPivotColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.pivotColumns,Nt.EVENT_COLUMN_PIVOT_CHANGED,(function(t,n){n.setPivotActive(t,i)}),i)},r.prototype.addPivotColumn=function(t,i){void 0===i&&(i="api"),this.addPivotColumns([t],i)},r.prototype.removePivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,i)}),Nt.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.removePivotColumn=function(t,i){void 0===i&&(i="api"),this.removePivotColumns([t],i)},r.prototype.setPrimaryColumnList=function(t,n,e,r,o){var s=this;n.length=0,i(t)&&t.forEach((function(t){var i=s.getPrimaryColumn(t);i&&n.push(i)})),(this.primaryColumns||[]).forEach((function(t){var i=n.indexOf(t)>=0;r(i,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.dispatchColumnChangedEvent(e,n,o)},r.prototype.setValueColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.valueColumns,Nt.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),i)},r.prototype.setValueActive=function(t,i,n){if(t!==i.isValueActive()&&(i.setValueActive(t,n),t&&!i.getAggFunc())){var e=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(e)}},r.prototype.addValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),Nt.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.addValueColumn=function(t,i){void 0===i&&(i="api"),t&&this.addValueColumns([t],i)},r.prototype.removeValueColumn=function(t,i){void 0===i&&(i="api"),this.removeValueColumns([t],i)},r.prototype.removeValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),Nt.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.normaliseColumnWidth=function(t,n){var e=t.getMinWidth();i(e)&&n<e&&(n=e);var r=t.getMaxWidth();return i(r)&&t.isGreaterThanMax(n)&&(n=r),n},r.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},r.prototype.setColumnWidths=function(t,i,n,e){var r=this;void 0===e&&(e="api");var o=[];t.forEach((function(t){var n=r.getPrimaryOrGridColumn(t.key);if(n&&(o.push({width:t.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsService.get("colResizeDefault")&&(i=!i),i)){var e=r.getDisplayedColAfter(n);if(!e)return;var s=n.getActualWidth()-t.newWidth,u=e.getActualWidth()+s;o.push({width:u,ratios:[1],columns:[e]})}})),0!==o.length&&this.resizeColumnSets({resizeSets:o,finished:n,source:e})},r.prototype.checkMinAndMaxWidthsForSet=function(t){var n=t.width,e=0,r=0,o=!0;return t.columns.forEach((function(t){var n=t.getMinWidth();e+=n||0;var s=t.getMaxWidth();i(s)&&s>0?r+=s:o=!1})),n>=e&&(!o||n<=r)},r.prototype.resizeColumnSets=function(t){var n=this,e=t.resizeSets,r=t.finished,o=t.source;if(!e||e.every((function(t){return n.checkMinAndMaxWidthsForSet(t)}))){var s=[],u=[];e.forEach((function(t){var n=t.width,e=t.columns,r=t.ratios,h={},c={};e.forEach((function(t){return u.push(t)}));for(var a=!0,f=0,l=function(){if(++f>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";a=!1;var t=[],o=0,s=n;e.forEach((function(i,n){c[i.getId()]?s-=h[i.getId()]:(t.push(i),o+=r[n])}));var u=1/o;t.forEach((function(e,o){var f;o===t.length-1?f=s:(f=Math.round(r[o]*n*u),s-=f);var l=e.getMinWidth(),v=e.getMaxWidth();i(l)&&f<l?(f=l,c[e.getId()]=!0,a=!0):i(v)&&v>0&&f>v&&(f=v,c[e.getId()]=!0,a=!0),h[e.getId()]=f}))};a&&"break"!==l(););e.forEach((function(t){var i=h[t.getId()];t.getActualWidth()!==i&&(t.setActualWidth(i,o),s.push(t))}))}));var h=s.length>0,c=[];h&&(c=this.refreshFlexedColumns({resizingCols:u,skipSetLeft:!0}),this.setLeftValues(o),this.updateBodyWidths(),this.checkViewportColumns());var a=u.concat(c);(h||r)&&this.dispatchColumnResizedEvent(a,r,o,c)}else r&&this.dispatchColumnResizedEvent(e&&e.length>0?e[0].columns:null,r,o)},r.prototype.setColumnAggFunc=function(t,i,n){if(void 0===n&&(n="api"),t){var e=this.getPrimaryColumn(t);e&&(e.setAggFunc(i),this.dispatchColumnChangedEvent(Nt.EVENT_COLUMN_VALUE_CHANGED,[e],n))}},r.prototype.moveRowGroupColumn=function(t,i,n){void 0===n&&(n="api");var e=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(i,0,e),this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n})},r.prototype.moveColumns=function(t,i,n,e){if(void 0===n&&(n="api"),void 0===e&&(e=!0),this.columnAnimationService.start(),i>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var r=this.getGridColumns(t);!this.doesMovePassRules(r,i)||(vt(this.gridColumns,r,i),this.updateDisplayedColumns(n),this.dispatchColumnMovedEvent({movedColumns:r,source:n,toIndex:i,finished:e}),this.columnAnimationService.finish())},r.prototype.doesMovePassRules=function(t,i){var n=this.getProposedColumnOrder(t,i);return this.doesOrderPassRules(n)},r.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},r.prototype.getProposedColumnOrder=function(t,i){var n=this.gridColumns.slice();return vt(n,t,i),n},r.prototype.sortColumnsLikeGridColumns=function(t){var i=this;!t||t.length<=1||t.filter((function(t){return i.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,n){return i.gridColumns.indexOf(t)-i.gridColumns.indexOf(n)}))},r.prototype.doesMovePassLockedPositions=function(t){var i=0,n=!0;return t.forEach((function(t){var e,r=(e=t.getColDef().lockPosition)?!0===e||"left"===e?0:2:1;r<i&&(n=!1),i=r})),n},r.prototype.doesMovePassMarryChildren=function(t){var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof rt){var e=n,r=e.getColGroupDef();if(r&&r.marryChildren){var o=[];e.getLeafColumns().forEach((function(i){var n=t.indexOf(i);o.push(n)})),Math.max.apply(Math,o)-Math.min.apply(Math,o)>e.getLeafColumns().length-1&&(i=!1)}}})),i},r.prototype.moveColumn=function(t,i,n){void 0===n&&(n="api"),this.moveColumns([t],i,n)},r.prototype.moveColumnByIndex=function(t,i,n){void 0===n&&(n="api"),this.moveColumn(this.gridColumns[t],i,n)},r.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort((function(i,n){return t.gridColumns.indexOf(i)-t.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&i.sort((function(i,n){return t.lastPrimaryOrder.indexOf(i)-t.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},r.prototype.getBodyContainerWidth=function(){return this.bodyWidth},r.prototype.getContainerWidth=function(t){switch(t){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},r.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==t,(this.bodyWidth!==t||this.leftWidth!==i||this.rightWidth!==n)&&(this.bodyWidth=t,this.leftWidth=i,this.rightWidth=n,this.eventService.dispatchEvent({type:Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED}))},r.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},r.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},r.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},r.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},r.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},r.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},r.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},r.prototype.getDisplayedColumns=function(t){switch(t){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},r.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},r.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},r.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},r.prototype.getAllGridColumns=function(){return this.gridColumns},r.prototype.isEmpty=function(){return e(this.gridColumns)},r.prototype.isRowGroupEmpty=function(){return e(this.rowGroupColumns)},r.prototype.setColumnVisible=function(t,i,n){void 0===n&&(n="api"),this.setColumnsVisible([t],i,n)},r.prototype.setColumnsVisible=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!i}}))},n)},r.prototype.setColumnPinned=function(t,i,n){void 0===n&&(n="api"),t&&this.setColumnsPinned([t],i,n)},r.prototype.setColumnsPinned=function(t,i,n){var e;void 0===n&&(n="api"),this.gridOptionsService.isDomLayout("print")?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),e=!0===i||"left"===i?"left":"right"===i?"right":null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==e&&(t.setPinned(e),!0)}),n,(function(){return{type:Nt.EVENT_COLUMN_PINNED,pinned:e,column:null,columns:null,source:n}})),this.columnAnimationService.finish())},r.prototype.actionOnGridColumns=function(t,n,r,o){var s=this;if(!e(t)){var u=[];if(t.forEach((function(t){var i=s.getGridColumn(t);i&&!1!==n(i)&&u.push(i)})),u.length&&(this.updateDisplayedColumns(r),i(o)&&o)){var h=o();h.columns=u,h.column=1===u.length?u[0]:null,this.eventService.dispatchEvent(h)}}},r.prototype.getDisplayedColBefore=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n>0?i[n-1]:null},r.prototype.getDisplayedColAfter=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n<i.length-1?i[n+1]:null},r.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},r.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},r.prototype.getDisplayedGroupAtDirection=function(t,i){for(var n=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),e=t.getDisplayedLeafColumns(),r="After"===i?ut(e):e[0],o="getDisplayedCol"+i;;){var s=this[o](r);if(!s)return null;var u=this.getColumnGroupAtLevel(s,n);if(u!==t)return u}},r.prototype.getColumnGroupAtLevel=function(t,i){for(var n=t.getParent();!(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=i);)n=n.getParent();return n},r.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},r.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},r.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,Oi([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},r.prototype.createStateItemFromColumn=function(t){var i=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,n=t.isPivotActive()?this.pivotColumns.indexOf(t):null,e=t.isValueActive()?t.getAggFunc():null,r=null!=t.getSort()?t.getSort():null,o=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:r,sortIndex:o,aggFunc:e,rowGroup:t.isRowGroupActive(),rowGroupIndex:i,pivot:t.isPivotActive(),pivotIndex:n,flex:s}},r.prototype.getColumnState=function(){if(n(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},r.prototype.orderColumnStateList=function(t){var i=pi(this.gridColumns.map((function(t,i){return[t.getColId(),i]})));t.sort((function(t,n){return(i.has(t.colId)?i.get(t.colId):-1)-(i.has(n.colId)?i.get(n.colId):-1)}))},r.prototype.resetColumnState=function(t){void 0===t&&(t="api");var i=this.getColumnsFromTree(this.primaryColumnTree),e=[],r=1e3,o=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),i&&(s=s.concat(i)),s.forEach((function(t){var i=function(t,i){return null!=t?t:null!=i?i:null},s=t.getColDef(),u=i(s.sort,s.initialSort),h=i(s.sortIndex,s.initialSortIndex),c=i(s.hide,s.initialHide),a=i(s.pinned,s.initialPinned),f=i(s.width,s.initialWidth),l=i(s.flex,s.initialFlex),v=i(s.rowGroupIndex,s.initialRowGroupIndex),d=i(s.rowGroup,s.initialRowGroup);null!=v||null!=d&&0!=d||(v=null,d=null);var p=i(s.pivotIndex,s.initialPivotIndex),g=i(s.pivot,s.initialPivot);null!=p||null!=g&&0!=g||(p=null,g=null);var b=i(s.aggFunc,s.initialAggFunc),m={colId:t.getColId(),sort:u,sortIndex:h,hide:c,pinned:a,width:f,flex:l,rowGroup:d,rowGroupIndex:v,pivot:g,pivotIndex:p,aggFunc:b};n(v)&&d&&(m.rowGroupIndex=r++),n(p)&&g&&(m.pivotIndex=o++),e.push(m)})),this.applyColumnState({state:e,applyOrder:!0},t)},r.prototype.applyColumnState=function(t,n){var r=this;if(e(this.primaryColumns))return!1;if(t&&t.state&&!t.state.forEach)return 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."),!1;var o=function(i,e,o){var s=r.compareColumnStatesAndDispatchEvents(n);r.autoGroupsNeedBuilding=!0;var u=e.slice(),h={},c={},a=[],f=[],l=0,v=r.rowGroupColumns.slice(),d=r.pivotColumns.slice();i.forEach((function(i){var e=i.colId||"";if(e.startsWith(ui))return a.push(i),void f.push(i);var s=o(e);s?(r.syncColumnWithStateItem(s,i,t.defaultState,h,c,!1,n),at(u,s)):(f.push(i),l+=1)}));var p=function(i){return r.syncColumnWithStateItem(i,null,t.defaultState,h,c,!1,n)};u.forEach(p);var g=function(t,i,n,e){var r=t[n.getId()],o=t[e.getId()],s=null!=r,u=null!=o;if(s&&u)return r-o;if(s)return-1;if(u)return 1;var h=i.indexOf(n),c=i.indexOf(e),a=h>=0;return a&&c>=0?h-c:a?-1:1};r.rowGroupColumns.sort(g.bind(r,h,v)),r.pivotColumns.sort(g.bind(r,c,d)),r.updateGridColumns();var b=r.groupAutoColumns?r.groupAutoColumns.slice():[];return a.forEach((function(i){var e=r.getAutoColumn(i.colId);at(b,e),r.syncColumnWithStateItem(e,i,t.defaultState,null,null,!0,n)})),b.forEach(p),r.applyOrderAfterApplyState(t),r.updateDisplayedColumns(n),r.dispatchEverythingChanged(n),s(),{unmatchedAndAutoStates:f,unmatchedCount:l}};this.columnAnimationService.start();var s=o(t.state||[],this.primaryColumns||[],(function(t){return r.getPrimaryColumn(t)})),u=s.unmatchedAndAutoStates,h=s.unmatchedCount;return(u.length>0||i(t.defaultState))&&(h=o(u,this.secondaryColumns||[],(function(t){return r.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===h},r.prototype.applyOrderAfterApplyState=function(t){var i=this;if(t.applyOrder&&t.state){var n=[],e={};t.state.forEach((function(t){if(t.colId&&!e[t.colId]){var r=i.gridColumnsMap[t.colId];r&&(n.push(r),e[t.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(t){var i=t.getColId();null!=e[i]||(i.startsWith(ui)?lt(n,t,r++):n.push(t))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},r.prototype.compareColumnStatesAndDispatchEvents=function(t){var i=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},e=this.getColumnState(),r={};return e.forEach((function(t){r[t.colId]=t})),function(){var o=i.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,e,r,o){ht(e.map(o),r.map(o))||i.eventService.dispatchEvent({type:n,columns:r,column:1===r.length?r[0]:null,source:t})},u=function(t){var i=[];return o.forEach((function(n){var e=r[n.getColId()];e&&t(e,n)&&i.push(n)})),i},h=function(t){return t.getColId()};s(Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,i.rowGroupColumns,h),s(Nt.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,i.pivotColumns,h),u((function(t,i){var n=null!=t.aggFunc,e=n!=i.isValueActive(),r=n&&t.aggFunc!=i.getAggFunc();return e||r})).length>0&&i.dispatchColumnChangedEvent(Nt.EVENT_COLUMN_VALUE_CHANGED,i.valueColumns,t),i.dispatchColumnResizedEvent(u((function(t,i){return t.width!=i.getActualWidth()})),!0,t),i.dispatchColumnPinnedEvent(u((function(t,i){return t.pinned!=i.getPinned()})),t),i.dispatchColumnVisibleEvent(u((function(t,i){return t.hide==i.isVisible()})),t),u((function(t,i){return t.sort!=i.getSort()||t.sortIndex!=i.getSortIndex()})).length>0&&i.sortController.dispatchSortChangedEvents(t),i.normaliseColumnMovedEventForColumnState(e,t)}},r.prototype.getCommonValue=function(t,i){if(t&&0!=t.length){for(var n=i(t[0]),e=1;e<t.length;e++)if(n!==i(t[e]))return;return n}},r.prototype.normaliseColumnMovedEventForColumnState=function(t,i){var n=this,e=this.getColumnState(),r={};e.forEach((function(t){return r[t.colId]=t}));var o={};t.forEach((function(t){r[t.colId]&&(o[t.colId]=!0)}));var s=t.filter((function(t){return o[t.colId]})),u=e.filter((function(t){return o[t.colId]})),h=[];u.forEach((function(t,i){var e=s&&s[i];if(e&&e.colId!==t.colId){var r=n.getGridColumn(e.colId);r&&h.push(r)}})),h.length&&this.dispatchColumnMovedEvent({movedColumns:h,source:i,finished:!0})},r.prototype.syncColumnWithStateItem=function(t,n,e,r,o,s,u){if(t){var h=function(t,r){var o={value1:void 0,value2:void 0},s=!1;return n&&(void 0!==n[t]&&(o.value1=n[t],s=!0),i(r)&&void 0!==n[r]&&(o.value2=n[r],s=!0)),!s&&e&&(void 0!==e[t]&&(o.value1=e[t]),i(r)&&void 0!==e[r]&&(o.value2=e[r])),o},c=h("hide").value1;void 0!==c&&t.setVisible(!c,u);var a=h("pinned").value1;void 0!==a&&t.setPinned(a);var f=this.columnUtils.calculateColMinWidth(t.getColDef()),l=h("flex").value1;if(void 0!==l&&t.setFlex(l),t.getFlex()<=0){var v=h("width").value1;null!=v&&null!=f&&v>=f&&t.setActualWidth(v,u)}var d=h("sort").value1;void 0!==d&&t.setSort("desc"===d||"asc"===d?d:void 0,u);var p=h("sortIndex").value1;if(void 0!==p&&t.setSortIndex(p),!s&&t.isPrimary()){var g=h("aggFunc").value1;void 0!==g&&("string"==typeof g?(t.setAggFunc(g),t.isValueActive()||(t.setValueActive(!0,u),this.valueColumns.push(t))):(i(g)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),t.isValueActive()&&(t.setValueActive(!1,u),at(this.valueColumns,t))));var b=h("rowGroup","rowGroupIndex"),m=b.value1,w=b.value2;void 0===m&&void 0===w||("number"==typeof w||m?(t.isRowGroupActive()||(t.setRowGroupActive(!0,u),this.rowGroupColumns.push(t)),r&&"number"==typeof w&&(r[t.getId()]=w)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,u),at(this.rowGroupColumns,t)));var y=h("pivot","pivotIndex"),O=y.value1,S=y.value2;void 0===O&&void 0===S||("number"==typeof S||O?(t.isPivotActive()||(t.setPivotActive(!0,u),this.pivotColumns.push(t)),o&&"number"==typeof S&&(o[t.getId()]=S)):t.isPivotActive()&&(t.setPivotActive(!1,u),at(this.pivotColumns,t)))}}},r.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},r.prototype.getColumns=function(t,i){var n=[];return t&&t.forEach((function(t){var e=i(t);e&&n.push(e)})),n},r.prototype.getColumnWithValidation=function(t){if(null==t)return null;var i=this.getGridColumn(t);return i||console.warn("AG Grid: could not find column "+t),i},r.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},r.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},r.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},r.prototype.getColumn=function(t,i,n){if(!t)return null;if("string"==typeof t&&n[t])return n[t];for(var e=0;e<i.length;e++)if(this.columnsMatch(i[e],t))return i[e];return this.getAutoColumn(t)},r.prototype.getSourceColumnsForGroupColumn=function(t){var i=t.getColDef().showRowGroup;if(!i)return null;if(!0===i)return this.rowGroupColumns.slice(0);var n=this.getPrimaryColumn(i);return n?[n]:null},r.prototype.getAutoColumn=function(t){var e=this;return this.groupAutoColumns&&i(this.groupAutoColumns)&&!n(this.groupAutoColumns)&&this.groupAutoColumns.find((function(i){return e.columnsMatch(i,t)}))||null},r.prototype.columnsMatch=function(t,i){var n=t===i,e=t.getColDef()===i,r=t.getColId()==i;return n||e||r},r.prototype.getDisplayNameForColumn=function(t,i,n){if(void 0===n&&(n=!1),!t)return null;var e=this.getHeaderName(t.getColDef(),t,null,null,i);return n?this.wrapHeaderNameWithAggFunc(t,e):e},r.prototype.getDisplayNameForProvidedColumnGroup=function(t,i,n){var e=i?i.getColGroupDef():null;return e?this.getHeaderName(e,null,t,i,n):null},r.prototype.getDisplayNameForColumnGroup=function(t,i){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),i)},r.prototype.getHeaderName=function(t,i,n,e,r){var o=t.headerValueGetter;if(o){var s={colDef:t,column:i,columnGroup:n,providedColumnGroup:e,location:r,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")};return"function"==typeof o?o(s):"string"==typeof o?this.expressionService.evaluate(o,s):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=t.headerName?t.headerName:t.field?vi(t.field):""},r.prototype.wrapHeaderNameWithAggFunc=function(t,n){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return n;var e,r=t.getColDef().pivotValueColumn,o=null;if(i(r)){var s=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,u=void 0!==t.getColDef().pivotTotalColumnIds;if(s&&!u)return n;o=r?r.getAggFunc():null,e=!0}else{var h=t.isValueActive(),c=this.pivotMode||!this.isRowGroupEmpty();h&&c?(o=t.getAggFunc(),e=!0):e=!1}if(e){var a="string"==typeof o?o:"func";return this.localeService.getLocaleTextFunc()(a,a)+"("+n+")"}return n},r.prototype.getColumnGroup=function(t,i){if(!t)return null;if(t instanceof ei)return t;var n=this.getAllDisplayedTrees(),e="number"==typeof i,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof ei){var o=n;(e?t===o.getGroupId()&&i===o.getPartId():t===o.getGroupId())&&(r=o)}})),r},r.prototype.isReady=function(){return this.ready},r.prototype.extractValueColumns=function(t,i){this.valueColumns=this.extractColumns(i,this.valueColumns,(function(i,n){return i.setValueActive(n,t)}),(function(){}),(function(){}),(function(t){var i=t.aggFunc;return null===i||""===i?null:void 0!==i?!!i:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var i=t.getColDef();null!=i.aggFunc&&""!=i.aggFunc?t.setAggFunc(i.aggFunc):t.getAggFunc()||t.setAggFunc(i.initialAggFunc)}))},r.prototype.extractRowGroupColumns=function(t,i){this.rowGroupColumns=this.extractColumns(i,this.rowGroupColumns,(function(i,n){return i.setRowGroupActive(n,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},r.prototype.extractColumns=function(t,i,n,e,r,u,h){void 0===t&&(t=[]),void 0===i&&(i=[]);var c=[],a=[];(this.primaryColumns||[]).forEach((function(n){var f=t.indexOf(n)<0,l=n.getColDef(),v=s(u(l)),d=s(h(l)),p=o(e(l)),g=o(r(l));(void 0!==v?v:void 0!==p?null!==p&&p>=0:f?void 0!==d?d:void 0!==g&&null!=g&&g>=0:i.indexOf(n)>=0)&&((f?null!=p||null!=g:null!=p)?c.push(n):a.push(n))}));var f=function(t){var i=e(t.getColDef()),n=r(t.getColDef());return null!=i?i:n};c.sort((function(t,i){var n=f(t),e=f(i);return n===e?0:n<e?-1:1}));var l=[].concat(c);return i.forEach((function(t){a.indexOf(t)>=0&&l.push(t)})),a.forEach((function(t){l.indexOf(t)<0&&l.push(t)})),i.forEach((function(t){l.indexOf(t)<0&&n(t,!1)})),l.forEach((function(t){i.indexOf(t)<0&&n(t,!0)})),l},r.prototype.extractPivotColumns=function(t,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,(function(i,n){return i.setPivotActive(n,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},r.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof rt){var n=t.getColGroupDef(),e={groupId:t.getGroupId(),open:n?n.openByDefault:void 0};i.push(e)}})),this.setColumnGroupState(i,t)},r.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(i){i instanceof rt&&t.push({groupId:i.getGroupId(),open:i.isExpanded()})})),t},r.prototype.setColumnGroupState=function(t,i){var n=this;void 0===i&&(i="api"),this.columnAnimationService.start();var e=[];t.forEach((function(t){var i=t.open,r=n.getProvidedColumnGroup(t.groupId);r&&r.isExpanded()!==i&&(n.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),e.push(r))})),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),e.forEach((function(t){n.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_GROUP_OPENED,columnGroup:t})})),this.columnAnimationService.finish()},r.prototype.setColumnGroupOpened=function(t,i,n){var e;void 0===n&&(n="api"),e=t instanceof rt?t.getId():t||"",this.setColumnGroupState([{groupId:e,open:i}],n)},r.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof rt&&n.getId()===t&&(i=n)})),i},r.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&n(this.secondaryColumns)?this.gridColumns.filter((function(i){var n=t.groupAutoColumns&&dt(t.groupAutoColumns,i),e=t.valueColumns&&dt(t.valueColumns,i);return n||e})):this.gridColumns.filter((function(i){return t.groupAutoColumns&&dt(t.groupAutoColumns,i)||i.isVisible()}))},r.prototype.checkColSpanActiveInCols=function(t){var n=!1;return t.forEach((function(t){i(t.getColDef().colSpan)&&(n=!0)})),n},r.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var n=function(n){var e=n.getColDef(),r=e.showRowGroup;e&&i(r)&&(t.groupDisplayColumns.push(n),"string"==typeof r?t.groupDisplayColumnsMap[r]=n:!0===r&&t.getRowGroupColumns().forEach((function(i){t.groupDisplayColumnsMap[i.getId()]=n})))};this.gridColumns.forEach(n),this.groupAutoColumns&&this.groupAutoColumns.forEach(n)},r.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},r.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},r.prototype.updateDisplayedColumns=function(t){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},r.prototype.isSecondaryColumnsPresent=function(){return i(this.secondaryColumns)},r.prototype.setSecondaryColumns=function(t,i){var e=this;void 0===i&&(i="api");var r=t&&t.length>0;if(r||!n(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(t);var o=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,o.columnTree),this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return e.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(i)}},r.prototype.processSecondaryColumnDefinitions=function(t){var n=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),e=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(n||e){var r=function(t){t.forEach((function(t){if(i(t.children)){var o=t;e&&e(o),r(o.children)}else n&&n(t)}))};t&&r(t)}},r.prototype.updateGridColumns=function(){var t=this,i=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var n=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var e=this.secondaryColumns.every((function(i){return void 0!==t.gridColumnsMap[i.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,e&&(n=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,n=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&n){var r=pi(this.groupAutoColumns.map((function(t){return[t,!0]})));n=n.filter((function(t){return!r.has(t)})),n=Oi(this.groupAutoColumns,n)}this.addAutoGroupToGridColumns(),this.orderGridColsLike(n),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(i){return t.gridColumnsMap[i.getId()]=i})),this.setAutoHeightActive(),ht(i,this.gridBalancedTree)||this.eventService.dispatchEvent({type:Nt.EVENT_GRID_COLUMNS_CHANGED})},r.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType();"clientSide"!==t&&"serverSide"!==t&&R((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}},r.prototype.orderGridColsLike=function(t){if(!n(t)){var i=pi(t.map((function(t,i){return[t,i]}))),e=!0;if(this.gridColumns.forEach((function(t){i.has(t)&&(e=!1)})),!e){var r=pi(this.gridColumns.map((function(t){return[t,!0]}))),o=t.filter((function(t){return r.has(t)})),s=pi(o.map((function(t){return[t,!0]}))),u=this.gridColumns.filter((function(t){return!s.has(t)})),h=o.slice();u.forEach((function(t){var i=t.getOriginalParent();if(i){for(var n=[];!n.length&&i;)i.getLeafColumns().forEach((function(t){var i=h.indexOf(t)>=0,e=n.indexOf(t)<0;i&&e&&n.push(t)})),i=i.getOriginalParent();if(n.length){var e=n.map((function(t){return h.indexOf(t)})),r=Math.max.apply(Math,Oi(e));lt(h,t,r+1)}else h.push(t)}else h.push(t)})),this.gridColumns=h}}},r.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},r.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},r.prototype.placeLockedColumns=function(t){var i=[],n=[],e=[];return t.forEach((function(t){var r=t.getColDef().lockPosition;"right"===r?e.push(t):"left"===r||!0===r?i.push(t):n.push(t)})),Oi(i,n,e)},r.prototype.addAutoGroupToGridColumns=function(){if(n(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,t),this.groupAutoColsBalancedTree=t,this.gridBalancedTree=t.concat(this.gridBalancedTree)},r.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},r.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:Nt.EVENT_DISPLAYED_COLUMNS_CHANGED})},r.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},r.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},r.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},r.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsService.is("enableRtl")?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},r.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},r.prototype.setLeftValuesOfColumns=function(t){var i=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),e=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(e){var o=i.getWidthOfColsInList(r);r.forEach((function(i){o-=i.getActualWidth(),i.setLeft(o,t)}))}else{var s=0;r.forEach((function(i){i.setLeft(s,t),s+=i.getActualWidth()}))}ft(n,r)})),n.forEach((function(i){i.setLeft(null,t)}))}},r.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof ei&&t.checkLeft()}))}))},r.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof et&&i.push(t)}))},r.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},r.prototype.getVirtualHeaderGroupRow=function(t,i){var e;switch(t){case"left":e=this.viewportRowLeft[i];break;case"right":e=this.viewportRowRight[i];break;default:e=this.viewportRowCenter[i]}return n(e)&&(e=[]),e},r.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(i){return t[i.getId()]=!0}));var i=function(n,e,r){for(var o=!1,s=0;s<n.length;s++){var u=n[s],h=!1;if(u instanceof et)h=!0===t[u.getId()];else{var c=u.getDisplayedChildren();c&&(h=i(c,e,r+1))}h&&(o=!0,e[r]||(e[r]=[]),e[r].push(u))}return o};i(this.displayedTreeLeft,this.viewportRowLeft,0),i(this.displayedTreeRight,this.viewportRowRight,0),i(this.displayedTreeCentre,this.viewportRowCenter,0)},r.prototype.extractViewport=function(){this.extractViewportColumns();var t=this.viewportColumns.map((function(t){return t.getId()+"-"+(t.getPinned()||"normal")})).join("#"),i=this.viewportColumnsHash!==t;return i&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),i},r.prototype.refreshFlexedColumns=function(t){var n=this;void 0===t&&(t={});var e=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var r=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var i=n.displayedColumnsCenter.indexOf(t);r<i&&(r=i)}));var o=function(t){var i=n.displayedColumnsCenter.indexOf(t)>r;return t.getFlex()&&i},s=this.displayedColumnsCenter.filter((function(t){return!o(t)})),u=this.displayedColumnsCenter.filter((function(t){return o(t)})),h=[];if(!u.length)return[];var c,a=[];t:for(;;){var f=u.reduce((function(t,i){return t+i.getFlex()}),0);c=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var l=0;l<u.length;l++){var v=u[l],d=c*v.getFlex()/f,p=0,g=v.getMinWidth(),b=v.getMaxWidth();if(i(g)&&d<g?p=g:i(b)&&d>b&&(p=b),p){v.setActualWidth(p,e),at(u,v),h.push(v),s.push(v);continue t}a[l]=Math.round(d)}break}var m=c;return u.forEach((function(t,i){t.setActualWidth(Math.min(a[i],m),e),h.push(t),m-=a[i]})),t.skipSetLeft||this.setLeftValues(e),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.dispatchColumnResizedEvent(h,!0,e,u),this.flexColsCalculatedAtLestOnce||(this.gridOptionsService.isRowModelType("clientSide")&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),u},r.prototype.sizeColumnsToFit=function(t,n,e,r){var o,s,u,h,c;void 0===n&&(n="sizeColumnsToFit");var a={};r&&(null===(o=null==r?void 0:r.columnLimits)||void 0===o||o.forEach((function(t){var i=t.key,n=function(t,i){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)i.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(n[e[r]]=t[e[r]])}return n}(t,["key"]);a["string"==typeof i?i:i.getColId()]=n})));var f=this.getAllDisplayedColumns(),l=t===this.getWidthOfColsInList(f);if(!(t<=0||!f.length||l)){var v=[],d=[];f.forEach((function(t){!0===t.getColDef().suppressSizeToFit?d.push(t):v.push(t)}));var p=v.slice(0),g=!1,b=function(t){at(v,t),d.push(t)};for(v.forEach((function(t){return t.resetActualWidth(n)}));!g;){g=!0;var m=t-this.getWidthOfColsInList(d);if(m<=0)v.forEach((function(t){var i,e,o=null!==(e=null===(i=null==a?void 0:a[t.getId()])||void 0===i?void 0:i.minWidth)&&void 0!==e?e:null==r?void 0:r.defaultMinWidth;"number"!=typeof o?t.setMinimum(n):t.setActualWidth(o)}));else for(var w=m/this.getWidthOfColsInList(v),y=m,O=v.length-1;O>=0;O--){var S=v[O],C=null==a?void 0:a[S.getId()],R=null!==(s=null==C?void 0:C.minWidth)&&void 0!==s?s:null==r?void 0:r.defaultMinWidth,j=null!==(u=null==C?void 0:C.maxWidth)&&void 0!==u?u:null==r?void 0:r.defaultMaxWidth,_=null!==(h=S.getMinWidth())&&void 0!==h?h:0,A=null!==(c=S.getMaxWidth())&&void 0!==c?c:Number.MAX_VALUE,x="number"==typeof R&&R>_?R:S.getMinWidth(),F="number"==typeof j&&j<A?j:S.getMaxWidth(),M=Math.round(S.getActualWidth()*w);i(x)&&M<x?(M=x,b(S),g=!1):i(F)&&M>F?(M=F,b(S),g=!1):0===O&&(M=y),S.setActualWidth(M,n,!0),y-=M}}p.forEach((function(t){t.fireColumnWidthChangedEvent(n)})),this.setLeftValues(n),this.updateBodyWidths(),e||this.dispatchColumnResizedEvent(p,!0,n)}},r.prototype.buildDisplayedTrees=function(t){var i=[],n=[],e=[];t.forEach((function(t){switch(t.getPinned()){case"left":i.push(t);break;case"right":n.push(t);break;default:e.push(t)}}));var r=new ri;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},r.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var i=function(i){t.displayedColumnsAndGroupsMap[i.getUniqueId()]=i};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},r.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},r.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof ei&&t.calculateDisplayedColumns()}))},r.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},r.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||i||t)this.groupAutoColumns=null;else{var n=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=n,!0}return!1},r.prototype.isGroupSuppressAutoColumn=function(){var t=this.gridOptionsService.get("groupDisplayType");if(t&&ni("custom",t))return!0;var i,n,e=this.gridOptionsService.get("treeDataDisplayType");return!!e&&("custom",(n=["auto","custom"]).indexOf(i=e)<0?(console.warn("AG Grid: '"+i+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):"custom"===i)},r.prototype.autoColsEqual=function(t,i){return ht(t,i,(function(t,i){return t.getColId()===i.getColId()}))},r.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,i){return t+i.getActualWidth()}),0)},r.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},r.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(t){return t.getColDef().floatingFilter}))},r.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsService.is("enableRtl"),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&i.reverse();for(var n=0;n<i.length;n++){var e=this[i[n]]();if(e.length)return t?ut(e):e[0]}return null},r.prototype.setColumnHeaderHeight=function(t,i){t.setAutoHeaderHeight(i)&&this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"})},r.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},r.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),i=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,Oi([t],i))},r.prototype.getHeaderHeight=function(){return this.gridOptionsService.getNum("headerHeight")||this.environment.getFromTheme(25,"headerHeight")},r.prototype.getFloatingFiltersHeight=function(){return this.gridOptionsService.getNum("floatingFiltersHeight")||this.environment.getFromTheme(25,"headerHeight")},r.prototype.getGroupHeaderHeight=function(){return this.gridOptionsService.getNum("groupHeaderHeight")||this.getHeaderHeight()},r.prototype.getPivotHeaderHeight=function(){return this.gridOptionsService.getNum("pivotHeaderHeight")||this.getHeaderHeight()},r.prototype.getPivotGroupHeaderHeight=function(){return this.gridOptionsService.getNum("pivotGroupHeaderHeight")||this.getGroupHeaderHeight()},mi([z("expressionService")],r.prototype,"expressionService",void 0),mi([z("columnFactory")],r.prototype,"columnFactory",void 0),mi([z("displayedGroupCreator")],r.prototype,"displayedGroupCreator",void 0),mi([z("ctrlsService")],r.prototype,"ctrlsService",void 0),mi([z("autoWidthCalculator")],r.prototype,"autoWidthCalculator",void 0),mi([z("columnUtils")],r.prototype,"columnUtils",void 0),mi([z("columnAnimationService")],r.prototype,"columnAnimationService",void 0),mi([z("autoGroupColService")],r.prototype,"autoGroupColService",void 0),mi([V("aggFuncService")],r.prototype,"aggFuncService",void 0),mi([V("valueCache")],r.prototype,"valueCache",void 0),mi([V("animationFrameService")],r.prototype,"animationFrameService",void 0),mi([z("rowModel")],r.prototype,"rowModel",void 0),mi([z("sortController")],r.prototype,"sortController",void 0),mi([z("columnDefFactory")],r.prototype,"columnDefFactory",void 0),mi([L],r.prototype,"init",null),mi([B],r.prototype,"destroyColumns",null),mi([(u=0,h=K("loggerFactory"),function(t,i){h(t,i,u)})],r.prototype,"setBeans",null),mi([W("columnModel")],r);var u,h}(Pt),Ci=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ri=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ci(i,t),i.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.environment.getMinColWidth()},i.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:Number.MAX_SAFE_INTEGER},i.prototype.calculateColInitialWidth=function(t){var i=this.calculateColMinWidth(t),n=this.calculateColMaxWidth(t),e=o(t.width),r=o(t.initialWidth);return Math.max(Math.min(null!=e?e:null!=r?r:200,n),i)},i.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(i,o){for(var s=0;s<i.length;s++){if(e)return;var u=i[s];u instanceof rt?(r(u.getChildren(),o+1),n[o]=u):u===t&&(e=!0)}};return r(i,0),e?n:null},i.prototype.depthFirstOriginalTreeSearch=function(t,i,n){var e=this;i&&i.forEach((function(i){i instanceof rt&&e.depthFirstOriginalTreeSearch(i,i.getChildren(),n),n(i,t)}))},i.prototype.depthFirstAllColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof ei&&n.depthFirstAllColumnTreeSearch(t.getChildren(),i),i(t)}))},i.prototype.depthFirstDisplayedColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof ei&&n.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),i),i(t)}))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("columnUtils")],i)}(Pt),ji=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_i=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ji(n,t),n.prototype.createDisplayedGroups=function(t,i,n,e,r){var o,s,u=this,h=[],c=this.mapOldGroupsById(r);return t.forEach((function(t){for(var r=u.getOriginalPathForColumn(i,t),a=[],f=!s,l=0;l<r.length;l++)if(f||r[l]!==s[l]){var v=u.createColumnGroup(r[l],n,c,e);a[l]=v,0==l?h.push(v):a[l-1].addChild(v)}else a[l]=o[l];0===a.length?h.push(t):ut(a).addChild(t),o=a,s=r})),this.setupParentsIntoColumns(h,null),h},n.prototype.createColumnGroup=function(t,n,e,r){var o=t.getGroupId(),s=n.getInstanceIdForKey(o),u=e[ei.createUniqueId(o,s)];return u&&u.getProvidedColumnGroup()!==t&&(u=null),i(u)?u.reset():(u=new ei(t,o,s,r),this.context.createBean(u)),u},n.prototype.mapOldGroupsById=function(t){var i={},n=function(t){t.forEach((function(t){if(t instanceof ei){var e=t;i[t.getUniqueId()]=e,n(e.getChildren())}}))};return t&&n(t),i},n.prototype.setupParentsIntoColumns=function(t,i){var n=this;t.forEach((function(t){if(t.setParent(i),t instanceof ei){var e=t;n.setupParentsIntoColumns(e.getChildren(),e)}}))},n.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(t,o){for(var s=0;s<t.length;s++){if(e)return;var u=t[s];u instanceof rt?(r(u.getChildren(),o+1),n[o]=u):u===i&&(e=!0)}};return r(t,0),e?n:(console.warn("AG Grid: could not get path"),null)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("displayedGroupCreator")],n)}(Pt),Ai=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xi=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.componentsMappedByName={},i}return Ai(i,t),i.prototype.setupComponents=function(t){var i=this;t&&t.forEach((function(t){return i.addComponent(t)}))},i.prototype.addComponent=function(t){var i=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[i]=t.componentClass},i.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("agStackComponentsRegistry")],i)}(Pt);
|
|
106
|
+
/**
|
|
107
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
108
|
+
* @version v29.0.0
|
|
109
|
+
* @link https://www.ag-grid.com/
|
|
110
|
+
* @license MIT
|
|
111
|
+
*/
|
|
112
|
+
function Fi(t,i,n){t.setAttribute(Gi(i),n.toString())}function Mi(t,i){t.removeAttribute(Gi(i))}function Gi(t){return"aria-"+t}function Di(t,i){i?t.setAttribute("role",i):t.removeAttribute("role")}function Pi(t){return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function ki(t){return parseInt(t.getAttribute("aria-level"),10)}function Ti(t){return parseInt(t.getAttribute("aria-posinset"),10)}function Ii(t,i){var n="label";null!=i&&""!==i?Fi(t,n,i):Mi(t,n)}function Ei(t,i){var n="labelledby";i?Fi(t,n,i):Mi(t,n)}function Ni(t,i){var n="description";i?Fi(t,n,i):Mi(t,n)}function Hi(t,i){var n="describedby";i?Fi(t,n,i):Mi(t,n)}function Li(t,i){Fi(t,"level",i)}function Bi(t,i){Fi(t,"disabled",i)}function Wi(t,i){i?Fi(t,"hidden",!0):Mi(t,"hidden")}function zi(t,i){Fi(t,"expanded",i)}function Vi(t){Mi(t,"expanded")}function Ui(t,i){Fi(t,"setsize",i)}function Ki(t,i){Fi(t,"posinset",i)}function Yi(t,i){Fi(t,"multiselectable",i)}function qi(t,i){Fi(t,"rowcount",i)}function Ji(t,i){Fi(t,"rowindex",i)}function Zi(t,i){Fi(t,"colcount",i)}function $i(t,i){Fi(t,"colindex",i)}function Qi(t,i){Fi(t,"colspan",i)}function Xi(t,i){Fi(t,"sort",i)}function tn(t){Mi(t,"sort")}function nn(t,i){var n="selected";i?Fi(t,n,i):Mi(t,n)}function en(t,i){Fi(t,"checked",void 0===i?"mixed":i)}const rn=Object.freeze({__proto__:null,setAriaRole:Di,getAriaSortState:Pi,getAriaLevel:ki,getAriaPosInSet:Ti,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:Ii,setAriaLabelledBy:Ei,setAriaDescription:Ni,setAriaDescribedBy:Hi,setAriaLevel:Li,setAriaDisabled:Bi,setAriaHidden:Wi,setAriaExpanded:zi,removeAriaExpanded:Vi,setAriaSetSize:Ui,setAriaPosInSet:Ki,setAriaMultiSelectable:Yi,setAriaRowCount:qi,setAriaRowIndex:Ji,setAriaColCount:Zi,setAriaColIndex:$i,setAriaColSpan:Qi,setAriaSort:Xi,removeAriaSort:tn,setAriaSelected:nn,setAriaChecked:en});
|
|
113
|
+
/**
|
|
114
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
115
|
+
* @version v29.0.0
|
|
116
|
+
* @link https://www.ag-grid.com/
|
|
117
|
+
* @license MIT
|
|
118
|
+
*/var on,sn,un,hn,cn,an,fn,ln,vn,dn;function pn(){if(dn)return dn;var t,i,n=navigator.userAgent,e=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(e[1]))return{name:"IE",version:i=null!=(t=/\brv[ :]+(\d+)/g.exec(n)||[])[1]?parseFloat(t[1]):0};if("Chrome"===e[1]&&null!=(t=n.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:i=null!=t[1]?parseFloat(t[1]):0};e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=n.match(/version\/(\d+)/i))&&e.splice(1,1,t[1]);var r=e[0];return i=null!=e[1]?parseFloat(e[1]):0,dn={name:r,version:i}}function gn(){return void 0===un&&(void 0===sn&&(sn=/*@cc_on!@*/!!document.documentMode),un=!(sn||!window.StyleMedia)),un}function bn(){return void 0===on&&(on=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),on}function mn(){if(void 0===hn){var t=window;hn=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return hn}function wn(){if(void 0===cn){var t=window;cn=void 0!==t.InstallTrigger}return cn}function yn(){return void 0===an&&(an=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),an}function On(){return void 0===fn&&(fn=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),fn}function Sn(){return!bn()||pn().version>=15}function Cn(t){if(!t)return null;var i=t.tabIndex,n=t.getAttribute("tabIndex");return-1!==i||null!==n&&(""!==n||wn())?i.toString():null}function Rn(){if(!document.body)return-1;var t=1e6,i=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var e=2*t;if(n.style.height=e+"px",e>i||n.clientHeight!==e)break;t=e}return document.body.removeChild(n),t}function jn(){return null==vn&&_n(),vn}function _n(){var t=document.body,i=document.createElement("div");i.style.width=i.style.height="100px",i.style.opacity="0",i.style.overflow="scroll",i.style.msOverflowStyle="scrollbar",i.style.position="absolute",t.appendChild(i);var n=i.offsetWidth-i.clientWidth;0===n&&0===i.clientWidth&&(n=null),i.parentNode&&i.parentNode.removeChild(i),null!=n&&(vn=n,ln=0===n)}function An(){return null==ln&&_n(),ln}function xn(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Fn(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}const Mn=Object.freeze({__proto__:null,getBrowserInfo:pn,isBrowserEdge:gn,isBrowserSafari:bn,isBrowserChrome:mn,isBrowserFirefox:wn,isMacOsUserAgent:yn,isIOSUserAgent:On,browserSupportsPreventScroll:Sn,getTabIndex:Cn,getMaxDivHeight:Rn,getScrollbarWidth:jn,isInvisibleScrollbar:An,hasOverflowScrolling:function(){var t,i,n=["webkit","moz","o","ms"],e=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(e),e.setAttribute("style",n.map((function(t){return"-"+t+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(e);if("touch"===o.overflowScrolling&&(r=!0),!r)try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=s.next();!u.done;u=s.next())if("touch"===o[u.value+"OverflowScrolling"]){r=!0;break}}catch(i){t={error:i}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return e.parentNode&&e.parentNode.removeChild(e),r},getBodyWidth:xn,getBodyHeight:Fn});
|
|
119
|
+
/**
|
|
120
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
121
|
+
* @version v29.0.0
|
|
122
|
+
* @link https://www.ag-grid.com/
|
|
123
|
+
* @license MIT
|
|
124
|
+
*/function Gn(t,i){return t.toString().padStart(i,"0")}function Dn(t,i){for(var n=[],e=t;e<=i;e++)n.push(e);return n}function Pn(t,i,n){return"number"!=typeof t?"":t.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i)}const kn=Object.freeze({__proto__:null,padStartWidthZeros:Gn,createArrayOfNumbers:Dn,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,i){for(var n="",e=0;e<i;e++)n+=String.fromCharCode(255&t),t>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(t,i,n){return"number"!=typeof t?"":Pn(Math.round(100*t)/100,i,n)},formatNumberCommas:Pn,sum:function(t){return null==t?null:t.reduce((function(t,i){return t+i}),0)},zeroOrGreater:function(t,i){return t>=0?t:i},oneOrGreater:function(t,i){var n=parseInt(t,10);return!isNaN(n)&&isFinite(n)&&n>0?n:i}});
|
|
125
|
+
/**
|
|
126
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
127
|
+
* @version v29.0.0
|
|
128
|
+
* @link https://www.ag-grid.com/
|
|
129
|
+
* @license MIT
|
|
130
|
+
*/var Tn=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};function In(t,i,n){if(void 0===i&&(i=!0),void 0===n&&(n="-"),!t)return null;var e=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return Gn(t,2)})).join(n);return i&&(e+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Gn(t,2)})).join(":")),e}var En=function(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Nn(t,i){void 0===i&&(i="YYYY-MM-DD");var n=Gn(t.getFullYear(),4),e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:function(){return n.slice(n.length-4,n.length)},YY:function(){return n.slice(n.length-2,n.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return e[t.getMonth()]},MMM:function(){return e[t.getMonth()].slice(0,3)},MM:function(){return Gn(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+En(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+En(t.getDate())},DD:function(){return Gn(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return r[t.getDay()]},ddd:function(){return r[t.getDay()].slice(0,3)},dd:function(){return r[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+En(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(o).join("|"),"g");return i.replace(s,(function(t){return t in o?o[t]():t}))}function Hn(t){if(!t)return null;var i=Tn(t.split(" "),2),n=i[0],e=i[1];if(!n)return null;var r=n.split("-").map((function(t){return parseInt(t,10)}));if(3!==r.filter((function(t){return!isNaN(t)})).length)return null;var o=Tn(r,3),s=o[0],u=o[1],h=o[2],c=new Date(s,u-1,h);if(c.getFullYear()!==s||c.getMonth()!==u-1||c.getDate()!==h)return null;if(!e||"00:00:00"===e)return c;var a=Tn(e.split(":").map((function(t){return parseInt(t,10)})),3),f=a[0],l=a[1],v=a[2];return f>=0&&f<24&&c.setHours(f),l>=0&&l<60&&c.setMinutes(l),v>=0&&v<60&&c.setSeconds(v),c}const Ln=Object.freeze({__proto__:null,serialiseDate:In,dateToFormattedString:Nn,parseDateTimeFromString:Hn});
|
|
131
|
+
/**
|
|
132
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
133
|
+
* @version v29.0.0
|
|
134
|
+
* @link https://www.ag-grid.com/
|
|
135
|
+
* @license MIT
|
|
136
|
+
*/var Bn,Wn="[tabindex], input, select, button, textarea, [href]",zn=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function Vn(t){var i=Element.prototype.matches||Element.prototype.msMatchesSelector,n=i.call(t,"input, select, button, textarea"),e=i.call(t,zn),r=oe(t);return n&&!e&&r}function Un(t,i,n){void 0===n&&(n={});var e=n.skipAriaHidden;t.classList.toggle("ag-hidden",!i),e||Wi(t,!i)}function Kn(t,i,n){void 0===n&&(n={});var e=n.skipAriaHidden;t.classList.toggle("ag-invisible",!i),e||Wi(t,!i)}function Yn(t,i){var n="disabled",e=i?function(t){return t.setAttribute(n,"")}:function(t){return t.removeAttribute(n)};e(t),Ce(t.querySelectorAll("input"),(function(t){return e(t)}))}function qn(t,i,n){for(var e=0;t;){if(t.classList.contains(i))return!0;if(t=t.parentElement,"number"==typeof n){if(++e>n)break}else if(t===n)break}return!1}function Jn(t){var i=window.getComputedStyle(t),n=i.width,e=i.paddingTop,r=i.paddingRight,o=i.paddingBottom,s=i.paddingLeft,u=i.marginTop,h=i.marginRight,c=i.marginBottom,a=i.marginLeft,f=i.boxSizing;return{height:parseFloat(i.height),width:parseFloat(n),paddingTop:parseFloat(e),paddingRight:parseFloat(r),paddingBottom:parseFloat(o),paddingLeft:parseFloat(s),marginTop:parseFloat(u),marginRight:parseFloat(h),marginBottom:parseFloat(c),marginLeft:parseFloat(a),boxSizing:f}}function Zn(t){var i=Jn(t);return"border-box"===i.boxSizing?i.height-i.paddingTop-i.paddingBottom:i.height}function $n(t){var i=Jn(t);return"border-box"===i.boxSizing?i.width-i.paddingLeft-i.paddingRight:i.width}function Qn(t){var i=Jn(t);return Math.ceil(t.offsetHeight+(i.marginBottom+i.marginTop))}function Xn(t){var i=Jn(t);return Math.ceil(t.offsetWidth+(i.marginLeft+i.marginRight))}function te(){if("boolean"==typeof Bn)return Bn;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(t),t.scrollLeft=1,Bn=0===Math.floor(t.scrollLeft),document.body.removeChild(t),Bn}function ie(t,i){var n=t.scrollLeft;return i&&(n=Math.abs(n),mn()&&!te()&&(n=t.scrollWidth-t.clientWidth-n)),n}function ne(t,i,n){n&&(te()?i*=-1:(bn()||mn())&&(i=t.scrollWidth-t.clientWidth-i)),t.scrollLeft=i}function ee(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function re(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function oe(t){return null!==t.offsetParent}function se(t){var i=document.createElement("div");return i.innerHTML=(t||"").trim(),i.firstChild}function ue(t){return t&&t.clientHeight?t.clientHeight:0}function he(t){return t&&t.clientWidth?t.clientWidth:0}function ce(t,i,n){if(!n||n.nextSibling!==i){var e=document.activeElement,r=i.contains(e);n?n.nextSibling?t.insertBefore(i,n.nextSibling):t.appendChild(i):t.firstChild&&t.firstChild!==i&&t.insertAdjacentElement("afterbegin",i),r&&e&&Sn()&&e.focus({preventScroll:!0})}}function ae(t,i){for(var n=0;n<i.length;n++){var e=i[n],r=t.children[n];r!==e&&t.insertBefore(e,r)}}function fe(t,i,n){n?n.insertAdjacentElement("afterend",i):t.firstChild?t.insertAdjacentElement("afterbegin",i):t.appendChild(i)}function le(t,i){i&&Object.keys(i).forEach((function(n){if(n&&n.length){var e=n.replace(/[A-Z]/g,(function(t){return"-"+t.toLocaleLowerCase()})),r=i[n].replace(/\s*!important/g,"");t.style.setProperty(e,r,r.length!=i[n].length?"important":void 0)}}))}function ve(t){return t.clientWidth<t.scrollWidth}function de(t){return t.clientHeight<t.scrollHeight}function pe(t,i){"flex"===i?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):ge(t,i)}function ge(t,i){i=me(i),t.style.width=i.toString(),t.style.maxWidth=i.toString(),t.style.minWidth=i.toString()}function be(t,i){i=me(i),t.style.height=i.toString(),t.style.maxHeight=i.toString(),t.style.minHeight=i.toString()}function me(t){return"number"==typeof t?t+"px":t}function we(t){return t instanceof Node||t instanceof HTMLElement}function ye(t){if(null==t)return[];var i=[];return Ce(t,(function(t){return i.push(t)})),i}function Oe(t,i){if(t)for(var n=0;n<t.length;n++){var e=t[n];i(e.name,e.value)}}function Se(t,i,n){null==n?t.removeAttribute(i):t.setAttribute(i,n.toString())}function Ce(t,i){if(null!=t)for(var n=0;n<t.length;n++)i(t[n])}const Re=Object.freeze({__proto__:null,radioCssClass:function(t,i,n){for(var e=t.parentElement,r=e&&e.firstChild;r;)i&&r.classList.toggle(i,r===t),n&&r.classList.toggle(n,r!==t),r=r.nextSibling},FOCUSABLE_SELECTOR:Wn,FOCUSABLE_EXCLUDE:zn,isFocusableFormField:Vn,setDisplayed:Un,setVisible:Kn,setDisabled:Yn,isElementChildOfClass:qn,getElementSize:Jn,getInnerHeight:Zn,getInnerWidth:$n,getAbsoluteHeight:Qn,getAbsoluteWidth:Xn,isRtlNegativeScroll:te,getScrollLeft:ie,setScrollLeft:ne,clearElement:ee,removeElement:function(t,i){re(t.querySelector(i))},removeFromParent:re,isVisible:oe,loadTemplate:se,appendHtml:function(t,i){t.lastChild?t.insertAdjacentHTML("afterbegin",i):t.innerHTML=i},getElementAttribute:function(t,i){return t.attributes&&t.attributes[i]?t.attributes[i].value:null},offsetHeight:ue,offsetWidth:he,ensureDomOrder:ce,setDomChildOrder:ae,insertWithDomOrder:fe,prependDC:function(t,n){i(t.firstChild)?t.insertBefore(n,t.firstChild):t.appendChild(n)},addStylesToElement:le,isHorizontalScrollShowing:ve,isVerticalScrollShowing:de,setElementWidth:pe,setFixedWidth:ge,setElementHeight:function(t,i){"flex"===i?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):be(t,i)},setFixedHeight:be,formatSize:me,isNodeOrElement:we,copyNodeList:ye,iterateNamedNodeMap:Oe,addOrRemoveAttribute:Se,nodeListForEach:Ce});
|
|
137
|
+
/**
|
|
138
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
139
|
+
* @version v29.0.0
|
|
140
|
+
* @link https://www.ag-grid.com/
|
|
141
|
+
* @license MIT
|
|
142
|
+
*/var je={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function _e(t,i,n){var e=Ae(t,i,n);if(e&&e.className.indexOf("ag-icon")>-1)return e;var r=document.createElement("span");return r.appendChild(e),r}function Ae(t,i,n,e){var r=null,o=n&&n.getColDef().icons;if(o&&(r=o[t]),i&&!r){var s=i.get("icons");s&&(r=s[t])}if(!r){var u=document.createElement("span"),h=je[t];return h||(e?h=t:(console.warn("AG Grid: Did not find icon "+t),h="")),u.setAttribute("class","ag-icon ag-icon-"+h),u.setAttribute("unselectable","on"),Di(u,"presentation"),u}var c=void 0;if("function"==typeof r)c=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");c=r}return"string"==typeof c?se(c):we(c)?c:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}const xe=Object.freeze({__proto__:null,iconNameClassMap:je,createIcon:_e,createIconNoSpan:Ae});
|
|
143
|
+
/**
|
|
144
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
145
|
+
* @version v29.0.0
|
|
146
|
+
* @link https://www.ag-grid.com/
|
|
147
|
+
* @license MIT
|
|
148
|
+
*/var Fe=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.V="KeyV",t.D="KeyD",t.Z="KeyZ",t.Y="KeyY",t}();
|
|
149
|
+
/**
|
|
150
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
151
|
+
* @version v29.0.0
|
|
152
|
+
* @link https://www.ag-grid.com/
|
|
153
|
+
* @license MIT
|
|
154
|
+
*/function Me(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var i=1===t.key.length,n=function(t){return gn()&&"Del"===t.key&&46===t.charCode}(t);return i||n}function Ge(t,i,n,e,r){var o=e?e.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;var s={event:i,editing:r,column:e,api:t.get("api"),node:n,data:n.data,colDef:e.getColDef(),context:t.get("context"),columnApi:t.get("columnApi")};return!(!o||!o(s))}function De(t,n,e,r){var o=r.getDefinition(),s=o&&o.suppressHeaderKeyboardEvent;return!!i(s)&&!!s({api:t.get("api"),columnApi:t.get("columnApi"),context:t.get("context"),colDef:o,column:r,headerRowIndex:e,event:n})}function Pe(t){var i;switch(t.keyCode){case 65:i=Fe.A;break;case 67:i=Fe.C;break;case 86:i=Fe.V;break;case 68:i=Fe.D;break;case 90:i=Fe.Z;break;case 89:i=Fe.Y;break;default:i=t.code}return i}function ke(t,i){return void 0===i&&(i=!1),t===Fe.DELETE||!i&&t===Fe.BACKSPACE&&yn()}const Te=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Me,isUserSuppressingKeyboardEvent:Ge,isUserSuppressingHeaderKeyboardEvent:De,normaliseQwertyAzerty:Pe,isDeleteKey:ke});
|
|
155
|
+
/**
|
|
156
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
157
|
+
* @version v29.0.0
|
|
158
|
+
* @link https://www.ag-grid.com/
|
|
159
|
+
* @license MIT
|
|
160
|
+
*/function Ie(t,i,n){if(0===n)return!1;var e=Math.abs(t.clientX-i.clientX),r=Math.abs(t.clientY-i.clientY);return Math.max(e,r)<=n}const Ee=Object.freeze({__proto__:null,areEventsNear:Ie}),Ne=Object.freeze({__proto__:null,sortRowNodesByOrder:
|
|
161
|
+
/**
|
|
162
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
163
|
+
* @version v29.0.0
|
|
164
|
+
* @link https://www.ag-grid.com/
|
|
165
|
+
* @license MIT
|
|
166
|
+
*/
|
|
167
|
+
function(t,i){if(!t)return!1;for(var n=function(t,n){var e=i[t.id],r=i[n.id],o=void 0!==e,s=void 0!==r;return o&&s?e-r:o||s?o?1:-1:t.__objectId-n.__objectId},e=!1,r=0;r<t.length-1;r++)if(n(t[r],t[r+1])>0){e=!0;break}return!!e&&(t.sort(n),!0)},traverseNodesWithKey:function(t,i){var n=[];!function t(e){e&&e.forEach((function(e){if(e.group||e.hasChildren()){n.push(e.key);var r=n.join("|");i(e,r),t(e.childrenAfterGroup),n.pop()}}))}(t)}});
|
|
168
|
+
/**
|
|
169
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
170
|
+
* @version v29.0.0
|
|
171
|
+
* @link https://www.ag-grid.com/
|
|
172
|
+
* @license MIT
|
|
173
|
+
*/
|
|
174
|
+
function He(t){var i=new Set;return t.forEach((function(t){return i.add(t)})),i}const Le=Object.freeze({__proto__:null,convertToSet:He});
|
|
175
|
+
/**
|
|
176
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
177
|
+
* @version v29.0.0
|
|
178
|
+
* @link https://www.ag-grid.com/
|
|
179
|
+
* @license MIT
|
|
180
|
+
*/var Be,We=function(){return We=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},We.apply(this,arguments)},ze=We(We(We(We(We(We(We(We(We(We(We(We(We(We(We(We(We(We({},rn),bt),Mn),Ln),Re),Mt),I),Zt),h),xe),Te),gi),Ee),kn),S),Ne),Le),di),Ve=function(){function t(t,i){void 0===t&&(t=0),void 0===i&&(i=1),this.nextValue=t,this.step=i}return t.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(t){this.nextValue+=t},t}();!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(Be||(Be={}));var Ue,Ke=function(){function t(t){var i=this;this.status=Be.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return i.onDone(t)}),(function(t){return i.onReject(t)}))}return t.all=function(i){return new t((function(t){var n=i.length,e=new Array(n);i.forEach((function(i,r){i.then((function(i){e[r]=i,0==--n&&t(e)}))}))}))},t.resolve=function(i){return void 0===i&&(i=null),new t((function(t){return t(i)}))},t.prototype.then=function(i){var n=this;return new t((function(t){n.status===Be.RESOLVED?t(i(n.resolution)):n.waiters.push((function(n){return t(i(n))}))}))},t.prototype.resolveNow=function(t,i){return this.status===Be.RESOLVED?i(this.resolution):t},t.prototype.onDone=function(t){this.status=Be.RESOLVED,this.resolution=t,this.waiters.forEach((function(i){return i(t)}))},t.prototype.onReject=function(){console.warn("TBI")},t}(),Ye=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qe=function(){return qe=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},qe.apply(this,arguments)},Je=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
|
|
181
|
+
/**
|
|
182
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
183
|
+
* @version v29.0.0
|
|
184
|
+
* @link https://www.ag-grid.com/
|
|
185
|
+
* @license MIT
|
|
186
|
+
*/!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(Ue||(Ue={}));var Ze=function(t){function n(i){var n=t.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Ue.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=i,n}return Ye(n,t),n.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var t=this.parentComp.getGui();this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this))},n.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},n.prototype.onMouseEnter=function(t){if(!On()&&this.state==Ue.NOTHING){var i=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.lastMouseEvent=t,this.state=Ue.WAITING_TO_SHOW}},n.prototype.onMouseLeave=function(){this.setToDoNothing()},n.prototype.onKeyDown=function(){this.setToDoNothing()},n.prototype.setToDoNothing=function(){this.state===Ue.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ue.NOTHING},n.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===Ue.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},n.prototype.onMouseDown=function(){this.setToDoNothing()},n.prototype.getTooltipDelay=function(t){var n=this.gridOptionsService.getNum("tooltipShowDelay"),e=this.gridOptionsService.getNum("tooltipHideDelay"),r="show"===t?n:e,o=fi(t);return i(r)?(r<0&&R((function(){return console.warn("AG Grid: tooltip"+o+"Delay should not be lower than 0")}),"tooltip"+o+"DelayWarn"),Math.max(200,r)):null},n.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),n.lastTooltipHideTime=(new Date).getTime()),this.state=Ue.NOTHING},n.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){i(),t.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},n.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-n.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},n.prototype.showTooltip=function(){var t=qe({},this.parentComp.getTooltipParams());if(i(t.value)){this.state=Ue.SHOWING,this.tooltipInstanceCount++;var n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(n)}else this.setToDoNothing()},n.prototype.newTooltipComponentCallback=function(t,i){if(this.state!==Ue.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(i);else{var n=i.getGui();this.tooltipComp=i,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var e=this.localeService.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:e("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},n.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},n.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Je([z("popupService")],n.prototype,"popupService",void 0),Je([z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Je([z("columnApi")],n.prototype,"columnApi",void 0),Je([z("gridApi")],n.prototype,"gridApi",void 0),Je([L],n.prototype,"postConstruct",null),n}(Pt),$e=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var i=this,n=(t||"").split(" ");if(n.length>1)n.forEach((function(t){return i.addCssClass(t)}));else if(!0!==this.cssClassStates[t]&&t.length){var e=this.getGui();e&&e.classList.add(t),this.cssClassStates[t]=!0}},t.prototype.removeCssClass=function(t){var i=this,n=(t||"").split(" ");if(n.length>1)n.forEach((function(t){return i.removeCssClass(t)}));else if(!1!==this.cssClassStates[t]&&t.length){var e=this.getGui();e&&e.classList.remove(t),this.cssClassStates[t]=!1}},t.prototype.containsCssClass=function(t){var i=this.getGui();return!!i&&i.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,i){var n=this;if(t){if(t.indexOf(" ")>=0){var e=(t||"").split(" ");if(e.length>1)return void e.forEach((function(t){return n.addOrRemoveCssClass(t,i)}))}if(this.cssClassStates[t]!==i&&t.length){var r=this.getGui();r&&r.classList.toggle(t,i),this.cssClassStates[t]=i}}},t}(),Qe=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xe=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tr=new Ve,ir=function(t){function i(i){var n=t.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=tr.next(),n.cssClassManager=new $e((function(){return n.eGui})),i&&n.setTemplate(i),n}return Qe(i,t),i.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},i.prototype.getCompId=function(){return this.compId},i.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},i.prototype.setTooltip=function(t){var i=this;this.tooltipText!=t&&(this.tooltipText&&(i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new Ze(i)))))},i.prototype.createChildComponentsFromTags=function(t,i){var n=this;ye(t.childNodes).forEach((function(e){if(e instanceof HTMLElement){var r=n.createComponentFromElement(e,(function(t){t.getGui()&&n.copyAttributesFromNode(e,t.getGui())}),i);if(r){if(r.addItems&&e.children.length){n.createChildComponentsFromTags(e,i);var o=Array.prototype.slice.call(e.children);r.addItems(o)}n.swapComponentForNode(r,t,e)}else e.childNodes&&n.createChildComponentsFromTags(e,i)}}))},i.prototype.createComponentFromElement=function(t,n,e){var r=t.nodeName,o=e?e[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){i.elementGettingCreated=t;var u=new s(o);return u.setParentComponent(this),this.createBean(u,null,n),u}return null},i.prototype.copyAttributesFromNode=function(t,i){Oe(t.attributes,(function(t,n){return i.setAttribute(t,n)}))},i.prototype.swapComponentForNode=function(t,i,n){var e=t.getGui();i.replaceChild(e,n),i.insertBefore(document.createComment(n.nodeName),e),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,n)},i.prototype.swapInComponentForQuerySelectors=function(t,i){var n=this;this.iterateOverQuerySelectors((function(e){n[e.attributeName]===i&&(n[e.attributeName]=t)}))},i.prototype.iterateOverQuerySelectors=function(t){for(var i=Object.getPrototypeOf(this);null!=i;){var n=i.__agComponentMetaData,e=j(i.constructor);n&&n[e]&&n[e].querySelectors&&n[e].querySelectors.forEach((function(i){return t(i)})),i=Object.getPrototypeOf(i)}},i.prototype.setTemplate=function(t,i){var n=se(t);this.setTemplateFromElement(n,i)},i.prototype.setTemplateFromElement=function(t,i){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},i.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},i.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors((function(n){var e=function(t){return i[n.attributeName]=t};if(n.refSelector&&t.eGui.getAttribute("ref")===n.refSelector)e(t.eGui);else{var r=t.eGui.querySelector(n.querySelector);r&&e(r.__agComponent||r)}}))}},i.prototype.getGui=function(){return this.eGui},i.prototype.getFocusableElement=function(){return this.eGui},i.prototype.setParentComponent=function(t){this.parentComponent=t},i.prototype.getParentComponent=function(){return this.parentComponent},i.prototype.setGui=function(t){this.eGui=t},i.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},i.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},i.prototype.appendChild=function(t,i){null!=t&&(i||(i=this.eGui),we(t)?i.appendChild(t):i.appendChild(t.getGui()))},i.prototype.isDisplayed=function(){return this.displayed},i.prototype.setVisible=function(t,i){void 0===i&&(i={}),t!==this.visible&&(this.visible=t,Kn(this.eGui,t,{skipAriaHidden:i.skipAriaHidden}))},i.prototype.setDisplayed=function(t,n){void 0===n&&(n={}),t!==this.displayed&&(this.displayed=t,Un(this.eGui,t,{skipAriaHidden:n.skipAriaHidden}),this.dispatchEvent({type:i.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},i.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var i=this.eGui;i&&i.__agComponent&&(i.__agComponent=void 0),t.prototype.destroy.call(this)},i.prototype.addGuiEventListener=function(t,i,n){var e=this;this.eGui.addEventListener(t,i,n),this.addDestroyFunc((function(){return e.eGui.removeEventListener(t,i)}))},i.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},i.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},i.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},i.prototype.addOrRemoveCssClass=function(t,i){this.cssClassManager.addOrRemoveCssClass(t,i)},i.prototype.getAttribute=function(t){var i=this.eGui;return i?i.getAttribute(t):null},i.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},i.EVENT_DISPLAYED_CHANGED="displayedChanged",Xe([z("agStackComponentsRegistry")],i.prototype,"agStackComponentsRegistry",void 0),Xe([H],i.prototype,"preConstructOnComponent",null),Xe([H],i.prototype,"createChildComponentsPreConstruct",null),i}(Pt);
|
|
187
|
+
/**
|
|
188
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
189
|
+
* @version v29.0.0
|
|
190
|
+
* @link https://www.ag-grid.com/
|
|
191
|
+
* @license MIT
|
|
192
|
+
*/
|
|
193
|
+
/**
|
|
194
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
195
|
+
* @version v29.0.0
|
|
196
|
+
* @link https://www.ag-grid.com/
|
|
197
|
+
* @license MIT
|
|
198
|
+
*/
|
|
199
|
+
function nr(t){return er.bind(this,"[ref="+t+"]",t)}function er(t,i,n,e,r){var o,s,u,h;null!==t?"number"!=typeof r?(s="querySelectors",u={attributeName:e,querySelector:t,refSelector:i},(h=function(t,i){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[i]||(t.__agComponentMetaData[i]={}),t.__agComponentMetaData[i]}
|
|
200
|
+
/**
|
|
201
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
202
|
+
* @version v29.0.0
|
|
203
|
+
* @link https://www.ag-grid.com/
|
|
204
|
+
* @license MIT
|
|
205
|
+
*/(o=n,j(o.constructor)))[s]||(h[s]=[]),h[s].push(u)):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var rr,or=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ur=function(t){function i(){return t.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return or(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){this.params=t;var i=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(i+" "+n("ariaFilterInput","Filter Input"))},i.prototype.onParentModelChanged=function(t){var i=this;t?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var e=n.getModelAsString(t);i.eFloatingFilterText.setValue(e)}})):this.eFloatingFilterText.setValue("")},sr([nr("eFloatingFilterText")],i.prototype,"eFloatingFilterText",void 0),sr([z("columnModel")],i.prototype,"columnModel",void 0),i}(ir),hr=function(){function t(t,i,n,e){var r=this;this.alive=!0,this.context=t,this.eParent=e,i.getDateCompDetails(n).newAgStackInstance().then((function(i){r.alive?(r.dateComp=i,i&&(e.appendChild(i.getGui()),i.afterGuiAttached&&i.afterGuiAttached(),r.tempValue&&i.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):t.destroyBean(i)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){Un(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),cr=function(){return cr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},cr.apply(this,arguments)},ar=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,i){this.filterOptions=t.filterOptions||i,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(i){if("string"!=typeof i)if([["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=i[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))){var n=i.test,e=cr({},i);null!=n&&null==i.predicate&&(e.predicate=function(t,i){return n(t[0],i)},delete e.test),e.hideFilterInput&&null==e.numberOfInputs&&(e.numberOfInputs=0,delete e.hideFilterInput),t.customFilterOptions[i.displayKey]=e}else t.filterOptions=t.filterOptions.filter((function(t){return t===i}))||[]}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var i=this.filterOptions[0];"string"==typeof i?this.defaultOption=i:i.displayKey?this.defaultOption=i.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),fr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},lr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vr=function(){return vr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},vr.apply(this,arguments)},dr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pr=function(t){function i(i,n){void 0===n&&(n={});var e=t.call(this)||this;return e.eFocusableElement=i,e.callbacks=n,e.callbacks=vr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var i=e.focusService.findNextFocusableElement(e.eFocusableElement,!1,t.shiftKey);i&&(i.focus(),t.preventDefault())}}},n),e}return lr(i,t),i.prototype.postConstruct=function(){this.eFocusableElement.classList.add(i.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},i.prototype.addKeyDownListeners=function(t){var i=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||St(t)||(i.callbacks.shouldStopEventPropagation(t)?Ot(t):t.key===Fe.TAB?i.callbacks.onTabKeyDown(t):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(t))}))},i.FOCUS_MANAGED_CLASS="ag-focus-managed",dr([z("focusService")],i.prototype,"focusService",void 0),dr([L],i.prototype,"postConstruct",null),i}(Pt),gr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),br=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},mr=function(t){function i(i){var n=t.call(this)||this;return n.filterNameKey=i,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return gr(i,t),i.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new pr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},i.prototype.handleKeyDown=function(){},i.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},i.prototype.isFilterActive=function(){return!!this.appliedModel},i.prototype.resetTemplate=function(t){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit);var n='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(n,t),(i=this.getGui())&&i.addEventListener("submit",this.onFormSubmit)},i.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},i.prototype.init=function(t){var i=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()}))},i.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=i.isUseApplyButton(t),this.createButtonPanel()},i.prototype.createButtonPanel=function(){var t=this,i=this.providedFilterParams.buttons;if(!(!i||i.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel"),He(i).forEach((function(i){return function(i){var e,r;switch(i){case"apply":e=t.translate("applyFilter"),r=function(i){return t.onBtApply(!1,!1,i)};break;case"clear":e=t.translate("clearFilter"),r=function(){return t.onBtClear()};break;case"reset":e=t.translate("resetFilter"),r=function(){return t.onBtReset()};break;case"cancel":e=t.translate("cancelFilter"),r=function(i){t.onBtCancel(i)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var o=se('<button\n type="'+("apply"===i?"submit":"button")+'"\n ref="'+i+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+e+"\n </button>");n.appendChild(o),t.addManagedListener(o,"click",r)}(i)})),this.getGui().appendChild(n)}},i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.setupOnBtApplyDebounce=function(){var t=i.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=D(this.onBtApply.bind(this),t)},i.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},i.prototype.setModel=function(t){var i=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){i.updateUiVisibility(),i.applyModel()}))},i.prototype.onBtCancel=function(t){var i=this,n=this.getModel(),e=function(){i.onUiChanged(!1,"prevent"),i.providedFilterParams.closeOnApply&&i.close(t)};null!=n?this.setModelIntoUi(n).then(e):this.resetUiToDefaults().then(e)},i.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},i.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},i.prototype.applyModel=function(){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var i=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(i,t)},i.prototype.isModelValid=function(){return!0},i.prototype.onFormSubmit=function(t){t.preventDefault()},i.prototype.onBtApply=function(t,i,n){void 0===t&&(t=!1),void 0===i&&(i=!1),n&&n.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:i}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!i&&this.close(n)},i.prototype.onNewRowsLoaded=function(){},i.prototype.close=function(t){if(this.hidePopup){var i,n=t&&t.key;"Enter"!==n&&"Space"!==n||(i={keyboardEvent:t}),this.hidePopup(i),this.hidePopup=null}},i.prototype.onUiChanged=function(t,i){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var n=this.isModelValid(this.getModelFromUi());Yn(this.getRefElement("applyFilterButton"),!n)}t&&!i||"immediately"===i?this.onBtApply(t):(this.applyActive||i)&&"debounce"!==i||this.onBtApplyDebounce()},i.prototype.afterGuiAttached=function(t){null!=t&&(this.hidePopup=t.hidePopup)},i.getDebounceMs=function(t,n){return i.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:n},i.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},i.prototype.destroy=function(){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,t.prototype.destroy.call(this)},i.prototype.translate=function(t){return this.localeService.getLocaleTextFunc()(t,fr[t])},i.prototype.getCellValue=function(t){var i=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:i.api,colDef:i.colDef,column:i.column,columnApi:i.columnApi,context:i.context,data:t.data,getValue:function(i){return t.data[i]},node:t})},br([z("rowModel")],i.prototype,"rowModel",void 0),br([L],i.prototype,"postConstruct",null),i}(ir),wr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yr=function(t){function i(i,n){var e=t.call(this,n)||this;return e.labelSeparator="",e.labelAlignment="left",e.disabled=!1,e.label="",e.config=i||{},e}return wr(i,t),i.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,i=t.labelSeparator,n=t.label,e=t.labelWidth,r=t.labelAlignment;null!=i&&this.setLabelSeparator(i),null!=n&&this.setLabel(n),null!=e&&this.setLabelWidth(e),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},i.prototype.refreshLabel=function(){ee(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(Un(this.eLabel,!1),Di(this.eLabel,"presentation")):(Un(this.eLabel,!0),Di(this.eLabel,null))},i.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},i.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},i.prototype.getLabel=function(){return this.label},i.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},i.prototype.setLabelAlignment=function(t){var i=this.getGui().classList;return i.toggle("ag-label-align-left","left"===t),i.toggle("ag-label-align-right","right"===t),i.toggle("ag-label-align-top","top"===t),this},i.prototype.setLabelEllipsis=function(t){return this.eLabel.classList.toggle("ag-label-ellipsis",t),this},i.prototype.setLabelWidth=function(t){return null==this.label||pe(this.eLabel,t),this},i.prototype.setDisabled=function(t){t=!!t;var i=this.getGui();return Yn(i,t),i.classList.toggle("ag-disabled",t),this.disabled=t,this},i.prototype.isDisabled=function(){return!!this.disabled},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(ir),Or=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sr=function(t){function i(i,n,e){var r=t.call(this,i,n)||this;return r.className=e,r}return Or(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},i.prototype.onValueChange=function(t){var n=this;return this.addManagedListener(this,i.EVENT_CHANGED,(function(){return t(n.getValue())})),this},i.prototype.getWidth=function(){return this.getGui().clientWidth},i.prototype.setWidth=function(t){return ge(this.getGui(),t),this},i.prototype.getPreviousValue=function(){return this.previousValue},i.prototype.getValue=function(){return this.value},i.prototype.setValue=function(t,n){return this.value===t||(this.previousValue=this.value,this.value=t,n||this.dispatchEvent({type:i.EVENT_CHANGED})),this},i.EVENT_CHANGED="valueChange",i}(yr),Cr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jr=function(t){function n(i,n,e,r){var o=t.call(this,i,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(r?'role="'+r+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',n)||this;return o.pickerIcon=e,o.isPickerDisplayed=!1,o.isDestroyingPicker=!1,o.skipClick=!1,o}return Cr(n,t),n.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),Hi(this.eWrapper,n);var e=function(){i.skipClick?i.skipClick=!1:i.isDisabled()||(i.pickerComponent=i.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(t){!i.skipClick&&i.pickerComponent&&i.pickerComponent.isAlive()&&oe(i.pickerComponent.getGui())&&r.contains(t.target)&&(i.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(t){switch(t.key){case Fe.UP:case Fe.DOWN:case Fe.ENTER:case Fe.SPACE:e();case Fe.ESCAPE:i.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",e),this.addManagedListener(this.eLabel,"click",e),this.pickerIcon){var o=Ae(this.pickerIcon,this.gridOptionsService);o&&this.eIcon.appendChild(o)}},n.prototype.refreshLabel=function(){i(this.getLabel())?Ei(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},n.prototype.setAriaLabel=function(t){return Ii(this.eWrapper,t),this},n.prototype.setInputWidth=function(t){return pe(this.eWrapper,t),this},n.prototype.getFocusableElement=function(){return this.eWrapper},Rr([nr("eLabel")],n.prototype,"eLabel",void 0),Rr([nr("eWrapper")],n.prototype,"eWrapper",void 0),Rr([nr("eDisplayField")],n.prototype,"eDisplayField",void 0),Rr([nr("eIcon")],n.prototype,"eIcon",void 0),n}(Sr),_r=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ar=function(t){function i(i){void 0===i&&(i="default");var n=t.call(this,'<div class="ag-list ag-'+i+'-list" role="listbox"></div>')||this;return n.cssIdentifier=i,n.options=[],n.itemEls=[],n}return _r(i,t),i.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},i.prototype.handleKeyDown=function(t){var i=t.key;switch(i){case Fe.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Fe.DOWN:case Fe.UP:var e=i===Fe.DOWN,r=void 0;if(t.preventDefault(),this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl)+(e?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),r=this.itemEls[o]}else r=this.itemEls[e?0:this.itemEls.length-1];this.highlightItem(r)}},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){var i=t.value,n=li(t.text||i);return this.options.push({value:i,text:n}),this.renderOption(i,n),this.updateIndices(),this},i.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(i,n){Ki(i,n+1),Ui(i,t.length)}))},i.prototype.renderOption=function(t,i){var n=this,e=document.createElement("div");Di(e,"option"),e.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),e.innerHTML="<span>"+i+"</span>",e.tabIndex=-1,this.itemEls.push(e),this.addManagedListener(e,"mouseover",(function(){return n.highlightItem(e)})),this.addManagedListener(e,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(e,"click",(function(){return n.setValue(t)})),this.getGui().appendChild(e)},i.prototype.setValue=function(t,i){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var n=this.options.findIndex((function(i){return i.value===t}));if(-1!==n){var e=this.options[n];this.value=e.value,this.displayValue=null!=e.text?e.text:e.value,this.highlightItem(this.itemEls[n]),i||this.fireChangeEvent()}return this},i.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},i.prototype.getValue=function(){return this.value},i.prototype.getDisplayValue=function(){return this.displayValue},i.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var i=this.options.findIndex((function(i){return i.value===t.value}));-1!==i&&this.highlightItem(this.itemEls[i])},i.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},i.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(i.ACTIVE_CLASS),nn(this.highlightedEl,!0),this.highlightedEl.focus())},i.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(i.ACTIVE_CLASS),nn(this.highlightedEl,!1),this.highlightedEl=null)},i.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Sr.EVENT_CHANGED}),this.fireItemSelected()},i.prototype.fireItemSelected=function(){this.dispatchEvent({type:i.EVENT_ITEM_SELECTED})},i.EVENT_ITEM_SELECTED="selectedItem",i.ACTIVE_CLASS="ag-active-item",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"init",null),i}(ir),xr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mr=function(t){function i(i){return t.call(this,i,"ag-select","smallDown","listbox")||this}return xr(i,t),i.prototype.init=function(){var t=this;this.listComponent=this.createBean(new Ar("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Ar.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,Sr.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},i.prototype.showPicker=function(){var t=this,i=this.listComponent.getGui(),n=this.gridOptionsService.getDocument(),e=this.addManagedListener(n.body,"wheel",(function(n){!i.contains(n.target)&&t.hideList&&t.hideList()})),r=this.addManagedListener(i,"focusout",(function(n){!i.contains(n.relatedTarget)&&t.hideList&&t.hideList()})),o=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,r(),e(),t.isAlive()&&(zi(t.eWrapper,!1),t.getFocusableElement().focus())},ariaLabel:o("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,pe(i,Xn(this.eWrapper)),zi(this.eWrapper,!0),i.style.maxHeight=Zn(this.popupService.getPopupParent())+"px",i.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:i,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){return this.listComponent.addOption(t),this},i.prototype.setValue=function(i,n,e){return this.value===i?this:(e||this.listComponent.setValue(i,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,i,n)))},i.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},Fr([z("popupService")],i.prototype,"popupService",void 0),Fr([L],i.prototype,"init",null),i}(jr),Gr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Dr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pr=function(t){function n(i,n,e,r){void 0===e&&(e="text"),void 0===r&&(r="input");var o=t.call(this,i,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return o.inputType=e,o.displayFieldTag=r,o}return Gr(n,t),n.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var i=this.config,n=i.width,e=i.value;null!=n&&this.setWidth(n),null!=e&&this.setValue(e),this.addInputListeners()},n.prototype.refreshLabel=function(){i(this.getLabel())?Ei(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},n.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){return t.setValue(i.target.value)}))},n.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},n.prototype.getInputElement=function(){return this.eInput},n.prototype.setInputWidth=function(t){return pe(this.eWrapper,t),this},n.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},n.prototype.getFocusableElement=function(){return this.eInput},n.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},n.prototype.setInputPlaceholder=function(t){return Se(this.eInput,"placeholder",t),this},n.prototype.setInputAriaLabel=function(t){return Ii(this.eInput,t),this},n.prototype.setDisabled=function(i){return Yn(this.eInput,i),t.prototype.setDisabled.call(this,i)},Dr([nr("eLabel")],n.prototype,"eLabel",void 0),Dr([nr("eWrapper")],n.prototype,"eWrapper",void 0),Dr([nr("eInput")],n.prototype,"eInput",void 0),n}(Sr),kr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.One=0]="One",t[t.Two=1]="Two"}(rr||(rr={}));var Ir,Er,Nr,Hr=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return kr(i,t),i.prototype.getNumberOfInputs=function(t){var n=this.optionsFactory.getCustomOption(t);if(n){var e=n.numberOfInputs;return null!=e?e:1}return t&&[i.EMPTY,i.NOT_BLANK,i.BLANK].indexOf(t)>=0?0:t===i.IN_RANGE?2:1},i.prototype.onFloatingFilterChanged=function(t,i){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},i.prototype.setTypeFromFloatingFilter=function(t){this.eType1.setValue(t),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},i.prototype.getModelFromUi=function(){return this.isConditionUiComplete(rr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(rr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(rr.One),condition2:this.createCondition(rr.Two)}:this.createCondition(rr.One):null},i.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},i.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},i.prototype.areModelsEqual=function(t,i){if(!t&&!i)return!0;if(!t&&i||t&&!i)return!1;var n,e=!t.operator,r=!i.operator;if(!e&&r||e&&!r)return!1;if(e)n=this.areSimpleModelsEqual(t,i);else{var o=t,s=i;n=o.operator===s.operator&&this.areSimpleModelsEqual(o.condition1,s.condition1)&&this.areSimpleModelsEqual(o.condition2,s.condition2)}return n},i.prototype.setModelIntoUi=function(t){if(t.operator){var i=t,n="OR"===i.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(i.condition1.type),this.eType2.setValue(i.condition2.type),this.setConditionIntoUi(i.condition1,rr.One),this.setConditionIntoUi(i.condition2,rr.Two)}else{var e=t;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(e.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(e,rr.One),this.setConditionIntoUi(null,rr.Two)}return Ke.resolve()},i.prototype.doesFilterPass=function(t){var i=this,n=this.getModel();if(null==n)return!0;var e=n.operator,r=[];return e?r.push(n.condition1,n.condition2):r.push(n),r[e&&"OR"===e?"some":"every"]((function(n){return i.individualConditionPasses(t,n)}))},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.optionsFactory=new ar,this.optionsFactory.init(i,this.getDefaultFilterOptions()),this.allowTwoConditions=!i.suppressAndOrCondition,this.alwaysShowBothConditions=!!i.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(i.defaultJoinOperator),this.filterPlaceholder=i.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},i.prototype.getDefaultJoinOperator=function(t){return dt(["AND","OR"],t)?t:"AND"},i.prototype.putOptionsIntoDropdown=function(){var t=this,i=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];i.forEach((function(i){var e="string"==typeof i?t.createBoilerplateListOption(i):t.createCustomListOption(i);n.forEach((function(t){return t.addOption(e)}))})),n.forEach((function(t){return t.setDisabled(i.length<=1)}))},i.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},i.prototype.createCustomListOption=function(t){var i=t.displayKey,n=this.optionsFactory.getCustomOption(t.displayKey);return{value:i,text:n?this.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(i)}},i.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},i.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(rr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(rr.Two)},i.prototype.getCssIdentifier=function(){return"simple-filter"},i.prototype.updateUiVisibility=function(){var t=this,i=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach((function(i,n){var e=t.isConditionVisible(n),r=t.isConditionDisabled(n);i.forEach((function(t){t instanceof Pr||t instanceof Mr?(t.setDisabled(r),t.setDisplayed(e)):(Yn(t,r),Un(t,e))}))})),i.forEach((function(i,n){Un(i,t.isConditionBodyVisible(n))})),this.forEachInput((function(i,n,e,r){t.setElementDisplayed(i,n<r),t.setElementDisabled(i,t.isConditionDisabled(e))})),this.resetPlaceholder()},i.prototype.afterGuiAttached=function(i){if(t.prototype.afterGuiAttached.call(this,i),this.resetPlaceholder(),!i||!i.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Pr&&n.getInputElement().focus()}},i.prototype.getPlaceholderText=function(t,i){var n=this.translate(t);if(_(this.filterPlaceholder)){var e=this.filterPlaceholder,r=0===i?this.eType1.getValue():this.eType2.getValue();n=e({filterOptionKey:r,filterOption:this.translate(r),placeholder:n})}else"string"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n},i.prototype.resetPlaceholder=function(){var t=this,i=this.localeService.getLocaleTextFunc();this.forEachInput((function(n,e,r,o){if(n instanceof Pr){var s=0===e&&o>1?"inRangeStart":0===e?"filterOoo":"inRangeEnd",u=0===e&&o>1?i("ariaFilterFromValue","Filter from value"):0===e?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(t.getPlaceholderText(s,r)),n.setInputAriaLabel(u)}}))},i.prototype.setElementValue=function(t,i,n){t instanceof Pr&&t.setValue(null!=i?String(i):null,n)},i.prototype.setElementDisplayed=function(t,i){t instanceof ir&&Un(t.getGui(),i)},i.prototype.setElementDisabled=function(t,i){t instanceof ir&&Yn(t.getGui(),i)},i.prototype.attachElementOnChange=function(t,i){t instanceof Pr&&t.onValueChange(i)},i.prototype.forEachInput=function(t){var i=this,n=this.getInputs();this.getConditionTypes().forEach((function(e,r){for(var o=i.getNumberOfInputs(e),s=0;s<n[r].length;s++){var u=n[r][s];null!=u&&t(u,s,r,o)}}))},i.prototype.isConditionVisible=function(t){return 0===t||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(t):!!this.alwaysShowBothConditions||this.isConditionUiComplete(t-1))},i.prototype.isConditionDisabled=function(t){return!!this.isReadOnly()||!this.isConditionVisible(t)||0!==t&&!this.isConditionUiComplete(t-1)},i.prototype.isConditionBodyVisible=function(t){if(!this.isConditionVisible(t))return!1;var i=this.getConditionTypes()[t];return this.getNumberOfInputs(i)>0},i.prototype.isConditionUiComplete=function(t){return this.getConditionTypes()[t]!==i.EMPTY&&!this.getValues(t).some((function(t){return null==t}))},i.prototype.resetUiToDefaults=function(t){var i=this,n=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),e="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),t).setName(e).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),t).setName(e).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){i.setElementValue(n,null,t),i.setElementDisabled(n,i.isReadOnly())})),this.resetPlaceholder(),Ke.resolve()},i.prototype.setConditionIntoUi=function(t,i){var n=this,e=this.mapValuesFromModel(t);this.forEachInput((function(t,r,o){o===i&&n.setElementValue(t,null!=e[r]?e[r]:null)}))},i.prototype.setValueFromFloatingFilter=function(t){var i=this;this.forEachInput((function(n,e,r){i.setElementValue(n,0===e&&0===r?t:null)}))},i.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},i.prototype.addChangedListeners=function(){var t=this;if(!this.isReadOnly()){var i=function(){return t.onUiChanged()};this.eType1.onValueChange(i),this.eType2.onValueChange(i),this.eJoinOperatorOr.onValueChange(i),this.eJoinOperatorAnd.onValueChange(i),this.forEachInput((function(n){t.attachElementOnChange(n,i)}))}},i.prototype.individualConditionPasses=function(t,i){var n=this.getCellValue(t.node),e=this.mapValuesFromModel(i),r=this.optionsFactory.getCustomOption(i.type),o=this.evaluateCustomFilter(r,e,n);return null!=o?o:null==n?this.evaluateNullValue(i.type):this.evaluateNonNullValue(e,n,i,t)},i.prototype.evaluateCustomFilter=function(t,i,n){if(null!=t){var e=t.predicate;return null==e||i.some((function(t){return null==t}))?void 0:e(i,n)}},i.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},i.EMPTY="empty",i.BLANK="blank",i.NOT_BLANK="notBlank",i.EQUALS="equals",i.NOT_EQUAL="notEqual",i.LESS_THAN="lessThan",i.LESS_THAN_OR_EQUAL="lessThanOrEqual",i.GREATER_THAN="greaterThan",i.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",i.IN_RANGE="inRange",i.CONTAINS="contains",i.NOT_CONTAINS="notContains",i.STARTS_WITH="startsWith",i.ENDS_WITH="endsWith",Tr([nr("eOptions1")],i.prototype,"eType1",void 0),Tr([nr("eOptions2")],i.prototype,"eType2",void 0),Tr([nr("eJoinOperatorPanel")],i.prototype,"eJoinOperatorPanel",void 0),Tr([nr("eJoinOperatorAnd")],i.prototype,"eJoinOperatorAnd",void 0),Tr([nr("eJoinOperatorOr")],i.prototype,"eJoinOperatorOr",void 0),Tr([nr("eCondition1Body")],i.prototype,"eCondition1Body",void 0),Tr([nr("eCondition2Body")],i.prototype,"eCondition2Body",void 0),i}(mr),Lr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Br=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Lr(i,t),i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.scalarFilterParams=i},i.prototype.evaluateNullValue=function(t){switch(t){case i.EQUALS:case i.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case i.GREATER_THAN:case i.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case i.LESS_THAN:case i.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case i.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case i.BLANK:return!0;case i.NOT_BLANK:return!1}return!1},i.prototype.evaluateNonNullValue=function(t,n,e){var r=this.comparator(),o=null!=t[0]?r(t[0],n):0;switch(e.type){case i.EQUALS:return 0===o;case i.NOT_EQUAL:return 0!==o;case i.GREATER_THAN:return o>0;case i.GREATER_THAN_OR_EQUAL:return o>=0;case i.LESS_THAN:return o<0;case i.LESS_THAN_OR_EQUAL:return o<=0;case i.IN_RANGE:var s=r(t[1],n);return this.scalarFilterParams.inRangeInclusive?o>=0&&s<=0:o>0&&s<0;case i.BLANK:return this.isBlank(n);case i.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+e.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},i}(Hr),Wr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zr=function(){return zr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},zr.apply(this,arguments)},Vr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ur=1/0,Kr=function(t){function i(){var i=t.call(this,"dateFilter")||this;return i.minValidYear=1e3,i.maxValidYear=Ur,i}return Wr(i,t),i.prototype.afterGuiAttached=function(i){t.prototype.afterGuiAttached.call(this,i),this.dateCondition1FromComp.afterGuiAttached(i)},i.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.dateFrom,e=i.dateTo,r=i.type;return[n&&Hn(n)||null,e&&Hn(e)||null].slice(0,this.getNumberOfInputs(r))},i.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},i.prototype.defaultComparator=function(t,i){return null==i||i<t?-1:i>t?1:0},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.dateFilterParams=i;var n=function(t,n){if(null!=i[t]){if(!isNaN(i[t]))return null==i[t]?n:Number(i[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Ur),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},i.prototype.createDateComponents=function(){var t=this,i=function(i){return new hr(t.getContext(),t.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:t.dateFilterParams},i)};this.dateCondition1FromComp=i(this.eCondition1PanelFrom),this.dateCondition1ToComp=i(this.eCondition1PanelTo),this.dateCondition2FromComp=i(this.eCondition2PanelFrom),this.dateCondition2ToComp=i(this.eCondition2PanelTo),this.addDestroyFunc((function(){t.forEachInput((function(t){return t.destroy()}))}))},i.prototype.setElementValue=function(t,i){t.setDate(i)},i.prototype.setElementDisplayed=function(t,i){t.setDisplayed(i)},i.prototype.setElementDisabled=function(t,i){t.setDisabled(i)},i.prototype.getDefaultFilterOptions=function(){return i.DEFAULT_FILTER_OPTIONS},i.prototype.createValueTemplate=function(t){var i=t===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+i+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+i+'PanelTo"></div>\n </div>'},i.prototype.isConditionUiComplete=function(i){var n=this;if(!t.prototype.isConditionUiComplete.call(this,i))return!1;var e=!0;return this.forEachInput((function(t,r,o,s){var u;o!==i||!e||r>=s||(e=e&&null!=(u=t.getDate())&&u.getUTCFullYear()>=n.minValidYear&&u.getUTCFullYear()<=n.maxValidYear)})),e},i.prototype.areSimpleModelsEqual=function(t,i){return t.dateFrom===i.dateFrom&&t.dateTo===i.dateTo&&t.type===i.type},i.prototype.getFilterType=function(){return"date"},i.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={},e=this.getValues(t);return e.length>0&&(n.dateFrom=In(e[0])),e.length>1&&(n.dateTo=In(e[1])),zr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},n)},i.prototype.resetPlaceholder=function(){var t=this.localeService.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),n=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(i),t.setInputAriaLabel(n)}))},i.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},i.prototype.getValues=function(t){var i=[];return this.forEachInput((function(n,e,r,o){t===r&&e<o&&i.push(n.getDate())})),i},i.DEFAULT_FILTER_OPTIONS=[Br.EQUALS,Br.GREATER_THAN,Br.LESS_THAN,Br.NOT_EQUAL,Br.IN_RANGE,Br.BLANK,Br.NOT_BLANK],Vr([nr("eCondition1PanelFrom")],i.prototype,"eCondition1PanelFrom",void 0),Vr([nr("eCondition1PanelTo")],i.prototype,"eCondition1PanelTo",void 0),Vr([nr("eCondition2PanelFrom")],i.prototype,"eCondition2PanelFrom",void 0),Vr([nr("eCondition2PanelTo")],i.prototype,"eCondition2PanelTo",void 0),Vr([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(Br),Yr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qr=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Yr(i,t),i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.getTextFromModel=function(t){if(!t)return null;if(null!=t.operator){var i=t,n=i||{},e=n.condition2,r=this.getTextFromModel(n.condition1),o=this.getTextFromModel(e);return[r,i.operator,o].join(" ")}if(t.type===Hr.BLANK||t.type===Hr.NOT_BLANK)return this.localeService.getLocaleTextFunc()(t.type,t.type);var s=t,u=this.optionsFactory.getCustomOption(s.type),h=u||{},c=h.displayKey,a=h.displayName;return c&&a&&0===h.numberOfInputs?(this.localeService.getLocaleTextFunc()(c,a),a):this.conditionToString(s,u)},i.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},i.prototype.isEventFromDataChange=function(t){return null==t?void 0:t.afterDataChange},i.prototype.getLastType=function(){return this.lastType},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setLastTypeFromModel=function(t){t?this.lastType=(t.operator?t.condition1:t).type:this.lastType=this.optionsFactory.getDefaultOption()},i.prototype.canWeEditAfterModelFromParentFilter=function(t){return t?!t.operator&&this.isTypeEditable(t.type):this.isTypeEditable(this.lastType)},i.prototype.init=function(t){this.optionsFactory=new ar,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var i=this.isTypeEditable(this.lastType);this.setEditable(i)},i.prototype.doesFilterHaveSingleInput=function(t){var i=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==i||1==i},i.prototype.isTypeEditable=function(t){var i=[Hr.IN_RANGE,Hr.EMPTY,Hr.BLANK,Hr.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&i.indexOf(t)<0},i}(ir),Jr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$r=function(t){function i(){return t.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return Jr(i,t),i.prototype.getDefaultFilterOptions=function(){return Kr.DEFAULT_FILTER_OPTIONS},i.prototype.conditionToString=function(t,i){var n=t.type,e=n==Hr.IN_RANGE||2===(i||{}).numberOfInputs,r=Hn(t.dateFrom),o=Hn(t.dateTo),s=this.filterParams.inRangeFloatingFilterDateFormat;return e?(null!==r?Nn(r,s):"null")+"-"+(null!==o?Nn(o,s):"null"):null!=r?Nn(r,s):""+n},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.filterParams=i.filterParams,this.createDateComponent();var n=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},i.prototype.setEditable=function(t){Un(this.eDateWrapper,t),Un(this.eReadOnlyText.getGui(),!t)},i.prototype.onParentModelChanged=function(i,n){if(!this.isEventFromFloatingFilter(n)&&!this.isEventFromDataChange(n)){t.prototype.setLastTypeFromModel.call(this,i);var e=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(i);this.setEditable(e),e?(this.dateComp.setDate(i?Hn(i.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(i)),this.dateComp.setDate(null))}},i.prototype.onDateChanged=function(){var t=this,i=In(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var e=Hn(i);n.onFloatingFilterChanged(t.getLastType()||null,e)}}))},i.prototype.createDateComponent=function(){var t=this,i=mr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:D(this.onDateChanged.bind(this),i),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new hr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},Zr([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Zr([nr("eReadOnlyText")],i.prototype,"eReadOnlyText",void 0),Zr([nr("eDateWrapper")],i.prototype,"eDateWrapper",void 0),i}(qr),Qr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xr=function(t){function i(){return t.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Qr(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){var i=this,n=this.gridOptionsService.getDocument(),e=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(t)&&(e.type="date"),this.addManagedListener(e,"mousedown",(function(){i.eDateInput.isDisabled()||e.focus()})),this.addManagedListener(e,"input",(function(e){e.target===n.activeElement&&(i.eDateInput.isDisabled()||t.onDateChanged())}));var r=t.filterParams||{},o=r.minValidYear,s=r.maxValidYear;o&&(e.min=o+"-01-01"),s&&(e.max=s+"-12-31")},i.prototype.getDate=function(){return Hn(this.eDateInput.getValue())},i.prototype.setDate=function(t){this.eDateInput.setValue(In(t,!1))},i.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},i.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},i.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},i.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:mn()||wn()},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([nr("eDateInput")],i.prototype,"eDateInput",void 0),i}(ir),to=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),io=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},no=function(i){function n(){return i.call(this,"numberFilter")||this}return to(n,i),n.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.filter,e=i.filterTo;return[null==n?null:n,null==e?null:e].slice(0,this.getNumberOfInputs(i.type))},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.comparator=function(){return function(t,i){return t===i?0:t<i?1:-1}},n.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var e={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":e,"eValue-index1-1":e,"eValue-index0-2":e,"eValue-index1-2":e})}i.prototype.setParams.call(this,t)},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(t){var i=t===rr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></'+n+">\n </div>"},n.prototype.getValues=function(t){var i=this,n=[];return this.forEachInput((function(e,r,o,s){t===o&&r<s&&n.push(i.stringToFloat(e.getValue()))})),n},n.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},n.prototype.getFilterType=function(){return"number"},n.prototype.stringToFloat=function(i){if("number"==typeof i)return i;var n=t(i);return null!=n&&""===n.trim()&&(n=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(n):null==n||"-"===n.trim()?null:parseFloat(n)},n.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(mn()||gn()?null:"\\d\\-\\.")},n.DEFAULT_FILTER_OPTIONS=[Br.EQUALS,Br.NOT_EQUAL,Br.LESS_THAN,Br.LESS_THAN_OR_EQUAL,Br.GREATER_THAN,Br.GREATER_THAN_OR_EQUAL,Br.IN_RANGE,Br.BLANK,Br.NOT_BLANK],io([nr("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),io([nr("eValue-index1-1")],n.prototype,"eValueTo1",void 0),io([nr("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),io([nr("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(Br),eo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ro=function(){return ro=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},ro.apply(this,arguments)},oo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},so=function(i){function n(){return i.call(this,"textFilter")||this}return eo(n,i),n.trimInput=function(t){var i=t&&t.trim();return""===i?t:i},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.setParams=function(t){i.prototype.setParams.call(this,t),this.textFilterParams=t,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?n.DEFAULT_FORMATTER:n.DEFAULT_LOWERCASE_FORMATTER)},n.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(ze.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(i){return t(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||n.DEFAULT_MATCHER},n.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},n.prototype.getFilterType=function(){return"text"},n.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getValues=function(i){var e=this,r=[];return this.forEachInput((function(o,s,u,h){if(i===u&&s<h){var c=t(o.getValue()),a=(e.textFilterParams.trimInput?n.trimInput(c):c)||null;r.push(a),o.setValue(a,!0)}})),r},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(t){var i=t===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></ag-input-text-field>\n </div>'},n.prototype.mapValuesFromModel=function(t){var i=t||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},n.prototype.evaluateNullValue=function(t){return!!t&&[Hr.NOT_EQUAL,Hr.NOT_CONTAINS,Hr.BLANK].indexOf(t)>=0},n.prototype.evaluateNonNullValue=function(t,i,n,e){var r=this,o=t.map((function(t){return r.formatter(t)}))||[],s=this.formatter(i),u=this.textFilterParams,h=u.api,c=u.colDef,a=u.column,f=u.columnApi,l=u.context,v=u.textFormatter;if(n.type===Hr.BLANK)return this.isBlank(i);if(n.type===Hr.NOT_BLANK)return!this.isBlank(i);var d={api:h,colDef:c,column:a,columnApi:f,context:l,node:e.node,data:e.data,filterOption:n.type,value:s,textFormatter:v};return o.some((function(t){return r.matcher(ro(ro({},d),{filterText:t}))}))},n.DEFAULT_FILTER_OPTIONS=[Hr.CONTAINS,Hr.NOT_CONTAINS,Hr.EQUALS,Hr.NOT_EQUAL,Hr.STARTS_WITH,Hr.ENDS_WITH,Hr.BLANK,Hr.NOT_BLANK],n.DEFAULT_FORMATTER=function(t){return t},n.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},n.DEFAULT_MATCHER=function(t){var i=t.value,e=t.filterText;if(null==e)return!1;switch(t.filterOption){case n.CONTAINS:return i.indexOf(e)>=0;case n.NOT_CONTAINS:return i.indexOf(e)<0;case n.EQUALS:return i===e;case n.NOT_EQUAL:return i!=e;case n.STARTS_WITH:return 0===i.indexOf(e);case n.ENDS_WITH:var r=i.lastIndexOf(e);return r>=0&&r===i.length-e.length;default:return!1}},oo([nr("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),oo([nr("eValue-index1-1")],n.prototype,"eValueTo1",void 0),oo([nr("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),oo([nr("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(Hr),uo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ho=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},co=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return uo(i,t),i.prototype.postConstruct=function(){this.resetTemplate()},i.prototype.resetTemplate=function(t){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',t)},i.prototype.getDefaultDebounceMs=function(){return 500},i.prototype.onParentModelChanged=function(t,i){this.isEventFromFloatingFilter(i)||this.isEventFromDataChange(i)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.applyActive=mr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var e=mr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=D(this.syncUpWithParentFilter.bind(this),e),o=this.eFloatingFilterInput.getGui();this.addManagedListener(o,"input",r),this.addManagedListener(o,"keypress",r),this.addManagedListener(o,"keydown",r)}var s=i.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var u=this.columnModel.getDisplayNameForColumn(i.column,"header",!0),h=this.localeService.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(u+" "+h("ariaFilterInput","Filter Input"))},i.prototype.syncUpWithParentFilter=function(t){var i=this;if(!this.applyActive||t.key===Fe.ENTER){var n=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(n=so.trimInput(n),this.eFloatingFilterInput.setValue(n,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(i.getLastType()||null,n||null)}))}},i.prototype.conditionToString=function(t,i){return t.type==Hr.IN_RANGE||2===(i||{}).numberOfInputs?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},i.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},ho([z("columnModel")],i.prototype,"columnModel",void 0),ho([nr("eFloatingFilterInput")],i.prototype,"eFloatingFilterInput",void 0),ho([L],i.prototype,"postConstruct",null),i}(qr),ao=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ao(i,t),i.prototype.getDefaultFilterOptions=function(){return no.DEFAULT_FILTER_OPTIONS},i}(co),lo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return lo(i,t),i.prototype.getDefaultFilterOptions=function(){return so.DEFAULT_FILTER_OPTIONS},i}(co),po=function(){function t(t,i){var n=this;void 0===i&&(i=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Q,this.eElement=t,this.preventMouseClick=i;var e=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",e,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",e,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",o,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.onTouchStart=function(i){var n=this;if(!this.touching){this.touchStart=i.touches[0],this.touching=!0,this.moved=!1;var e=this.touchStart;window.setTimeout((function(){n.touching&&n.touchStart===e&&!n.moved&&(n.moved=!0,n.eventService.dispatchEvent({type:t.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:i}))}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var i=this.getActiveTouch(t.touches);i&&!Ie(i,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(i){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:t.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&i.cancelable&&i.preventDefault(),this.touching=!1)},t.prototype.checkForDoubleTap=function(){var i=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&i-this.lastTapTime>t.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=i},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),go=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},mo=function(t){function i(n){var e=t.call(this)||this;return n||e.setTemplate(i.TEMPLATE),e}return go(i,t),i.prototype.attachCustomElements=function(t,i,n,e,r){this.eSortOrder=t,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=e,this.eSortNone=r},i.prototype.setupSort=function(t,i){var n=this;void 0===i&&(i=!1),this.column=t,this.suppressOrder=i,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,Nt.EVENT_SORT_CHANGED,(function(){return n.onSortChanged()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return n.onSortChanged()})),this.onSortChanged())},i.prototype.addInIcon=function(t,i,n){if(null!=i){var e=Ae(t,this.gridOptionsService,n);e&&i.appendChild(e)}},i.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},i.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&Un(this.eSortAsc,"asc"===t,{skipAriaHidden:!0}),this.eSortDesc&&Un(this.eSortDesc,"desc"===t,{skipAriaHidden:!0}),this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon");Un(this.eSortNone,!i&&null==t,{skipAriaHidden:!0})}},i.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,Nt.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},i.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);Un(this.eSortMixed,t,{skipAriaHidden:!0})}},i.prototype.updateSortOrder=function(){var t,i=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),e=null!==(t=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==t?t:-1,r=n.some((function(t){var n;return null!==(n=i.sortController.getDisplaySortIndexForColumn(t))&&void 0!==n&&n}));Un(this.eSortOrder,e>=0&&r,{skipAriaHidden:!0}),e>=0?this.eSortOrder.innerHTML=(e+1).toString():ee(this.eSortOrder)}},i.TEMPLATE='<span class="ag-sort-indicator-container">\n <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n </span>',bo([nr("eSortOrder")],i.prototype,"eSortOrder",void 0),bo([nr("eSortAsc")],i.prototype,"eSortAsc",void 0),bo([nr("eSortDesc")],i.prototype,"eSortDesc",void 0),bo([nr("eSortMixed")],i.prototype,"eSortMixed",void 0),bo([nr("eSortNone")],i.prototype,"eSortNone",void 0),bo([z("columnModel")],i.prototype,"columnModel",void 0),bo([z("sortController")],i.prototype,"sortController",void 0),i}(ir),wo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Oo=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.lastMovingChanged=0,i}return wo(n,t),n.prototype.destroy=function(){t.prototype.destroy.call(this)},n.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)},n.prototype.workOutTemplate=function(){var t=st(this.params.template,n.TEMPLATE);return t&&t.trim?t.trim():t},n.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},n.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var i=li(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},n.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},n.prototype.addInIcon=function(t,i,n){if(null!=i){var e=Ae(t,this.gridOptionsService,n);e&&i.appendChild(e)}},n.prototype.setupTap=function(){var t=this,n=this.gridOptionsService;if(!n.is("suppressTouch")){var e=new po(this.getGui(),!0),r=n.is("suppressMenuHide"),o=r&&i(this.eMenu),s=o?new po(this.eMenu,!0):e;this.params.enableMenu&&this.addManagedListener(s,po[o?"EVENT_TAP":"EVENT_LONG_TAP"],(function(i){n.get("api").showColumnMenuAfterMouseClick(t.params.column,i.touchStart)})),this.params.enableSorting&&this.addManagedListener(e,po.EVENT_TAP,(function(i){r&&t.eMenu.contains(i.touchStart.target)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return e.destroy()})),o&&this.addDestroyFunc((function(){return s.destroy()}))}},n.prototype.workOutShowMenu=function(){var t=!this.gridOptionsService.is("suppressMenuHide"),i=On()&&t;return this.params.enableMenu&&!i},n.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var i=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}else re(this.eMenu)},n.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},n.prototype.workOutSort=function(){return this.params.enableSorting},n.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new mo(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,et.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var e=t.params.column.isMoving(),r=(new Date).getTime();e||r-t.lastMovingChanged<50||t.params.progressSort(i?n.ctrlKey||n.metaKey:n.shiftKey)}));var n=function(){if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var i=t.columnModel.getSourceColumnsForGroupColumn(t.params.column),n=null==i?void 0:i.every((function(i){return t.params.column.getSort()==i.getSort()}));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!n)}};this.addManagedListener(this.eventService,Nt.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},n.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},n.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();Un(this.eFilter,t,{skipAriaHidden:!0})},n.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',yo([z("sortController")],n.prototype,"sortController",void 0),yo([z("menuFactory")],n.prototype,"menuFactory",void 0),yo([z("columnModel")],n.prototype,"columnModel",void 0),yo([nr("eFilter")],n.prototype,"eFilter",void 0),yo([nr("eSortIndicator")],n.prototype,"eSortIndicator",void 0),yo([nr("eMenu")],n.prototype,"eMenu",void 0),yo([nr("eLabel")],n.prototype,"eLabel",void 0),yo([nr("eText")],n.prototype,"eText",void 0),yo([nr("eSortOrder")],n.prototype,"eSortOrder",void 0),yo([nr("eSortAsc")],n.prototype,"eSortAsc",void 0),yo([nr("eSortDesc")],n.prototype,"eSortDesc",void 0),yo([nr("eSortMixed")],n.prototype,"eSortMixed",void 0),yo([nr("eSortNone")],n.prototype,"eSortNone",void 0),n}(ir),So=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Co=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ro=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return So(n,t),n.prototype.destroy=function(){t.prototype.destroy.call(this)},n.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},n.prototype.checkWarnings=function(){this.params.template&&R((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")},n.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(i){if(!St(i)){var n=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(t){Ot(t)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var e=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(e,rt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(e,rt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},n.prototype.addTouchAndClickListeners=function(t,i){var n=new po(t,!0);this.addManagedListener(n,po.EVENT_TAP,i),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(t,"click",i)},n.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var t=this.params.columnGroup.isExpanded();Un(this.eOpenIcon,t),Un(this.eCloseIcon,!t)}else Un(this.eOpenIcon,!1),Un(this.eCloseIcon,!1)},n.prototype.addInIcon=function(t,i){var n=Ae(t,this.gridOptionsService,null);n&&this.getRefElement(i).appendChild(n)},n.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Un(this.eOpenIcon,!1),void Un(this.eCloseIcon,!1)},n.prototype.setupLabel=function(){var t=this.params.displayName;if(i(t)){var n=li(t);this.getRefElement("agLabel").innerHTML=n}},n.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',Co([z("columnModel")],n.prototype,"columnModel",void 0),Co([nr("agOpened")],n.prototype,"eOpenIcon",void 0),Co([nr("agClosed")],n.prototype,"eCloseIcon",void 0),n}(ir),jo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_o=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return jo(i,t),i.prototype.isPopup=function(){return!0},i.prototype.setParentComponent=function(i){i.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,i)},i.prototype.destroy=function(){var i=this.parentComponent;i&&i.isAlive()&&i.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},i}(ir),Ao=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xo=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return Ao(n,t),n.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),i(t.value)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},n.prototype.onKeyDown=function(t){var i=t.key;(i===Fe.LEFT||i===Fe.UP||i===Fe.RIGHT||i===Fe.DOWN||t.shiftKey&&i===Fe.ENTER)&&t.stopPropagation()},n.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},n.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},n.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([nr("eTextArea")],n.prototype,"eTextArea",void 0),n}(_o),Fo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Go=function(t){function i(){var i=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return i.startedByEnter=!1,i}return Fo(i,t),i.prototype.init=function(t){var i=this;if(this.focusAfterAttached=t.cellStartedEdit,n(t.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=t.eventKey&&t.eventKey===Fe.ENTER;var e=!1;t.values.forEach((function(n){var r={value:n},o=i.valueFormatterService.formatValue(t.column,null,n);r.text=null!=o?o:n,i.eSelect.addOption(r),e=e||t.value===n})),e?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.eSelect.onValueChange((function(){return t.stopEditing()}))}},i.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},i.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},i.prototype.getValue=function(){return this.eSelect.getValue()},i.prototype.isPopup=function(){return!1},Mo([z("valueFormatterService")],i.prototype,"valueFormatterService",void 0),Mo([nr("eSelect")],i.prototype,"eSelect",void 0),i}(_o),Do=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Po=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return Do(n,t),n.prototype.init=function(t){this.params=t;var i,n=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.eventKey===Fe.BACKSPACE||t.eventKey===Fe.DELETE?i="":t.charPress?i=t.charPress:(i=this.getStartValue(t),t.eventKey!==Fe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,i=this.getStartValue(t)),null!=i&&n.setValue(i,!0),null!=t.maxLength&&n.setMaxLength(t.maxLength),this.addManagedListener(n.getGui(),"keydown",(function(t){var i=t.key;i!==Fe.PAGE_UP&&i!==Fe.PAGE_DOWN||t.preventDefault()}))},n.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc(),n=this.eInput;if(n.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached){bn()||n.getFocusableElement().focus();var e=n.getInputElement();if(this.highlightAllOnFocus)e.select();else{var r=n.getValue(),o=i(r)&&r.length||0;o&&e.setSelectionRange(o,o)}}},n.prototype.focusIn=function(){var t=this.eInput,i=t.getFocusableElement(),n=t.getInputElement();i.focus(),n.select()},n.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},n.prototype.getStartValue=function(t){return t.useFormatter||t.column.getColDef().refData?t.formatValue(t.value):t.value},n.prototype.isPopup=function(){return!1},n.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([nr("eInput")],n.prototype,"eInput",void 0),n}(_o),ko=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),To=function(t){function n(){var i=t.call(this,n.TEMPLATE)||this;return i.refreshCount=0,i}return ko(n,t),n.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},n.prototype.showDelta=function(t,n){var e=Math.abs(n),r=t.formatValue(e),o=i(r)?r:e,s=n>=0;this.eDelta.innerHTML=s?"↑"+o:"↓"+o,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},n.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout((function(){i===t.refreshCount&&t.hideDeltaValue()}),2e3)},n.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ee(this.eDelta)},n.prototype.refresh=function(t){var n=t.value;return n!==this.lastValue&&(i(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:i(t.value)?this.eValue.innerHTML=n:ee(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&("number"==typeof n&&"number"==typeof this.lastValue&&this.showDelta(t,n-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=n,!0))},n.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([z("filterManager")],n.prototype,"filterManager",void 0),n}(ir),Io=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eo=function(t){function e(){var i=t.call(this,e.TEMPLATE)||this;return i.refreshCount=0,i.eCurrent=i.queryForHtmlElement(".ag-value-slide-current"),i}return Io(e,t),e.prototype.init=function(t){this.refresh(t)},e.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=se('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){i===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){i===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},e.prototype.refresh=function(t){var e=t.value;return n(e)&&(e=""),e!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,i(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:i(t.value)?this.eCurrent.innerHTML=e:ee(this.eCurrent),!0)},e.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([z("filterManager")],e.prototype,"filterManager",void 0),e}(ir),No=function(){return No=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},No.apply(this,arguments)},Ho=function(){function t(i){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=i}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,i){var n=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var e=this.createDataChangedEvent(t,n,i);this.dispatchLocalEvent(e)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(i,n,e){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:n,newData:i,update:e}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var i=new t(this.beans);return i.id=this.id,i.data=this.data,i.__daemon=!0,i.selected=this.selected,i.level=this.level,i},t.prototype.setDataAndId=function(t,n){var e=i(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(n),this.beans.selectionService.syncInRowNode(this,e),this.checkRowSelectable();var o=this.createDataChangedEvent(t,r,!1);this.dispatchLocalEvent(o)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(i){if(this.selectable!==i&&(this.selectable=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var n=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=n&&n,source:"selectableChanged"})}},t.prototype.setId=function(i){var n=this.beans.gridOptionsService.getRowIdFunc();if(n)if(this.data){var e=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=i},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var i=[],n=this;for(t&&(n=n.parent);n&&n.level>=0;)i.push(n.key),n=n.parent;return i.reverse(),i},t.prototype.isPixelInRange=function(t){return!(!i(this.rowTop)||!i(this.rowHeight))&&t>=this.rowTop&&t<this.rowTop+this.rowHeight},t.prototype.setFirstChild=function(i){this.firstChild!==i&&(this.firstChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(i){this.lastChild!==i&&(this.lastChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(i){this.childIndex!==i&&(this.childIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==i))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(i){this.displayed!==i&&(this.displayed=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(i){this.dragging!==i&&(this.dragging=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(i){i!==this.highlighted&&(this.highlighted=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(i){this.master!==i&&(this.master&&!i&&(this.expanded=!1),this.master=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(i){this.group!==i&&(this.group&&!i&&(this.expanded=!1),this.group=i,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(i,n){void 0===n&&(n=!1),this.rowHeight=i,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,i){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[i.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=D(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=!1,i=!0,n=0,e=this.__autoHeights;if(null!=e&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var o=e[r.getId()];null!=o?(i=!1,o>n&&(n=o)):t=!0})),!t&&((i||n<10)&&(n=this.beans.gridOptionsService.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var r=this.beans.rowModel;r.onRowHeightChangedDebounced&&r.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(i){this.rowIndex!==i&&(this.rowIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(i){this.uiLevel!==i&&(this.uiLevel=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(i,n){if(this.expanded!==i){this.expanded=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var e=Object.assign({},this.createGlobalRowEvent(Nt.EVENT_ROW_GROUP_OPENED),{expanded:i,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(e),this.beans.gridOptionsService.is("groupIncludeFooter")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.get("context"),api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi")}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,i,n){var e=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(e,this),o=this.beans.valueService.setValue(this,e,i,n);return this.dispatchCellChangedEvent(e,i,r),this.checkRowSelectable(),o},t.prototype.setGroupValue=function(t,i){var e=this.beans.columnModel.getGridColumn(t);n(this.groupData)&&(this.groupData={});var r=e.getColId(),o=this.groupData[r];o!==i&&(this.groupData[r]=i,this.dispatchCellChangedEvent(e,i,o))},t.prototype.setAggData=function(t){var i=this,n=g([this.aggData,t]),e=this.aggData;this.aggData=t,this.eventService&&n.forEach((function(t){var n=i.beans.columnModel.getGridColumn(t);i.dispatchCellChangedEvent(n,i.aggData?i.aggData[t]:void 0,e?e[t]:void 0)}))},t.prototype.updateHasChildren=function(){var i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;i!==this.__hasChildren&&(this.__hasChildren=!!i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&e(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(i,n,e){this.dispatchLocalEvent({type:t.EVENT_CELL_CHANGED,node:this,column:i,newValue:n,oldValue:e})},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(i){return i.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,i=!1,n=!1,e=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var r=0;r<this.childrenAfterGroup.length;r++){var o=this.childrenAfterGroup[r],s=o.isSelected();if(!o.selectable){var u=o.calculateSelectedFromChildren();if(null===u)continue;s=u}switch(s){case!0:i=!0;break;case!1:n=!0;break;default:e=!0}}return e||i&&n?void 0:!!i||!n&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.setSelected=function(t,i,n,e){void 0===i&&(i=!1),void 0===n&&(n=!1),void 0===e&&(e="api"),this.setSelectedParams({newValue:t,clearSelection:i,suppressFinishActions:n,rangeSelect:!1,source:e})},t.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},t.prototype.setSelectedParams=function(t){var i,n,e=this.beans.gridOptionsService.is("groupSelectsChildren"),r=!0===t.newValue,o=!0===t.clearSelection,s=!0===t.suppressFinishActions,u=!0===t.rangeSelect,h=e&&!0===t.groupSelectsFiltered,c=null!==(i=t.source)&&void 0!==i?i:"api";if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(u&&this.beans.selectionService.getLastSelectedNode()){var a=this.beans.selectionService.getLastSelectedNode()!==this,f="multiple"===this.beans.gridOptionsService.get("rowSelection");if(a&&f){var l=this.doRowRangeSelection(t.newValue,c);return this.beans.selectionService.setLastSelectedNode(this),l}}var v=0;return h&&this.group||this.selectThisNode(r,t.event,c)&&v++,e&&(null===(n=this.childrenAfterGroup)||void 0===n?void 0:n.length)&&(v+=this.selectChildNodes(r,h,c)),s||(r&&(o||"multiple"!==this.beans.gridOptionsService.get("rowSelection"))&&(v+=this.beans.selectionService.clearOtherNodes(this,c)),v>0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(c),this.beans.eventService.dispatchEvent({type:Nt.EVENT_SELECTION_CHANGED,source:c})),r&&this.beans.selectionService.setLastSelectedNode(this)),v},t.prototype.doRowRangeSelection=function(t,i){var n=this;void 0===t&&(t=!0);var e=this.beans.gridOptionsService.is("groupSelectsChildren"),r=this.beans.selectionService.getLastSelectedNode(),o=this.beans.rowModel.getNodesInRangeForSelection(this,r),s=0;return o.forEach((function(r){r.group&&e||!1===t&&n===r||r.selectThisNode(t,void 0,i)&&s++})),this.beans.selectionService.updateGroupsFromChildrenSelections(i),this.beans.eventService.dispatchEvent({type:Nt.EVENT_SELECTION_CHANGED,source:i}),s},t.prototype.isParentOfNode=function(t){for(var i=this.parent;i;){if(i===t)return!0;i=i.parent}return!1},t.prototype.selectThisNode=function(i,n,e){if(void 0===e&&(e="api"),!this.selectable&&i||this.selected===i)return!1;this.selected=i,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var r=No(No({},this.createGlobalRowEvent(Nt.EVENT_ROW_SELECTED)),{event:n||null,source:e});return this.beans.eventService.dispatchEvent(r),!0},t.prototype.selectChildNodes=function(t,i,e){var r=i?this.childrenAfterAggFilter:this.childrenAfterGroup;if(n(r))return 0;for(var o=0,s=0;s<r.length;s++)o+=r[s].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:i,source:e});return o},t.prototype.addEventListener=function(t,i){this.eventService||(this.eventService=new Q),this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService&&(this.eventService.removeEventListener(t,i),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(t){for(var n=this,e=!0,r=!1,o=null;e&&!r;){var s=n.parent;i(s)&&n.firstChild?s.rowGroupColumn===t&&(r=!0,o=s):e=!1,n=s}return r?o:null},t.prototype.isFullWidthCell=function(){var t=this.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},t.prototype.getIsFullWidthCellFunc=function(){var t=this.beans.gridOptionsService.getCallback("isFullWidthRow");if(t)return t;var i=this.beans.gridOptionsService.get("isFullWidthCell");return i?function(t){return i(t.rowNode)}:void 0},t.prototype.getRoute=function(){if(null!=this.key){for(var t=[],i=this;null!=i.key;)t.push(i.key),i=i.parent;return t.reverse()}},t.prototype.createFooter=function(){var i=this;if(!this.sibling){var n=new t(this.beans);Object.keys(this).forEach((function(t){n[t]=i[t]})),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id="rowGroupFooter_"+this.id,n.sibling=this,this.sibling=n}},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),Lo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bo=function(){return Bo=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Bo.apply(this,arguments)},Wo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},zo=function(t){function i(){return t.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Lo(i,t),i.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},i.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},i.prototype.onDataChanged=function(){this.onSelectionChanged()},i.prototype.onSelectableChanged=function(){this.showOrHideSelect()},i.prototype.onSelectionChanged=function(){var t=this.localeService.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?t("ariaIndeterminate","indeterminate"):!0===i?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),e=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(e+" ("+n+")")},i.prototype.onCheckedClicked=function(t){var i=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"checkboxSelected"})},i.prototype.onUncheckedClicked=function(t){var i=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"checkboxSelected"})},i.prototype.init=function(t){var i=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){Ot(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){Ot(t);var n=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===n?0===i.onUncheckedClicked(t||{})&&i.onCheckedClicked(t):n?i.onCheckedClicked(t):i.onUncheckedClicked(t||{})})),this.addManagedListener(this.rowNode,Ho.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Ho.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},i.prototype.showOrHideSelect=function(){var t,i,n,e,r=this.rowNode.selectable,o=this.getIsVisible();if(r)if("function"==typeof o){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,u=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);r=!!u&&o(Bo(Bo({},s),u))}else r=null!=o&&o;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!r),this.setVisible(!0),void this.setDisplayed(!0);(null===(e=this.overrides)||void 0===e?void 0:e.removeHidden)?this.setDisplayed(r):this.setVisible(r)},i.prototype.getIsVisible=function(){var t,i;return this.overrides?this.overrides.isVisible:null===(i=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===i?void 0:i.checkboxSelection},Wo([nr("eCheckbox")],i.prototype,"eCheckbox",void 0),Wo([L],i.prototype,"postConstruct",null),i}(ir),Vo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Uo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ko=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};
|
|
206
|
+
/**
|
|
207
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
208
|
+
* @version v29.0.0
|
|
209
|
+
* @link https://www.ag-grid.com/
|
|
210
|
+
* @license MIT
|
|
211
|
+
*/!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel"}(Ir||(Ir={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(Er||(Er={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(Nr||(Nr={}));var Yo,qo=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var n;return Vo(i,t),n=i,i.prototype.init=function(){this.ePinnedIcon=_e("columnMovePin",this.gridOptionsService,null),this.eHideIcon=_e("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=_e("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=_e("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=_e("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=_e("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=_e("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=_e("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=_e("dropNotAllowed",this.gridOptionsService,null)},i.prototype.addDragSource=function(t,i){void 0===i&&(i=!1);var n={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:t}),this.dragService.addDragSource(n,i)},i.prototype.removeDragSource=function(t){var i=this.dragSourceAndParamsList.find((function(i){return i.dragSource===t}));i&&(this.dragService.removeDragSource(i.params),at(this.dragSourceAndParamsList,i))},i.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(i){return t.dragService.removeDragSource(i.params)})),this.dragSourceAndParamsList.length=0},i.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},i.prototype.onDragStart=function(t,i){this.dragging=!0,this.dragSource=t,this.eventLastTime=i,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},i.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var i=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(i)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},i.prototype.onDragging=function(t,i){var n,e,r,o,s=this,u=this.getHorizontalDirection(t),h=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var c=this.dropTargets.filter((function(i){return s.isMouseOnDropTarget(t,i)})),a=this.findCurrentDropTarget(t,c);if(a!==this.lastDropTarget)this.leaveLastTargetIfExists(t,u,h,i),null!==this.lastDropTarget&&null===a&&(null===(e=(n=this.dragSource).onGridExit)||void 0===e||e.call(n,this.dragItem)),null===this.lastDropTarget&&null!==a&&(null===(o=(r=this.dragSource).onGridEnter)||void 0===o||o.call(r,this.dragItem)),this.enterDragTargetIfExists(a,t,u,h,i),this.lastDropTarget=a;else if(a&&a.onDragging){var f=this.createDropTargetEvent(a,t,u,h,i);a.onDragging(f)}},i.prototype.getAllContainersFromDropTarget=function(t){var i=t.getSecondaryContainers?t.getSecondaryContainers():null,n=[[t.getContainer()]];return i?n.concat(i):n},i.prototype.allContainersIntersect=function(t,i){var n,e;try{for(var r=Ko(i),o=r.next();!o.done;o=r.next()){var s=o.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;if(!(t.clientX>=s.left&&t.clientX<s.right&&t.clientY>=s.top&&t.clientY<s.bottom))return!1}}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return!0},i.prototype.isMouseOnDropTarget=function(t,i){var n,e,r=this.getAllContainersFromDropTarget(i),o=!1;try{for(var s=Ko(r),u=s.next();!u.done;u=s.next())if(this.allContainersIntersect(t,u.value)){o=!0;break}}catch(t){n={error:t}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}return!(i.targetContainsSource&&!i.getContainer().contains(this.dragSource.eElement))&&o&&i.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},i.prototype.findCurrentDropTarget=function(t,i){var n,e,r,o,s=i.length;if(0===s)return null;if(1===s)return i[0];var u=this.gridOptionsService.getRootNode().elementsFromPoint(t.clientX,t.clientY);try{for(var h=Ko(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var f=(r=void 0,Ko(i)),l=f.next();!l.done;l=f.next()){var v=l.value;if(-1!==pt(this.getAllContainersFromDropTarget(v)).indexOf(a))return v}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return null},i.prototype.enterDragTargetIfExists=function(t,i,n,e,r){if(t){if(t.onDragEnter){var o=this.createDropTargetEvent(t,i,n,e,r);t.onDragEnter(o)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},i.prototype.leaveLastTargetIfExists=function(t,i,n,e){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,t,i,n,e);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},i.prototype.addDropTarget=function(t){this.dropTargets.push(t)},i.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(i){return i.getContainer()!==t.getContainer()}))},i.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},i.prototype.findExternalZone=function(t){return this.dropTargets.filter((function(t){return t.external})).find((function(i){return i.getContainer()===t.getContainer()}))||null},i.prototype.getHorizontalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientX,n=t.clientX;return i===n?null:i>n?Nr.Left:Nr.Right},i.prototype.getVerticalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientY,n=t.clientY;return i===n?null:i>n?Er.Up:Er.Down},i.prototype.createDropTargetEvent=function(t,i,n,e,r){var o=t.getContainer(),s=o.getBoundingClientRect(),u=this;return{event:i,x:i.clientX-s.left,y:i.clientY-s.top,vDirection:e,hDirection:n,dragSource:u.dragSource,fromNudge:r,dragItem:u.dragItem,api:u.gridApi,columnApi:u.columnApi,dropZoneTarget:o}},i.prototype.positionGhost=function(t){var i=this.eGhost;if(i){var n=i.getBoundingClientRect().height,e=xn()-2,r=Fn()-2,o=t.pageY-n/2,s=t.pageX-10,u=this.gridOptionsService.getDocument(),h=u.defaultView||window,c=h.pageYOffset||u.documentElement.scrollTop,a=h.pageXOffset||u.documentElement.scrollLeft;e>0&&s+i.clientWidth>e+a&&(s=e+a-i.clientWidth),s<0&&(s=0),r>0&&o+i.clientHeight>r+c&&(o=r+c-i.clientHeight),o<0&&(o=0),i.style.left=s+"px",i.style.top=o+"px"}},i.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},i.prototype.createGhost=function(){this.eGhost=se(n.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var i=this.eGhost.querySelector(".ag-dnd-ghost-label"),e=this.dragSource.dragItemName;_(e)&&(e=e()),i.innerHTML=li(e)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsService.getDocument(),o=null;try{o=r.fullscreenElement}catch(t){}finally{if(!o){var s=this.gridOptionsService.getRootNode();o=s.querySelector("body")||(s instanceof ShadowRoot?s:null==s?void 0:s.documentElement)}}this.eGhostParent=o,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},i.prototype.setGhostIcon=function(t,i){void 0===i&&(i=!1),ee(this.eGhostIcon);var e=null;switch(t||(t=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),t){case n.ICON_PINNED:e=this.ePinnedIcon;break;case n.ICON_MOVE:e=this.eMoveIcon;break;case n.ICON_LEFT:e=this.eLeftIcon;break;case n.ICON_RIGHT:e=this.eRightIcon;break;case n.ICON_GROUP:e=this.eGroupIcon;break;case n.ICON_AGGREGATE:e=this.eAggregateIcon;break;case n.ICON_PIVOT:e=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:e=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:e=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",i),e===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||e&&this.eGhostIcon.appendChild(e)},i.ICON_PINNED="pinned",i.ICON_MOVE="move",i.ICON_LEFT="left",i.ICON_RIGHT="right",i.ICON_GROUP="group",i.ICON_AGGREGATE="aggregate",i.ICON_PIVOT="pivot",i.ICON_NOT_ALLOWED="notAllowed",i.ICON_HIDE="hide",i.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Uo([z("dragService")],i.prototype,"dragService",void 0),Uo([z("mouseEventService")],i.prototype,"mouseEventService",void 0),Uo([z("columnApi")],i.prototype,"columnApi",void 0),Uo([z("gridApi")],i.prototype,"gridApi",void 0),Uo([L],i.prototype,"init",null),Uo([B],i.prototype,"clearDragSourceParamsList",null),n=Uo([W("dragAndDropService")],i)}(Pt),Jo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$o=function(t){function i(i,n,e,r,o,s){var u=t.call(this)||this;return u.cellValueFn=i,u.rowNode=n,u.column=e,u.customGui=r,u.dragStartPixels=o,u.suppressVisibilityChange=s,u.dragSource=null,u}return Jo(i,t),i.prototype.isCustomGui=function(){return null!=this.customGui},i.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Ae("rowDrag",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.beans.gridOptionsService.is("rowDragManaged")?new ts(this,this.beans,this.rowNode,this.column):new Xo(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},i.prototype.setDragElement=function(t,i){this.setTemplateFromElement(t),this.addDragSource(i)},i.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},i.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsService.is("rowDragManaged");this.beans.gridOptionsService.isTreeData()&&t&&R((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},i.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},i.prototype.getRowDragText=function(t){if(t){var i=t.getColDef();if(i.rowDragText)return i.rowDragText}return this.gridOptionsService.get("rowDragText")},i.prototype.addDragSource=function(t){var i=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var n=this.getRowDragText(this.column),e=this.localeService.getLocaleTextFunc();this.dragSource={type:Ir.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,r=i.getDragItem(),o=(null===(t=r.rowNodes)||void 0===t?void 0:t.length)||1;return n?n(r,o):1===o?i.cellValueFn():o+" "+e("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},i.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Zo([z("beans")],i.prototype,"beans",void 0),Zo([L],i.prototype,"postConstruct",null),Zo([B],i.prototype,"removeDragSource",null),i}(ir),Qo=function(t){function i(i,n,e){var r=t.call(this)||this;return r.parent=i,r.rowNode=n,r.column=e,r}return Jo(i,t),i.prototype.setDisplayedOrVisible=function(t){var i={skipAriaHidden:!0};if(t)this.parent.setDisplayed(!1,i);else{var n=!0,e=!1;this.column&&(n=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),e=_(this.column.getColDef().rowDrag)),e?(this.parent.setDisplayed(!0,i),this.parent.setVisible(n,i)):(this.parent.setDisplayed(n,i),this.parent.setVisible(!0,i))}},i}(Pt),Xo=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return Jo(i,t),i.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(t)},Zo([L],i.prototype,"postConstruct",null),i}(Qo),ts=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return Jo(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Nt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Nt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),i=t&&t.shouldPreventRowMove(),n=this.beans.gridOptionsService.is("suppressRowDrag"),e=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(i&&!e||n)},Zo([L],i.prototype,"postConstruct",null),i}(Qo),is=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ns=function(){return ns=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},ns.apply(this,arguments)},es=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rs=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return is(i,t),i.prototype.init=function(t,i,n,e,r,o,s){this.params=s,this.eGui=i,this.eCheckbox=n,this.eExpanded=e,this.eContracted=r,this.comp=t,this.compClass=o;var u=this.isTopLevelFooter(),h=this.isEmbeddedRowMismatch(),c=null==s.value,a=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var f=s.node;f.footer&&(a=(s.colDef&&s.colDef.showRowGroup)!==(f.rowGroupColumn&&f.rowGroupColumn.getColId()))}this.cellIsBlank=!u&&(h||c||a),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},i.prototype.refreshAriaExpanded=function(){var t=this.params,i=t.node,n=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var e=function(){zi(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,Ho.EVENT_EXPANDED_CHANGED,e)||null,e()}else Vi(n)},i.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var i=this.columnModel.getRowGroupColumns();return!i||0===i.length||i[0].getId()===t.showRowGroup},i.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var t="left"===this.params.pinned,i="right"===this.params.pinned,n=!t&&!i;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!t:!n},i.prototype.findDisplayedGroupNode=function(){var t=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var e=i.parent;null!=e;){if(e.rowGroupColumn&&t.isRowGroupDisplayed(e.rowGroupColumn.getId())){this.displayedGroupNode=e;break}e=e.parent}n(this.displayedGroupNode)&&(this.displayedGroupNode=i)},i.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,i=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(t.groupData){if(null!=t.rowGroupColumn){var n=t.rowGroupColumn.getId();if(i.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var e=null!=t.groupData[i.getId()];this.showingValueForOpenedParent=e}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},i.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},i.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(t),n=t.value,e=t.valueFormatted;null==e&&(e=""===n&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):n),this.comp.setInnerRenderer(i,e)},i.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!t)return this.params;if(null!=i&&!i.isRowGroupDisplayed(t.getId()))return this.params;var n=this.params,e=this.params,r=this.valueFormatterService.formatValue(t,e.node,e.value);return ns(ns({},n),{valueFormatted:r})},i.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,i="";if(t){var n=f(this.params);n.value=this.params.value,"function"==typeof t?i=t(n):"string"==typeof t?i=this.expressionService.evaluate(t,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var e=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(e,i)},i.prototype.getInnerCompDetails=function(t){var i=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),t);var n=this.userComponentFactory.getInnerRendererDetails(t,t),e=function(t){return t&&t.componentClass==i.compClass};if(n&&!e(n))return n;var r=this.displayedGroupNode.rowGroupColumn,o=r?r.getColDef():void 0;if(o){var s=this.userComponentFactory.getCellRendererDetails(o,t);if(s&&!e(s))return s;if(e(s)&&o.cellRendererParams&&o.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(o.cellRendererParams,t)}},i.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ho.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},i.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=t&&t>=0?"("+t+")":"")},i.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(t.getId())},i.prototype.addExpandAndContract=function(){var t=this.params,i=Ae("groupExpanded",this.gridOptionsService,null),n=Ae("groupContracted",this.gridOptionsService,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var e=t.eGridCell;this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(e,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,Ho.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ho.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ho.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ho.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ho.EVENT_HAS_CHILDREN_CHANGED,r)},i.prototype.onExpandClicked=function(t){St(t)||(Ot(t),this.onExpandOrContract(t))},i.prototype.onExpandOrContract=function(t){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,t)},i.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},i.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&t.leafGroup;if(!t.isExpandable()||t.footer||i)return!1;var n=this.params.column;return null==n||"string"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},i.prototype.showExpandAndContractIcons=function(){var t=this,i=t.displayedGroupNode,n=t.columnModel,e=t.params.node,r=this.isExpandable();if(r){var o=!!this.showingValueForOpenedParent||e.expanded;this.comp.setExpandedDisplayed(o),this.comp.setContractedDisplayed(!o)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=n.isPivotMode(),u=s&&i.leafGroup,h=r&&!u,c=e.footer&&-1===e.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",h),this.comp.addOrRemoveCssClass("ag-row-group",h),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",u):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!h)},i.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},i.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,Ho.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},i.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var t=this.params,i=t.node,n=!!t.colDef,e=this.gridOptionsService.isTreeData(),r=!n||e||!0===t.colDef.showRowGroup?i.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},i.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new $o((function(){return t.params.value}),this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},i.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},i.prototype.addCheckboxIfNeeded=function(){var t=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var e=new zo;this.getContext().createBean(e),e.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(e.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(e)}))}this.comp.setCheckboxVisible(n)},i.prototype.onKeyDown=function(t){t.key!==Fe.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t)},i.prototype.onCellDblClicked=function(t){St(t)||_t(this.eExpanded,t)||_t(this.eContracted,t)||this.onExpandOrContract(t)},es([z("expressionService")],i.prototype,"expressionService",void 0),es([z("valueFormatterService")],i.prototype,"valueFormatterService",void 0),es([z("columnModel")],i.prototype,"columnModel",void 0),es([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),es([z("ctrlsService")],i.prototype,"ctrlsService",void 0),i}(Pt),os=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ss=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},us=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return os(i,t),i.prototype.init=function(t){var i=this,n={setInnerRenderer:function(t,n){return i.setRenderDetails(t,n)},setChildCount:function(t){return i.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,n){return i.addOrRemoveCssClass(t,n)},setContractedDisplayed:function(t){return Un(i.eContracted,t)},setExpandedDisplayed:function(t){return Un(i.eExpanded,t)},setCheckboxVisible:function(t){return i.eCheckbox.classList.toggle("ag-invisible",!t)}},e=this.createManagedBean(new rs),r=!t.colDef,o=this.getGui();e.init(n,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),r&&Di(o,"gridcell")},i.prototype.setRenderDetails=function(t,i){var n=this;if(t){var e=t.newAgStackInstance();if(!e)return;e.then((function(t){if(t){var i=function(){return n.context.destroyBean(t)};n.isAlive()?(n.eValue.appendChild(t.getGui()),n.addDestroyFunc(i)):i()}}))}else this.eValue.innerText=i},i.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},i.prototype.refresh=function(){return!1},i.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',ss([nr("eExpanded")],i.prototype,"eExpanded",void 0),ss([nr("eContracted")],i.prototype,"eContracted",void 0),ss([nr("eCheckbox")],i.prototype,"eCheckbox",void 0),ss([nr("eValue")],i.prototype,"eValue",void 0),ss([nr("eChildCount")],i.prototype,"eChildCount",void 0),i}(ir),hs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},as=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return hs(i,t),i.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},i.prototype.setupFailed=function(){var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},i.prototype.setupLoading=function(){var t=Ae("groupLoading",this.gridOptionsService,null);t&&this.eLoadingIcon.appendChild(t);var i=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},i.prototype.refresh=function(){return!1},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',cs([nr("eLoadingIcon")],i.prototype,"eLoadingIcon",void 0),cs([nr("eLoadingText")],i.prototype,"eLoadingText",void 0),i}(ir),fs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ls=function(t){function i(){return t.call(this)||this}return fs(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t,n=null!==(t=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==t?t:i.DEFAULT_LOADING_OVERLAY_TEMPLATE,e=this.localeService.getLocaleTextFunc(),r=n.replace("[LOADING...]",e("loadingOoo","Loading..."));this.setTemplate(r)},i.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',i}(ir),vs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ds=function(t){function i(){return t.call(this)||this}return vs(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t,n=null!==(t=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==t?t:i.DEFAULT_NO_ROWS_TEMPLATE,e=this.localeService.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",e("noRowsToShow","No Rows To Show"));this.setTemplate(r)},i.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',i}(ir),ps=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),gs=function(t){function i(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return ps(i,t),i.prototype.init=function(t){var i=t.value;this.getGui().innerHTML=li(i)},i}(_o),bs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ms=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ws=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.agGridDefaults={agDateInput:Xr,agColumnHeader:Oo,agColumnGroupHeader:Ro,agSortIndicator:mo,agTextColumnFloatingFilter:vo,agNumberColumnFloatingFilter:fo,agDateColumnFloatingFilter:$r,agReadOnlyFloatingFilter:ur,agAnimateShowChangeCellRenderer:To,agAnimateSlideCellRenderer:Eo,agGroupCellRenderer:us,agGroupRowRenderer:us,agLoadingCellRenderer:as,agCellEditor:Po,agTextCellEditor:Po,agSelectCellEditor:Go,agLargeTextCellEditor:xo,agTextColumnFilter:so,agNumberColumnFilter:no,agDateColumnFilter:Kr,agLoadingOverlay:ls,agNoRowsOverlay:ds,agTooltipComponent:gs},i.enterpriseAgDefaultCompsModule={agSetColumnFilter:q.SetFilterModule,agSetColumnFloatingFilter:q.SetFilterModule,agMultiColumnFilter:q.MultiFilterModule,agMultiColumnFloatingFilter:q.MultiFilterModule,agRichSelect:q.RichSelectModule,agRichSelectCellEditor:q.RichSelectModule,agDetailCellRenderer:q.MasterDetailModule,agSparklineCellRenderer:q.SparklinesModule},i.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'},i.jsComps={},i.fwComps={},i}return bs(i,t),i.prototype.init=function(){var t=this;null!=this.gridOptions.components&&a(this.gridOptions.components,(function(i,n){return t.registerJsComponent(i,n)})),null!=this.gridOptions.frameworkComponents&&a(this.gridOptions.frameworkComponents,(function(i,n){return t.registerFwComponent(i,n)}))},i.prototype.registerDefaultComponent=function(t,i){this.agGridDefaults[t]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[t]=i},i.prototype.registerJsComponent=function(t,i){this.fwComps[t]?console.error("Trying to register a component that you have already registered for frameworks: "+t):this.jsComps[t]=i},i.prototype.registerFwComponent=function(t,i){R((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated"),this.fwComps[t]=i},i.prototype.retrieve=function(t){var i=this,n=function(t,i){return{componentFromFramework:i,component:t}},e=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=e)return n(e,!0);var r=this.fwComps[t];if(r)return n(r,!0);var o=this.jsComps[t];if(o)return n(o,this.getFrameworkOverrides().isFrameworkComponent(o));var s=this.agGridDefaults[t];if(s)return n(s,!1);var u=this.enterpriseAgDefaultCompsModule[t];return u?X.assertRegistered(u,"AG Grid component ["+t+"]"):this.deprecatedAgGridDefaults[t]?R((function(){return console.warn(i.deprecatedAgGridDefaults[t])}),t):R((function(){return console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found. Have you registered the component? See https://ag-grid.com/javascript-data-grid/components/")}),"MissingComp"+t),null},ms([z("gridOptions")],i.prototype,"gridOptions",void 0),ms([L],i.prototype,"init",null),ms([W("userComponentRegistry")],i)}(Pt),ys={propertyName:"dateComponent",cellRenderer:!1},Os={propertyName:"headerComponent",cellRenderer:!1},Ss={propertyName:"headerGroupComponent",cellRenderer:!1},Cs={propertyName:"cellRenderer",cellRenderer:!0},Rs={propertyName:"cellEditor",cellRenderer:!1},js={propertyName:"innerRenderer",cellRenderer:!0},_s={propertyName:"loadingOverlayComponent",cellRenderer:!1},As={propertyName:"noRowsOverlayComponent",cellRenderer:!1},xs={propertyName:"tooltipComponent",cellRenderer:!1},Fs={propertyName:"filter",cellRenderer:!1},Ms={propertyName:"floatingFilterComponent",cellRenderer:!1},Gs={propertyName:"toolPanel",cellRenderer:!1},Ds={propertyName:"statusPanel",cellRenderer:!1},Ps={propertyName:"fullWidthCellRenderer",cellRenderer:!0},ks={propertyName:"loadingCellRenderer",cellRenderer:!0},Ts={propertyName:"groupRowRenderer",cellRenderer:!0},Is={propertyName:"detailCellRenderer",cellRenderer:!0},Es=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),Ns=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ls=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ns(i,t),i.prototype.getHeaderCompDetails=function(t,i){return this.getCompDetails(t,Os,"agColumnHeader",i)},i.prototype.getHeaderGroupCompDetails=function(t){var i=t.columnGroup.getColGroupDef();return this.getCompDetails(i,Ss,"agColumnGroupHeader",t)},i.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Ps,null,t,!0)},i.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,ks,"agLoadingCellRenderer",t,!0)},i.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Ts,"agGroupRowRenderer",t,!0)},i.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Is,"agDetailCellRenderer",t,!0)},i.prototype.getInnerRendererDetails=function(t,i){return this.getCompDetails(t,js,null,i)},i.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,i){return this.getCompDetails(t,js,null,i)},i.prototype.getCellRendererDetails=function(t,i){return this.getCompDetails(t,Cs,null,i)},i.prototype.getCellEditorDetails=function(t,i){return this.getCompDetails(t,Rs,"agCellEditor",i,!0)},i.prototype.getFilterDetails=function(t,i,n){return this.getCompDetails(t,Fs,n,i,!0)},i.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,ys,"agDateInput",t,!0)},i.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,_s,"agLoadingOverlay",t,!0)},i.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,As,"agNoRowsOverlay",t,!0)},i.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,xs,"agTooltipComponent",t,!0)},i.prototype.getSetFilterCellRendererDetails=function(t,i){return this.getCompDetails(t,Cs,null,i)},i.prototype.getFloatingFilterCompDetails=function(t,i,n){return this.getCompDetails(t,Ms,n,i)},i.prototype.getToolPanelCompDetails=function(t,i){return this.getCompDetails(t,Gs,null,i,!0)},i.prototype.getStatusPanelCompDetails=function(t,i){return this.getCompDetails(t,Ds,null,i,!0)},i.prototype.getCompDetails=function(t,i,n,e,r){var o=this;void 0===r&&(r=!1);var s=i.propertyName,u=i.cellRenderer,h=this.getCompKeys(t,i,e),c=h.compName,a=h.jsComp,f=h.fwComp,l=h.paramsFromSelector,v=h.popupFromSelector,d=h.popupPositionFromSelector,p=function(t){var i=o.userComponentRegistry.retrieve(t);i&&(a=i.componentFromFramework?void 0:i.component,f=i.componentFromFramework?i.component:void 0)};if(null!=c&&p(c),null==a&&null==f&&null!=n&&p(n),a&&u&&!this.agComponentUtils.doesImplementIComponent(a)&&(a=this.agComponentUtils.adaptFunction(s,a)),a||f){var g=this.mergeParamsWithApplicationProvidedParams(t,i,e,l),b=null==a,m=a||f;return{componentFromFramework:b,componentClass:m,params:g,type:i,popupFromSelector:v,popupPositionFromSelector:d,newAgStackInstance:function(){return o.newAgStackInstance(m,b,g,i)}}}r&&console.error("AG Grid: Could not find component "+c+", did you forget to configure this component?")},i.prototype.getCompKeys=function(t,i,n){var e,r,o,s,u,h,c=this,a=i.propertyName;if(t){var f=t,l=f[a+"Selector"],v=l?l(n):null,d=function(t,i){var n=function(){var t="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";R((function(){return console.warn(t)}),"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof t?e=t:"string"==typeof i?(n(),e=i):null!=t&&!0!==t?c.getFrameworkOverrides().isFrameworkComponent(t)?o=t:r=t:null!=i&&(n(),o=i)};if(v){if(null!=v.frameworkComponent){var p="AG Grid: As of v27, the return for "+a+"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.";R((function(){return console.warn(p)}),"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),d(v.frameworkComponent,void 0)}else d(v.component,void 0);s=v.params,u=v.popup,h=v.popupPosition}else d(f[a],f[a+"Framework"])}return{compName:e,jsComp:r,fwComp:o,paramsFromSelector:s,popupFromSelector:u,popupPositionFromSelector:h}},i.prototype.newAgStackInstance=function(t,i,n,e){var r;if(i){var o=this.componentMetadataProvider.retrieve(e.propertyName);r=this.frameworkComponentWrapper.wrap(t,o.mandatoryMethodList,o.optionalMethodList,e)}else r=new t;var s=this.initComponent(r,n);return null==s?Ke.resolve(r):s.then((function(){return r}))},i.prototype.mergeParamsWithApplicationProvidedParams=function(t,i,n,e){void 0===e&&(e=null);var r={context:this.gridOptionsService.get("context"),columnApi:this.gridOptionsService.get("columnApi"),api:this.gridOptionsService.get("api")};m(r,n);var o=t&&t[i.propertyName+"Params"];return"function"==typeof o?m(r,o(n)):"object"==typeof o&&m(r,o),m(r,e),r},i.prototype.initComponent=function(t,i){if(this.context.createBean(t),null!=t.init)return t.init(i)},i.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var i=null,n=this.getCompKeys(t,Fs),e=n.compName,r=n.jsComp,o=n.fwComp;return e?i=Es.getFloatingFilterType(e):null==r&&null==o&&!0===t.filter&&(i=X.isRegistered(q.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},Hs([z("gridOptions")],i.prototype,"gridOptions",void 0),Hs([z("agComponentUtils")],i.prototype,"agComponentUtils",void 0),Hs([z("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),Hs([z("userComponentRegistry")],i.prototype,"userComponentRegistry",void 0),Hs([V("frameworkComponentWrapper")],i.prototype,"frameworkComponentWrapper",void 0),Hs([W("userComponentFactory")],i)}(Pt);
|
|
212
|
+
/**
|
|
213
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
214
|
+
* @version v29.0.0
|
|
215
|
+
* @link https://www.ag-grid.com/
|
|
216
|
+
* @license MIT
|
|
217
|
+
*/!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(Yo||(Yo={}));
|
|
218
|
+
/**
|
|
219
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
220
|
+
* @version v29.0.0
|
|
221
|
+
* @link https://www.ag-grid.com/
|
|
222
|
+
* @license MIT
|
|
223
|
+
*/
|
|
224
|
+
var Bs,Ws=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Vs=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragEndFunctions=[],i.dragSources=[],i}return Ws(n,t),n.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},n.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},n.prototype.removeListener=function(t){var i=t.dragSource.eElement;i.removeEventListener("mousedown",t.mouseDownListener),t.touchEnabled&&i.removeEventListener("touchstart",t.touchStartListener,{passive:!0})},n.prototype.removeDragSource=function(t){var i=this.dragSources.find((function(i){return i.dragSource===t}));i&&(this.removeListener(i),at(this.dragSources,i))},n.prototype.isDragging=function(){return this.dragging},n.prototype.addDragSource=function(t,i){var n=this;void 0===i&&(i=!1);var e=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",e);var r=null,o=this.gridOptionsService.is("suppressTouch");i&&!o&&t.eElement.addEventListener("touchstart",r=function(i){Vn(i.target)||(i.cancelable&&i.preventDefault(),n.onTouchStart(t,i))},{passive:!1}),this.dragSources.push({dragSource:t,mouseDownListener:e,touchStartListener:r,touchEnabled:i})},n.prototype.onTouchStart=function(t,i){var n=this;this.currentDragParams=t,this.dragging=!1;var e=i.touches[0];this.touchLastTime=e,this.touchStart=e;var r=function(i){return n.onTouchUp(i,t.eElement)},o=i.target,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:o,type:"touchmove",listener:function(i){return n.onTouchMove(i,t.eElement)},options:{passive:!0}},{target:o,type:"touchend",listener:r,options:{passive:!0}},{target:o,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(e,this.touchStart,t.eElement)},n.prototype.onMouseDown=function(t,i){var n=this,e=i;if(!(t.skipMouseEvent&&t.skipMouseEvent(i)||e._alreadyProcessedByDragService||(e._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=i;var r=this.gridOptionsService.getDocument();this.addTemporaryEvents([{target:r,type:"mousemove",listener:function(i){return n.onMouseMove(i,t.eElement)}},{target:r,type:"mouseup",listener:function(i){return n.onMouseUp(i,t.eElement)}},{target:r,type:"contextmenu",listener:function(t){return t.preventDefault()}}]),0===t.dragStartPixels&&this.onMouseMove(i,t.eElement)}},n.prototype.addTemporaryEvents=function(t){t.forEach((function(t){t.target.addEventListener(t.type,t.listener,t.options)})),this.dragEndFunctions.push((function(){t.forEach((function(t){t.target.removeEventListener(t.type,t.listener,t.options)}))}))},n.prototype.isEventNearStartEvent=function(t,n){var e=this.currentDragParams.dragStartPixels;return Ie(t,n,i(e)?e:4)},n.prototype.getFirstActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},n.prototype.onCommonMove=function(t,i,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,i))return;this.dragging=!0,this.eventService.dispatchEvent({type:Nt.EVENT_DRAG_STARTED,target:n}),this.currentDragParams.onDragStart(i),this.currentDragParams.onDragging(i)}this.currentDragParams.onDragging(t)},n.prototype.onTouchMove=function(t,i){var n=this.getFirstActiveTouch(t.touches);n&&this.onCommonMove(n,this.touchStart,i)},n.prototype.onMouseMove=function(t,i){(this.gridOptionsService.is("enableCellTextSelection")||bn())&&"mousemove"===t.type&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,i)},n.prototype.isOverFormFieldElement=function(t){var i=t.target,n=null==i?void 0:i.tagName.toLocaleLowerCase();return!!(null==n?void 0:n.match("^a$|textarea|input|select|button"))},n.prototype.onTouchUp=function(t,i){var n=this.getFirstActiveTouch(t.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,i)},n.prototype.onMouseUp=function(t,i){this.onUpCommon(t,i)},n.prototype.onUpCommon=function(t,i){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(t),this.eventService.dispatchEvent({type:Nt.EVENT_DRAG_STOPPED,target:i})),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},zs([z("loggerFactory")],n.prototype,"loggerFactory",void 0),zs([z("mouseEventService")],n.prototype,"mouseEventService",void 0),zs([L],n.prototype,"init",null),zs([B],n.prototype,"removeAllListeners",null),zs([W("dragService")],n)}(Pt);!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(Bs||(Bs={}));
|
|
225
|
+
/**
|
|
226
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
227
|
+
* @version v29.0.0
|
|
228
|
+
* @link https://www.ag-grid.com/
|
|
229
|
+
* @license MIT
|
|
230
|
+
*/
|
|
231
|
+
var Us,Ks=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ys=function(){return Ys=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ys.apply(this,arguments)},qs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Js=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return Ks(n,t),e=n,n.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedPropertyListener("quickFilterText",(function(i){return t.setQuickFilter(i.currentValue)})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},n.prototype.isExternalFilterPresentCallback=function(){var t=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof t&&t({})},n.prototype.doesExternalFilterPass=function(t){var i=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof i&&i(t)},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(t){var i=this,n=[],e=this.getFilterModel();if(t){var r=He(Object.keys(t));this.allColumnFilters.forEach((function(e,o){n.push(i.setModelOnFilterWrapper(e.filterPromise,t[o])),r.delete(o)})),r.forEach((function(e){var r=i.columnModel.getPrimaryColumn(e)||i.columnModel.getGridColumn(e);if(r)if(r.isFilterAllowed()){var o=i.getOrCreateFilterWrapper(r,"NO_UI");o?n.push(i.setModelOnFilterWrapper(o.filterPromise,t[e])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+e)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+e);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+e)}))}else this.allColumnFilters.forEach((function(t){n.push(i.setModelOnFilterWrapper(t.filterPromise,null))}));Ke.all(n).then((function(){var t=i.getFilterModel(),n=[];i.allColumnFilters.forEach((function(i,r){ze.jsonEquals(e?e[r]:null,t?t[r]:null)||n.push(i.column)})),n.length>0&&i.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(t,i){return new Ke((function(n){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(t.setModel(i)||Ke.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(n,e){var r=n.filterPromise.resolveNow(null,(function(t){return t}));if(null==r)return null;if("function"==typeof r.getModel){var o=r.getModel();i(o)&&(t[e]=o)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},n.prototype.doAggregateFiltersPass=function(t,i){return this.doColumnFiltersPass(t,i,!0)},n.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var i=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(e){if(e.filterPromise.resolveNow(!1,i)){var r=e.filterPromise.resolveNow(null,(function(t){return t}));!function(i){if(!i.isPrimary())return!0;var e=!t.columnModel.isPivotActive();return!(!i.isValueActive()||!e)&&(!!t.columnModel.isPivotMode()||n)}(e.column)?t.activeColumnFilters.push(r):t.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(t,i){this.allColumnFilters.forEach((function(n){var e=n.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));n.column.setFilterActive(e,t,i)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(t,i,n){for(var e=n?this.activeAggregateFilters:this.activeColumnFilters,r=n?t.aggData:t.data,o=0;o<e.length;o++){var s=e[o];if(null!=s&&s!==i){if("function"!=typeof s.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!s.doesFilterPass({node:t,data:r}))return!1}}return!0},n.prototype.parseQuickFilter=function(t){return i(t)?this.gridOptionsService.isRowModelType("clientSide")?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var i=this.parseQuickFilter(t);this.quickFilter!==i&&(this.quickFilter=i,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var i=this;void 0===t&&(t={});var n=function(){return i.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(t){void 0===t&&(t={});var i=t.filterInstance,n=t.additionalEventAttributes,e=t.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==i&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var r={type:Nt.EVENT_FILTER_CHANGED,columns:e||[]};n&&m(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(t,i){return this.doesRowPassFilter({rowNode:i,filterInstanceToSkip:t})},n.prototype.doesRowPassQuickFilterNoCache=function(t,n){var e=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(r){var o=e.getQuickFilterTextForColumn(r,t);return i(o)&&o.indexOf(n)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(t,i){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(i)>=0},n.prototype.doesRowPassQuickFilter=function(t){var i=this,n=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every((function(e){return n?i.doesRowPassQuickFilterCache(t,e):i.doesRowPassQuickFilterNoCache(t,e)}))},n.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(t.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip))},n.prototype.getQuickFilterTextForColumn=function(t,n){var e=this.valueService.getValue(t,n,!0),r=t.getColDef();if(r.getQuickFilterText){var o={value:e,node:n,data:n.data,column:t,colDef:r,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")};e=r.getQuickFilterText(o)}return i(e)?e.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(t){var n=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(e){var o=n.getQuickFilterTextForColumn(e,t);i(o)&&r.push(o)})),t.quickFilterAggregateText=r.join(e.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t,{afterDataChange:!0}),this.updateActiveFilters()},n.prototype.createValueGetter=function(t){var i=this;return function(n){return i.valueService.getValue(t,n.node,!0)}},n.prototype.getFilterComponent=function(t,i,n){var e;if(void 0===n&&(n=!0),n)return(null===(e=this.getOrCreateFilterWrapper(t,i))||void 0===e?void 0:e.filterPromise)||null;var r=this.cachedFilter(t);return r?r.filterPromise:null},n.prototype.isFilterActive=function(t){var i=this.cachedFilter(t);return!!i&&i.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(t,i){if(!t.isFilterAllowed())return null;var n=this.cachedFilter(t);return n?"NO_UI"!==i&&this.putIntoGui(n,i):(n=this.createFilterWrapper(t,i),this.allColumnFilters.set(t.getColId(),n)),n},n.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},n.prototype.createFilterInstance=function(t){var i,n=this,e=X.isRegistered(q.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",r=t.getColDef(),o=Ys(Ys({},this.createFilterParams(t,r)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:Nt.EVENT_FILTER_MODIFIED,column:t,filterInstance:i})},filterChangedCallback:function(e){n.callOnFilterChangedOutsideRenderCycle({filterInstance:i,additionalEventAttributes:e,columns:[t]})},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(i,t)}}),s=this.userComponentFactory.getFilterDetails(r,o,e);if(!s)return null;var u=s.newAgStackInstance();return u&&u.then((function(t){return i=t})),u},n.prototype.createFilterParams=function(t,i){return{column:t,colDef:f(i),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")}},n.prototype.createFilterWrapper=function(t,i){var n={column:t,filterPromise:null,compiledElement:null,guiPromise:Ke.resolve(null)};return n.filterPromise=this.createFilterInstance(t),n.filterPromise&&this.putIntoGui(n,i),n},n.prototype.putIntoGui=function(t,n){var e=this,r=document.createElement("div");r.className="ag-filter",t.guiPromise=new Ke((function(o){t.filterPromise.then((function(s){var u=s.getGui();i(u)||console.warn("AG Grid: getGui method from filter returned "+u+", it should be a DOM element or an HTML template string."),"string"==typeof u&&(u=se(u)),r.appendChild(u),o(r),e.eventService.dispatchEvent({type:Nt.EVENT_FILTER_OPENED,column:t.column,source:n,eGui:r})}))}))},n.prototype.onColumnsChanged=function(){var t=this,i=[];this.allColumnFilters.forEach((function(n,e){(n.column.isPrimary()?t.columnModel.getPrimaryColumn(e):t.columnModel.getGridColumn(e))||(i.push(n.column),t.disposeFilterWrapper(n,"filterDestroyed"))})),i.length>0&&this.onFilterChanged({columns:i})},n.prototype.destroyFilter=function(t,i){void 0===i&&(i="api");var n=this.allColumnFilters.get(t.getColId());n&&(this.disposeFilterWrapper(n,i),this.onFilterChanged({columns:[t]}))},n.prototype.disposeFilterWrapper=function(t,i){var n=this;t.filterPromise.then((function(e){(e.setModel(null)||Ke.resolve()).then((function(){n.getContext().destroyBean(e),t.column.setFilterActive(!1,i),n.allColumnFilters.delete(t.column.getColId())}))}))},n.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return i.disposeFilterWrapper(t,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",qs([z("valueService")],n.prototype,"valueService",void 0),qs([z("columnModel")],n.prototype,"columnModel",void 0),qs([z("rowModel")],n.prototype,"rowModel",void 0),qs([z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),qs([z("rowRenderer")],n.prototype,"rowRenderer",void 0),qs([L],n.prototype,"init",null),qs([B],n.prototype,"destroy",null),e=qs([W("filterManager")],n)}(Pt),Zs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$s=function(t){function i(i,n){var e=t.call(this,i)||this;return e.ctrl=n,e}return Zs(i,t),i.prototype.getCtrl=function(){return this.ctrl},i}(ir),Qs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tu=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return Qs(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},addOrRemoveBodyCssClass:function(i,n){return t.eFloatingFilterBody.classList.toggle(i,n)},setButtonWrapperDisplayed:function(i){return Un(t.eButtonWrapper,i)},setCompDetails:function(i){return t.setCompDetails(i)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return i.style.width=t},setMenuIcon:function(i){return t.eButtonShowMainFilter.appendChild(i)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},i.prototype.setCompDetails=function(t){var i=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return i.afterCompCreated(t)}))},i.prototype.afterCompCreated=function(t){var i=this;t&&(this.addDestroyFunc((function(){return i.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},i.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',Xs([nr("eFloatingFilterBody")],i.prototype,"eFloatingFilterBody",void 0),Xs([nr("eButtonWrapper")],i.prototype,"eButtonWrapper",void 0),Xs([nr("eButtonShowMainFilter")],i.prototype,"eButtonShowMainFilter",void 0),Xs([L],i.prototype,"postConstruct",null),i}($s),iu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}();!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(Us||(Us={}));var nu,eu=function(t){function i(i){var n=t.call(this)||this;return n.view=i,n}return iu(i,t),i.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},i.prototype.updateLayoutClasses=function(){var t=this.getDomLayout(),i={autoHeight:"autoHeight"===t,normal:"normal"===t,print:"print"===t};this.view.updateLayoutClasses(i.autoHeight?Us.AUTO_HEIGHT:i.print?Us.PRINT:Us.NORMAL,i)},i.prototype.getDomLayout=function(){var t,i=null!==(t=this.gridOptionsService.get("domLayout"))&&void 0!==t?t:"normal";return-1===["normal","print","autoHeight"].indexOf(i)?(R((function(){return console.warn("AG Grid: "+i+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):i},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(Pt),ru=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ou=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},su=function(t){function i(i){var n=t.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=i,n.resetLastHScrollDebounced=D((function(){return n.eLastHScroll=null}),500),n.resetLastVScrollDebounced=D((function(){return n.eLastVScroll=null}),500),n}return ru(i,t),i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},i.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollComp(),i=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(t.getViewport(),"scroll",this.onFakeHScroll.bind(this));var n=this.gridOptionsService.is("debounceVerticalScrollbar"),e=n?D(this.onVScroll.bind(this),100):this.onVScroll.bind(this),r=n?D(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",e),this.addManagedListener(i.getViewport(),"scroll",r)},i.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},i.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(null!=this.centerRowContainerCtrl){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var i=this.enableRtl?t:-t,n=this.ctrlsService.getTopCenterRowContainerCtrl(),e=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(i),r.setContainerTranslateX(i),n.setContainerTranslateX(i),e.setContainerTranslateX(i);var s=this.centerRowContainerCtrl.getViewportElement();ne(this.eLastHScroll===s?o.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl)}},i.prototype.isControllingHScroll=function(t){return this.eLastHScroll?t===this.eLastHScroll:(this.eLastHScroll=t,!0)},i.prototype.isControllingVScroll=function(t){return this.eLastVScroll?t===this.eLastVScroll:(this.eLastVScroll=t,!0)},i.prototype.onFakeHScroll=function(){var t=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(t)&&this.onHScrollCommon(t)},i.prototype.onHScroll=function(){var t=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(t)&&this.onHScrollCommon(t)},i.prototype.onHScrollCommon=function(t){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(ie(t,this.enableRtl))),this.resetLastHScrollDebounced())},i.prototype.onFakeVScroll=function(){var t=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(t)&&this.onVScrollCommon(t)},i.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},i.prototype.onVScrollCommon=function(t){var i=t.scrollTop;this.shouldBlockScrollUpdate("vertical",i,!0)||(this.animationFrameService.setScrollTop(i),this.nextScrollTop=i,this.gridOptionsService.is("suppressAnimationFrame")?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule(),t===this.eBodyViewport?this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=i:this.eBodyViewport.scrollTop=i,this.resetLastVScrollDebounced())},i.prototype.doHorizontalScroll=function(t){var i=ie(this.ctrlsService.getFakeHScrollComp().getViewport(),this.enableRtl);this.scrollLeft===t&&t===i||(this.scrollLeft=t,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged())},i.prototype.fireScrollEvent=function(t){var i=this,n={type:Nt.EVENT_BODY_SCROLL,direction:t,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Object.assign({},n,{type:Nt.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(t)}),100)},i.prototype.shouldBlockScrollUpdate=function(t,i,n){if(void 0===n&&(n=!1),n&&!On())return!1;if("vertical"===t){var e=Zn(this.eBodyViewport);if(i<0||i+e>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===t){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&te()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+r>o)return!0}return!1},i.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},i.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},i.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},i.prototype.executeAnimationFrameScroll=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},i.prototype.setHorizontalScrollPosition=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",t)&&(t=this.enableRtl&&te()?t>0?0:i:Math.min(Math.max(t,0),i)),ne(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},i.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},i.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},i.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},i.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},i.prototype.scrollHorizontally=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},i.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},i.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),e=-1,r=0;r<n;r++){var o=this.rowModel.getRow(r);if("function"==typeof t){if(o&&t(o)){e=r;break}}else if(t===o||t===o.data){e=r;break}}e>=0&&this.ensureIndexVisible(e,i)},i.prototype.ensureIndexVisible=function(t,i){if(!this.gridOptionsService.isDomLayout("print")){var n=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=n)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(t);var e,r=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),o=this.paginationProxy.getRow(t);do{var s=o.rowTop,u=o.rowHeight,h=this.paginationProxy.getPixelOffset(),c=o.rowTop-h,a=c+o.rowHeight,f=this.getVScrollPosition(),l=this.heightScaler.getDivStretchOffset(),v=f.top+l,d=f.bottom+l,p=d-v,g=this.heightScaler.getScrollPositionForPixel(c),b=this.heightScaler.getScrollPositionForPixel(a-p),m=Math.min((g+b)/2,c),w=null;"top"===i?w=g:"bottom"===i?w=b:"middle"===i?w=m:v+r>c?w=g-r:d<a&&(w=b),null!==w&&(this.eBodyViewport.scrollTop=w,this.rowRenderer.redrawAfterScroll()),e=s!==o.rowTop||u!==o.rowHeight}while(e);this.animationFrameService.flushAllFrames()}}},i.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto");var n=this.columnModel.getGridColumn(t);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var e=this.getPositionedHorizontalScroll(n,i);null!==e&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},i.prototype.getPositionedHorizontalScroll=function(t,i){var n=this.isColumnOutsideViewport(t),e=n.columnBeforeStart,r=n.columnAfterEnd,o=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,h=(u?e:r)||o,c=u?r:e;"auto"!==i&&(h="start"===i,c="end"===i);var a="middle"===i;if(h||c||a){var f=this.getColumnBounds(t),l=f.colLeft,v=f.colRight;return a?f.colMiddle-s/2:h?u?v:l:u?l-s:v-s}return null},i.prototype.isColumnOutsideViewport=function(t){var i=this.getViewportBounds(),n=i.start,e=i.end,r=this.getColumnBounds(t),o=r.colLeft,s=r.colRight,u=this.enableRtl;return{columnBeforeStart:u?n>s:e<s,columnAfterEnd:u?e<o:n>o}},i.prototype.getColumnBounds=function(t){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),e=t.getActualWidth(),r=t.getLeft(),o=i?-1:1,s=i?n-r:r;return{colLeft:s,colMiddle:s+e/2*o,colRight:s+e*o}},i.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:t+i,width:t}},ou([z("ctrlsService")],i.prototype,"ctrlsService",void 0),ou([z("animationFrameService")],i.prototype,"animationFrameService",void 0),ou([z("paginationProxy")],i.prototype,"paginationProxy",void 0),ou([z("rowModel")],i.prototype,"rowModel",void 0),ou([z("rowContainerHeightService")],i.prototype,"heightScaler",void 0),ou([z("rowRenderer")],i.prototype,"rowRenderer",void 0),ou([z("columnModel")],i.prototype,"columnModel",void 0),ou([L],i.prototype,"postConstruct",null),i}(Pt),uu=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,i){void 0===i&&(i=!1);var n=i||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var e=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientX<e.left+r,this.tickRight=t.clientX>e.right-r,this.tickUp=t.clientY<e.top+r&&!n,this.tickDown=t.clientY>e.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var i=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(i-t),this.tickDown&&this.setVerticalPosition(i+t)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-t),this.tickRight&&this.setHorizontalPosition(n+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),hu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cu=function(){return cu=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},cu.apply(this,arguments)},au=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fu=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},lu=function(t){function i(i){var n=t.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=i,n}return hu(i,t),i.prototype.postConstruct=function(){var t=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var i=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,Nt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_MODEL_UPDATED,(function(){i()})),i(),this.ctrlsService.whenReady((function(){var i=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new uu({scrollContainer:i.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return i.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},i.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},i.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},i.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!e(t)},i.prototype.getContainer=function(){return this.eContainer},i.prototype.isInterestedIn=function(t){return t===Ir.RowDrag},i.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?qo.ICON_NOT_ALLOWED:qo.ICON_MOVE},i.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},i.prototype.getRowNodes=function(t){var i=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var n=this.gridOptionsService.is("rowDragMultiRow"),e=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(fu(arguments[i]));return t}(this.selectionService.getSelectedNodes()).sort((function(t,n){return null==t.rowIndex||null==n.rowIndex?0:i.getRowIndexNumber(t)-i.getRowIndexNumber(n)})),r=t.dragItem.rowNode;return n&&-1!==e.indexOf(r)?(this.isMultiRowDrag=!0,e):(this.isMultiRowDrag=!1,[r])},i.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(Nt.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},i.prototype.onDragging=function(t){this.onEnterOrDragging(t)},i.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},i.prototype.isDropZoneWithinThisGrid=function(t){return!this.ctrlsService.getGridBodyCtrl().getGui().contains(t.dropZoneTarget)},i.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(Nt.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var i=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(t,i),this.autoScrollService.check(t.event)},i.prototype.doManagedDrag=function(t,i){var n=this.isFromThisGrid(t),e=this.gridOptionsService.is("rowDragManaged"),r=t.dragItem.rowNodes;e&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!n?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(r[0],i):this.moveRows(r,i))},i.prototype.getRowIndexNumber=function(t){return parseInt(ut(t.getRowIndexString().split("-")),10)},i.prototype.moveRowAndClearHighlight=function(t){var i=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),e=n&&n.highlighted===Bs.Below,r=this.mouseEventService.getNormalisedPosition(t).y,o=t.dragItem.rowNodes,s=e?1:0;if(this.isFromThisGrid(t))o.forEach((function(t){t.rowTop<r&&(s-=1)})),this.moveRows(o,r,s);else{var u=this.gridOptionsService.getRowIdFunc(),h=this.clientSideRowModel.getRowIndexAtPixel(r)+1;this.clientSideRowModel.getHighlightPosition(r)===Bs.Above&&h--,this.clientSideRowModel.updateRowData({add:o.map((function(t){return t.data})).filter((function(t){return!i.clientSideRowModel.getRowNode(u?u({data:t,level:0}):t.id)})),addIndex:h})}this.clearRowHighlight()},i.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},i.prototype.moveRows=function(t,i,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(t,i,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},i.prototype.addRowDropZone=function(t){var i=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var n={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,n=t):(t.onDragEnter&&(n.onDragEnter=function(n){t.onDragEnter(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_ENTER,n))}),t.onDragLeave&&(n.onDragLeave=function(n){t.onDragLeave(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_LEAVE,n))}),t.onDragging&&(n.onDragging=function(n){t.onDragging(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_MOVE,n))}),t.onDragStop&&(n.onDragStop=function(n){t.onDragStop(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(cu({isInterestedIn:function(t){return t===Ir.RowDrag},getIconName:function(){return qo.ICON_MOVE},external:!0},n))}else R((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},i.prototype.getRowDropZone=function(t){var i=this,n=this.getContainer.bind(this),e=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),o=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:n,onDragEnter:t.onDragEnter?function(n){e(n),t.onDragEnter(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_ENTER,n))}:e,onDragLeave:t.onDragLeave?function(n){r(n),t.onDragLeave(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:t.onDragging?function(n){o(n),t.onDragging(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_MOVE,n))}:o,onDragStop:t.onDragStop?function(n){s(n),t.onDragStop(i.draggingToRowDragEvent(Nt.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:e,onDragLeave:r,onDragging:o,onDragStop:s,fromGrid:!0}},i.prototype.draggingToRowDragEvent=function(t,i){var n,e,r=this.mouseEventService.getNormalisedPosition(i).y,o=-1;switch(r>this.paginationProxy.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(r),n=this.rowModel.getRow(o)),i.vDirection){case Er.Down:e="down";break;case Er.Up:e="up";break;default:e=null}return{type:t,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context"),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:o,overNode:n,y:r,vDirection:e}},i.prototype.dispatchGridEvent=function(t,i){var n=this.draggingToRowDragEvent(t,i);this.eventService.dispatchEvent(n)},i.prototype.onDragLeave=function(t){this.dispatchGridEvent(Nt.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},i.prototype.onDragStop=function(t){this.dispatchGridEvent(Nt.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},i.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},au([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),au([z("rowModel")],i.prototype,"rowModel",void 0),au([z("paginationProxy")],i.prototype,"paginationProxy",void 0),au([z("columnModel")],i.prototype,"columnModel",void 0),au([z("focusService")],i.prototype,"focusService",void 0),au([z("sortController")],i.prototype,"sortController",void 0),au([z("filterManager")],i.prototype,"filterManager",void 0),au([z("selectionService")],i.prototype,"selectionService",void 0),au([z("mouseEventService")],i.prototype,"mouseEventService",void 0),au([z("ctrlsService")],i.prototype,"ctrlsService",void 0),au([V("rangeService")],i.prototype,"rangeService",void 0),au([L],i.prototype,"postConstruct",null),i}(Pt),vu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),du=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
|
|
232
|
+
/**
|
|
233
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
234
|
+
* @version v29.0.0
|
|
235
|
+
* @link https://www.ag-grid.com/
|
|
236
|
+
* @license MIT
|
|
237
|
+
*/!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(nu||(nu={}));var pu,gu,bu="ag-selectable",mu="ag-force-vertical-scroll",wu="ag-column-moving",yu=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.stickyTopHeight=0,i}return vu(i,t),i.prototype.getScrollFeature=function(){return this.bodyScrollFeature},i.prototype.getBodyViewportElement=function(){return this.eBodyViewport},i.prototype.setComp=function(t,i,n,e,r,o){this.comp=t,this.eGridBody=i,this.eBodyViewport=n,this.eTop=e,this.eBottom=r,this.eStickyTop=o,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new eu(this.comp)),this.bodyScrollFeature=this.createManagedBean(new su(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([e,n,r,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},i.prototype.getComp=function(){return this.comp},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Nt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},i.prototype.addFocusListeners=function(t){var i=this;t.forEach((function(t){i.addManagedListener(t,"focusin",(function(i){var n=qn(i.target,"ag-root",t);t.classList.toggle("ag-has-focus",!n)})),i.addManagedListener(t,"focusout",(function(i){var n=i.target,e=i.relatedTarget,r=t.contains(e),o=qn(e,"ag-root",t);qn(n,"ag-root",t)||r&&!o||t.classList.remove("ag-has-focus")}))}))},i.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss(t?wu:null,t)},i.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),this.comp.setCellSelectableCss(t?bu:null,t)},i.prototype.onScrollVisibilityChanged=function(){var t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t);var i=t&&this.gridOptionsService.getScrollbarWidth()||0,n=An()?16:0;this.comp.setBodyViewportWidth("calc(100% + "+(i+n)+"px)")},i.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},i.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},i.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var i=function(i){var e=i.relatedTarget;if(null!==Cn(e)){var r=n.some((function(t){return t.contains(e)}))&&t.mouseEventService.isElementInThisGrid(e);if(!r){var o=t.popupService;r=o.getActivePopups().some((function(t){return t.contains(e)}))||o.isElementWithinCustomPopup(e)}r||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach((function(n){return t.addManagedListener(n,"focusout",i)}))}},i.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:t+i)},i.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},i.prototype.setVerticalScrollPaddingVisible=function(t){this.comp.setPinnedTopBottomOverflowY(t?"scroll":"hidden")},i.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsService.is("alwaysShowVerticalScroll"),i=t?mu:null,n=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(i,t),t||n&&de(this.eBodyViewport)},i.prototype.setupRowAnimationCssClass=function(){var t=this,i=function(){var i=t.gridOptionsService.isAnimateRows()&&!t.rowContainerHeightService.isStretching();t.comp.setRowAnimationCssOnBodyViewport(i?nu.ANIMATION_ON:nu.ANIMATION_OFF,i)};i(),this.addManagedListener(this.eventService,Nt.EVENT_HEIGHT_SCALE_CHANGED,i),this.addManagedPropertyListener("animateRows",i)},i.prototype.getGridBodyElement=function(){return this.eGridBody},i.prototype.addBodyViewportListener=function(){var t=this,i=function(i,n,e){if(i||e){t.gridOptionsService.is("preventDefaultOnContextMenu")&&(i||e).preventDefault();var r=(i||n).target;r!==t.eBodyViewport&&r!==t.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||t.contextMenuFactory&&(i?t.contextMenuFactory.onContextMenu(i,null,null,null,null,t.eGridBody):e&&t.contextMenuFactory.onContextMenu(null,e,null,null,null,t.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",i),this.mockContextMenuForIPad(i),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},i.prototype.mockContextMenuForIPad=function(t){if(On()){var i=new po(this.eBodyViewport);this.addManagedListener(i,po.EVENT_LONG_TAP,(function(i){t(void 0,i.touchStart,i.touchEvent)})),this.addDestroyFunc((function(){return i.destroy()}))}},i.prototype.onBodyViewportWheel=function(t){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},i.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},i.prototype.getGui=function(){return this.eGridBody},i.prototype.scrollVertically=function(t){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+t),this.eBodyViewport.scrollTop-i},i.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new lu(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},i.prototype.getRowDragFeature=function(){return this.rowDragFeature},i.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},i.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,i=t.getPinnedTopTotalHeight();i&&(i+=1);var n=t.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},i.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},i.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},i.prototype.setStickyTopWidth=function(t){if(t){var i=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},i.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},i.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),i=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;t>0&&(n+=t+1),i>0&&(n+=i+1),this.comp.setStickyTopTop(n+"px")},i.prototype.sizeColumnsToFit=function(t,i){var n=this,e=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,r=$n(this.eBodyViewport)-e;r>0?this.columnModel.sizeColumnsToFit(r,"sizeColumnsToFit",!1,t):void 0===i?window.setTimeout((function(){n.sizeColumnsToFit(t,100)}),0):100===i?window.setTimeout((function(){n.sizeColumnsToFit(t,500)}),100):500===i?window.setTimeout((function(){n.sizeColumnsToFit(t,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},i.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t,{passive:!0})},i.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},du([z("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),du([z("ctrlsService")],i.prototype,"ctrlsService",void 0),du([z("columnModel")],i.prototype,"columnModel",void 0),du([z("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),du([V("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),du([z("headerNavigationService")],i.prototype,"headerNavigationService",void 0),du([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),du([z("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),du([z("rowRenderer")],i.prototype,"rowRenderer",void 0),du([z("popupService")],i.prototype,"popupService",void 0),du([z("mouseEventService")],i.prototype,"mouseEventService",void 0),du([z("rowModel")],i.prototype,"rowModel",void 0),i}(Pt);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(pu||(pu={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(gu||(gu={}));
|
|
238
|
+
/**
|
|
239
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
240
|
+
* @version v29.0.0
|
|
241
|
+
* @link https://www.ag-grid.com/
|
|
242
|
+
* @license MIT
|
|
243
|
+
*/
|
|
244
|
+
var Ou,Su="ag-cell-range-selected",Cu=function(){function t(t,i){this.beans=t,this.cellCtrl=i}return t.prototype.setComp=function(t,i){this.cellComp=t,this.eGui=i,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Su,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(Su+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(Su+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(Su+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(Su+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),nn(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),i=this.isSingleCell(),n=!i&&t.right,e=!i&&t.bottom,r=!i&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!i&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",e),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var i=t.getCellRanges();return i.length>0&&i.every((function(t){return dt([gu.DIMENSION,gu.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,i,n=this,e=this.beans.gridOptionsService.is("enableRtl"),r=!1,o=!1,s=!1,u=!1,h=this.cellCtrl.getCellPosition().column,c=this.beans,a=c.rangeService,f=c.columnModel;e?(t=f.getDisplayedColAfter(h),i=f.getDisplayedColBefore(h)):(t=f.getDisplayedColBefore(h),i=f.getDisplayedColAfter(h));var l=a.getCellRanges().filter((function(t){return a.isCellInSpecificRange(n.cellCtrl.getCellPosition(),t)}));t||(u=!0),i||(o=!0);for(var v=0;v<l.length&&!(r&&o&&s&&u);v++){var d=l[v],p=a.getRangeStartRow(d),g=a.getRangeEndRow(d);!r&&this.beans.rowPositionUtils.sameRow(p,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(s=!0),!u&&t&&d.columns.indexOf(t)<0&&(u=!0),!o&&i&&d.columns.indexOf(i)<0&&(o=!0)}return{top:r,right:o,bottom:s,left:u}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,i=t.gridOptionsService,n=t.rangeService,e=n.getCellRanges(),r=e.length;if(this.rangeCount<1||r<1)return!1;var o=ut(e),s=this.cellCtrl.getCellPosition(),u=i.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),h=i.is("enableRangeHandle"),c=1===r&&!this.cellCtrl.isEditing()&&(u||h);if(this.hasChartRange){var a=e[0].type===gu.DIMENSION&&n.isCellInSpecificRange(s,e[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",a),c=o.type===gu.VALUE}return c&&null!=o.endRow&&n.isContiguousRange(o)&&n.isBottomRightCell(o,s)},t.prototype.addSelectionHandle=function(){var t=this.beans,i=t.gridOptionsService,e=ut(t.rangeService.getCellRanges()).type,r=i.is("enableFillHandle")&&n(e)?pu.FILL:pu.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),Ru=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ju=function(t){function i(i,n){var e=t.call(this)||this;return e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e.setupColSpan(),e.setupRowSpan(),e}return Ru(i,t),i.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},i.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},i.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();ht(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},i.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},i.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},i.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,i){return t+i.getActualWidth()}),0):this.column.getActualWidth()},i.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),i=[];if(1===t)i.push(this.column);else for(var e=this.column,r=this.column.getPinned(),o=0;e&&o<t&&(i.push(e),(e=this.beans.columnModel.getDisplayedColAfter(e))&&!n(e))&&r===e.getPinned();o++);return i},i.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},i.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ut(this.colsSpanning):this.column).getLeft()},i.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return t;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?i+this.beans.columnModel.getBodyContainerWidth()+(t||0):i+(t||0)},i.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsService.getRowHeightAsNumber();this.eGui.style.height=t*this.rowSpan+"px",this.eGui.style.zIndex="1"}},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Pt),_u=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Au=function(t){function i(i,n){var e=t.call(this)||this;return e.staticClasses=[],e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e}return _u(i,t),i.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},i.prototype.applyCellClassRules=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context")};this.beans.stylingService.processClassRules(i.cellClassRules,n,(function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}),(function(i){return t.cellComp.addOrRemoveCssClass(i,!1)}))},i.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var i;if("function"==typeof t.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:t,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context")};i=(0,t.cellStyle)(n)}else i=t.cellStyle;this.cellComp.setUserStyles(i)}},i.prototype.applyClassesFromColDef=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:i,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context")};this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(i,n),this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}))},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Pt),xu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fu=function(t){function i(i,n){var e=t.call(this)||this;return e.ctrl=i,e.beans=n,e}return xu(i,t),i.prototype.setComp=function(t){this.comp=t,this.setupTooltip()},i.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},i.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},i.prototype.createTooltipFeatureIfNeeded=function(){var t=this;null==this.genericTooltipFeature&&(this.genericTooltipFeature=this.createManagedBean(new Ze({getTooltipParams:function(){return t.getTooltipParams()},getGui:function(){return t.ctrl.getGui()}}),this.beans.context))},i.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},i.prototype.getTooltipParams=function(){var t=this.ctrl,i=t.getColumn?t.getColumn():void 0,n=t.getColDef?t.getColDef():void 0,e=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:n,column:i,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:e,data:e?e.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0}},i.prototype.getTooltipText=function(){return this.tooltip},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Pt),Mu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gu=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},Mu([z("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Mu([z("paginationProxy")],t.prototype,"paginationProxy",void 0),Mu([z("context")],t.prototype,"context",void 0),Mu([z("columnApi")],t.prototype,"columnApi",void 0),Mu([z("gridApi")],t.prototype,"gridApi",void 0),Mu([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Mu([z("expressionService")],t.prototype,"expressionService",void 0),Mu([z("environment")],t.prototype,"environment",void 0),Mu([z("rowRenderer")],t.prototype,"rowRenderer",void 0),Mu([z("templateService")],t.prototype,"templateService",void 0),Mu([z("valueService")],t.prototype,"valueService",void 0),Mu([z("eventService")],t.prototype,"eventService",void 0),Mu([z("columnModel")],t.prototype,"columnModel",void 0),Mu([z("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Mu([z("navigationService")],t.prototype,"navigationService",void 0),Mu([z("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Mu([V("rangeService")],t.prototype,"rangeService",void 0),Mu([z("focusService")],t.prototype,"focusService",void 0),Mu([V("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Mu([z("popupService")],t.prototype,"popupService",void 0),Mu([z("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Mu([z("stylingService")],t.prototype,"stylingService",void 0),Mu([z("columnHoverService")],t.prototype,"columnHoverService",void 0),Mu([z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Mu([z("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Mu([z("animationFrameService")],t.prototype,"animationFrameService",void 0),Mu([z("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Mu([z("sortController")],t.prototype,"sortController",void 0),Mu([z("filterManager")],t.prototype,"filterManager",void 0),Mu([z("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Mu([z("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Mu([z("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Mu([z("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Mu([z("selectionService")],t.prototype,"selectionService",void 0),Mu([V("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),Mu([z("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Mu([z("rowModel")],t.prototype,"rowModel",void 0),Mu([z("ctrlsService")],t.prototype,"ctrlsService",void 0),Mu([z("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),Mu([z("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Mu([z("valueCache")],t.prototype,"valueCache",void 0),Mu([z("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),Mu([z("localeService")],t.prototype,"localeService",void 0),Mu([L],t.prototype,"postConstruct",null),Mu([W("beans")],t)}(),Du=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pu=function(t){function i(i,n,e){var r=t.call(this)||this;return r.cellCtrl=i,r.beans=n,r.column=e,r}return Du(i,t),i.prototype.onMouseEvent=function(t,i){if(!St(i))switch(t){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},i.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var i=this.beans,n=i.eventService,e=i.rangeService,r=i.gridOptionsService;e&&(t.ctrlKey||t.metaKey)&&e.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&e.intersectLastRange(!0);var o=this.cellCtrl.createEvent(t,Nt.EVENT_CELL_CLICKED);n.dispatchEvent(o);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout((function(){return s.onCellClicked(o)}),0),(r.is("singleClickEdit")||s.singleClickEdit)&&!r.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},i.prototype.isDoubleClickOnIPad=function(){if(!On()||Rt("dblclick"))return!1;var t=(new Date).getTime(),i=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,i},i.prototype.onCellDoubleClicked=function(t){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(t,Nt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout((function(){return i.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,null,t)},i.prototype.onMouseDown=function(t){var i=t.ctrlKey,n=t.metaKey,e=t.shiftKey,r=t.target,o=this.beans,s=o.eventService,u=o.rangeService;if(!this.isRightClickInExistingRange(t)){var h=u&&0!=u.getCellRanges().length;if(!e||!h){var c=(gn()||bn())&&!this.cellCtrl.isEditing()&&!Vn(r);this.cellCtrl.focusCell(c)}if(e&&h&&t.preventDefault(),!this.containsWidget(r)){if(u){var a=this.cellCtrl.getCellPosition();e?u.extendLatestRangeToCell(a):u.setRangeToCell(a,i||n)}s.dispatchEvent(this.cellCtrl.createEvent(t,Nt.EVENT_CELL_MOUSE_DOWN))}}},i.prototype.isRightClickInExistingRange=function(t){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==t.button)},i.prototype.containsWidget=function(t){return qn(t,"ag-selection-checkbox",3)},i.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,Nt.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},i.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,Nt.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},i.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(t.target),e=i.contains(t.relatedTarget);return n&&e},i.prototype.destroy=function(){},i}(Gu),ku=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tu=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.cellCtrl=i,s.beans=n,s.rowNode=r,s.rowCtrl=o,s}return ku(i,t),i.prototype.setComp=function(t){this.eGui=t},i.prototype.onKeyDown=function(t){var i=t.key;switch(i){case Fe.ENTER:this.onEnterKeyDown(t);break;case Fe.F2:this.onF2KeyDown(t);break;case Fe.ESCAPE:this.onEscapeKeyDown(t);break;case Fe.TAB:this.onTabKeyDown(t);break;case Fe.BACKSPACE:case Fe.DELETE:this.onBackspaceOrDeleteKeyPressed(i,t);break;case Fe.DOWN:case Fe.UP:case Fe.RIGHT:case Fe.LEFT:this.onNavigationKeyPressed(t,i)}},i.prototype.onNavigationKeyPressed=function(t,i){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,i,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},i.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(t);i&&this.beans.navigationService.ensureCellVisible(i)}},i.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},i.prototype.onBackspaceOrDeleteKeyPressed=function(t,i){var n=this,e=n.cellCtrl,r=n.beans,o=n.rowNode,s=r.gridOptionsService,u=r.rangeService,h=r.eventService;e.isEditing()||(h.dispatchEvent({type:Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),ke(t,s.is("enableCellEditingOnBackspace"))?u&&s.isEnableRangeSelection()?u.clearCellRangeCellValues():e.isCellEditable()&&o.setDataValue(e.getColumn(),null,"cellKeyboardListenerFeature"):e.startRowOrCellEdit(t,void 0,i),h.dispatchEvent({type:Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},i.prototype.onEnterKeyDown=function(t){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is("enterMovesDown")?this.beans.navigationService.navigateToNextCell(null,Fe.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Fe.ENTER,void 0,t),this.cellCtrl.isEditing()&&t.preventDefault())},i.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Fe.F2,void 0,t)},i.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},i.prototype.onKeyPress=function(t){if(t.target===this.eGui&&!this.cellCtrl.isEditing()){var i=String.fromCharCode(t.charCode);" "===i?this.onSpaceKeyPressed(t):Me(t)&&(this.cellCtrl.startRowOrCellEdit(null,i,t),t.preventDefault())}},i.prototype.onSpaceKeyPressed=function(t){var i=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),e=!n;if(e||!i.is("suppressRowDeselection")){var r=this.beans.gridOptionsService.is("groupSelectsFiltered"),o=this.rowNode.setSelectedParams({newValue:e,rangeSelect:t.shiftKey,groupSelectsFiltered:r,event:t,source:"spacePressed"});void 0===n&&0===o&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:r,event:t,source:"spacePressed"})}}t.preventDefault()},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Pt),Iu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eu=function(t){function i(i,n,e,r){var o=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return o.rowNode=i,o.column=n,o.beans=e,o.eCell=r,o}return Iu(i,t),i.prototype.postConstruct=function(){this.getGui().appendChild(Ae("rowDrag",this.beans.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},i.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},i.prototype.onDragStart=function(t){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")}):function(){try{var n=JSON.stringify(i.rowNode.data);t.dataTransfer.setData("application/json",n),t.dataTransfer.setData("text/plain",n)}catch(t){}}()},i.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(ir),Nu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hu=function(){return Hu=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Hu.apply(this,arguments)},Lu=0,Bu=function(n){function e(t,i,e,r){var o=n.call(this)||this;return o.cellRangeFeature=null,o.cellPositionFeature=null,o.cellCustomStyleFeature=null,o.tooltipFeature=null,o.cellMouseListenerFeature=null,o.cellKeyboardListenerFeature=null,o.suppressRefreshCell=!1,o.onCellCompAttachedFuncs=[],o.column=t,o.rowNode=i,o.beans=e,o.rowCtrl=r,o.instanceId=t.getId()+"-"+Lu++,o.createCellPosition(),o.addFeatures(),o}return Nu(e,n),e.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new ju(this,this.beans),this.addDestroyFunc((function(){var i;null===(i=t.cellPositionFeature)||void 0===i||i.destroy(),t.cellPositionFeature=null})),this.cellCustomStyleFeature=new Au(this,this.beans),this.addDestroyFunc((function(){var i;null===(i=t.cellCustomStyleFeature)||void 0===i||i.destroy(),t.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new Pu(this,this.beans,this.column),this.addDestroyFunc((function(){var i;null===(i=t.cellMouseListenerFeature)||void 0===i||i.destroy(),t.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new Tu(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){var i;null===(i=t.cellKeyboardListenerFeature)||void 0===i||i.destroy(),t.cellKeyboardListenerFeature=null})),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new Cu(this.beans,this),this.addDestroyFunc((function(){var i;null===(i=t.cellRangeFeature)||void 0===i||i.destroy(),t.cellRangeFeature=null}))),this.addTooltipFeature()},e.prototype.addTooltipFeature=function(){var t=this;this.tooltipFeature=new Fu({getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getRowIndex:function(){return t.cellPosition.rowIndex},getRowNode:function(){return t.rowNode},getGui:function(){return t.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var n=t.column.getColDef(),e=t.rowNode.data;if(n.tooltipField&&i(e))return w(e,n.tooltipField,t.column.isTooltipFieldContainsDots());var r=n.tooltipValueGetter;return r?r({location:"cell",api:t.beans.gridOptionsService.get("api"),columnApi:t.beans.gridOptionsService.get("columnApi"),context:t.beans.gridOptionsService.get("context"),colDef:t.column.getColDef(),column:t.column,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,value:t.value,valueFormatted:t.valueFormatted}):null},getValueFormatted:function(){return t.valueFormatted}},this.beans),this.addDestroyFunc((function(){var i;null===(i=t.tooltipFeature)||void 0===i||i.destroy(),t.tooltipFeature=null}))},e.prototype.setComp=function(t,i,n,e,r){var o,s,u,h;this.cellComp=t,this.eGui=i,this.printLayout=e,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),n&&this.setupAutoHeight(n),this.setAriaColIndex(),this.beans.gridOptionsService.is("suppressCellFocus")||this.cellComp.setTabIndex(-1);var c=li(this.column.getId());this.cellComp.setColId(c),this.cellComp.setRole("gridcell"),null===(o=this.cellPositionFeature)||void 0===o||o.setComp(i),null===(s=this.cellCustomStyleFeature)||void 0===s||s.setComp(t),null===(u=this.tooltipFeature)||void 0===u||u.setComp(t),null===(h=this.cellKeyboardListenerFeature)||void 0===h||h.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,i),r&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},e.prototype.setupAutoHeight=function(t){var i=this;if(this.column.isAutoHeight()){var n=t.parentElement,e=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,r=function(o){if(!i.editing&&i.isAlive()){var s=Jn(n),u=t.offsetHeight+s.paddingTop+s.paddingBottom;if(o<5){var h=i.beans.gridOptionsService.getDocument();if(!h||!h.contains(t)||0==u)return void i.beans.frameworkOverrides.setTimeout((function(){return r(o+1)}),0)}var c=Math.max(u,e);i.rowNode.setRowAutoHeight(c,i.column)}},o=function(){return r(0)};o();var s=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc((function(){s(),i.rowNode.setRowAutoHeight(void 0,i.column)}))}},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.showValue=function(t){void 0===t&&(t=!1);var i=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),e=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(e,i,t),this.refreshHandle()},e.prototype.setupControlComps=function(){var t=this.column.getColDef();this.includeSelection=this.isIncludeControl(t.checkboxSelection),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},e.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight()},e.prototype.isIncludeControl=function(t){return!(null!=this.rowNode.rowPinned||"function"!=typeof t&&!0!==t)},e.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),i=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),e=this.includeDndSource!=this.isIncludeControl(t.dndSource);return i||n||e},e.prototype.startEditing=function(t,i,n,e){var r=this;if(void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=!1),void 0===e&&(e=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var o=this.createCellEditorParams(t,i,n),s=this.column.getColDef(),u=this.beans.userComponentFactory.getCellEditorDetails(s,o),h=null!=(null==u?void 0:u.popupFromSelector)?u.popupFromSelector:!!s.cellEditorPopup,c=null!=(null==u?void 0:u.popupPositionFromSelector)?u.popupPositionFromSelector:s.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(u,h,c);var a=this.createEvent(e,Nt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(a)}else this.onCellCompAttachedFuncs.push((function(){r.startEditing(t,i,n,e)}))},e.prototype.setEditing=function(t){this.editing!==t&&(this.editing=t,this.refreshHandle())},e.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},e.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},e.prototype.takeValueFromCellEditor=function(t){var i={newValueExists:!1};if(t)return i;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?i:{newValue:n.getValue(),newValueExists:!0}:i},e.prototype.saveNewValue=function(t,i){if(i===t)return!1;if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(t,i),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,i);return this.suppressRefreshCell=!1,n},e.prototype.dispatchEventForSaveValueReadOnly=function(t,i){var n=this.rowNode,e={type:Nt.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.get("context"),data:n.data,node:n,oldValue:t,newValue:i,value:i,source:void 0};this.beans.eventService.dispatchEvent(e)},e.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var i=this.takeValueFromCellEditor(t),n=i.newValue,e=i.newValueExists,r=this.getValueFromValueService(),o=!1;return e&&(o=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n,!t&&!!o),o},e.prototype.dispatchEditingStoppedEvent=function(t,i,n){var e=Hu(Hu({},this.createEvent(null,Nt.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:i,valueChanged:n});this.beans.eventService.dispatchEvent(e)},e.prototype.createCellEditorParams=function(t,i,n){return{value:this.getValueFromValueService(),eventKey:t,charPress:i,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.get("api"),cellStartedEdit:n,columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context"),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},e.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(i){return t.beans.valueService.setValue(t.rowNode,t.column,i)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context"),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(i,n,e,r){return t.registerRowDragger(i,n,r)}}},e.prototype.parseValue=function(t){var n=this.column.getColDef(),e={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:t,colDef:n,column:this.column,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context")},r=n.valueParser;return i(r)?this.beans.expressionService.evaluate(r,e):t},e.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},e.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},e.prototype.onCellChanged=function(t){this.cellComp&&t.column===this.column&&this.refreshCell({})},e.prototype.refreshCell=function(t){var i,n,e;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var r=this.column.getColDef(),o=null!=t&&!!t.newData,s=null!=t&&!!t.suppressFlash||!!r.suppressCellFlash,u=t&&t.forceRefresh||null==r.field&&null==r.valueGetter&&null==r.showRowGroup||o,h=this.updateAndFormatValue();if(u||h){this.showValue(o);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!c&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||r.enableCellChangeFlash)&&this.flashCell(),null===(i=this.cellCustomStyleFeature)||void 0===i||i.applyUserStyles(),null===(n=this.cellCustomStyleFeature)||void 0===n||n.applyClassesFromColDef()}this.refreshToolTip(),null===(e=this.cellCustomStyleFeature)||void 0===e||e.applyCellClassRules()}},e.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},e.prototype.navigateAfterEdit=function(){"fullRow"===this.beans.gridOptionsService.get("editType")||this.beans.gridOptionsService.is("enterMovesDownAfterEdit")&&this.beans.navigationService.navigateToNextCell(null,Fe.DOWN,this.getCellPosition(),!1)},e.prototype.flashCell=function(t){this.animateCell("data-changed",t&&t.flashDelay,t&&t.fadeDelay)},e.prototype.animateCell=function(t,n,e){var r=this,o="ag-cell-"+t,s="ag-cell-"+t+"-animation",u=this.beans.gridOptionsService;n||(n=u.getNum("cellFlashDelay")||500),i(e)||(e=u.getNum("cellFadeDelay")||1e3),this.cellComp.addOrRemoveCssClass(o,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(o,!1),r.cellComp.addOrRemoveCssClass(s,!0),r.eGui.style.transition="background-color "+e+"ms",window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(s,!1),r.eGui.style.transition="")}),e))}),n)},e.prototype.onFlashCells=function(t){if(this.cellComp){var i=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[i]&&this.animateCell("highlight")}},e.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},e.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},e.prototype.formatValue=function(t){var i=this.callValueFormatter(t);return null!=i?i:t},e.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},e.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var i=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!t||!this.valuesAreEqual(i,this.value)||this.valueFormatted!=n},e.prototype.valuesAreEqual=function(t,i){var n=this.column.getColDef();return n.equals?n.equals(t,i):t===i},e.prototype.getComp=function(){return this.cellComp},e.prototype.getValueFromValueService=function(){var t=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),i=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,n=this.beans.gridOptionsService.is("groupIncludeFooter"),e=this.beans.gridOptionsService.is("groupSuppressBlankHeader");return this.beans.valueService.getValue(this.column,this.rowNode,!1,i&&n&&!e)},e.prototype.getValue=function(){return this.value},e.prototype.getValueFormatted=function(){return this.valueFormatted},e.prototype.addDomData=function(){var t=this,i=this.getGui();this.beans.gridOptionsService.setDomData(i,e.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsService.setDomData(i,e.DOM_DATA_KEY_CELL_CTRL,null)}))},e.prototype.createEvent=function(t,i){return{type:i,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.get("context"),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyPress=function(t){var i;null===(i=this.cellKeyboardListenerFeature)||void 0===i||i.onKeyPress(t)},e.prototype.onKeyDown=function(t){var i;null===(i=this.cellKeyboardListenerFeature)||void 0===i||i.onKeyDown(t)},e.prototype.onMouseEvent=function(t,i){var n;null===(n=this.cellMouseListenerFeature)||void 0===n||n.onMouseEvent(t,i)},e.prototype.getGui=function(){return this.eGui},e.prototype.refreshToolTip=function(){var t;null===(t=this.tooltipFeature)||void 0===t||t.refreshToolTip()},e.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},e.prototype.onLeftChanged=function(){var t;this.cellComp&&(null===(t=this.cellPositionFeature)||void 0===t||t.onLeftChanged())},e.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},e.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);$i(this.getGui(),t)},e.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},e.prototype.onWidthChanged=function(){var t;return null===(t=this.cellPositionFeature)||void 0===t?void 0:t.onWidthChanged()},e.prototype.getColumn=function(){return this.column},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getBeans=function(){return this.beans},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.appendChild=function(t){this.eGui.appendChild(t)},e.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},e.prototype.getCellPosition=function(){return this.cellPosition},e.prototype.isEditing=function(){return this.editing},e.prototype.startRowOrCellEdit=function(t,i,n){void 0===n&&(n=null),this.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.startRowEditing(t,i,this):this.startEditing(t,i,!0,n))},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},e.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},e.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})},e.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",t)}},e.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",t)}},e.prototype.onCellFocused=function(t){if(this.cellComp&&!this.beans.gridOptionsService.is("suppressCellFocus")){var i=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",i),i&&t&&t.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!t.preventScrollOnBrowserFocus});var n="fullRow"===this.beans.gridOptionsService.get("editType");i||n||!this.editing||this.stopRowOrCellEdit()}},e.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:t(this.rowNode.rowPinned),column:this.column}},e.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);var t=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",t),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!t)},e.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",t)}},e.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},e.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",t)},e.prototype.dispatchCellContextMenuEvent=function(t){var i=this.column.getColDef(),n=this.createEvent(t,Nt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),i.onCellContextMenu&&window.setTimeout((function(){return i.onCellContextMenu(n)}),0)},e.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},e.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},e.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],n.prototype.destroy.call(this)},e.prototype.createSelectionCheckbox=function(){var t=new zo;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},e.prototype.createDndSource=function(){var t=new Eu(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(t),t},e.prototype.registerRowDragger=function(t,i,n){var e=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,i);else{var r=this.createRowDragComp(t,i,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){e.beans.context.destroyBean(r),e.customRowDragComp=null})))}},e.prototype.createRowDragComp=function(t,i,n){var e=this,r=this.beans.gridOptionsService.is("pagination"),o=this.beans.gridOptionsService.is("rowDragManaged"),s=this.beans.gridOptionsService.isRowModelType("clientSide");if(o){if(!s)return void R((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void R((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var u=new $o((function(){return e.value}),this.rowNode,this.column,t,i,n);return this.beans.context.createBean(u),u},e.DOM_DATA_KEY_CELL_CTRL="cellCtrl",e}(Pt),Wu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zu=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail"}(Ou||(Ou={}));var Vu,Uu,Ku=0,Yu=function(n){function e(t,i,e,r,o){var s=n.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.businessKeySanitised=null,s.beans=i,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=o,s.instanceId=t.id+"-"+Ku++,s.setAnimateFlags(e),s.initRowBusinessKey(),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return Wu(e,n),e.prototype.initRowBusinessKey=function(){var t=this.beans.gridOptionsService.get("getBusinessKeyForNode");if("function"==typeof t){var i=t(this.rowNode);this.businessKeySanitised=li(i)}},e.prototype.isSticky=function(){return this.rowNode.sticky},e.prototype.getBeans=function(){return this.beans},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t,i,n){var e={rowComp:t,element:i,containerType:n};this.allRowGuis.push(e),n===Uu.LEFT?this.leftGui=e:n===Uu.RIGHT?this.rightGui=e:n===Uu.FULL_WIDTH?this.fullWidthGui=e:this.centerGui=e,this.initialiseRowComp(e),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},e.prototype.unsetComp=function(t){this.allRowGuis=this.allRowGuis.filter((function(i){return i.containerType!==t})),t===Uu.LEFT?this.leftGui=void 0:t===Uu.RIGHT?this.rightGui=void 0:t===Uu.FULL_WIDTH&&(this.fullWidthGui=void 0)},e.prototype.isCacheable=function(){return this.rowType===Ou.FullWidthDetail&&this.beans.gridOptionsService.is("keepDetailRows")},e.prototype.setCached=function(t){var i=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=i}))},e.prototype.initialiseRowComp=function(t){var i=this,n=this.beans.gridOptionsService;this.onRowHeightChanged(t),this.updateRowIndexes(t),this.setFocusedClasses(t),this.setStylesFromGridOptions(t),n.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(t),this.updateColumnLists(!this.useAnimationFrameForCreate);var r=t.rowComp;r.setRole("row"),this.getInitialRowClasses(t.containerType).forEach((function(t){return r.addOrRemoveCssClass(t,!0)})),this.executeSlideAndFadeAnimations(t),this.rowNode.group&&zi(t.element,1==this.rowNode.expanded);var o=li(this.rowNode.id);null!=o&&r.setRowId(o),null!=this.businessKeySanitised&&r.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is("suppressCellFocus")&&r.setTabIndex(-1),n.setDomData(t.element,e.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((function(){return n.setDomData(t.element,e.DOM_DATA_KEY_ROW_CTRL,null)})),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,t.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t.element),this.isFullWidth()&&this.setupFullWidth(t),n.is("rowDragEntireRow")&&this.addRowDraggerToRow(t),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((function(){i.isAlive()&&t.rowComp.addOrRemoveCssClass("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()},e.prototype.executeSlideAndFadeAnimations=function(t){var i=this,n=t.containerType;this.slideInAnimation[n]&&(M((function(){i.onTopChanged()})),this.slideInAnimation[n]=!1),this.fadeInAnimation[n]&&(M((function(){t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})),this.fadeInAnimation[n]=!1)},e.prototype.addRowDraggerToRow=function(t){if(this.beans.gridOptionsService.isEnableRangeSelection())R((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var i=this.beans.localeService.getLocaleTextFunc(),n=new $o((function(){return"1 "+i("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(n,this.beans.context)}},e.prototype.setupFullWidth=function(t){var i=this.getPinnedForContainer(t.containerType),n=this.createFullWidthParams(t.element,i);if(this.rowType!=Ou.FullWidthDetail||X.assertRegistered(q.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)")){var e;switch(this.rowType){case Ou.FullWidthDetail:e=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Ou.FullWidthGroup:e=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Ou.FullWidthLoading:e=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:e=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}t.rowComp.showFullWidth(e)}},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.getCellElement=function(t){var i=this.getCellCtrl(t);return i?i.getGui():null},e.prototype.executeProcessRowPostCreateFunc=function(){var t,i=this.beans.gridOptionsService.getCallback("processRowPostCreate");i&&this.areAllContainersReady()&&i({eRow:null===(t=this.centerGui)||void 0===t?void 0:t.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},e.prototype.areAllContainersReady=function(){var t=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),i=!!this.centerGui,n=!!this.rightGui||!this.beans.columnModel.isPinningRight();return t&&i&&n},e.prototype.setRowType=function(){var t=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,e=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(e);this.rowType=t?Ou.FullWidthLoading:n?Ou.FullWidthDetail:i?Ou.FullWidth:r?Ou.FullWidthGroup:Ou.Normal},e.prototype.updateColumnLists=function(t){var i=this;void 0===t&&(t=!1),this.isFullWidth()||(t||this.beans.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){i.active&&i.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},e.prototype.createCellCtrls=function(t,i,n){var e=this;void 0===n&&(n=null);var r={list:[],map:{}},o=function(t,i){r.list.push(i),r.map[t]=i};return i.forEach((function(i){var n=i.getInstanceId(),r=t.map[n];r||(r=new Bu(i,e.rowNode,e.beans,e)),o(n,r)})),t.list.forEach((function(t){null!=r.map[t.getColumn().getInstanceId()]||(e.isCellEligibleToBeRemoved(t,n)?t.destroy():o(t.getColumn().getInstanceId(),t))})),r},e.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var e=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,e,"left");var r=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,"right")}this.allRowGuis.forEach((function(i){i.rowComp.setCellCtrls((i.containerType===Uu.LEFT?t.leftCellCtrls:i.containerType===Uu.RIGHT?t.rightCellCtrls:t.centerCellCtrls).list)}))},e.prototype.isCellEligibleToBeRemoved=function(t,i){var n=!0;if(t.getColumn().getPinned()!=i)return n;var e=t.isEditing(),r=this.beans.focusService.isCellFocused(t.getCellPosition());if(e||r){var o=t.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(o)>=0)&&n}return n},e.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var n=i(this.rowNode.oldRowTop),e=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();n?(this.slideInAnimation.center=!0,this.slideInAnimation.left=e,this.slideInAnimation.right=r):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=e,this.fadeInAnimation.right=r)}},e.prototype.isEditing=function(){return this.editingRow},e.prototype.stopRowEditing=function(t){this.stopEditing(t)},e.prototype.isFullWidth=function(){return this.rowType!==Ou.Normal},e.prototype.getRowType=function(){return this.rowType},e.prototype.refreshFullWidth=function(){var t=this,i=function(i,n){if(!i)return!0;var e=i.rowComp.getFullWidthCellRenderer();if(!e)return!1;if(!e.refresh)return!1;var r=t.createFullWidthParams(i.element,n);return e.refresh(r)},n=i(this.fullWidthGui,null),e=i(this.centerGui,null),r=i(this.leftGui,"left"),o=i(this.rightGui,"right");return n&&e&&r&&o},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.rowNode,Ho.EVENT_HEIGHT_CHANGED,(function(){return t.onRowHeightChanged()})),this.addManagedListener(this.rowNode,Ho.EVENT_ROW_SELECTED,(function(){return t.onRowSelected()})),this.addManagedListener(this.rowNode,Ho.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ho.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var i=this.beans.eventService;this.addManagedListener(i,Nt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(i,Nt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(i,Nt.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},e.prototype.onColumnMoved=function(){this.updateColumnLists()},e.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,Ho.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ho.EVENT_CELL_CHANGED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(i)}))}))},e.prototype.onRowNodeDataChanged=function(t){this.getAllCellCtrls().forEach((function(i){return i.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},e.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},e.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},e.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(i){var n=t===Bs.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",t===Bs.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)}))},e.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},e.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},e.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",t),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!i),zi(n.element,t&&i)}))},e.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},e.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},e.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyboardNavigate=function(t){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)}));if((i?i.element:null)===t.target){var n=this.rowNode,e=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(t,t.key,{rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:e&&e.column},!0),t.preventDefault()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!St(t)){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)})),n=i?i.element:null,e=n===t.target,r=null;e||(r=this.beans.focusService.findNextFocusableElement(n,!1,t.shiftKey)),(this.isFullWidth()&&e||!r)&&this.beans.navigationService.onTabKeyDown(this,t)}},e.prototype.onFullWidthRowFocused=function(t){var i,n=this.rowNode,e=this.isFullWidth()&&t.rowIndex===n.rowIndex&&t.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;r&&(r.classList.toggle("ag-full-width-focus",e),e&&r.focus({preventScroll:!0}))},e.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},e.prototype.removeCellCtrl=function(t,i){var n={list:[],map:{}};return t.list.forEach((function(t){t!==i&&(n.list.push(t),n.map[t.getInstanceId()]=t)})),n},e.prototype.onMouseEvent=function(t,i){switch(t){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},e.prototype.createRowEvent=function(t,i){return{type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.get("context"),api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),event:i}},e.prototype.createRowEventWithSource=function(t,i){var n=this.createRowEvent(t,i);return n.source=this,n},e.prototype.onRowDblClick=function(t){if(!St(t)){var i=this.createRowEventWithSource(Nt.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(i)}},e.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=qn(t.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},e.prototype.onRowClick=function(t){if(!St(t)&&!this.lastMouseDownOnDragger){var i=this.createRowEventWithSource(Nt.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(i);var n=t.ctrlKey||t.metaKey,e=t.shiftKey;if(!(this.beans.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is("suppressRowClickSelection"))){var r=this.beans.gridOptionsService.is("rowMultiSelectWithClick"),o=!this.beans.gridOptionsService.is("suppressRowDeselection"),s="rowClicked";this.rowNode.isSelected()?r?this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):n?o&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!e,rangeSelect:e,event:t,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r&&!n,rangeSelect:e,event:t,source:s})}}},e.prototype.setupDetailRowAutoHeight=function(t){var i=this;if(this.rowType===Ou.FullWidthDetail&&this.beans.gridOptionsService.is("detailRowAutoHeight")){var n=function(){var n=t.clientHeight;null!=n&&n>0&&i.beans.frameworkOverrides.setTimeout((function(){i.rowNode.setRowHeight(n),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()}),0)},e=this.beans.resizeObserverService.observeResize(t,n);this.addDestroyFunc(e),n()}},e.prototype.createFullWidthParams=function(t,i){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.get("api"),columnApi:this.beans.gridOptionsService.get("columnApi"),context:this.beans.gridOptionsService.get("context"),eGridCell:t,eParentOfValue:t,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,i,e,r){return n.addFullWidthRowDragging(t,i,e,r)}}},e.prototype.addFullWidthRowDragging=function(t,i,n,e){if(void 0===n&&(n=""),this.isFullWidth()){var r=new $o((function(){return n}),this.rowNode,void 0,t,i,e);this.createManagedBean(r,this.beans.context)}},e.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var i="ag-row-level-"+t,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(i,!0),t.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=t},e.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},e.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},e.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},e.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",i)})))},e.prototype.stopEditing=function(t){var i,n;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var e=this.getAllCellCtrls(),r=this.editingRow;this.stoppingRowEdit=!0;var o=!1;try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),u=s.next();!u.done;u=s.next()){var h=u.value.stopEditing(t);r&&!t&&!o&&h&&(o=!0)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}if(o){var c=this.createRowEvent(Nt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(c)}r&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},e.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},e.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var i=this.createRowEvent(t?Nt.EVENT_ROW_EDITING_STARTED:Nt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},e.prototype.startRowEditing=function(t,i,n,e){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===e&&(e=null),this.editingRow||this.getAllCellCtrls().reduce((function(r,o){var s=o===n;return s?o.startEditing(t,i,s,e):o.startEditing(null,null,s,e),!!r||o.isEditing()}),!1)&&this.setEditingRow(!0)},e.prototype.getAllCellCtrls=function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(zu(arguments[i]));return t}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},e.prototype.postProcessClassesFromGridOptions=function(){var t=this,i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);i&&i.length&&i.forEach((function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}))},e.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}),(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!1)}))}))},e.prototype.setStylesFromGridOptions=function(t){var i=this.processStylesFromGridOptions();this.forEachGui(t,(function(t){return t.rowComp.setUserStyles(i)}))},e.prototype.getPinnedForContainer=function(t){return t===Uu.LEFT?"left":t===Uu.RIGHT?"right":null},e.prototype.getInitialRowClasses=function(t){var i=this.getPinnedForContainer(t),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[t],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:i};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},e.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsService.get("rowStyle");if(!t||"function"!=typeof t){var i,n=this.beans.gridOptionsService.getCallback("getRowStyle");return n&&(i=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},t,i)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},e.prototype.onRowSelected=function(t){var i=this,n=!!this.rowNode.isSelected();this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-selected",n),nn(t.element,!!n||void 0);var e=i.createAriaLabel();Ii(t.element,null==e?"":e)}))},e.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.beans.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},e.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},e.prototype.addHoverFunctionality=function(t){var i=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return i.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return i.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Ho.EVENT_MOUSE_ENTER,(function(){i.beans.gridOptionsService.is("suppressRowHoverHighlight")||t.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Ho.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover")})))},e.prototype.roundRowTopToBounds=function(t){var i=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(i.top,!0)-100,e=this.applyPaginationOffset(i.bottom,!0)+100;return Math.min(Math.max(n,t),e)},e.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},e.prototype.forEachGui=function(t,i){(t?[t]:this.allRowGuis).forEach(i)},e.prototype.onRowHeightChanged=function(t){if(null!=this.rowNode.rowHeight){var i=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),e=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,r=e?Math.min(n,e)-2+"px":void 0;this.forEachGui(t,(function(t){t.element.style.height=i+"px",r&&t.element.style.setProperty("--ag-line-height",r)}))}},e.prototype.addEventListener=function(t,i){n.prototype.addEventListener.call(this,t,i)},e.prototype.removeEventListener=function(t,i){n.prototype.removeEventListener.call(this,t,i)},e.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Nt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),n.prototype.destroy.call(this)},e.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},e.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},e.prototype.setFocusedClasses=function(t){var i=this;this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",i.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!i.rowFocused)}))},e.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},e.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},e.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},e.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},e.prototype.applyPaginationOffset=function(t,i){return void 0===i&&(i=!1),this.rowNode.isRowPinned()?t:t+this.beans.paginationProxy.getPixelOffset()*(i?1:-1)},e.prototype.setRowTop=function(t){if(!this.printLayout&&i(t)){var n=this.applyPaginationOffset(t),e=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n);this.setRowTopStyle(e+"px")}},e.prototype.getInitialRowTop=function(t){return this.beans.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(t):void 0},e.prototype.getInitialTransform=function(t){return this.beans.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(t)+")"},e.prototype.getInitialRowTopShared=function(t){if(this.printLayout)return"";var i;if(this.isSticky())i=this.rowNode.stickyRowTop;else{var n=this.slideInAnimation[t]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,e=this.applyPaginationOffset(n);i=this.rowNode.isRowPinned()?e:this.beans.rowContainerHeightService.getRealPixelPosition(e)}return i+"px"},e.prototype.setRowTopStyle=function(t){var i=this.beans.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(n){return i?n.rowComp.setTop(t):n.rowComp.setTransform("translateY("+t+")")}))},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getCellCtrl=function(t){var i=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==t&&(i=n)})),null!=i||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(t)>=0&&(i=n)})),i},e.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},e.prototype.updateRowIndexes=function(t){var i=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount(),e=this.rowNode.rowIndex%2==0,r=n+this.rowNode.rowIndex+1;this.forEachGui(t,(function(t){t.rowComp.setRowIndex(i),t.rowComp.addOrRemoveCssClass("ag-row-even",e),t.rowComp.addOrRemoveCssClass("ag-row-odd",!e),Ji(t.element,r)}))},e.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},e.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},e.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},e.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},e.DOM_DATA_KEY_ROW_CTRL="renderedRow",e}(Pt),qu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ju=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zu=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return qu(i,t),i.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},i.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(i){var n=t.processKeyboardEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",Rt("touchstart")?"touchstart":"mousedown"].forEach((function(i){var n=t.processMouseEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.processMouseEvent=function(t,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!St(i)){var n=this.getRowForEvent(i),e=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===t?this.handleContextMenuMouseEvent(i,null,n,e):(e&&e.onMouseEvent(t,i),n&&n.onMouseEvent(t,i))}},i.prototype.mockContextMenuForIPad=function(){var t=this;if(On()){var i=new po(this.element);this.addManagedListener(i,po.EVENT_LONG_TAP,(function(i){var n=t.getRowForEvent(i.touchEvent),e=t.mouseEventService.getRenderedCellForEvent(i.touchEvent);t.handleContextMenuMouseEvent(null,i.touchEvent,n,e)})),this.addDestroyFunc((function(){return i.destroy()}))}},i.prototype.getRowForEvent=function(t){for(var i=t.target;i;){var n=this.gridOptionsService.getDomData(i,Yu.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},i.prototype.handleContextMenuMouseEvent=function(t,i,n,e){var r=n?n.getRowNode():null,o=e?e.getColumn():null,s=null;o&&(e.dispatchCellContextMenuEvent(t||i),s=this.valueService.getValue(o,r));var u=this.ctrlsService.getGridBodyCtrl(),h=e?e.getGui():u.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,i,r,o,s,h)},i.prototype.processKeyboardEvent=function(t,i){var n=jt(this.gridOptionsService,i,Bu.DOM_DATA_KEY_CELL_CTRL),e=jt(this.gridOptionsService,i,Yu.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,t,i):e&&e.isFullWidth()&&this.processFullWidthRowKeyboardEvent(e,t,i))},i.prototype.processCellKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=t.getColumn(),o=t.isEditing();if(!Ge(this.gridOptionsService,n,e,r,o))switch(i){case"keydown":!o&&this.navigationService.handlePageScrollingKey(n)||t.onKeyDown(n),this.doGridOperations(n,t.isEditing());break;case"keypress":t.onKeyPress(n)}if("keydown"===i){var s=t.createEvent(n,Nt.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===i){var u=t.createEvent(n,Nt.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(u)}},i.prototype.processFullWidthRowKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=this.focusService.getFocusedCell();if(!Ge(this.gridOptionsService,n,e,r&&r.column,!1)&&"keydown"===i)switch(n.key){case Fe.UP:case Fe.DOWN:t.onKeyboardNavigate(n);break;case Fe.TAB:t.onTabKeyDown(n)}if("keydown"===i){var o=t.createRowEvent(Nt.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(o)}if("keypress"===i){var s=t.createRowEvent(Nt.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(s)}},i.prototype.doGridOperations=function(t,i){if((t.ctrlKey||t.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(t)){var n=Pe(t);return n===Fe.A?this.onCtrlAndA(t):n===Fe.C?this.onCtrlAndC(t):n===Fe.V?this.onCtrlAndV():n===Fe.D?this.onCtrlAndD(t):n===Fe.Z?this.onCtrlAndZ(t):n===Fe.Y?this.onCtrlAndY():void 0}},i.prototype.onCtrlAndA=function(t){var i=this,n=i.pinnedRowModel,r=i.rangeService;if(r&&i.paginationProxy.isRowsToRender()){var o=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}([n.isEmpty("top"),n.isEmpty("bottom")],2),s=o[0]?null:"top",u=void 0,h=void 0;o[1]?(u=null,h=this.paginationProxy.getRowCount()-1):(u="bottom",h=n.getPinnedBottomRowData().length-1);var c=this.columnModel.getAllDisplayedColumns();if(e(c))return;r.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:h,rowEndPinned:u,columnStart:c[0],columnEnd:ut(c)})}t.preventDefault()},i.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&(this.clipboardService.copyToClipboard(),t.preventDefault())},i.prototype.onCtrlAndV=function(){X.isRegistered(q.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},i.prototype.onCtrlAndD=function(t){X.isRegistered(q.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),t.preventDefault()},i.prototype.onCtrlAndZ=function(t){this.gridOptionsService.is("undoRedoCellEditing")&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},i.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},Ju([z("mouseEventService")],i.prototype,"mouseEventService",void 0),Ju([z("valueService")],i.prototype,"valueService",void 0),Ju([V("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),Ju([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Ju([z("navigationService")],i.prototype,"navigationService",void 0),Ju([z("focusService")],i.prototype,"focusService",void 0),Ju([z("undoRedoService")],i.prototype,"undoRedoService",void 0),Ju([z("columnModel")],i.prototype,"columnModel",void 0),Ju([z("paginationProxy")],i.prototype,"paginationProxy",void 0),Ju([z("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Ju([V("rangeService")],i.prototype,"rangeService",void 0),Ju([V("clipboardService")],i.prototype,"clipboardService",void 0),Ju([L],i.prototype,"postConstruct",null),i}(Pt),$u=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xu=function(t){function i(i){var n=t.call(this)||this;return n.centerContainerCtrl=i,n}return $u(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,Nt.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},i.prototype.listenForResize=function(){var t=this,i=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},i.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},i.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},i.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},i.prototype.getBodyHeight=function(){return this.bodyHeight},i.prototype.checkBodyHeight=function(){var t=Zn(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==t&&(this.bodyHeight=t,this.eventService.dispatchEvent({type:Nt.EVENT_BODY_HEIGHT_CHANGED}))},i.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},i.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t),this.gridBodyCtrl.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||this.centerContainerCtrl.isViewportHScrollShowing()},i.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},Qu([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Qu([z("columnModel")],i.prototype,"columnModel",void 0),Qu([z("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),Qu([L],i.prototype,"postConstruct",null),i}(Pt),th=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ih=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},nh=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return th(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},i.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth();Un(this.element,t>0),ge(this.element,t)},i.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},ih([z("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),ih([L],i.prototype,"postConstruct",null),i}(Pt),eh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},oh=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return eh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},i.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth();Un(this.element,t>0),ge(this.element,t)},i.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},rh([z("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),rh([L],i.prototype,"postConstruct",null),i}(Pt),sh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),uh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hh=function(t){function i(i,n){var e=t.call(this)||this;return e.eContainer=i,e.eWrapper=n,e}return sh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},i.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=t?t+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},uh([z("rowContainerHeightService")],i.prototype,"maxDivHeightScaler",void 0),uh([L],i.prototype,"postConstruct",null),i}(Pt),ch=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ah=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fh=function(t){function i(i){var n=t.call(this)||this;return n.eContainer=i,n}return ch(i,t),i.prototype.postConstruct=function(){var t=this;if(this.gridOptionsService.isEnableRangeSelection()&&!n(this.rangeService)){var i={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(i),this.addDestroyFunc((function(){return t.dragService.removeDragSource(i)}))}},ah([V("rangeService")],i.prototype,"rangeService",void 0),ah([z("dragService")],i.prototype,"dragService",void 0),ah([L],i.prototype,"postConstruct",null),i}(Pt),lh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dh=function(t){function i(i){var n=t.call(this)||this;return n.callback=i,n}return lh(i,t),i.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",t),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.setWidth()},i.prototype.setWidth=function(){var t=this.columnModel,i=this.gridOptionsService.isDomLayout("print"),n=t.getBodyContainerWidth(),e=t.getDisplayedColumnsLeftWidth(),r=t.getDisplayedColumnsRightWidth();this.callback(i?n+e+r:n)},vh([z("columnModel")],i.prototype,"columnModel",void 0),vh([L],i.prototype,"postConstruct",null),i}(Pt),ph=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),gh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},bh=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.TOP_CENTER="topCenter",t.TOP_FULL_WIDTH="topFullWidth",t.STICKY_TOP_LEFT="stickyTopLeft",t.STICKY_TOP_RIGHT="stickyTopRight",t.STICKY_TOP_CENTER="stickyTopCenter",t.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t.BOTTOM_CENTER="bottomCenter",t.BOTTOM_FULL_WIDTH="bottomFullWidth"}(Vu||(Vu={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth"}(Uu||(Uu={}));var mh,wh=pi([[Vu.CENTER,"ag-center-cols-container"],[Vu.LEFT,"ag-pinned-left-cols-container"],[Vu.RIGHT,"ag-pinned-right-cols-container"],[Vu.FULL_WIDTH,"ag-full-width-container"],[Vu.TOP_CENTER,"ag-floating-top-container"],[Vu.TOP_LEFT,"ag-pinned-left-floating-top"],[Vu.TOP_RIGHT,"ag-pinned-right-floating-top"],[Vu.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[Vu.STICKY_TOP_CENTER,"ag-sticky-top-container"],[Vu.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[Vu.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[Vu.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[Vu.BOTTOM_CENTER,"ag-floating-bottom-container"],[Vu.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[Vu.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[Vu.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),yh=pi([[Vu.CENTER,"ag-center-cols-viewport"],[Vu.TOP_CENTER,"ag-floating-top-viewport"],[Vu.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[Vu.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Oh=pi([[Vu.CENTER,"ag-center-cols-clipper"]]),Sh=function(t){function i(i){var n=t.call(this)||this;return n.visible=!0,n.name=i,n}return ph(i,t),i.getRowContainerCssClasses=function(t){return{container:wh.get(t),viewport:yh.get(t),wrapper:Oh.get(t)}},i.getPinned=function(t){switch(t){case Vu.BOTTOM_LEFT:case Vu.TOP_LEFT:case Vu.STICKY_TOP_LEFT:case Vu.LEFT:return"left";case Vu.BOTTOM_RIGHT:case Vu.TOP_RIGHT:case Vu.STICKY_TOP_RIGHT:case Vu.RIGHT:return"right";default:return null}},i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([Vu.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new Xu(t))}))},i.prototype.registerWithCtrlsService=function(){switch(this.name){case Vu.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case Vu.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case Vu.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case Vu.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case Vu.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case Vu.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case Vu.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case Vu.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case Vu.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case Vu.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case Vu.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case Vu.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},i.prototype.forContainers=function(t,i){t.indexOf(this.name)>=0&&i()},i.prototype.getContainerElement=function(){return this.eContainer},i.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},i.prototype.setComp=function(t,i,n,e){var r=this;this.comp=t,this.eContainer=i,this.eViewport=n,this.eWrapper=e,this.createManagedBean(new Zu(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var o=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(bh(arguments[i]));return t}([Vu.TOP_CENTER,Vu.TOP_LEFT,Vu.TOP_RIGHT],[Vu.BOTTOM_CENTER,Vu.BOTTOM_LEFT,Vu.BOTTOM_RIGHT],[Vu.CENTER,Vu.LEFT,Vu.RIGHT],[Vu.STICKY_TOP_CENTER,Vu.STICKY_TOP_LEFT,Vu.STICKY_TOP_RIGHT]),s=[Vu.CENTER,Vu.LEFT,Vu.RIGHT,Vu.FULL_WIDTH],u=[Vu.CENTER,Vu.TOP_CENTER,Vu.STICKY_TOP_CENTER,Vu.BOTTOM_CENTER],h=[Vu.RIGHT,Vu.BOTTOM_RIGHT,Vu.TOP_RIGHT,Vu.STICKY_TOP_RIGHT];this.forContainers([Vu.LEFT,Vu.BOTTOM_LEFT,Vu.TOP_LEFT,Vu.STICKY_TOP_LEFT],(function(){r.pinnedWidthFeature=r.createManagedBean(new nh(r.eContainer)),r.addManagedListener(r.eventService,Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return r.onPinnedWidthChanged()}))})),this.forContainers(h,(function(){r.pinnedWidthFeature=r.createManagedBean(new oh(r.eContainer)),r.addManagedListener(r.eventService,Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return r.onPinnedWidthChanged()}))})),this.forContainers(s,(function(){return r.createManagedBean(new hh(r.eContainer,r.eWrapper))})),this.forContainers(o,(function(){return r.createManagedBean(new fh(r.eContainer))})),this.forContainers(u,(function(){return r.createManagedBean(new dh((function(t){return r.comp.setContainerWidth(t+"px")})))})),An()&&(this.forContainers([Vu.CENTER],(function(){r.addManagedListener(r.eventService,r.enableRtl?Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED:Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return r.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},i.prototype.refreshPaddingForFakeScrollbar=function(){var t=this,i=t.enableRtl,n=t.columnModel,e=t.name,r=t.eWrapper,o=t.eContainer,s=i?Vu.LEFT:Vu.RIGHT;this.forContainers([Vu.CENTER,s],(function(){var t=n.getContainerWidth(s),u=i?"marginLeft":"marginRight";e===Vu.CENTER?r.style[u]=t?"0px":"16px":o.style[u]=t?"16px":"0px"}))},i.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return t.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return t.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},i.prototype.listenOnDomOrder=function(){var t=this;if([Vu.STICKY_TOP_CENTER,Vu.STICKY_TOP_LEFT,Vu.STICKY_TOP_RIGHT,Vu.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var i=function(){var i=t.gridOptionsService.is("ensureDomOrder"),n=t.gridOptionsService.isDomLayout("print");t.comp.setDomOrder(i||n)};this.addManagedPropertyListener("domLayout",i),i()}},i.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([Vu.TOP_CENTER,Vu.STICKY_TOP_CENTER,Vu.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},i.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([Vu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([Vu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onScrollVisibilityChanged=function(){if(this.name===Vu.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsService.getScrollbarWidth()||0;this.comp.setViewportHeight(0==t?"100%":"calc(100% + "+t+"px)")}},i.prototype.addPreventScrollWhileDragging=function(){var t=this,i=function(i){t.dragService.isDragging()&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",i)}))},i.prototype.onHorizontalViewportChanged=function(){var t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},i.prototype.getCenterWidth=function(){return $n(this.eViewport)},i.prototype.getCenterViewportScrollLeft=function(){return ie(this.eViewport,this.enableRtl)},i.prototype.registerViewportResizeListener=function(t){var i=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return i()}))},i.prototype.isViewportVisible=function(){return oe(this.eViewport)},i.prototype.isViewportHScrollShowing=function(){return ve(this.eViewport)},i.prototype.getViewportScrollLeft=function(){return ie(this.eViewport,this.enableRtl)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||ve(this.eViewport)},i.prototype.getViewportElement=function(){return this.eViewport},i.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},i.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},i.prototype.setCenterViewportScrollLeft=function(t){ne(this.eViewport,t,this.enableRtl)},i.prototype.isContainerVisible=function(){return!i.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},i.prototype.onPinnedWidthChanged=function(){var t=this.isContainerVisible();this.visible!=t&&(this.visible=t,this.onDisplayedRowsChanged()),An()&&this.refreshPaddingForFakeScrollbar()},i.prototype.onDisplayedRowsChanged=function(){var t=this,i=this.name===Vu.TOP_FULL_WIDTH||this.name===Vu.STICKY_TOP_FULL_WIDTH||this.name===Vu.BOTTOM_FULL_WIDTH||this.name===Vu.FULL_WIDTH,n=(this.visible?this.getRowCtrls():[]).filter((function(n){var e=n.isFullWidth(),r=t.gridOptionsService.isDomLayout("print"),o=t.embedFullWidthRows||r;return i?!o&&e:o||!e}));this.comp.setRowCtrls(n)},i.prototype.getRowCtrls=function(){switch(this.name){case Vu.TOP_CENTER:case Vu.TOP_LEFT:case Vu.TOP_RIGHT:case Vu.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Vu.STICKY_TOP_CENTER:case Vu.STICKY_TOP_LEFT:case Vu.STICKY_TOP_RIGHT:case Vu.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Vu.BOTTOM_CENTER:case Vu.BOTTOM_LEFT:case Vu.BOTTOM_RIGHT:case Vu.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},gh([z("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),gh([z("dragService")],i.prototype,"dragService",void 0),gh([z("ctrlsService")],i.prototype,"ctrlsService",void 0),gh([z("columnModel")],i.prototype,"columnModel",void 0),gh([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),gh([z("rowRenderer")],i.prototype,"rowRenderer",void 0),gh([L],i.prototype,"postConstruct",null),i}(Pt),Ch=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jh='<div class="ag-root ag-unselectable" role="treegrid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+Vu.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+Vu.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+Vu.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+Vu.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body" ref="eBody" role="presentation">\n <div class="ag-body-clipper" ref="eBodyClipper" role="presentation">\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+Vu.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+Vu.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+Vu.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+Vu.FULL_WIDTH+'"></ag-row-container>\n </div>\n </div>\n <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+Vu.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+Vu.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+Vu.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+Vu.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+Vu.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+Vu.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+Vu.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+Vu.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',_h=function(t){function i(){return t.call(this,jh)||this}return Ch(i,t),i.prototype.init=function(){var t=this,i=function(t,i){var n=t+"px";i.style.minHeight=n,i.style.height=n},n={setRowAnimationCssOnBodyViewport:function(i,n){return t.setRowAnimationCssOnBodyViewport(i,n)},setColumnCount:function(i){return Zi(t.getGui(),i)},setRowCount:function(i){return qi(t.getGui(),i)},setTopHeight:function(n){return i(n,t.eTop)},setBottomHeight:function(n){return i(n,t.eBottom)},setTopDisplay:function(i){return t.eTop.style.display=i},setBottomDisplay:function(i){return t.eBottom.style.display=i},setStickyTopHeight:function(i){return t.eStickyTop.style.height=i},setStickyTopTop:function(i){return t.eStickyTop.style.top=i},setStickyTopWidth:function(i){return t.eStickyTop.style.width=i},setColumnMovingCss:function(i,n){return t.addOrRemoveCssClass(wu,n)},updateLayoutClasses:function(i,n){[t.eBodyViewport.classList,t.eBodyClipper.classList,t.eBody.classList].forEach((function(t){t.toggle(Us.AUTO_HEIGHT,n.autoHeight),t.toggle(Us.NORMAL,n.normal),t.toggle(Us.PRINT,n.print)})),t.addOrRemoveCssClass(Us.AUTO_HEIGHT,n.autoHeight),t.addOrRemoveCssClass(Us.NORMAL,n.normal),t.addOrRemoveCssClass(Us.PRINT,n.print)},setAlwaysVerticalScrollClass:function(i,n){return t.eBodyViewport.classList.toggle(mu,n)},registerBodyViewportResizeListener:function(i){var n=t.resizeObserverService.observeResize(t.eBodyViewport,i);t.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(i){return t.eTop.style.overflowY=t.eBottom.style.overflowY=i},setCellSelectableCss:function(i,n){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle(bu,n)}))},setBodyViewportWidth:function(i){return t.eBodyViewport.style.width=i}};this.ctrl=this.createManagedBean(new yu),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&Yi(this.getGui(),!0)},i.prototype.setRowAnimationCssOnBodyViewport=function(t,i){var n=this.eBodyViewport.classList;n.toggle(nu.ANIMATION_ON,i),n.toggle(nu.ANIMATION_OFF,!i)},i.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Rh([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Rh([V("rangeService")],i.prototype,"rangeService",void 0),Rh([nr("eBodyViewport")],i.prototype,"eBodyViewport",void 0),Rh([nr("eStickyTop")],i.prototype,"eStickyTop",void 0),Rh([nr("eTop")],i.prototype,"eTop",void 0),Rh([nr("eBottom")],i.prototype,"eBottom",void 0),Rh([nr("gridHeader")],i.prototype,"headerRootComp",void 0),Rh([nr("eBodyClipper")],i.prototype,"eBodyClipper",void 0),Rh([nr("eBody")],i.prototype,"eBody",void 0),Rh([L],i.prototype,"init",null),i}(ir),Ah=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fh=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ah(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},i.prototype.onDisplayedColumnsChanged=function(){this.update()},i.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},i.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},i.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var i={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},i.prototype.setScrollsVisible=function(t){this.horizontalScrollShowing===t.horizontalScrollShowing&&this.verticalScrollShowing===t.verticalScrollShowing||(this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing,this.eventService.dispatchEvent({type:Nt.EVENT_SCROLL_VISIBILITY_CHANGED}))},i.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},i.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},xh([z("ctrlsService")],i.prototype,"ctrlsService",void 0),xh([L],i.prototype,"postConstruct",null),xh([W("scrollVisibleService")],i)}(Pt),Mh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dh=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return Mh(n,t),e=n,n.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[e.GRID_DOM_KEY]=this.gridInstanceId},n.prototype.getRenderedCellForEvent=function(t){return jt(this.gridOptionsService,t,Bu.DOM_DATA_KEY_CELL_CTRL)},n.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},n.prototype.isElementInThisGrid=function(t){for(var n=t;n;){var r=n[e.GRID_DOM_KEY];if(i(r))return r===this.gridInstanceId;n=n.parentElement}return!1},n.prototype.getCellPositionForEvent=function(t){var i=this.getRenderedCellForEvent(t);return i?i.getCellPosition():null},n.prototype.getNormalisedPosition=function(t){var i,n,e=this.gridOptionsService.isDomLayout("normal");if(null!=t.clientX||null!=t.clientY?(i=t.clientX,n=t.clientY):(i=t.x,n=t.y),e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition();i+=r.getScrollFeature().getHScrollPosition().left,n+=o.top}return{x:i,y:n}},n.gridInstanceSequence=new Ve,n.GRID_DOM_KEY="__ag_grid_instance",Gh([z("ctrlsService")],n.prototype,"ctrlsService",void 0),e=Gh([W("mouseEventService")],n)}(Pt),Ph=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),kh=function(){return kh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},kh.apply(this,arguments)},Th=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ih=function(t){function e(){var i=t.call(this)||this;return i.onPageDown=P(i.onPageDown,100),i.onPageUp=P(i.onPageUp,100),i}return Ph(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},e.prototype.handlePageScrollingKey=function(t){var i=t.key,n=t.altKey,e=t.ctrlKey||t.metaKey,r=!!this.rangeService&&t.shiftKey,o=this.mouseEventService.getCellPositionForEvent(t);if(!o)return!1;var s=!1;switch(i){case Fe.PAGE_HOME:case Fe.PAGE_END:e||n||(this.onHomeOrEndKey(i),s=!0);break;case Fe.LEFT:case Fe.RIGHT:case Fe.UP:case Fe.DOWN:!e||n||r||(this.onCtrlUpDownLeftRight(i,o),s=!0);break;case Fe.PAGE_DOWN:e||n||(this.onPageDown(o),s=!0);break;case Fe.PAGE_UP:e||n||(this.onPageUp(o),s=!0)}return s&&t.preventDefault(),s},e.prototype.navigateTo=function(t){var n=t.scrollIndex,e=t.scrollType,r=t.scrollColumn,o=t.focusIndex,s=t.focusColumn;i(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),i(n)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(n,e),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(o),this.focusService.setFocusedCell({rowIndex:o,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:o,rowPinned:null,column:s})},e.prototype.onPageDown=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),e=this.paginationProxy.getPixelOffset(),r=this.paginationProxy.getRowIndexAtPixel(i.top+n+e);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},e.prototype.onPageUp=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),e=this.paginationProxy.getRowIndexAtPixel(i.top+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,e,!0):this.navigateToNextPage(t,e,!0)},e.prototype.navigateToNextPage=function(t,i,n){void 0===n&&(n=!1);var e,r=this.getViewportHeight(),o=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),h=this.paginationProxy.getRow(t.rowIndex),c=this.paginationProxy.getRowIndexAtPixel((null==h?void 0:h.rowTop)+(n?(null==h?void 0:h.rowHeight)-r-u:r-u)+u);c===t.rowIndex&&(i=c=t.rowIndex+(n?-1:1)),n?(e="bottom",c<o&&(c=o),i<o&&(i=o)):(e="top",c>s&&(c=s),i>s&&(i=s)),this.isRowTallerThanView(c)&&(i=c,e="top"),this.navigateTo({scrollIndex:i,scrollType:e,scrollColumn:null,focusIndex:c,focusColumn:t.column})},e.prototype.navigateToNextPageWithAutoHeight=function(t,i,n){var e=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:t.column}),setTimeout((function(){var r=e.getNextFocusIndexForAutoHeight(t,n);e.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:t.column,isAsync:!0})}),50)},e.prototype.getNextFocusIndexForAutoHeight=function(t,i){var n;void 0===i&&(i=!1);for(var e=i?-1:1,r=this.getViewportHeight(),o=this.paginationProxy.getPageLastRow(),s=0,u=t.rowIndex;u>=0&&u<=o;){var h=this.paginationProxy.getRow(u);if(h){var c=null!==(n=h.rowHeight)&&void 0!==n?n:0;if(s+c>r)break;s+=c}u+=e}return Math.max(0,Math.min(u,o))},e.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),i=this.gridOptionsService.getScrollbarWidth(),n=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=i),n},e.prototype.isRowTallerThanView=function(t){var i=this.paginationProxy.getRow(t);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},e.prototype.onCtrlUpDownLeftRight=function(t,i){var n=this.cellNavigationService.getNextCellToFocus(t,i,!0),e=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:e,scrollType:null,scrollColumn:r,focusIndex:e,focusColumn:r})},e.prototype.onHomeOrEndKey=function(t){var i=t===Fe.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),e=i?n[0]:ut(n),r=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:e,focusIndex:r,focusColumn:e})},e.prototype.onTabKeyDown=function(t,i){var n=i.shiftKey;if(this.tabToNextCellCommon(t,n,i))i.preventDefault();else if(n){var e=t.getRowPosition(),r=e.rowIndex;(e.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else t instanceof Bu&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},e.prototype.tabToNextCell=function(t,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var e=this.getCellByPosition(n);return!!(e||(e=this.rowRenderer.getRowByPosition(n))&&e.isFullWidth())&&this.tabToNextCellCommon(e,t,i)},e.prototype.tabToNextCellCommon=function(t,i,n){var e=t.isEditing();if(!e&&t instanceof Bu){var r=t.getRowCtrl();r&&(e=r.isEditing())}return(e?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(t,i,n):this.moveToNextEditingCell(t,i,n):this.moveToNextCellNotEditing(t,i))||!!this.focusService.getFocusedHeader()},e.prototype.moveToNextEditingCell=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition();t.getGui().focus(),t.stopEditing();var r=this.findNextCellToFocusOn(e,i,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},e.prototype.moveToNextEditingRow=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition(),r=this.findNextCellToFocusOn(e,i,!0);if(null==r)return!1;var o=r.getCellPosition(),s=this.isCellEditable(e),u=this.isCellEditable(o),h=o&&e.rowIndex===o.rowIndex&&e.rowPinned===o.rowPinned;return s&&t.setFocusOutOnEditor(),h||(t.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),u?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},e.prototype.moveToNextCellNotEditing=function(t,n){var e,r=this.columnModel.getAllDisplayedColumns();e=t instanceof Yu?kh(kh({},t.getRowPosition()),{column:n?r[0]:ut(r)}):t.getCellPosition();var o=this.findNextCellToFocusOn(e,n,!1);if(o instanceof Bu)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o.getRowPosition(),n);return i(o)},e.prototype.findNextCellToFocusOn=function(t,n,e){for(var r=t;;){t!==r&&(t=r),n||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,n);var o=this.gridOptionsService.getCallback("tabToNextCell");if(i(o)){var s=o({backwards:n,editing:e,previousCellPosition:t,nextCellPosition:r||null});i(s)?(s.floating&&(R((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"),s.rowPinned=s.floating),r={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+r.rowIndex,column:r.column}}),null}var h="fullRow"===this.gridOptionsService.get("editType");if(!e||h||this.isCellEditable(r)){this.ensureCellVisible(r);var c=this.getCellByPosition(r);if(c){if(!c.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),c}else{var a=this.rowRenderer.getRowByPosition(r);if(a&&a.isFullWidth())return a}}}},e.prototype.isCellEditable=function(t){var i=this.lookupRowNodeForCell(t);return!!i&&t.column.isCellEditable(i)},e.prototype.getCellByPosition=function(t){var i=this.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null},e.prototype.lookupRowNodeForCell=function(t){return"top"===t.rowPinned?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):"bottom"===t.rowPinned?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},e.prototype.navigateToNextCell=function(t,e,r,o){for(var s=r,u=!1;s&&(s===r||!this.isValidNavigateCell(s));)this.gridOptionsService.is("enableRtl")?e===Fe.LEFT&&(s=this.getLastCellOfColSpan(s)):e===Fe.RIGHT&&(s=this.getLastCellOfColSpan(s)),u=n(s=this.cellNavigationService.getNextCellToFocus(e,s));if(u&&t&&t.key===Fe.UP&&(s={rowIndex:-1,rowPinned:null,column:r.column}),o){var h=this.gridOptionsService.getCallback("navigateToNextCell");if(i(h)){var c=h({key:e,previousCellPosition:r,nextCellPosition:s||null,event:t});i(c)?(c.floating&&(R((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"),c.rowPinned=c.floating),s={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):s=null}}if(s)if(s.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+s.rowIndex,column:r.column},event:t||void 0})}else{var f=this.getNormalisedPosition(s);f?this.focusPosition(f):this.tryToFocusFullWidthRow(s)}},e.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var i=this.getCellByPosition(t);return i?(t=i.getCellPosition(),this.ensureCellVisible(t),t):null},e.prototype.tryToFocusFullWidthRow=function(t,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),e=this.rowRenderer.getRowByPosition(t);if(!e||!e.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),o={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(i?ut(n):n[0])};this.focusPosition(o);var s=null!=r&&this.rowPositionUtils.before(o,r);return this.eventService.dispatchEvent({type:Nt.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,floating:o.rowPinned,fromBelow:s}),!0},e.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},e.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},e.prototype.getLastCellOfColSpan=function(t){var i=this.getCellByPosition(t);if(!i)return t;var n=i.getColSpanningList();return 1===n.length?t:{rowIndex:t.rowIndex,column:ut(n),rowPinned:t.rowPinned}},e.prototype.ensureCellVisible=function(t){var i=this.gridOptionsService.is("groupRowsSticky"),e=this.rowModel.getRow(t.rowIndex);!(i&&(null==e?void 0:e.sticky))&&n(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Th([z("mouseEventService")],e.prototype,"mouseEventService",void 0),Th([z("paginationProxy")],e.prototype,"paginationProxy",void 0),Th([z("focusService")],e.prototype,"focusService",void 0),Th([V("rangeService")],e.prototype,"rangeService",void 0),Th([z("columnModel")],e.prototype,"columnModel",void 0),Th([z("rowModel")],e.prototype,"rowModel",void 0),Th([z("ctrlsService")],e.prototype,"ctrlsService",void 0),Th([z("rowRenderer")],e.prototype,"rowRenderer",void 0),Th([z("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Th([z("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Th([z("cellNavigationService")],e.prototype,"cellNavigationService",void 0),Th([z("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Th([L],e.prototype,"postConstruct",null),Th([W("navigationService")],e)}(Pt),Eh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nh=function(t){function i(i){var n=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=i,n}return Eh(i,t),i.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),i.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},i.prototype.addKeyDownListener=function(){var t=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",(function(i){Ge(t.gridOptionsService,i,n.node,n.column,!0)||n.onKeyDown(i)}))},i.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(_o),Hh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Lh=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=i,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var u=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var h=function(t,i,n){var e=n||u;null!=i&&""!=i?e.setAttribute(t,i):e.removeAttribute(t)},c={addOrRemoveCssClass:function(t,i){return s.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return le(u,t)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(t){return h("tabindex",t.toString())},setRole:function(t){return Di(u,t)},setColId:function(t){return h("col-id",t)},setTitle:function(t){return h("title",t)},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,i,n){return s.setRenderDetails(t,i,n)},setEditDetails:function(t,i,n){return s.setEditDetails(t,i,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(c,s.getGui(),s.eCellWrapper,e,o),s}return Hh(i,t),i.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},i.prototype.setRenderDetails=function(t,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var e=this.refreshWrapper(!1);this.refreshEditStyles(!1),t?!n&&!e&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},i.prototype.setEditDetails=function(t,i,n){t?this.createCellEditorInstance(t,i,n):this.destroyEditor()},i.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},i.prototype.refreshWrapper=function(t){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,e=n&&null==this.eCellWrapper;e&&(this.eCellWrapper=se('<div class="ag-cell-wrapper" role="presentation" aria-hidden="true"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(re(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var o=!t&&n,s=o&&null==this.eCellValue;s&&(this.eCellValue=se('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var u=!o&&null!=this.eCellValue;u&&(re(this.eCellValue),this.eCellValue=void 0);var h=e||r||s||u;return h&&this.removeControls(),t||(i&&this.addControls(),n&&this.refreshAriaProperties()),h},i.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},i.prototype.refreshAriaProperties=function(){var t=this.eCellValue.id="cell-"+this.getCompId(),i=[];this.includeSelection&&this.checkboxSelectionComp&&i.push(this.checkboxSelectionComp.getCheckboxId()),i.push(t),Hi(this.getGui(),i.join(" "))},i.prototype.createCellEditorInstance=function(t,i,e){var r=this,o=this.editorVersion,s=t.newAgStackInstance();if(s){var u=t.params;s.then((function(t){return r.afterCellEditorCreated(o,t,u,i,e)})),n(this.cellEditor)&&u.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},i.prototype.insertValueWithoutCellRenderer=function(t){var i=this.getParentOfValue();ee(i);var n=null!=t?li(t):null;null!=n&&(i.innerHTML=n)},i.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},i.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),re(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},i.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),re(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},i.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var i=this.cellRenderer.refresh(t.params);return!0===i||void 0===i},i.prototype.createCellRendererInstance=function(t){var i=this,n=this.beans.gridOptionsService.is("suppressAnimationFrame"),e=this.rendererVersion,r=t.componentClass,o=function(){if(i.rendererVersion===e&&i.isAlive()){var n=t.newAgStackInstance(),o=i.afterCellRendererCreated.bind(i,e,r);n&&n.then(o)}};!n&&this.firstRender?this.beans.animationFrameService.createTask(o,this.rowNode.rowIndex,"createTasksP2"):o()},i.prototype.getCtrl=function(){return this.cellCtrl},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getCellRenderer=function(){return this.cellRenderer},i.prototype.getCellEditor=function(){return this.cellEditor},i.prototype.afterCellRendererCreated=function(t,i,n){if(this.isAlive()&&t===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var e=this.getParentOfValue();ee(e),e.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},i.prototype.afterCellEditorCreated=function(t,i,n,e,r){if(t!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing(!0);if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui();var o=e||void 0!==i.isPopup&&i.isPopup();o?this.addPopupCellEditor(n,r):this.addInCellEditor(),this.refreshEditStyles(!0,o),i.afterGuiAttached&&i.afterGuiAttached()}},i.prototype.refreshEditStyles=function(t,i){var n;this.addOrRemoveCssClass("ag-cell-inline-editing",t&&!i),this.addOrRemoveCssClass("ag-cell-popup-editing",t&&!!i),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t||!!i),null===(n=this.rowCtrl)||void 0===n||n.setInlineEditingCss(t)},i.prototype.addInCellEditor=function(){var t=this.getGui(),i=this.beans.gridOptionsService.getDocument();t.contains(i.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},i.prototype.addPopupCellEditor=function(t,i){var n=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var e=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Nh(t));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var o=this.beans.popupService,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),u=null!=i?i:e.getPopupPosition?e.getPopupPosition():"over",h=this.beans.gridOptionsService.is("enableRtl"),c={ePopup:r,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:u,alignSide:h?"right":"left",keepWithinBounds:!0},a=o.positionPopupByComponent.bind(o,c),f=this.beans.localeService.getLocaleTextFunc(),l=o.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:a,ariaLabel:f("ariaLabelCellEditor","Cell Editor")});l&&(this.hideEditorPopup=l.hideFunc)},i.prototype.detach=function(){this.eRow.removeChild(this.getGui())},i.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},i.prototype.clearParentOfValue=function(){var t=this.getGui(),i=this.beans.gridOptionsService.getDocument();t.contains(i.activeElement)&&Sn()&&t.focus({preventScroll:!0}),ee(this.getParentOfValue())},i}(ir),Bh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wh=function(t){function i(i,n,e){var r=t.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=i,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle(e)+'"/>');var o=r.getGui(),s=o.style;return i.setComp({setDomOrder:function(t){return r.domOrder=t},setCellCtrls:function(t){return r.setCellCtrls(t)},showFullWidth:function(t){return r.showFullWidth(t)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,i){return r.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return le(o,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return o.setAttribute("row-index",t)},setRole:function(t){return Di(o,t)},setRowId:function(t){return o.setAttribute("row-id",t)},setRowBusinessKey:function(t){return o.setAttribute("row-business-key",t)},setTabIndex:function(t){return o.setAttribute("tabindex",t.toString())}},r.getGui(),e),r.addDestroyFunc((function(){i.unsetComp(e)})),r}return Bh(i,t),i.prototype.getInitialStyle=function(t){var i=this.rowCtrl.getInitialTransform(t),n=this.rowCtrl.getInitialRowTop(t);return i?"transform: "+i:"top: "+n},i.prototype.showFullWidth=function(t){var i=this,n=t.newAgStackInstance();n&&n.then((function(t){if(i.isAlive()){var n=t.getGui();i.getGui().appendChild(n),i.rowCtrl.setupDetailRowAutoHeight(n),i.setFullWidthRowComp(t)}else i.beans.context.destroyBean(t)}))},i.prototype.setCellCtrls=function(t){var i=this,n=Object.assign({},this.cellComps);t.forEach((function(t){var e=t.getInstanceId();null==i.cellComps[e]?i.newCellComp(t):n[e]=null}));var e=b(n).filter((function(t){return null!=t}));this.destroyCells(e),this.ensureDomOrder(t)},i.prototype.ensureDomOrder=function(t){var i=this;if(this.domOrder){var n=[];t.forEach((function(t){var e=i.cellComps[t.getInstanceId()];e&&n.push(e.getGui())})),ae(this.getGui(),n)}},i.prototype.newCellComp=function(t){var i=new Lh(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},i.prototype.destroyAllCells=function(){var t=b(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},i.prototype.setFullWidthRowComp=function(t){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)}))},i.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},i.prototype.destroyCells=function(t){var i=this;t.forEach((function(t){if(t){var n=t.getCtrl().getInstanceId();i.cellComps[n]===t&&(t.detach(),t.destroy(),i.cellComps[n]=null)}}))},i}(ir),zh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vh=function(){return Vh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Vh.apply(this,arguments)},Uh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kh=function(t){function i(){var i,n,e=t.call(this,(i=ir.elementGettingCreated.getAttribute("name"),n=Sh.getRowContainerCssClasses(i),i===Vu.CENTER?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>\n </div>':i===Vu.TOP_CENTER||i===Vu.STICKY_TOP_CENTER||i===Vu.BOTTOM_CENTER?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>':'<div class="'+n.container+'" ref="eContainer"></div>'))||this;return e.rowComps={},e.name=ir.elementGettingCreated.getAttribute("name"),e.type=function(t){switch(t){case Vu.CENTER:case Vu.TOP_CENTER:case Vu.STICKY_TOP_CENTER:case Vu.BOTTOM_CENTER:return Uu.CENTER;case Vu.LEFT:case Vu.TOP_LEFT:case Vu.STICKY_TOP_LEFT:case Vu.BOTTOM_LEFT:return Uu.LEFT;case Vu.RIGHT:case Vu.TOP_RIGHT:case Vu.STICKY_TOP_RIGHT:case Vu.BOTTOM_RIGHT:return Uu.RIGHT;case Vu.FULL_WIDTH:case Vu.TOP_FULL_WIDTH:case Vu.STICKY_TOP_FULL_WIDTH:case Vu.BOTTOM_FULL_WIDTH:return Uu.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return zh(i,t),i.prototype.postConstruct=function(){var t=this,i={setViewportHeight:function(i){return t.eViewport.style.height=i},setRowCtrls:function(i){return t.setRowCtrls(i)},setDomOrder:function(i){t.domOrder=i},setContainerWidth:function(i){return t.eContainer.style.width=i}};this.createManagedBean(new Sh(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},i.prototype.preDestroy=function(){this.setRowCtrls([])},i.prototype.setRowCtrls=function(t){var i=this,n=Vh({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,t.forEach((function(t){var e=t.getInstanceId(),r=n[e];if(r)i.rowComps[e]=r,delete n[e],i.ensureDomOrder(r.getGui());else{var o=new Wh(t,i.beans,i.type);i.rowComps[e]=o,i.appendRow(o.getGui())}})),b(n).forEach((function(t){i.eContainer.removeChild(t.getGui()),t.destroy()})),Di(this.eContainer,t.length?"rowgroup":"presentation")},i.prototype.appendRow=function(t){this.domOrder?fe(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},i.prototype.ensureDomOrder=function(t){this.domOrder&&(ce(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},Uh([z("beans")],i.prototype,"beans",void 0),Uh([nr("eViewport")],i.prototype,"eViewport",void 0),Uh([nr("eContainer")],i.prototype,"eContainer",void 0),Uh([nr("eWrapper")],i.prototype,"eWrapper",void 0),Uh([L],i.prototype,"postConstruct",null),Uh([B],i.prototype,"preDestroy",null),i}(ir),Yh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},qh=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var i=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var n=t.dragItem.columns;n&&n.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?i.columnsToAggregate.push(t):t.isAllowRowGroup()?i.columnsToGroup.push(t):t.isAllowPivot()&&i.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?qo.ICON_PINNED:qo.ICON_MOVE:null},t.prototype.onDragLeave=function(){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(){},t.prototype.onDragStop=function(){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Yh([z("columnModel")],t.prototype,"columnModel",void 0),Yh([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),Jh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zh=function(){function t(t,n){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=n,this.centerContainer=!i(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?qo.ICON_PINNED:qo.ICON_MOVE},t.prototype.onDragEnter=function(t){var i=t.dragItem.columns;if(t.dragSource.type===Ir.ToolPanel)this.setColumnsVisible(i,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,e=(i||[]).filter((function(t){return n[t.getId()]}));this.setColumnsVisible(e,!0,"uiColumnDragged")}this.setColumnsPinned(i,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.setColumnsVisible=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(e,i,n)}},t.prototype.setColumnsPinned=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(e,i,n)}},t.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.normaliseX=function(t){return this.gridOptionsService.is("enableRtl")&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var i=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=i+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=t<i+50,this.needToMoveLeft=t>n-50):(this.needToMoveLeft=t<i+50,this.needToMoveRight=t>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,i,e,r){var o,s=this;if(void 0===t&&(t=this.lastDraggingEvent),void 0===i&&(i=!1),void 0===e&&(e=!1),void 0===r&&(r=!1),r){if(this.lastMovedInfo){var u=this.lastMovedInfo;this.moveColumns(u.columns,u.toIndex,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=t,!n(t.hDirection)){var h=this.normaliseX(t.x);i||this.checkCenterForScrolling(h);var c=this.normaliseDirection(t.hDirection),a=t.dragSource.type,f=(null===(o=t.dragSource.getDragItem().columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==s.pinned})))||[];this.attemptMoveColumns({dragSourceType:a,allMovingColumns:f,hDirection:c,mouseX:h,fromEnter:i,fakeEvent:e})}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsService.is("enableRtl"))return t;switch(t){case Nr.Left:return Nr.Right;case Nr.Right:return Nr.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.attemptMoveColumns=function(t){var i=t.dragSourceType,n=t.hDirection,e=t.mouseX,r=t.fromEnter,o=t.fakeEvent,s=n===Nr.Left,u=n===Nr.Right,h=t.allMovingColumns;if(i===Ir.HeaderCell){var c=[];h.forEach((function(t){for(var i=null,n=t.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)i=n,n=n.getParent();null!=i?i.getLeafColumns().forEach((function(t){c.includes(t)||c.push(t)})):c.includes(t)||c.push(t)})),h=c}var a=h.slice();this.columnModel.sortColumnsLikeGridColumns(a);var f=this.calculateValidMoves(a,u,e),l=this.calculateOldIndex(a);if(0!==f.length){var v=f[0],d=null!==l&&!r;if(i==Ir.HeaderCell&&(d=null!==l),d&&!o){if(s&&v>=l)return;if(u&&v<=l)return}for(var p=this.columnModel.getAllDisplayedColumns(),g=[],b=null,m=0;m<f.length;m++){var w=f[m],y=this.columnModel.getProposedColumnOrder(a,w);if(this.columnModel.doesOrderPassRules(y)){var O=y.filter((function(t){return p.includes(t)}));if(null===b)b=O;else if(!ze.areEqual(O,b))break;var S=this.groupFragCount(y);g.push({move:w,fragCount:S})}}0!==g.length&&(g.sort((function(t,i){return t.fragCount-i.fragCount})),this.moveColumns(h,g[0].move,"uiColumnMoved",!1))}},t.prototype.calculateOldIndex=function(t){var i=this.columnModel.getAllGridColumns(),n=ct(t.map((function(t){return i.indexOf(t)}))),e=n[0];return ut(n)-e!=n.length-1?null:e},t.prototype.moveColumns=function(t,i,n,e){this.columnModel.moveColumns(t,i,n,e),this.lastMovedInfo=e?null:{columns:t,toIndex:i}},t.prototype.groupFragCount=function(t){function i(t){for(var i=[],n=t.getOriginalParent();null!=n;)i.push(n),n=n.getOriginalParent();return i}for(var n=0,e=function(e){var r,o=i(t[e]),s=i(t[e+1]);r=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(o.length>s.length?[o,s]:[s,o],2),s=r[1],(o=r[0]).forEach((function(t){-1===s.indexOf(t)&&n++}))},r=0;r<t.length-1;r++)e(r);return n},t.prototype.calculateValidMoves=function(t,i,n){if(this.gridOptionsService.is("suppressMovableColumns")||t.some((function(t){return t.getColDef().suppressMovable})))return[];var e,r=this.columnModel.getDisplayedColumns(this.pinned),o=this.columnModel.getAllGridColumns(),s=r.filter((function(i){return dt(t,i)})),u=r.filter((function(i){return!dt(t,i)})),h=o.filter((function(i){return!dt(t,i)})),c=0,a=n;if(i){var f=0;s.forEach((function(t){return f+=t.getActualWidth()})),a-=f}if(a>0){for(var l=0;l<u.length&&!((a-=u[l].getActualWidth())<0);l++)c++;i&&c++}c>0?e=h.indexOf(u[c-1])+1:-1===(e=h.indexOf(u[0]))&&(e=0);var v=[e],d=function(t,i){return t-i};if(i){for(var p=e+1,g=o.length-1;p<=g;)v.push(p),p++;v.sort(d)}else{g=o.length-1;for(var b=o[p=e];p<=g&&this.isColumnHidden(r,b);)p++,v.push(p),b=o[p];for(p=e-1;p>=0;)v.push(p),p--;v.sort(d).reverse()}return v},t.prototype.isColumnHidden=function(t,i){return t.indexOf(i)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?qo.ICON_LEFT:qo.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(qo.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var i=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?i=n.scrollHorizontally(-t):this.needToMoveRight&&(i=n.scrollHorizontally(t)),0!==i)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var e=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));e.length>0&&(this.dragAndDropService.setGhostIcon(qo.ICON_PINNED),this.failedMoveAttempts>7&&(this.setColumnsPinned(e,this.needToMoveLeft?"left":"right","uiColumnDragged"),this.dragAndDropService.nudge()))}},Jh([z("columnModel")],t.prototype,"columnModel",void 0),Jh([z("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Jh([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Jh([z("ctrlsService")],t.prototype,"ctrlsService",void 0),Jh([L],t.prototype,"init",null),t}(),$h=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xh=function(t){function i(i,n){var e=t.call(this)||this;return e.pinned=i,e.eContainer=n,e}return $h(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){switch(t.pinned){case"left":t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}}))},i.prototype.isInterestedIn=function(t){return t===Ir.HeaderCell||t===Ir.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},i.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},i.prototype.getContainer=function(){return this.eContainer},i.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Zh(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new qh(this.pinned)),this.dragAndDropService.addDropTarget(this)},i.prototype.getIconName=function(){return this.currentDropListener.getIconName()},i.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===Ir.ToolPanel},i.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},i.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},i.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},i.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},Qh([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Qh([z("columnModel")],i.prototype,"columnModel",void 0),Qh([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Qh([L],i.prototype,"postConstruct",null),Qh([L],i.prototype,"init",null),i}(Pt),tc=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ic=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,i,e,r){return n(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,i,e,r)},t.getToolPanelClassesFromColDef=function(t,i,e,r){return n(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,i,e,r)},t.getClassParams=function(t,i,n,e){return{colDef:t,column:n,columnGroup:e,api:i.get("api"),columnApi:i.get("columnApi"),context:i.get("context")}},t.getColumnClassesFromCollDef=function(t,i,e,r,o){return n(t)?[]:"string"==typeof(s="function"==typeof t?t(this.getClassParams(i,e,r,o)):t)?[s]:Array.isArray(s)?function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(tc(arguments[i]));return t}(s):[];var s},t}(),nc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ec=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rc=function(t){function i(n){var e=t.call(this,i.TEMPLATE,n)||this;return e.headerCompVersion=0,e.column=n.getColumnGroupChild(),e.pinned=n.getPinned(),e}return nc(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n,e){var r=e||i;null!=n&&""!=n?r.setAttribute(t,n):r.removeAttribute(t)};this.ctrl.setComp({setWidth:function(t){return i.style.width=t},addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setColId:function(t){return n("col-id",t)},setTitle:function(t){return n("title",t)},setAriaDescription:function(t){return Ni(i,t)},setAriaSort:function(t){return t?Xi(i,t):tn(i)},setUserCompDetails:function(i){return t.setUserCompDetails(i)},getUserCompInstance:function(){return t.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var e=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",e)},i.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},i.prototype.setUserCompDetails=function(t){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;t.newAgStackInstance().then((function(t){return i.afterCompCreated(n,t)}))},i.prototype.afterCompCreated=function(t,i){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},i.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n </div>',ec([nr("eResize")],i.prototype,"eResize",void 0),ec([nr("eHeaderCompWrapper")],i.prototype,"eHeaderCompWrapper",void 0),ec([L],i.prototype,"postConstruct",null),ec([B],i.prototype,"destroyHeaderComp",null),i}($s),oc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},uc=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return oc(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n){return null!=n?i.setAttribute(t,n):i.removeAttribute(t)};this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setResizableDisplayed:function(i){return Un(t.eResize,i)},setWidth:function(t){return i.style.width=t},setColId:function(t){return i.setAttribute("col-id",t)},setAriaExpanded:function(t){return n("aria-expanded",t)},setTitle:function(t){return n("title",t)},setUserCompDetails:function(i){return t.setUserCompDetails(i)}},i,this.eResize)},i.prototype.setUserCompDetails=function(t){var i=this;t.newAgStackInstance().then((function(t){return i.afterHeaderCompCreated(t)}))},i.prototype.afterHeaderCompCreated=function(t){var i=this,n=function(){return i.destroyBean(t)};this.isAlive()?(this.getGui().appendChild(t.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(t.getGui())):n()},i.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',sc([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),sc([nr("eResize")],i.prototype,"eResize",void 0),sc([L],i.prototype,"postConstruct",null),i}($s),hc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(mh||(mh={}));var ac,fc=function(t){function i(i){var n=t.call(this)||this;n.headerComps={};var e=i.getType()==mh.COLUMN_GROUP?"ag-header-row-column-group":i.getType()==mh.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return n.setTemplate('<div class="ag-header-row '+e+'" role="row"></div>'),n.ctrl=i,n}return hc(i,t),i.prototype.init=function(){var t=this;this.ctrl.setComp({setTransform:function(i){return t.getGui().style.transform=i},setHeight:function(i){return t.getGui().style.height=i},setTop:function(i){return t.getGui().style.top=i},setHeaderCtrls:function(i){return t.setHeaderCtrls(i)},setWidth:function(i){return t.getGui().style.width=i},setAriaRowIndex:function(i){return Ji(t.getGui(),i)}})},i.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},i.prototype.setHeaderCtrls=function(t){var i=this;if(this.isAlive()){var n=this.headerComps;this.headerComps={},t.forEach((function(t){var e=t.getInstanceId(),r=n[e];delete n[e],null==r&&(r=i.createHeaderComp(t),i.getGui().appendChild(r.getGui())),i.headerComps[e]=r})),a(n,(function(t,n){i.getGui().removeChild(n.getGui()),i.destroyBean(n)}));var e=this.gridOptionsService.is("ensureDomOrder"),r=this.gridOptionsService.isDomLayout("print");if(e||r){var o=b(this.headerComps);o.sort((function(t,i){return t.getCtrl().getColumnGroupChild().getLeft()-i.getCtrl().getColumnGroupChild().getLeft()}));var s=o.map((function(t){return t.getGui()}));ae(this.getGui(),s)}}},i.prototype.createHeaderComp=function(t){var i;switch(this.ctrl.getType()){case mh.COLUMN_GROUP:i=new uc(t);break;case mh.FLOATING_FILTER:i=new tu(t);break;default:i=new rc(t)}return this.createBean(i),i.setParentComponent(this),i},cc([L],i.prototype,"init",null),cc([B],i.prototype,"destroyHeaderCtrls",null),i}(ir),lc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dc=0,pc=function(t){function i(i,n){var e=t.call(this)||this;return e.lastFocusEvent=null,e.columnGroupChild=i,e.parentRowCtrl=n,e.instanceId=i.getUniqueId()+"-"+dc++,e}return lc(i,t),i.prototype.shouldStopEventPropagation=function(t){var i=this.focusService.getFocusedHeader();return De(this.gridOptionsService,t,i.headerRowIndex,i.column)},i.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},i.prototype.setGui=function(t){this.eGui=t,this.addDomData()},i.prototype.handleKeyDown=function(t){var i=this.getWrapperHasFocus();switch(t.key){case Fe.PAGE_DOWN:case Fe.PAGE_UP:case Fe.PAGE_HOME:case Fe.PAGE_END:i&&t.preventDefault()}},i.prototype.addDomData=function(){var t=this,n=i.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return t.gridOptionsService.setDomData(t.eGui,n,null)}))},i.prototype.getGui=function(){return this.eGui},i.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},i.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},i.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},i.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.getColumnGroupChild=function(){return this.columnGroupChild},i.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",vc([z("focusService")],i.prototype,"focusService",void 0),vc([z("beans")],i.prototype,"beans",void 0),vc([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(Pt);
|
|
245
|
+
/**
|
|
246
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
247
|
+
* @version v29.0.0
|
|
248
|
+
* @link https://www.ag-grid.com/
|
|
249
|
+
* @license MIT
|
|
250
|
+
*/!function(t){t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing"}(ac||(ac={}));
|
|
251
|
+
/**
|
|
252
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
253
|
+
* @version v29.0.0
|
|
254
|
+
* @link https://www.ag-grid.com/
|
|
255
|
+
* @license MIT
|
|
256
|
+
*/
|
|
257
|
+
var gc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};function bc(t){return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():t}var mc,wc=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.getSetterMethod=function(t){return"set"+t.charAt(0).toUpperCase()+t.substring(1)},t.prototype.__setProperty=function(t,i){this.gridOptionsService.set(t,i);var n=this.getSetterMethod(t);this[n]&&this[n](i)},t.prototype.addDetailGridInfo=function(t,i){this.detailGridInfoMap[t]=i},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var n=0;a(this.detailGridInfoMap,(function(e,r){i(r)&&(t(r,n),n++)}))},t.prototype.getDataAsCsv=function(t){if(X.assertRegistered(q.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){X.assertRegistered(q.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var i=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},i,t).exportMode},t.prototype.assertNotExcelMultiSheet=function(t,i){if(!X.assertRegistered(q.ExcelExportModule,"api."+t))return!1;var n=this.getExcelExportMode(i);return this.excelCreator.getFactoryMode(n)!==Yo.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},t.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},t.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},t.prototype.getSheetDataForExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.getSheetDataForExcel")){var i=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Yo.MULTI_SHEET,i),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setGridAriaProperty=function(t,i){if(t){var n=this.ctrlsService.getGridBodyCtrl().getGui(),e="aria-"+t;null===i?n.removeAttribute(e):n.setAttribute(e,i)}},t.prototype.logMissingRowModel=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];console.error("AG Grid: api."+t+" can only be called when gridOptions.rowModelType is "+i.join(" or "))},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):this.logMissingRowModel("setServerSideDatasource","serverSide")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsService.set("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},t.prototype.setDatasource=function(t){this.gridOptionsService.isRowModelType("infinite")?this.rowModel.setDatasource(t):this.logMissingRowModel("setDatasource","infinite")},t.prototype.setViewportDatasource=function(t){this.gridOptionsService.isRowModelType("viewport")?this.rowModel.setViewportDatasource(t):this.logMissingRowModel("setViewportDatasource","viewport")},t.prototype.setRowData=function(t){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,i){void 0===i&&(i="api"),this.columnModel.setColumnDefs(t,i),this.gridOptionsService.set("columnDefs",t,!0,{source:i})},t.prototype.setAutoGroupColumnDef=function(t,i){void 0===i&&(i="api"),this.gridOptionsService.set("autoGroupColumnDef",t,!0,{source:i})},t.prototype.setDefaultColDef=function(t,i){void 0===i&&(i="api"),this.gridOptionsService.set("defaultColDef",t,!0,{source:i})},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsService.set("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsService.set("alwaysShowVerticalScroll",t)},t.prototype.refreshCells=function(t){void 0===t&&(t={}),this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsService.set("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,i){t&&t.setExpanded(i)},t.prototype.onGroupExpandedOrCollapsed=function(){n(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:ac.MAP})},t.prototype.refreshClientSideRowModel=function(t){n(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(t)},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.addRenderedRowListener=function(t,i,n){this.rowRenderer.addRenderedRowListener(t,i,n)},t.prototype.setQuickFilter=function(t){this.gridOptionsService.set("quickFilterText",t)},t.prototype.selectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.selectAllRowNodes(t)},t.prototype.deselectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.deselectAllRowNodes(t)},t.prototype.selectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes(t,!0)},t.prototype.deselectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes(t,!0)},t.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){if(!n(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,i)},t.prototype.ensureIndexVisible=function(t,i){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,i)},t.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,i)},t.prototype.forEachLeafNode=function(t){n(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t,i){this.rowModel.forEachNode(t,i)},t.prototype.forEachNodeAfterFilter=function(t){n(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){n(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,i){var n=this.getFilterInstanceImpl(t,(function(t){if(i){var n=bc(t);i(n)}}));return bc(n)},t.prototype.getFilterInstanceImpl=function(t,i){var n=this.columnModel.getPrimaryColumn(t);if(n){var e=this.filterManager.getFilterComponent(n,"NO_UI"),r=e&&e.resolveNow(null,(function(t){return t}));return r?setTimeout(i,0,r):e&&e.then((function(t){i(t)})),r}},t.prototype.destroyFilter=function(t){var i=this.columnModel.getPrimaryColumn(t);if(i)return this.filterManager.destroyFilter(i,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(X.assertRegistered(q.StatusBarModule,"api.getStatusPanel"))return bc(this.statusBarService.getStatusPanel(t))},t.prototype.getColumnDef=function(t){var i=this.columnModel.getPrimaryColumn(t);return i?i.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,i,n){this.focusService.setFocusedCell({rowIndex:t,column:i,rowPinned:n,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsService.set("suppressRowDrag",t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsService.set("suppressMoveWhenRowDragging",t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsService.set("suppressRowClickSelection",t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var i=this.dragAndDropService.findExternalZone(t);i&&this.dragAndDropService.removeDropTarget(i)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsService.set("headerHeight",t)},t.prototype.setDomLayout=function(t){this.gridOptionsService.set("domLayout",t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsService.set("fillHandleDirection",t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsService.set("groupHeaderHeight",t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsService.set("floatingFiltersHeight",t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsService.set("pivotHeaderHeight",t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsService.set("pivotGroupHeaderHeight",t)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.setAnimateRows=function(t){this.gridOptionsService.set("animateRows",t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsService.set("isExternalFilterPresent",t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsService.set("doesExternalFilterPass",t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsService.set("navigateToNextCell",t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsService.set("tabToNextCell",t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsService.set("tabToNextHeader",t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsService.set("navigateToNextHeader",t)},t.prototype.setRowGroupPanelShow=function(t){this.gridOptionsService.set("rowGroupPanelShow",t)},t.prototype.setGroupRowAggNodes=function(t){ti("27.2","setGroupRowAggNodes","setGetGroupRowAgg"),this.gridOptionsService.set("groupRowAggNodes",t)},t.prototype.setGetGroupRowAgg=function(t){this.gridOptionsService.set("getGroupRowAgg",t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsService.set("getBusinessKeyForNode",t)},t.prototype.setGetChildCount=function(t){this.gridOptionsService.set("getChildCount",t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsService.set("processRowPostCreate",t)},t.prototype.setGetRowNodeId=function(t){ti("27.1","setGetRowNodeId","setGetRowId"),this.gridOptionsService.set("getRowNodeId",t)},t.prototype.setGetRowId=function(t){this.gridOptionsService.set("getRowId",t)},t.prototype.setGetRowClass=function(t){this.gridOptionsService.set("getRowClass",t)},t.prototype.setIsFullWidthCell=function(t){ti("27.2","setIsFullWidthCell","setIsFullWidthRow"),this.gridOptionsService.set("isFullWidthCell",t)},t.prototype.setIsFullWidthRow=function(t){this.gridOptionsService.set("isFullWidthRow",t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsService.set("isRowSelectable",t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsService.set("isRowMaster",t)},t.prototype.setPostSort=function(t){ti("27.2","setPostSort","setPostSortRows"),this.gridOptionsService.set("postSort",t)},t.prototype.setPostSortRows=function(t){this.gridOptionsService.set("postSortRows",t)},t.prototype.setGetDocument=function(t){this.gridOptionsService.set("getDocument",t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsService.set("getContextMenuItems",t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsService.set("getMainMenuItems",t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsService.set("processCellForClipboard",t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsService.set("sendToClipboard",t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsService.set("processCellFromClipboard",t)},t.prototype.setProcessSecondaryColDef=function(t){ti("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){ti("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsService.set("processPivotResultColDef",t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsService.set("processPivotResultColGroupDef",t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsService.set("postProcessPopup",t)},t.prototype.setDefaultGroupOrderComparator=function(t){ti("27.2","setDefaultGroupOrderComparator","setInitialGroupOrderComparator"),this.gridOptionsService.set("defaultGroupOrderComparator",t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsService.set("initialGroupOrderComparator",t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsService.set("getChartToolbarItems",t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsService.set("paginationNumberFormatter",t)},t.prototype.setGetServerSideStoreParams=function(t){ti("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsService.set("getServerSideGroupLevelParams",t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsService.set("isServerSideGroupOpenByDefault",t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsService.set("isApplyServerSideTransaction",t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsService.set("isServerSideGroup",t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsService.set("getServerSideGroupKey",t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsService.set("getRowStyle",t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsService.set("getRowHeight",t)},t.prototype.assertSideBarLoaded=function(t){return X.assertRegistered(q.SideBarModule,"api."+t)},t.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(t)},t.prototype.setSideBarPosition=function(t){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(t)},t.prototype.openToolPanel=function(t){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(t)},t.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close()},t.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},t.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},t.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},t.prototype.getToolPanelInstance=function(t){if(this.assertSideBarLoaded("getToolPanelInstance"))return bc(this.sideBarComp.getToolPanelInstance(t))},t.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},t.prototype.setSideBar=function(t){this.gridOptionsService.set("sideBar",t)},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsService.set("suppressClipboardPaste",t)},t.prototype.resetRowHeights=function(){if(i(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsService.set("groupRemoveSingleChildren",t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsService.set("groupRemoveLowestSingleChildren",t)},t.prototype.setGroupDisplayType=function(t){this.gridOptionsService.set("groupDisplayType",t)},t.prototype.setRowClass=function(t){this.gridOptionsService.set("rowClass",t)},t.prototype.setDeltaSort=function(t){this.gridOptionsService.set("deltaSort",t)},t.prototype.setRowCount=function(t,i){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,i):this.logMissingRowModel("setRowCount","infinite")},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,i){var e=this.columnModel.getPrimaryColumn(t);return n(e)&&(e=this.columnModel.getGridColumn(t)),n(e)?null:this.valueService.getValue(e,i)},t.prototype.addEventListener=function(t,i){var n=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(t,i,n)},t.prototype.addGlobalListener=function(t){var i=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(t,i)},t.prototype.removeEventListener=function(t,i){var n=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(t,i,n)},t.prototype.removeGlobalListener=function(t){var i=this.gridOptionsService.useAsyncEvents();this.eventService.removeGlobalListener(t,i)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(y.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(X.assertRegistered(q.RangeSelectionModule,"api.getCellRanges"),null)},t.prototype.addCellRange=function(t){this.rangeService?this.rangeService.addCellRange(t):X.assertRegistered(q.RangeSelectionModule,"api.addCellRange")},t.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),X.assertRegistered(q.RangeSelectionModule,"gridApi.clearRangeSelection")},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(X.assertRegistered(q.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(X.assertRegistered(q.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(X.assertRegistered(q.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(X.assertRegistered(q.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(X.assertRegistered(q.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(X.assertRegistered(q.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(X.assertRegistered(q.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(X.assertRegistered(q.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,i){if(X.assertRegistered(q.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,i)},t.prototype.createPivotChart=function(t){if(X.assertRegistered(q.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copyToClipboard=function(t){X.assertRegistered(q.ClipboardModule,"api.copyToClipboard")&&this.clipboardService.copyToClipboard(t)},t.prototype.copySelectedRowsToClipboard=function(t){X.assertRegistered(q.ClipboardModule,"api.copySelectedRowsToClipboard")&&this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){X.assertRegistered(q.ClipboardModule,"api.copySelectedRangeToClipboard")&&this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){X.assertRegistered(q.ClipboardModule,"api.copySelectedRangeDown")&&this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,i){var n=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(n,i,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,i){var n=this.columnModel.getGridColumn(t);n||(n=this.columnModel.getPrimaryColumn(t)),n?this.menuFactory.showMenuAfterMouseEvent(n,i):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gridOptionsService.set("popupParent",t)},t.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},t.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(bc)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(bc)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var i=this.columnModel.getGridColumn(t.colKey);if(i){var n={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:i};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var e=this.navigationService.getCellByPosition(n);e&&e.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,i){this.aggFuncService&&this.aggFuncService.addAggFunc(t,i)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);this.logMissingRowModel("applyServerSideTransaction","serverSide")},t.prototype.applyServerSideTransactionAsync=function(t,i){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,i);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var i=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(i.update),this.gridOptionsService.is("suppressChangeDetection")||this.rowRenderer.refreshCells(),i}this.logMissingRowModel("applyTransaction","clientSide")},t.prototype.applyTransactionAsync=function(t,i){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,i):this.logMissingRowModel("applyTransactionAsync","clientSide")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},t.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction",t)},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):this.logMissingRowModel("refreshServerSide","serverSide")},t.prototype.refreshServerSideStore=function(t){return ti("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return ti("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},t.prototype.getCacheBlockState=function(){return ti("28.0","getCacheBlockState"),this.rowNodeBlockLoader.getBlockState()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.setPagination=function(t){this.gridOptionsService.set("pagination",t)},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsService.set("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},gc([V("immutableService")],t.prototype,"immutableService",void 0),gc([V("csvCreator")],t.prototype,"csvCreator",void 0),gc([V("excelCreator")],t.prototype,"excelCreator",void 0),gc([z("rowRenderer")],t.prototype,"rowRenderer",void 0),gc([z("navigationService")],t.prototype,"navigationService",void 0),gc([z("filterManager")],t.prototype,"filterManager",void 0),gc([z("columnModel")],t.prototype,"columnModel",void 0),gc([z("selectionService")],t.prototype,"selectionService",void 0),gc([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),gc([z("valueService")],t.prototype,"valueService",void 0),gc([z("alignedGridsService")],t.prototype,"alignedGridsService",void 0),gc([z("eventService")],t.prototype,"eventService",void 0),gc([z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gc([z("context")],t.prototype,"context",void 0),gc([z("rowModel")],t.prototype,"rowModel",void 0),gc([z("sortController")],t.prototype,"sortController",void 0),gc([z("paginationProxy")],t.prototype,"paginationProxy",void 0),gc([z("focusService")],t.prototype,"focusService",void 0),gc([z("dragAndDropService")],t.prototype,"dragAndDropService",void 0),gc([V("rangeService")],t.prototype,"rangeService",void 0),gc([V("clipboardService")],t.prototype,"clipboardService",void 0),gc([V("aggFuncService")],t.prototype,"aggFuncService",void 0),gc([z("menuFactory")],t.prototype,"menuFactory",void 0),gc([V("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),gc([z("valueCache")],t.prototype,"valueCache",void 0),gc([z("animationFrameService")],t.prototype,"animationFrameService",void 0),gc([V("statusBarService")],t.prototype,"statusBarService",void 0),gc([V("chartService")],t.prototype,"chartService",void 0),gc([V("undoRedoService")],t.prototype,"undoRedoService",void 0),gc([V("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),gc([V("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),gc([z("ctrlsService")],t.prototype,"ctrlsService",void 0),gc([L],t.prototype,"init",null),gc([B],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),gc([W("gridApi")],t)}(),yc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Oc=function(t){function n(i,n,e,r){var o=t.call(this)||this;return o.columnOrGroup=i,o.eCell=n,o.ariaEl=o.eCell.querySelector("[role=columnheader]")||o.eCell,o.colsSpanning=r,o.beans=e,o}return yc(n,t),n.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},n.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ut(this.colsSpanning):this.columnOrGroup},n.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,et.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},n.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),n=i(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&n&&!t?this.animateInLeft():this.onLeftChanged()},n.prototype.animateInLeft=function(){var t=this,i=this.getColumnOrGroup(),n=i.getLeft(),e=i.getOldLeft(),r=this.modifyLeftForPrintLayout(i,e),o=this.modifyLeftForPrintLayout(i,n);this.setLeft(r),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===o&&t.setLeft(o)}))},n.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),i=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,i),this.setLeft(this.actualLeft)},n.prototype.modifyLeftForPrintLayout=function(t,i){if(!this.beans.gridOptionsService.isDomLayout("print"))return i;if("left"===t.getPinned())return i;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===t.getPinned()?n+this.beans.columnModel.getBodyContainerWidth()+i:n+i},n.prototype.setLeft=function(t){var n;if(i(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof et)n=this.columnOrGroup;else{var e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&Qi(this.ariaEl,e.length),n=e[0]}var r=this.beans.columnModel.getAriaColumnIndex(n);$i(this.ariaEl,r)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],n.prototype,"postConstruct",null),n}(Pt),Sc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rc=function(t){function i(i,n){var e=t.call(this)||this;return e.columns=i,e.element=n,e}return Sc(i,t),i.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},i.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},i.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},i.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Cc([z("columnHoverService")],i.prototype,"columnHoverService",void 0),Cc([L],i.prototype,"postConstruct",null),i}(Pt),jc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_c=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ac=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.column=i,e}return jc(i,t),i.prototype.setComp=function(i,n,e,r){t.prototype.setGui.call(this,n),this.comp=i,this.eButtonShowMainFilter=e,this.eFloatingFilterBody=r;var o=this.column.getColDef();this.active=!(!o.filter&&!o.filterFramework||!o.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},i.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var t=Ae("filter",this.gridOptionsService,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},i.prototype.setupFocus=function(){this.createManagedBean(new pr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.onTabKeyDown=function(t){if(this.gridOptionsService.getDocument().activeElement!==this.eGui){var i=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(i)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void i.focus();var n=this.findNextColumnWithFloatingFilter(t.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:t})&&t.preventDefault()}},i.prototype.findNextColumnWithFloatingFilter=function(t){var i=this.beans.columnModel,n=this.column;do{if(!(n=t?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();switch(i.key){case Fe.UP:case Fe.DOWN:n||i.preventDefault();case Fe.LEFT:case Fe.RIGHT:if(n)return;i.stopPropagation();case Fe.ENTER:n&&this.focusService.focusInto(this.eGui)&&i.preventDefault();break;case Fe.ESCAPE:n||this.eGui.focus()}},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),n=!!t.relatedTarget&&qn(t.relatedTarget,"ag-floating-filter");if(i&&n&&t.target===this.eGui){var e=this.lastFocusEvent;e&&e&&e.key===Fe.TAB&&this.focusService.focusInto(this.eGui,e.shiftKey)}var r=this.getRowIndex();this.beans.focusService.setFocusedHeader(r,this.column)}},i.prototype.setupHover=function(){var t=this;this.createManagedBean(new Rc([this.column],this.eGui));var i=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupLeft=function(){var t=new Oc(this.column,this.eGui,this.beans);this.createManagedBean(t)},i.prototype.setupUserComp=function(){var t=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),e=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Fs,n),r=this.userComponentFactory.getDefaultFloatingFilterType(i);null==r&&(r="agReadOnlyFloatingFilter");var o={column:this.column,filterParams:e,currentParentModel:function(){return t.currentParentModel()},parentFilterInstance:function(i){return t.parentFilterInstance(i)},showParentFilter:function(){return t.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(i,o,r);s&&this.comp.setCompDetails(s)}},i.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t&&t.getModel()})):null},i.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},i.prototype.parentFilterInstance=function(t){var i=this.getFilterComponent();null!=i&&i.then((function(i){t(bc(i))}))},i.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},i.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var i=function(i){var n=t.comp.getFloatingFilterComp();if(n){var e=t.currentParentModel();n.then((function(t){t&&t.onParentModelChanged(e,i)}))}};this.addManagedListener(this.column,et.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},i.prototype.setupWidth=function(){var t=this,i=function(){var i=t.column.getActualWidth()+"px";t.comp.setWidth(i)};this.addManagedListener(this.column,et.EVENT_WIDTH_CHANGED,i),i()},_c([z("filterManager")],i.prototype,"filterManager",void 0),_c([z("columnHoverService")],i.prototype,"columnHoverService",void 0),_c([z("menuFactory")],i.prototype,"menuFactory",void 0),i}(pc),xc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mc=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.pinned=i,s.column=n,s.eResize=e,s.comp=r,s.ctrl=o,s}return xc(i,t),i.prototype.postConstruct=function(){var t,i,n=this,e=this.column.getColDef(),r=[],o=function(){r.forEach((function(t){return t()})),r.length=0},s=function(){var s=n.column.isResizable(),u=!n.gridOptionsService.is("suppressAutoSize")&&!e.suppressAutoSize;(s!==t||u!==i)&&(t=s,i=u,o(),function(){if(Un(n.eResize,t),t){var e=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(e),i){var o=n.gridOptionsService.is("skipHeaderOnAutoSize"),s=function(){n.columnModel.autoSizeColumn(n.column,o,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var u=new po(n.eResize);u.addEventListener(po.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),u.removeEventListener(po.EVENT_DOUBLE_TAP,s),u.destroy()}))}}}())};s(),this.addDestroyFunc(o),this.ctrl.addRefreshFunction(s)},i.prototype.onResizing=function(t,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,t,"uiColumnDragged"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.normaliseResizeAmount=function(t){var i=t,n="left"!==this.pinned,e="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?n&&(i*=-1):e&&(i*=-1),i},Fc([z("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),Fc([z("columnModel")],i.prototype,"columnModel",void 0),Fc([L],i.prototype,"postConstruct",null),i}(Pt),Gc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Dc=function(t){function i(i,n,e){void 0===n&&(n="ag-checkbox"),void 0===e&&(e="checkbox");var r=t.call(this,i,n,e)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Gc(i,t),i.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},i.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},i.prototype.setPassive=function(t){this.passive=t},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},i.prototype.setDisabled=function(i){return this.eWrapper.classList.toggle("ag-disabled",i),t.prototype.setDisabled.call(this,i)},i.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,t):this.setValue(i)}},i.prototype.getValue=function(){return this.isSelected()},i.prototype.setValue=function(t,i){return this.refreshSelectedClass(t),this.setSelected(t,i),this},i.prototype.setName=function(t){return this.getInputElement().name=t,this},i.prototype.isSelected=function(){return this.selected},i.prototype.setSelected=function(t,i){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"==typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,i||this.dispatchChange(this.selected,this.previousValue))},i.prototype.dispatchChange=function(t,n,e){this.dispatchEvent({type:i.EVENT_CHANGED,selected:t,previousValue:n,event:e});var r=this.getInputElement();this.eventService.dispatchEvent({type:Nt.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:t,previousValue:n})},i.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=t.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,t)}},i.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},i}(Pr),Pc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),kc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tc=function(t){function i(i){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=i;var e=i.getColDef();return n.filteredOnly=!!e&&!!e.headerCheckboxSelectionFilteredOnly,n}return Pc(i,t),i.prototype.onSpaceKeyPressed=function(t){var i=this.cbSelectAll,n=this.gridOptionsService.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(t.preventDefault(),i.setValue(!i.getValue()))},i.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},i.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new Dc),this.cbSelectAll.addCssClass("ag-header-select-all"),Di(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Dc.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Wi(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},i.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},i.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},i.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),i=this.getNextCheckboxState(t);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},i.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var t=this.localeService.getLocaleTextFunc(),i=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),n=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+i+")"),this.cbSelectAll.setInputAriaLabel(n+" ("+i+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},i.prototype.getSelectionCount=function(){var t=this,i=0,n=0,e=function(e){t.gridOptionsService.is("groupSelectsChildren")&&e.group||(e.isSelected()?i++:e.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(e):this.gridApi.forEachNode(e),{notSelected:n,selected:i}},i.prototype.checkRightRowModelType=function(t){var i=this.rowModel.getType();return!("clientSide"!==i&&(console.warn("AG Grid: "+t+" is only available if using 'clientSide' rowModelType, you are using "+i+"."),1))},i.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var t=this.cbSelectAll.getValue(),i=this.filteredOnly?"uiSelectAllFiltered":"uiSelectAll";t?this.selectionService.selectAllRowNodes(i,this.filteredOnly):this.selectionService.deselectAllRowNodes(i,this.filteredOnly)}},i.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;return"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.get("context")})),!!t&&this.checkRightRowModelType("headerCheckboxSelection")},kc([z("gridApi")],i.prototype,"gridApi",void 0),kc([z("columnApi")],i.prototype,"columnApi",void 0),kc([z("rowModel")],i.prototype,"rowModel",void 0),kc([z("selectionService")],i.prototype,"selectionService",void 0),i}(Pt),Ic=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ec=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nc=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.refreshFunctions=[],e.userHeaderClasses=new Set,e.ariaDescriptionProperties=new Map,e.column=i,e}return Ic(i,t),i.prototype.setComp=function(i,n,e,r){var o=this;t.prototype.setGui.call(this,n),this.comp=i,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Mc(this.getPinned(),this.column,e,i,this)),this.createManagedBean(new Rc([this.column],n)),this.createManagedBean(new Oc(this.column,n,this.beans)),this.createManagedBean(new pr(n,{shouldStopEventPropagation:function(t){return o.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,et.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},i.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},i.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},i.prototype.lookupUserCompDetails=function(){var t=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,t)},i.prototype.createParams=function(){var t=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(i){t.gridApi.showColumnMenuAfterButtonClick(t.column,i)},progressSort:function(i){t.sortController.progressSort(t.column,!!i,"uiColumnSorted")},setSort:function(i,n){t.sortController.setSortForColumn(t.column,i,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.get("context"),eGridHeader:this.getGui()}},i.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Tc(this.column)),this.selectAllFeature.setComp(this)},i.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i),i.key===Fe.SPACE&&this.selectAllFeature.onSpaceKeyPressed(i),i.key===Fe.ENTER&&this.onEnterKeyPressed(i)},i.prototype.onEnterKeyPressed=function(t){var i=this.comp.getUserCompInstance();i&&(t.ctrlKey||t.metaKey?this.menuEnabled&&i.showMenu&&(t.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,t.shiftKey,"uiColumnSorted"))},i.prototype.isMenuEnabled=function(){return this.menuEnabled},i.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},i.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},i.prototype.setupTooltip=function(){var t=this,i=this.createManagedBean(new Fu({getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return t.column.getColDef().headerTooltip}},this.beans));i.setComp(this.comp),this.refreshFunctions.push((function(){return i.refreshToolTip()}))},i.prototype.setupClassesFromColDef=function(){var t=this,i=function(){var i=t.column.getColDef(),n=ic.getHeaderClassesFromColDef(i,t.gridOptionsService,t.column,null),e=t.userHeaderClasses;t.userHeaderClasses=new Set(n),n.forEach((function(i){e.has(i)?e.delete(i):t.comp.addOrRemoveCssClass(i,!0)})),e.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!1)}))};this.refreshFunctions.push(i),i()},i.prototype.setDragSource=function(t){var i=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var n=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:Ir.HeaderCell,eElement:t,defaultIconName:n?qo.ICON_HIDE:qo.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var e;if(n){var r=(null===(e=null==t?void 0:t.columns)||void 0===e?void 0:e.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(r,!0,"uiColumnMoved")}},onGridExit:function(t){var e;if(n){var r=(null===(e=null==t?void 0:t.columns)||void 0===e?void 0:e.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(r,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},i.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},i.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},i.prototype.onColDefChanged=function(){this.refresh()},i.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},i.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},i.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},i.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==t.componentClass&&this.attemptHeaderCompRefresh(t.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},i.prototype.attemptHeaderCompRefresh=function(t){var i=this.comp.getUserCompInstance();return!!i&&!!i.refresh&&i.refresh(t)},i.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},i.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},i.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!(this.gridOptionsService.is("suppressMovableColumns")||t.suppressMovable||t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},i.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},i.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},i.prototype.onColumnValueChanged=function(){this.checkDisplayName()},i.prototype.setupWidth=function(){var t=this,i=function(){var i=t.column.getActualWidth();t.comp.setWidth(i+"px")};this.addManagedListener(this.column,et.EVENT_WIDTH_CHANGED,i),i()},i.prototype.setupMovingCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,et.EVENT_MOVING_CHANGED,i),i()},i.prototype.setupMenuClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,et.EVENT_MENU_VISIBLE_CHANGED,i),i()},i.prototype.setupSortableClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.eventService,et.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},i.prototype.setupWrapTextClass=function(){var t=this,i=function(){var i=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",i)};i(),this.addRefreshFunction(i)},i.prototype.setupAutoHeight=function(t){var i,n=this,e=function(i){if(n.isAlive()){var r=Jn(n.getGui()),o=t.offsetHeight+r.paddingTop+r.paddingBottom;if(i<5){var s=n.beans.gridOptionsService.getDocument();if(!s||!s.contains(t)||0==o)return void n.beans.frameworkOverrides.setTimeout((function(){return e(i+1)}),0)}n.columnModel.setColumnHeaderHeight(n.column,o)}},r=!1,o=function(){var t=n.column.isAutoHeaderHeight();t&&!r&&s(),!t&&r&&u()},s=function(){r=!0,e(0),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),i=n.resizeObserverService.observeResize(t,(function(){return e(0)}))},u=function(){r=!1,i&&i(),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),i=void 0};o(),this.addDestroyFunc((function(){return u()})),this.addManagedListener(this.column,et.EVENT_WIDTH_CHANGED,(function(){return r&&e(0)})),this.addManagedListener(this.eventService,et.EVENT_SORT_CHANGED,(function(){r&&n.beans.frameworkOverrides.setTimeout((function(){return e(0)}))})),this.addRefreshFunction(o)},i.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.localeService.getLocaleTextFunc(),i=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Pi(i)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},i.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},i.prototype.setAriaDescriptionProperty=function(t,i){null!=i?this.ariaDescriptionProperties.set(t,i):this.ariaDescriptionProperties.delete(t)},i.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},i.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},i.prototype.addColumnHoverListener=function(){var t=this,i=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupFilterCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,et.EVENT_FILTER_ACTIVE_CHANGED,i),i()},i.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},i.prototype.addActiveHeaderMouseListeners=function(){var t=this,i=function(i){return t.setActiveHeader("mouseenter"===i.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},i.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},Ec([z("columnModel")],i.prototype,"columnModel",void 0),Ec([z("columnHoverService")],i.prototype,"columnHoverService",void 0),Ec([z("sortController")],i.prototype,"sortController",void 0),Ec([z("menuFactory")],i.prototype,"menuFactory",void 0),Ec([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Ec([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Ec([z("gridApi")],i.prototype,"gridApi",void 0),Ec([z("columnApi")],i.prototype,"columnApi",void 0),Ec([B],i.prototype,"removeDragSource",null),i}(pc),Hc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Lc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Bc=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.eResize=n,o.comp=i,o.pinned=e,o.columnGroup=r,o}return Hc(i,t),i.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsService.is("suppressAutoSize")){var n=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var i=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||i.push(t.getColId())})),i.length>0&&t.columnModel.autoSizeColumns({columns:i,skipHeader:n,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit()}))}}else this.comp.setResizableDisplayed(!1)},i.prototype.onResizeStart=function(t){var i=this;this.calculateInitialValues();var n=null;if(t&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var e=n.getDisplayedLeafColumns();this.resizeTakeFromCols=e.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromRatios.push(t.getActualWidth()/i.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.onResizing=function(t,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,t)},i.prototype.resizeLeafColumnsToFit=function(){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,!0)},i.prototype.resizeColumns=function(t,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(t-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.calculateInitialValues=function(){var t=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(i){return t.resizeStartWidth+=i.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(i){return t.resizeRatios.push(i.getActualWidth()/t.resizeStartWidth)}))},i.prototype.normaliseDragChange=function(t){var i=t;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(i*=-1):"right"===this.pinned&&(i*=-1),i},Lc([z("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),Lc([z("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),Lc([z("columnModel")],i.prototype,"columnModel",void 0),Lc([L],i.prototype,"postConstruct",null),i}(Pt),Wc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zc=function(t){function i(i,n){var e=t.call(this)||this;return e.removeChildListenersFuncs=[],e.columnGroup=n,e.comp=i,e}return Wc(i,t),i.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,ei.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},i.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener("widthChanged",i),n.addEventListener("visibleChanged",i),t.removeChildListenersFuncs.push((function(){n.removeEventListener("widthChanged",i),n.removeEventListener("visibleChanged",i)}))}))},i.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},i.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},i.prototype.onWidthChanged=function(){var t=this.columnGroup.getActualWidth();this.comp.setWidth(t+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===t)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(Pt),Vc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Uc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kc=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.columnGroup=i,e}return Vc(i,t),i.prototype.setComp=function(i,n,e){t.prototype.setGui.call(this,n),this.comp=i,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),o=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Rc(o,n)),this.createManagedBean(new Oc(this.columnGroup,n,this.beans)),this.createManagedBean(new zc(i,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Bc(i,e,r,this.columnGroup)),this.createManagedBean(new pr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},i.prototype.setupUserComp=function(){var t=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(i){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),i,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.get("context")};if(!i){for(var e=this.columnGroup,r=e.getLeafColumns();e.getParent()&&e.getParent().getLeafColumns().length===r.length;)e=e.getParent();var o=e.getColGroupDef();o&&(i=o.headerName),i||(i=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},i.prototype.setupTooltip=function(){var t=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new Fu(n,this.beans)).setComp(this.comp)},i.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,rt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,rt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},i.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var i=t.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},i.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},i.prototype.addClasses=function(){var t=this,i=this.columnGroup.getColGroupDef(),n=ic.getHeaderClassesFromColDef(i,this.gridOptionsService,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!0)}))},i.prototype.setupMovingCss=function(){var t=this,i=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};i.forEach((function(i){t.addManagedListener(i,et.EVENT_MOVING_CHANGED,n)})),n()},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();if(this.expandable&&n&&i.key===Fe.ENTER){var e=this.columnGroup,r=!e.isExpanded();this.columnModel.setColumnGroupOpened(e.getProvidedColumnGroup(),r,"uiColumnExpanded")}},i.prototype.setDragSource=function(t){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),r={type:Ir.HeaderCell,eElement:t,defaultIconName:e?qo.ICON_HIDE:qo.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return n.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var n;if(e){var r=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(r,!0,"uiColumnMoved")}},onGridExit:function(t){var n;if(e){var r=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(r,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return i.dragAndDropService.removeDragSource(r)}))}},i.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};t.forEach((function(t){return i[t.getId()]=t.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(i){t.indexOf(i)>=0&&(n.push(i),at(t,i))})),t.forEach((function(t){return n.push(t)})),{columns:n,visibleState:i}},i.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(i){(i.getColDef().suppressMovable||i.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsService.is("suppressMovableColumns")},Uc([z("columnModel")],i.prototype,"columnModel",void 0),Uc([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Uc([z("gridApi")],i.prototype,"gridApi",void 0),Uc([z("columnApi")],i.prototype,"columnApi",void 0),i}(pc),Yc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jc=0,Zc=function(t){function i(i,n,e){var r=t.call(this)||this;return r.instanceId=Jc++,r.headerCellCtrls={},r.rowIndex=i,r.pinned=n,r.type=e,r}return Yc(i,t),i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(t){this.comp=t,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),bn()&&this.comp.setTransform("translateZ(0)"),t.setAriaRowIndex(this.rowIndex+1)},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},i.prototype.getHeaderCellCtrl=function(t){return u(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()===t}))},i.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},i.prototype.getType=function(){return this.type},i.prototype.onColumnResized=function(){this.setWidth()},i.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},i.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},i.prototype.onRowHeightChanged=function(){var t=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(t++,n=1);for(var e=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),o=t-(1+n),s=0;s<o;s++)i.push(e);for(i.push(r),s=0;s<n;s++)i.push(this.columnModel.getFloatingFiltersHeight());var u=0;for(s=0;s<this.rowIndex;s++)u+=i[s];var h=i[this.rowIndex]+"px";this.comp.setTop(u+"px"),this.comp.setHeight(h)},i.prototype.getPinned=function(){return this.pinned},i.prototype.getRowIndex=function(){return this.rowIndex},i.prototype.onVirtualColumnsChanged=function(){var t=this,i=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(n){if(!n.isEmptyGroup()){var e=n.getUniqueId(),r=i[e];if(delete i[e],r&&r.getColumnGroupChild()!=n&&(t.destroyBean(r),r=void 0),null==r)switch(t.type){case mh.FLOATING_FILTER:r=t.createBean(new Ac(n,t));break;case mh.COLUMN_GROUP:r=t.createBean(new Kc(n,t));break;default:r=t.createBean(new Nc(n,t))}t.headerCellCtrls[e]=r}})),a(i,(function(i,n){var e;t.focusService.isHeaderWrapperFocused(e=n)&&t.columnModel.isDisplayed(e.getColumnGroupChild())?t.headerCellCtrls[i]=n:t.destroyBean(n)}));var n=b(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},i.prototype.destroyCtrls=function(){var t=this;a(this.headerCellCtrls,(function(i,n){t.destroyBean(n)})),this.headerCellCtrls={}},i.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout("print")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},i.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var i=[],n=this.getActualDepth();return["left",null,"right"].forEach((function(e){var r=t.columnModel.getVirtualHeaderGroupRow(e,n);i=i.concat(r)})),i},i.prototype.getActualDepth=function(){return this.type==mh.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},i.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},i.prototype.focusHeader=function(t,i){var n=b(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()==t}));return!!n&&(n.focus(i),!0)},qc([z("columnModel")],i.prototype,"columnModel",void 0),qc([z("focusService")],i.prototype,"focusService",void 0),qc([B],i.prototype,"destroyCtrls",null),i}(Pt),$c=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xc=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ta=function(t){function i(i){var n=t.call(this)||this;return n.hidden=!1,n.groupsRowCtrls=[],n.pinned=i,n}return $c(i,t),i.prototype.setComp=function(t,i){this.comp=t,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,Nt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},i.prototype.setupDragAndDrop=function(t){var i=new Xh(this.pinned,t);this.createManagedBean(i)},i.prototype.refresh=function(t){var i=this;void 0===t&&(t=!1);var n,e,r=new Ve,o=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var n=0;n<t;n++){var e=i.createBean(new Zc(r.next(),i.pinned,mh.COLUMN_GROUP));i.groupsRowCtrls.push(e)}}(),n=r.next(),((e=!(i.hidden||null!=i.columnsRowCtrl&&t&&i.columnsRowCtrl.getRowIndex()===n))||i.hidden)&&(i.columnsRowCtrl=i.destroyBean(i.columnsRowCtrl)),e&&(i.columnsRowCtrl=i.createBean(new Zc(n,i.pinned,mh.COLUMN))),function(){var n=function(){i.filtersRowCtrl=i.destroyBean(i.filtersRowCtrl)};if(i.columnModel.hasFloatingFilters()&&!i.hidden){var e=r.next();if(i.filtersRowCtrl){var o=i.filtersRowCtrl.getRowIndex()!==e;t&&!o||n()}i.filtersRowCtrl||(i.filtersRowCtrl=i.createBean(new Zc(e,i.pinned,mh.FLOATING_FILTER)))}else n()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(o)},i.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},i.prototype.getAllCtrls=function(){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Xc(arguments[i]));return t}(this.groupsRowCtrls);return this.columnsRowCtrl&&t.push(this.columnsRowCtrl),this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},i.prototype.onGridColumnsChanged=function(){this.refresh(!0)},i.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new dh((function(i){return t.comp.setCenterWidth(i+"px")})))},i.prototype.setHorizontalScroll=function(t){this.comp.setContainerTransform("translateX("+t+"px)")},i.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},i.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var i="left"===this.pinned,n="right"===this.pinned;this.hidden=!0;var e=function(){var e=i?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=e){var r=0==e,o=t.hidden!==r,s=t.gridOptionsService.is("enableRtl"),u=t.gridOptionsService.getScrollbarWidth(),h=t.scrollVisibleService.isVerticalScrollShowing()&&(s&&i||!s&&n);t.comp.setPinnedContainerWidth((h?e+u:e)+"px"),t.comp.setDisplayed(!r),o&&(t.hidden=r,t.refresh())}};this.addManagedListener(this.eventService,Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Nt.EVENT_SCROLLBAR_WIDTH_CHANGED,e)}},i.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof et){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var i=0;i<this.groupsRowCtrls.length;i++){var n=this.groupsRowCtrls[i].getHeaderCellCtrl(t);if(n)return n}},i.prototype.getHtmlElementForColumnHeader=function(t){var i=this.getHeaderCtrlForColumn(t);return i?i.getGui():null},i.prototype.getRowType=function(t){var i=this.getAllCtrls()[t];return i?i.getType():void 0},i.prototype.focusHeader=function(t,i,n){var e=this.getAllCtrls()[t];return!!e&&e.focusHeader(i,n)},i.prototype.getRowCount=function(){return this.getAllCtrls().length},Qc([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Qc([z("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),Qc([z("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),Qc([z("columnModel")],i.prototype,"columnModel",void 0),Qc([z("focusService")],i.prototype,"focusService",void 0),i}(Pt),ia=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),na=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ea=function(t){function i(i){var n=t.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=i,n}return ia(i,t),i.prototype.init=function(){var t=this;this.selectAndSetTemplate();var i={setDisplayed:function(i){return t.setDisplayed(i)},setCtrls:function(i){return t.setCtrls(i)},setCenterWidth:function(i){return t.eCenterContainer.style.width=i},setContainerTransform:function(i){return t.eCenterContainer.style.transform=i},setPinnedContainerWidth:function(i){var n=t.getGui();n.style.width=i,n.style.maxWidth=i,n.style.minWidth=i}};this.createManagedBean(new ta(this.pinned)).setComp(i,this.getGui())},i.prototype.selectAndSetTemplate=function(){this.setTemplate("left"==this.pinned?i.PINNED_LEFT_TEMPLATE:"right"==this.pinned?i.PINNED_RIGHT_TEMPLATE:i.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},i.prototype.destroyRowComps=function(){this.setCtrls([])},i.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},i.prototype.setCtrls=function(t){var i,n=this,e=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],t.forEach((function(t){var r=t.getInstanceId(),o=e[r];delete e[r];var s=o||n.createBean(new fc(t));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(t){var e=t.getGui();e.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(e),i&&ce(n.eRowContainer,e,i),i=e}(s)})),b(e).forEach((function(t){return n.destroyRowComp(t)}))},i.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',i.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',i.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',na([nr("eCenterContainer")],i.prototype,"eCenterContainer",void 0),na([L],i.prototype,"init",null),na([B],i.prototype,"destroyRowComps",null),i}(ir),ra=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),oa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
|
|
258
|
+
/**
|
|
259
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
260
|
+
* @version v29.0.0
|
|
261
|
+
* @link https://www.ag-grid.com/
|
|
262
|
+
* @license MIT
|
|
263
|
+
*/!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(mc||(mc={}));var sa=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ra(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},i.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},i.prototype.getHeaderRowType=function(t){var i=this.ctrlsService.getHeaderRowContainerCtrl();if(i)return i.getRowType(t)},i.prototype.navigateVertically=function(t,i,n){if(i||(i=this.focusService.getFocusedHeader()),!i)return!1;var e=i.headerRowIndex,r=i.column,o=this.getHeaderRowCount(),s=t===mc.UP,u=s?e-1:e+1,h=null,c=!1;u<0&&(u=0,h=r,c=!0),u>=o&&(u=-1);var a=this.getHeaderRowType(e);if(!c){if(a===mh.COLUMN_GROUP){var f=r;h=s?r.getParent():f.getDisplayedChildren()[0]}else a===mh.FLOATING_FILTER?h=r:(f=r,h=s?f.getParent():f);if(!h)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u,column:h},allowUserOverride:!0,event:n})},i.prototype.navigateHorizontally=function(t,i,n){void 0===i&&(i=!1);var e,r,o=this.focusService.getFocusedHeader(),s=t===mc.LEFT,u=this.gridOptionsService.is("enableRtl");return(e=this.headerPositionUtils.findHeader(o,r=s!==u?"Before":"After"))||!i?this.focusService.focusHeaderPosition({headerPosition:e,direction:r,fromTab:i,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,r,n)},i.prototype.focusNextHeaderRow=function(t,i,n){var e=t.headerRowIndex,r=null;return"Before"===i?e>0&&(r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e-1,"end")):r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e+1,"start"),this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:!0,allowUserOverride:!0,event:n})},i.prototype.scrollToColumn=function(t,i){if(void 0===i&&(i="After"),!t.getPinned()){var n;if(t instanceof ei){var e=t.getDisplayedLeafColumns();n="Before"===i?ut(e):e[0]}else n=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},oa([z("focusService")],i.prototype,"focusService",void 0),oa([z("headerPositionUtils")],i.prototype,"headerPositionUtils",void 0),oa([z("animationFrameService")],i.prototype,"animationFrameService",void 0),oa([z("ctrlsService")],i.prototype,"ctrlsService",void 0),oa([L],i.prototype,"postConstruct",null),oa([W("headerNavigationService")],i)}(Pt),ua=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ha=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ca=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ua(n,t),n.prototype.setComp=function(t,i,n){this.comp=t,this.eGui=i,this.createManagedBean(new pr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedPropertyListener("headerHeight",t),this.addManagedPropertyListener("pivotHeaderHeight",t),this.addManagedPropertyListener("groupHeaderHeight",t),this.addManagedPropertyListener("pivotGroupHeaderHeight",t),this.addManagedPropertyListener("floatingFiltersHeight",t),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t)},n.prototype.getHeaderHeight=function(){return this.headerHeight},n.prototype.setHeaderHeight=function(){var t,i=this.columnModel,n=0,e=i.getHeaderRowCount();i.hasFloatingFilters()&&(e++,n=1);var r=this.columnModel.getColumnGroupHeaderRowHeight(),o=this.columnModel.getColumnHeaderRowHeight(),s=e-(1+n);t=n*i.getFloatingFiltersHeight(),t+=s*r,this.headerHeight!==(t+=o)&&(this.headerHeight=t,this.comp.setHeightAndMinHeight(t+1+"px"),this.eventService.dispatchEvent({type:Nt.EVENT_HEADER_HEIGHT_CHANGED}))},n.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},n.prototype.onTabKeyDown=function(t){var i=this.gridOptionsService.is("enableRtl");(this.headerNavigationService.navigateHorizontally(t.shiftKey!==i?mc.LEFT:mc.RIGHT,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},n.prototype.handleKeyDown=function(t){var n=null;switch(t.key){case Fe.LEFT:n=mc.LEFT;case Fe.RIGHT:i(n)||(n=mc.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,t);break;case Fe.UP:n=mc.UP;case Fe.DOWN:i(n)||(n=mc.DOWN),this.headerNavigationService.navigateVertically(n,null,t)&&t.preventDefault();break;default:return}},n.prototype.onFocusOut=function(t){var i=this.gridOptionsService.getDocument(),n=t.relatedTarget;!n&&this.eGui.contains(i.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},ha([z("headerNavigationService")],n.prototype,"headerNavigationService",void 0),ha([z("focusService")],n.prototype,"focusService",void 0),ha([z("columnModel")],n.prototype,"columnModel",void 0),ha([z("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(Pt),aa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fa=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return aa(i,t),i.prototype.postConstruct=function(){var t=this,i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setHeightAndMinHeight:function(i){t.getGui().style.height=i,t.getGui().style.minHeight=i}};this.createManagedBean(new ca).setComp(i,this.getGui(),this.getFocusableElement());var n=function(i){t.createManagedBean(i),t.appendChild(i)};n(new ea("left")),n(new ea(null)),n(new ea("right"))},i.TEMPLATE='<div class="ag-header" role="presentation"/>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(ir),la=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),va=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},da=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return la(i,t),i.prototype.addResizeBar=function(t){var i=this,n={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};return this.dragService.addDragSource(n,!0),function(){return i.dragService.removeDragSource(n)}},i.prototype.onDragStart=function(t,i){this.dragStartX=i.clientX,this.setResizeIcons();var n=i instanceof MouseEvent&&!0===i.shiftKey;t.onResizeStart(n)},i.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},i.prototype.onDragStop=function(t){t.onResizeEnd(this.resizeAmount),this.resetIcons()},i.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},i.prototype.onDragging=function(t,i){this.resizeAmount=i.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},va([z("dragService")],i.prototype,"dragService",void 0),va([z("ctrlsService")],i.prototype,"ctrlsService",void 0),va([W("horizontalResizeService")],i)}(Pt),pa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ga=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ba=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return pa(i,t),i.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},i.prototype.showMenuAfterMouseEvent=function(t,i){var n=this;this.showPopup(t,(function(e){n.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:i,ePopup:e})}),i.target)},i.prototype.showMenuAfterButtonClick=function(t,i,n){var e=this;this.showPopup(t,(function(r){e.popupService.positionPopupByComponent({type:n,eventSource:i,ePopup:r,keepWithinBounds:!0,position:"under",column:t})}),i)},i.prototype.showPopup=function(t,i,n){var e=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var o,s=document.createElement("div");Di(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(t){return e.trapFocusWithin(t,s)})),r.guiPromise.then((function(t){return s.appendChild(t)}));var u=n||this.ctrlsService.getGridBodyCtrl().getGui(),h=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(i){t.setMenuVisible(!1,"contextMenu");var r=i instanceof KeyboardEvent;if(e.tabListener&&(e.tabListener=e.tabListener()),r&&n&&oe(n)){var o=e.focusService.findTabbableParent(n);o&&o.focus()}},positionCallback:function(){return i(s)},anchorToElement:u,ariaLabel:h("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=o=c.hideFunc),r.filterPromise.then((function(t){i(s),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:o})})),t.setMenuVisible(!0,"contextMenu")},i.prototype.trapFocusWithin=function(t,i){t.key!==Fe.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(i,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(i,t.shiftKey))},i.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},ga([z("filterManager")],i.prototype,"filterManager",void 0),ga([z("popupService")],i.prototype,"popupService",void 0),ga([z("focusService")],i.prototype,"focusService",void 0),ga([z("ctrlsService")],i.prototype,"ctrlsService",void 0),ga([W("menuFactory")],i)}(Pt),ma=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
|
|
264
|
+
/**
|
|
265
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
266
|
+
* @version v29.0.0
|
|
267
|
+
* @link https://www.ag-grid.com/
|
|
268
|
+
* @license MIT
|
|
269
|
+
*/!function(t){function i(n){var e=t.call(this,i.getTemplate(n.cssClass))||this;return e.items=[],e.tabbedItemScrollMap=new Map,e.params=n,n.items&&n.items.forEach((function(t){return e.addItem(t)})),e}ma(i,t),i.prototype.postConstruct=function(){this.createManagedBean(new pr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},i.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(t?t+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(t?t+"-body":"")+'"></div>\n </div>'},i.prototype.handleKeyDown=function(t){var i=this.gridOptionsService.getDocument();switch(t.key){case Fe.RIGHT:case Fe.LEFT:if(!this.eHeader.contains(i.activeElement))return;var n=t.key===Fe.RIGHT,e=this.gridOptionsService.is("enableRtl"),r=this.items.indexOf(this.activeItem),o=n!==e?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===o)return;t.preventDefault();var s=this.items[o];this.showItemWrapper(s),s.eHeaderButton.focus();break;case Fe.UP:case Fe.DOWN:t.stopPropagation()}},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var i=this,n=i.focusService,e=i.eHeader,r=i.eBody,o=i.activeItem,s=this.gridOptionsService.getDocument().activeElement;if(t.preventDefault(),e.contains(s))n.focusInto(r,t.shiftKey);else if(n.isFocusUnderManagedComponent(r))o.eHeaderButton.focus();else{var u=n.findNextFocusableElement(r,!1,t.shiftKey);u?u.focus():o.eHeaderButton.focus()}}},i.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},i.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},i.prototype.addItem=function(t){var i=document.createElement("span");Di(i,"tab"),i.setAttribute("tabIndex","-1"),i.appendChild(t.title),i.classList.add("ag-tab"),this.eHeader.appendChild(i),Ii(i,t.titleLabel);var n={tabbedItem:t,eHeaderButton:i};this.items.push(n),i.addEventListener("click",this.showItemWrapper.bind(this,n))},i.prototype.showItem=function(t){var i=this.items.find((function(i){return i.tabbedItem===t}));i&&this.showItemWrapper(i)},i.prototype.showItemWrapper=function(t){var i=this,n=t.tabbedItem,e=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ee(this.eBody),n.bodyPromise.then((function(t){i.eBody.appendChild(t);var e=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,e),n.afterAttachedCallback&&n.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||t;i.lastScrollListener=i.addManagedListener(r,"scroll",(function(){i.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var o=i.tabbedItemScrollMap.get(n.name);void 0!==o&&setTimeout((function(){r.scrollTop=o}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),e.classList.add("ag-tab-selected"),this.activeItem=t):T(this.params.onActiveItemClicked)},wa([z("focusService")],i.prototype,"focusService",void 0),wa([nr("eHeader")],i.prototype,"eHeader",void 0),wa([nr("eBody")],i.prototype,"eBody",void 0),wa([L],i.prototype,"postConstruct",null)}(ir);
|
|
270
|
+
/**
|
|
271
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
272
|
+
* @version v29.0.0
|
|
273
|
+
* @link https://www.ag-grid.com/
|
|
274
|
+
* @license MIT
|
|
275
|
+
*/
|
|
276
|
+
var ya,Oa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sa=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.polyfillFunctions=[],i}return Oa(i,t),i.prototype.observeResize=function(t,i){var n,e,r,o,s,u=this,h=this.gridOptionsService.getDocument().defaultView||window,c=D(i,50),a=this.gridOptionsService.is("suppressBrowserResizeObserver");return h.ResizeObserver&&!a?((n=new h.ResizeObserver(c)).observe(t),function(){return n.disconnect()}):(e=he(t),r=ue(t),o=!0,(s=function(){if(o){var n=he(t),h=ue(t);(n!==e||h!==r)&&(e=n,r=h,i()),u.doNextPolyfillTurn(s)}})(),function(){return o=!1})},i.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},i.prototype.schedulePolyfill=function(){var t=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var i=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],i.forEach((function(t){return t()}))}),50))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("resizeObserverService")],i)}(Pt),Ca=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ra=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ja=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.createTasksP1={list:[],sorted:!1},i.createTasksP2={list:[],sorted:!1},i.destroyTasks=[],i.ticking=!1,i.scrollGoingDown=!0,i.lastScrollTop=0,i.taskCount=0,i.cancelledTasks=new Set,i}return Ca(i,t),i.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},i.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},i.prototype.isOn=function(){return this.useAnimationFrame},i.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},i.prototype.createTask=function(t,i,n){this.verifyAnimationFrameOn(n);var e={task:t,index:i,createOrder:++this.taskCount};this.addTaskToList(this[n],e),this.schedule()},i.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},i.prototype.addTaskToList=function(t,i){t.list.push(i),t.sorted=!1},i.prototype.sortTaskList=function(t){if(!t.sorted){var i=this.scrollGoingDown?1:-1;t.list.sort((function(t,n){return t.index!==n.index?i*(n.index-t.index):n.createOrder-t.createOrder})),t.sorted=!0}},i.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},i.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var i=this.createTasksP1,n=i.list,e=this.createTasksP2,r=e.list,o=this.destroyTasks,s=(new Date).getTime(),u=(new Date).getTime()-s,h=t<=0,c=this.ctrlsService.getGridBodyCtrl();h||u<t;){if(!c.getScrollFeature().executeAnimationFrameScroll()){var a=void 0;if(n.length)this.sortTaskList(i),a=n.pop().task;else if(r.length)this.sortTaskList(e),a=r.pop().task;else{if(!o.length){this.cancelledTasks.clear();break}a=o.pop()}this.cancelledTasks.has(a)||a()}u=(new Date).getTime()-s}n.length||r.length||o.length?this.requestFrame():this.stopTicking()},i.prototype.stopTicking=function(){this.ticking=!1},i.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},i.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},i.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),i=this.gridOptionsService.getDocument().defaultView||window;i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)},i.prototype.isQueueEmpty=function(){return!this.ticking},i.prototype.debounce=function(t){var i=this,n=!1;return function(){i.isOn()?n||(n=!0,i.addDestroyTask((function(){n=!1,t()}))):i.getFrameworkOverrides().setTimeout(t,0)}},Ra([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Ra([L],i.prototype,"init",null),Ra([W("animationFrameService")],i)}(Pt),_a=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Aa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xa="ag-resizer-wrapper",Fa='<div class="'+xa+'">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',Ma=function(t){function i(i,n){var e=t.call(this)||this;return e.element=i,e.dragStartPosition={x:0,y:0},e.position={x:0,y:0},e.lastSize={width:-1,height:-1},e.positioned=!1,e.resizersAdded=!1,e.resizeListeners=[],e.boundaryEl=null,e.isResizing=!1,e.isMoving=!1,e.resizable={},e.movable=!1,e.currentResizer=null,e.config=Object.assign({},{popup:!1},n),e}return _a(i,t),i.prototype.center=function(){var t=this.offsetParent,i=t.clientHeight,n=t.clientWidth/2-this.getWidth()/2,e=i/2-this.getHeight()/2;this.offsetElement(n,e)},i.prototype.initialisePosition=function(){var t=this.config,i=t.centered,n=t.forcePopupParentAsOffsetParent,e=t.minWidth,r=t.width,o=t.minHeight,s=t.height,u=t.x,h=t.y;this.offsetParent||this.setOffsetParent();var c=0,a=0,f=!!this.element.offsetParent;if(f){var l=this.findBoundaryElement(),v=window.getComputedStyle(l);if(null!=v.minWidth){var d=l.offsetWidth-this.element.offsetWidth;a=parseInt(v.minWidth,10)-d}if(null!=v.minHeight){var p=l.offsetHeight-this.element.offsetHeight;c=parseInt(v.minHeight,10)-p}}if(this.minHeight=o||c,this.minWidth=e||a,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),i)this.center();else if(u||h)this.offsetElement(u,h);else if(f&&n&&this.boundaryEl){var g=parseFloat(this.boundaryEl.style.top),b=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(b)?0:b,isNaN(g)?0:g)}this.positioned=!!this.offsetParent},i.prototype.isPositioned=function(){return this.positioned},i.prototype.getPosition=function(){return this.position},i.prototype.setMovable=function(t,i){if(this.config.popup&&t!==this.movable){this.movable=t;var n=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},i.prototype.setResizable=function(t){var i=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(n){var e=!!t[n],r=i.getResizerElement(n),o={dragStartPixels:0,eElement:r,onDragStart:function(t){return i.onResizeStart(t,n)},onDragging:i.onResize.bind(i),onDragStop:function(t){return i.onResizeEnd(t,n)}};(e||!i.isAlive()&&!e)&&(e?(i.dragService.addDragSource(o),i.resizeListeners.push(o),r.style.pointerEvents="all"):r.style.pointerEvents="none",i.resizable[n]=e)}))},i.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},i.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,i=t.height,n=t.width;-1!==n&&(this.element.style.width=n+"px"),-1!==i&&(this.element.style.height=i+"px")},i.prototype.getHeight=function(){return this.element.offsetHeight},i.prototype.setHeight=function(t){var i=this.config.popup,n=this.element,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))be(n,t),t=Qn(n),e=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var s=this.offsetParent.clientHeight,u=i?this.position.y:r.top;s&&t+u>s+(i?0:o.top)&&(t=s-u)}this.getHeight()!==t&&(e?(n.style.maxHeight="unset",n.style.minHeight="unset"):i?be(n,t):(n.style.height=t+"px",n.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},i.prototype.getWidth=function(){return this.element.offsetWidth},i.prototype.setWidth=function(t){var i=this.element,n=this.config.popup,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))ge(i,t),t=Xn(i),e=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var r=this.offsetParent.clientWidth,o=n?this.position.x:this.element.getBoundingClientRect().left;r&&t+o>r&&(t=r-o)}this.getWidth()!==t&&(e?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?ge(i,t):(i.style.width=t+"px",i.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},i.prototype.offsetElement=function(t,i){void 0===t&&(t=0),void 0===i&&(i=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:t,y:i}}}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},i.prototype.setPosition=function(t,i){this.position.x=t,this.position.y=i},i.prototype.updateDragStartPosition=function(t,i){this.dragStartPosition={x:t,y:i}},i.prototype.calculateMouseMovement=function(t){var i=t.e,n=t.isTop,e=t.topBuffer,r=i.clientX-this.dragStartPosition.x,o=i.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(i,!!t.isLeft,!!t.anywhereWithin,r)?0:r,movementY:this.shouldSkipY(i,!!n,e,o)?0:o}},i.prototype.shouldSkipX=function(t,i,n,e){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:r.left,h=u<=0&&o.left>=t.clientX||o.right<=t.clientX&&o.right<=s.right;return!!h||(i?e<0&&t.clientX>u+o.left||e>0&&t.clientX<u+o.left:n?e<0&&t.clientX>s.right||e>0&&t.clientX<u+o.left:e<0&&t.clientX>s.right||e>0&&t.clientX<s.right)},i.prototype.shouldSkipY=function(t,i,n,e){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:r.top,h=u<=0&&o.top>=t.clientY||o.bottom<=t.clientY&&o.bottom<=s.bottom;return!!h||(i?e<0&&t.clientY>u+o.top+n||e>0&&t.clientY<u+o.top:e<0&&t.clientY>s.bottom||e>0&&t.clientY<s.bottom)},i.prototype.createResizeMap=function(){var t=this.element;this.resizerMap={topLeft:{element:t.querySelector("[ref=eTopLeftResizer]")},top:{element:t.querySelector("[ref=eTopResizer]")},topRight:{element:t.querySelector("[ref=eTopRightResizer]")},right:{element:t.querySelector("[ref=eRightResizer]")},bottomRight:{element:t.querySelector("[ref=eBottomRightResizer]")},bottom:{element:t.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:t.querySelector("[ref=eBottomLeftResizer]")},left:{element:t.querySelector("[ref=eLeftResizer]")}}},i.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var i=(new DOMParser).parseFromString(Fa,"text/html").body;t.appendChild(i.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},i.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector("."+xa);t&&this.element.removeChild(t),this.resizersAdded=!1},i.prototype.getResizerElement=function(t){return this.resizerMap[t].element},i.prototype.onResizeStart=function(t,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");var n=this.config;n.popup||n.forcePopupParentAsOffsetParent||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},i.prototype.getSiblings=function(){var t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter((function(t){return!t.classList.contains("ag-hidden")})):null},i.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],i=0,n=0,e=0;e<t.length;e++){var r=t[e];if(r!==this.element){var o=this.minHeight||0,s=this.minWidth||0;if(r.style.flex&&"0 0 auto"!==r.style.flex){var u=window.getComputedStyle(r);u.minHeight&&(o=parseInt(u.minHeight,10)),u.minWidth&&(s=parseInt(u.minWidth,10))}else o=r.offsetHeight,s=r.offsetWidth;i+=o,n+=s}}return{height:i,width:n}},i.prototype.applySizeToSiblings=function(t){var i=null,n=this.getSiblings();if(n){for(var e=0;e<n.length;e++){var r=n[e];r!==i&&(t?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(i=n[e+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}},i.prototype.isResizable=function(){return Object.values(this.resizable).some((function(t){return t}))},i.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var i=this.config,n=i.popup,e=i.forcePopupParentAsOffsetParent,r=this.currentResizer,o=r.isTop,s=r.isLeft,u=r.isRight||s,h=r.isBottom||o,c=this.calculateMouseMovement({e:t,isLeft:s,isTop:o}),a=c.movementX,f=c.movementY,l=this.position.x,v=this.position.y,d=0,p=0;if(u&&a){var g=s?-1:1,b=this.getWidth(),m=b+a*g,w=!1;s&&(l+(d=b-m)<=0||m<=this.minWidth)&&(w=!0,d=0),w||this.setWidth(m)}if(h&&f){g=o?-1:1;var y=this.getHeight(),O=y+f*g,S=!1;o?(v+(p=y-O)<=0||O<=this.minHeight)&&(S=!0,p=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<O&&this.getMinSizeOfSiblings().height+O>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(O)}this.updateDragStartPosition(t.clientX,t.clientY),((n||e)&&d||p)&&this.offsetElement(l+d,v+p)}},i.prototype.onResizeEnd=function(t,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi")};this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchEvent(n)},i.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},i.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},i.prototype.onMove=function(t){if(this.isMoving){var i,n=this.position,e=n.x,r=n.y;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());var o=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(e+o.movementX,r+o.movementY),this.updateDragStartPosition(t.clientX,t.clientY)}},i.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},i.prototype.setOffsetParent=function(){this.offsetParent=this.config.forcePopupParentAsOffsetParent?this.popupService.getPopupParent():this.element.offsetParent},i.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},i.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Aa([z("popupService")],i.prototype,"popupService",void 0),Aa([z("dragService")],i.prototype,"dragService",void 0),i}(Pt),Ga=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Da=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pa=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ga(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl}))},i.prototype.getPreferredWidthForColumn=function(t,i){var n=this.getHeaderCellForColumn(t);if(!n)return-1;var e=this.rowRenderer.getAllCellsForColumn(t);return i||e.push(n),this.addElementsToContainerAndGetWidth(e)},i.prototype.getPreferredWidthForColumnGroup=function(t){var i=this.getHeaderCellForColumn(t);return i?this.addElementsToContainerAndGetWidth([i]):-1},i.prototype.addElementsToContainerAndGetWidth=function(t){var i=this,n=document.createElement("form");n.style.position="fixed";var e=this.centerRowContainerCtrl.getContainerElement();e.appendChild(n),t.forEach((function(t){return i.cloneItemIntoDummy(t,n)}));var r=n.offsetWidth;return e.removeChild(n),r+this.getAutoSizePadding()},i.prototype.getAutoSizePadding=function(){var t=this.gridOptionsService.getNum("autoSizePadding");return null!=t&&t>=0?t:20},i.prototype.getHeaderCellForColumn=function(t){var i=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var e=n.getHtmlElementForColumnHeader(t);null!=e&&(i=e)})),i},i.prototype.cloneItemIntoDummy=function(t,i){var n=t.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var e=document.createElement("div"),r=e.classList;["ag-header-cell","ag-header-group-cell"].some((function(t){return n.classList.contains(t)}))?(r.add("ag-header","ag-header-row"),e.style.position="static"):r.add("ag-row");for(var o=t.parentElement;o;){if(["ag-header-row","ag-row"].some((function(t){return o.classList.contains(t)}))){for(var s=0;s<o.classList.length;s++){var u=o.classList[s];"ag-row-position-absolute"!=u&&r.add(u)}break}o=o.parentElement}e.appendChild(n),i.appendChild(e)},Da([z("rowRenderer")],i.prototype,"rowRenderer",void 0),Da([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Da([z("rowCssClassCalculator")],i.prototype,"rowCssClassCalculator",void 0),Da([L],i.prototype,"postConstruct",null),Da([W("autoWidthCalculator")],i)}(Pt),ka=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ta=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ia=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Ea=function(t){function i(i,n){var e=t.call(this)||this;return e.createRowCon=i,e.destroyRowCtrls=n,e.stickyRowCtrls=[],e.containerHeight=0,e}return ka(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},i.prototype.checkStickyRows=function(){var t=0;if(this.gridOptionsService.is("groupRowsSticky")){for(var i=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),e=function(e){i.push(e);for(var r=e;r.expanded;)r=ut(r.childrenAfterSort);var o=r.rowTop+r.rowHeight,s=n+t+e.rowHeight;e.stickyRowTop=o<s?t+(o-s):t,t=0,i.forEach((function(i){var n=i.stickyRowTop+i.rowHeight;t<n&&(t=n)}))};;){var r=n+t,o=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(o);if(null==s)break;if(s.level<0)break;for(var u=[],h=s.parent;h.level>=0;)u.push(h),h=h.parent;var c=u.reverse().find((function(t){return i.indexOf(t)<0&&t.displayed}));if(c)e(c);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<r))break;e(s)}}this.refreshNodesAndContainerHeight(i,t)}else this.refreshNodesAndContainerHeight([],t)},i.prototype.refreshNodesAndContainerHeight=function(t,i){var n,e,r,o=this,s=this.stickyRowCtrls.filter((function(i){return-1===t.indexOf(i.getRowNode())})),u=t.filter((function(t){return-1===o.stickyRowCtrls.findIndex((function(i){return i.getRowNode()===t}))})),h={};s.forEach((function(t){h[t.getRowNode().id]=t,o.stickyRowCtrls=o.stickyRowCtrls.filter((function(i){return i!==t}))}));try{for(var c=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(h)),a=c.next();!a.done;a=c.next())a.value.getRowNode().sticky=!1}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}this.destroyRowCtrls(h,!1);var f=u.map((function(t){return t.sticky=!0,o.createRowCon(t,!1,!1)}));(r=this.stickyRowCtrls).push.apply(r,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Ia(arguments[i]));return t}(f)),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,i){return i.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==i&&(this.containerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i))},Ta([z("rowModel")],i.prototype,"rowModel",void 0),Ta([z("rowRenderer")],i.prototype,"rowRenderer",void 0),Ta([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Ta([L],i.prototype,"postConstruct",null),i}(Pt),Na=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ha=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},La=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Ba=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(La(arguments[i]));return t},Wa=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.destroyFuncsForColumnListeners=[],i.rowCtrlsByRowIndex={},i.zombieRowCtrls={},i.allRowCtrls=[],i.topRowCtrls=[],i.bottomRowCtrls=[],i.refreshInProgress=!1,i.dataFirstRenderedFired=!1,i}return Na(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},e.prototype.initialise=function(){this.addManagedListener(this.eventService,Nt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.is("groupRowsSticky")&&("clientSide"!=this.rowModel.getType()?R((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsService.isTreeData()?R((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new Ea(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},e.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var t=this.getKeepDetailRowsCount();this.cachedRowCtrls=new za(null!=t?t:3)}},e.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptionsService.getNum("keepDetailRowsCount");return i(t)&&t>0?t:10},e.prototype.getRowCtrls=function(){return this.allRowCtrls},e.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},e.prototype.updateAllRowCtrls=function(){var t=b(this.rowCtrlsByRowIndex),i=this.gridOptionsService.is("ensureDomOrder"),n=this.gridOptionsService.isDomLayout("print");(i||n)&&t.sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode.rowIndex}));var e=b(this.zombieRowCtrls),r=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Ba(t,e,r)},e.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_CELL_FOCUSED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellFocused(i)})),t.getFullWidthRowCtrls().forEach((function(t){t.onFullWidthRowFocused(i)}))})),this.addManagedListener(this.eventService,Nt.EVENT_FLASH_CELLS,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(i)}))})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))})),this.gridOptionsService.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Nt.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Nt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},e.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},e.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var i=this.columnModel.getAllGridColumns();i&&i.forEach((function(i){var n=function(n){t.getAllCellCtrls().forEach((function(t){t.getColumn()===i&&n(t)}))},e=function(){n((function(t){return t.onLeftChanged()}))},r=function(){n((function(t){return t.onWidthChanged()}))},o=function(){n((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){n((function(t){return t.onLastLeftPinnedChanged()}))},u=function(){n((function(t){return t.onColDefChanged()}))};i.addEventListener("leftChanged",e),i.addEventListener("widthChanged",r),i.addEventListener("firstRightPinnedChanged",o),i.addEventListener("lastLeftPinnedChanged",s),i.addEventListener("colDefChanged",u),t.destroyFuncsForColumnListeners.push((function(){i.removeEventListener("leftChanged",e),i.removeEventListener("widthChanged",r),i.removeEventListener("firstRightPinnedChanged",o),i.removeEventListener("lastLeftPinnedChanged",s),i.removeEventListener("colDefChanged",u)}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsService.isDomLayout("print"),i=t||this.gridOptionsService.is("embedFullWidthRows"),n=i!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=i,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},e.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.onPageLoaded=function(t){this.redrawAfterModelUpdate({recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0})},e.prototype.getAllCellsForColumn=function(t){var i=[];return this.getAllRowCtrls().forEach((function(n){var e=n.getCellElement(t);e&&i.push(e)})),i},e.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},e.prototype.getTopRowCtrls=function(){return this.topRowCtrls},e.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},e.prototype.refreshFloatingRows=function(t,i){var n=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,i&&i.forEach((function(i){var e=new Yu(i,n.beans,!1,!1,n.printLayout);t.push(e)}))},e.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},e.prototype.getRenderedIndexesForRowNodes=function(t){var i=[];return n(t)||a(this.rowCtrlsByRowIndex,(function(n,e){var r=e.getRowNode();t.indexOf(r)>=0&&i.push(n)})),i},e.prototype.redrawRows=function(t){var i=null!=t&&t.length>0;if(i){var n=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:i})},e.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var i=(null==t?void 0:t.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==i)return null;var n=this.gridOptionsService.getDocument().activeElement,e=this.gridOptionsService.getDomData(n,Bu.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsService.getDomData(n,Yu.DOM_DATA_KEY_ROW_CTRL);return e||r?i:null},e.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var i=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var n=!t.domLayoutChanged&&!!t.recycleRows,e=t.animate&&this.gridOptionsService.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var o=function(){if(null==i||null==r)return!1;var t=!1;return a(r,(function(n,e){var r=e.getRowNode();r.rowIndex==i.rowIndex&&r.rowPinned==i.rowPinned&&(t=!0)})),t}();this.redraw(r,e),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),o||this.restoreFocusedCell(i),this.releaseLockOnRefresh()},e.prototype.scrollToTopIfNewData=function(t){var i=t.newData||t.newPage,n=this.gridOptionsService.is("suppressScrollOnNewData");i&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},e.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},e.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},e.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},e.prototype.isRefreshInProgress=function(){return this.refreshInProgress},e.prototype.restoreFocusedCell=function(t){t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},e.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(i){i.stopEditing(t)}))},e.prototype.getAllCellCtrls=function(){var t=[];return this.getAllRowCtrls().forEach((function(i){return t=t.concat(i.getAllCellCtrls())})),t},e.prototype.getAllRowCtrls=function(){var t=this,i=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],n=Ba(this.topRowCtrls,this.bottomRowCtrls,i);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(i){return n.push(t.rowCtrlsByRowIndex[i])})),n},e.prototype.addRenderedRowListener=function(t,i,n){var e=this.rowCtrlsByRowIndex[i];e&&e.addEventListener(t,n)},e.prototype.flashCells=function(t){void 0===t&&(t={});var i=t.flashDelay,n=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:i,fadeDelay:n})}))},e.prototype.refreshCells=function(t){void 0===t&&(t={});var i={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var n=t.getRowCtrl();n&&n.refreshCell(t)}else t.refreshCell(i)})),this.getFullWidthRowCtrls(t.rowNodes).forEach((function(t){t.refreshFullWidth()}))},e.prototype.getCellRendererInstances=function(t){return this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}))},e.prototype.getCellEditorInstances=function(t){var i=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var n=t.getCellEditor();n&&i.push(n)})),i},e.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(i){if(i.isEditing()){var n=i.getCellPosition();t.push(n)}})),t},e.prototype.mapRowNodes=function(t){if(t){var i={top:{},bottom:{},normal:{}};return t.forEach((function(t){var n=t.id;"top"===t.rowPinned?i.top[n]=t:"bottom"===t.rowPinned?i.bottom[n]=t:i.normal[n]=t})),i}},e.prototype.isRowInMap=function(t,i){var n=t.id,e=t.rowPinned;return"bottom"===e?null!=i.bottom[n]:"top"===e?null!=i.top[n]:null!=i.normal[n]},e.prototype.getCellCtrls=function(t,n){var e,r=this,o=this.mapRowNodes(t),s=[];i(n)&&(e={},n.forEach((function(t){var n=r.columnModel.getGridColumn(t);i(n)&&(e[n.getId()]=!0)})));var u=function(t){var i=t.getRowNode();(null==o||r.isRowInMap(i,o))&&t.getAllCellCtrls().forEach((function(t){var i=t.getColumn().getId();e&&!e[i]||s.push(t)}))};return a(this.rowCtrlsByRowIndex,(function(t,i){u(i)})),this.topRowCtrls&&this.topRowCtrls.forEach(u),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(u),s},e.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},e.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.recycleRows=function(){var t=[];a(this.rowCtrlsByRowIndex,(function(i,n){null==n.getRowNode().id&&t.push(i)})),this.removeRowCtrls(t);var i={};return a(this.rowCtrlsByRowIndex,(function(t,n){var e=n.getRowNode();i[e.id]=n})),this.rowCtrlsByRowIndex={},i},e.prototype.removeRowCtrls=function(t){var i=this;t.forEach((function(t){var n=i.rowCtrlsByRowIndex[t];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete i.rowCtrlsByRowIndex[t]}))},e.prototype.redrawAfterScroll=function(){var t;if(this.stickyRowFeature&&Sn()&&(t=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=t){var i=this.getCellToRestoreFocusToAfterRefresh();null!=t&&null==i&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(t))}},e.prototype.removeRowCompsNotToDraw=function(t){var i={};t.forEach((function(t){return i[t]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!i[t]}));this.removeRowCtrls(n)},e.prototype.calculateIndexesToDraw=function(t){var i=this,n=Dn(this.firstRenderedRow,this.lastRenderedRow),e=function(t,e){var r=e.getRowNode().rowIndex;null!=r&&(r<i.firstRenderedRow||r>i.lastRenderedRow)&&i.doNotUnVirtualiseRow(e)&&n.push(r)};return a(this.rowCtrlsByRowIndex,e),a(t,e),n.sort((function(t,i){return t-i})),n=n.filter((function(t){var n=i.paginationProxy.getRow(t);return n&&!n.sticky}))},e.prototype.redraw=function(t,n,e){var r=this;void 0===n&&(n=!1),void 0===e&&(e=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var o=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(o),this.printLayout&&(n=!1),o.forEach((function(o){i(r.createOrUpdateRowCtrl(o,t,n,e))})),t&&(!e||this.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.destroyRowCtrls(t,n):this.beans.animationFrameService.addDestroyTask((function(){r.destroyRowCtrls(t,n),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}))),this.updateAllRowCtrls()},e.prototype.dispatchDisplayedRowsChanged=function(){this.eventService.dispatchEvent({type:Nt.EVENT_DISPLAYED_ROWS_CHANGED})},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),i=this.columnModel.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},e.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(i){var n=i.getRowNode().rowIndex;t.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},e.prototype.getFullWidthRowCtrls=function(t){var i=this,n=this.mapRowNodes(t);return b(this.rowCtrlsByRowIndex).filter((function(t){if(!t.isFullWidth())return!1;var e=t.getRowNode();return!(null!=n&&!i.isRowInMap(e,n))}))},e.prototype.refreshFullWidthRows=function(t){var i=[],n=!!t,e=n?{}:void 0;n&&e&&t.forEach((function(t){return e[t.id]=!0})),this.getFullWidthRowCtrls().forEach((function(t){var r=t.getRowNode();if((!n||!e||e[r.id]||e[r.level>0&&r.parent?r.parent.id:void 0])&&!t.refreshFullWidth()){var o=t.getRowNode().rowIndex;i.push(o.toString())}})),this.removeRowCtrls(i),this.redrawAfterScroll()},e.prototype.createOrUpdateRowCtrl=function(t,n,e,r){var o,s=this.rowCtrlsByRowIndex[t];if(s||i(o=this.paginationProxy.getRow(t))&&i(n)&&n[o.id]&&o.alreadyRendered&&(s=n[o.id],n[o.id]=null),!s){if(o||(o=this.paginationProxy.getRow(t)),!i(o))return;s=this.createRowCon(o,e,r)}return o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=s,s},e.prototype.destroyRowCtrls=function(t,i){var n=this,e=[];a(t,(function(t,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),i?(n.zombieRowCtrls[r.getInstanceId()]=r,e.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),i&&(e.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),A(e))},e.prototype.getRowBuffer=function(){var t=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof t?t<0&&(R((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),t=0,this.gridOptionsService.set("rowBuffer",0)):t=10,t},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},e.prototype.workOutFirstAndLastRowsToRender=function(){var t,i;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow();else{var n=this.getRowBufferInPixels(),e=this.ctrlsService.getGridBodyCtrl(),r=this.gridOptionsService.is("suppressRowVirtualisation"),o=!1,s=void 0,u=void 0;do{var h=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),a=c.pageFirstPixel,f=c.pageLastPixel,l=this.rowContainerHeightService.getDivStretchOffset(),v=e.getScrollFeature().getVScrollPosition(),d=v.top,p=v.bottom;r?(s=a+l,u=f+l):(s=Math.max(d+h-n,a)+l,u=Math.min(p+h+n,f)+l),this.firstVisibleVPixel=Math.max(d+h,a)+l,o=this.ensureAllRowsInRangeHaveHeightsCalculated(s,u)}while(o);var g=this.paginationProxy.getRowIndexAtPixel(s),b=this.paginationProxy.getRowIndexAtPixel(u),m=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();g<m&&(g=m),b>w&&(b=w),t=g,i=b}else t=0,i=-1;var y=this.gridOptionsService.isDomLayout("normal"),O=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),S=Math.max(this.getRowBuffer(),500);y&&!O&&i-t>S&&(i=t+S),(t!==this.firstRenderedRow||i!==this.lastRenderedRow)&&(this.firstRenderedRow=t,this.lastRenderedRow=i,this.eventService.dispatchEvent({type:Nt.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:i}))},e.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var i={type:Nt.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(i)}))}},e.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,i){var n=this.paginationProxy.ensureRowHeightsValid(t,i,-1,-1);return n&&this.updateContainerHeights(),n},e.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},e.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},e.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},e.prototype.doNotUnVirtualiseRow=function(t){var i=t.getRowNode(),n=this.focusService.isRowNodeFocused(i),e=t.isEditing();return!!(n||e||i.detail)&&!!this.paginationProxy.isRowPresent(i)},e.prototype.createRowCon=function(t,i,n){var e=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(e)return e;var r=this.gridOptionsService.is("suppressAnimationFrame");return new Yu(t,this.beans,i,n&&!r&&!this.printLayout,this.printLayout)},e.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(i){return t[i].getRowNode()}))},e.prototype.getRowByPosition=function(t){var i,n=t.rowIndex;switch(t.rowPinned){case"top":i=this.topRowCtrls[n];break;case"bottom":i=this.bottomRowCtrls[n];break;default:(i=this.rowCtrlsByRowIndex[n])||(i=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===n}))||null)}return i},e.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.isRangeInRenderedViewport=function(t,i){return!(null==t||null==i||i<this.firstRenderedRow||t>this.lastRenderedRow)},Ha([z("animationFrameService")],e.prototype,"animationFrameService",void 0),Ha([z("paginationProxy")],e.prototype,"paginationProxy",void 0),Ha([z("columnModel")],e.prototype,"columnModel",void 0),Ha([z("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ha([z("rowModel")],e.prototype,"rowModel",void 0),Ha([z("focusService")],e.prototype,"focusService",void 0),Ha([z("beans")],e.prototype,"beans",void 0),Ha([z("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ha([z("ctrlsService")],e.prototype,"ctrlsService",void 0),Ha([L],e.prototype,"postConstruct",null),Ha([W("rowRenderer")],e)}(Pt),za=function(){function t(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return t.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var i=this.entriesList[0];i.destroyFirstPass(),i.destroySecondPass(),this.removeFromCache(i)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var i=this.entriesMap[t.id];return i?(this.removeFromCache(i),i.setCached(!1),i.getRowNode()!=t?null:i):null},t.prototype.removeFromCache=function(t){var i=t.getRowNode().id;delete this.entriesMap[i],at(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),Va=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ua=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ka=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Va(i,t),i.prototype.formatValue=function(t,i,n,e,r){void 0===r&&(r=!0);var o,s=null,u=t.getColDef();if(e?o=e:r&&(o=u.valueFormatter),o){var h={value:n,node:i,data:i?i.data:null,colDef:u,column:t,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")};s=this.expressionService.evaluate(o,h)}else if(u.refData)return u.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},Ua([z("expressionService")],i.prototype,"expressionService",void 0),Ua([W("valueFormatterService")],i)}(Pt),Ya=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ja=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ya(i,t),i.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},i.prototype.isEmpty=function(t){return e("top"===t?this.pinnedTopRows:this.pinnedBottomRows)},i.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},i.prototype.getRowAtPixel=function(t,i){var n="top"===i?this.pinnedTopRows:this.pinnedBottomRows;if(e(n))return 0;for(var r=0;r<n.length;r++){var o=n[r];if(o.rowTop+o.rowHeight-1>=t)return r}return n.length-1},i.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0),this.eventService.dispatchEvent({type:Nt.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1),this.eventService.dispatchEvent({type:Nt.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.createNodesFromData=function(t,i){var n=this,e=[];if(t){var r=0;t.forEach((function(t,o){var s=new Ho(n.beans);s.data=t,s.id=(i?Ho.ID_PREFIX_TOP_PINNED:Ho.ID_PREFIX_BOTTOM_PINNED)+o,s.rowPinned=i?"top":"bottom",s.setRowTop(r),s.setRowHeight(n.gridOptionsService.getRowHeightForNode(s).height),s.setRowIndex(o),r+=s.rowHeight,e.push(s)}))}return e},i.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},i.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},i.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},i.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},i.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},i.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},i.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},i.prototype.forEachPinnedTopRow=function(t){e(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},i.prototype.forEachPinnedBottomRow=function(t){e(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},i.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},i.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var i=ut(t);return i.rowTop+i.rowHeight},qa([z("beans")],i.prototype,"beans",void 0),qa([L],i.prototype,"init",null),qa([W("pinnedRowModel")],i)}(Pt);!function(t){t.Applied="Applied",t.StoreNotFound="StoreNotFound",t.StoreLoading="StoreLoading",t.StoreWaitingToLoad="StoreWaitingToLoad",t.StoreLoadingFailed="StoreLoadingFailed",t.StoreWrongType="StoreWrongType",t.Cancelled="Cancelled"}(ya||(ya={}));
|
|
277
|
+
/**
|
|
278
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
279
|
+
* @version v29.0.0
|
|
280
|
+
* @link https://www.ag-grid.com/
|
|
281
|
+
* @license MIT
|
|
282
|
+
*/
|
|
283
|
+
var Za,$a=function(){function t(t,i){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:i,children:null},this.mapToItems[i.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,i){if(t.children)for(var n=0;n<t.children.length;n++)this.depthFirstSearchChangedPath(t.children[n],i);i(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,i,n){if(t.childrenAfterGroup)for(var e=0;e<t.childrenAfterGroup.length;e++){var r=t.childrenAfterGroup[e];r.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[e],i,n):n&&i(r)}i(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,i)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){for(var i=t,n=0;!this.mapToItems[i.id];)this.mapToItems[i.id]={rowNode:i,children:null},n++,i=i.parent;return n},t.prototype.populateColumnsMap=function(t,i){var n=this;if(this.keepingColumns&&i)for(var e=t;e;)this.nodeIdsToColumns[e.id]||(this.nodeIdsToColumns[e.id]={}),i.forEach((function(t){return n.nodeIdsToColumns[e.id][t.getId()]=!0})),e=e.parent},t.prototype.linkPathItems=function(t,i){for(var n=t,e=0;e<i;e++){var r=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(r),n=n.parent}},t.prototype.addParentNode=function(t,i){if(t&&!t.isRowPinned()){var n=this.createPathItems(t);this.linkPathItems(t,n),this.populateColumnsMap(t,i)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,i){if(!this.keepingColumns)return i;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return n[t.getId()]}))},t.prototype.getNotValueColumnsForNode=function(t,i){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return!n[t.getId()]}))},t}(),Qa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xa=function(t){function i(n){var e=t.call(this)||this;return e.state=i.STATE_WAITING_TO_LOAD,e.version=0,e.id=n,e}return Qa(i,t),i.prototype.getId=function(){return this.id},i.prototype.load=function(){this.state=i.STATE_LOADING,this.loadFromDatasource()},i.prototype.getVersion=function(){return this.version},i.prototype.setStateWaitingToLoad=function(){this.version++,this.state=i.STATE_WAITING_TO_LOAD},i.prototype.getState=function(){return this.state},i.prototype.pageLoadFailed=function(t){this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},i.prototype.success=function(t,i){this.successCommon(t,i)},i.prototype.pageLoaded=function(t,i,n){this.successCommon(t,{rowData:i,rowCount:n})},i.prototype.isRequestMostRecentAndLive=function(t){var i=t===this.version,n=this.isAlive();return i&&n},i.prototype.successCommon=function(t,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_LOADED,this.processServerResult(n))},i.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0),this.dispatchEvent({type:i.EVENT_LOAD_COMPLETE,success:t,block:this})},i.EVENT_LOAD_COMPLETE="loadComplete",i.STATE_WAITING_TO_LOAD="needsLoading",i.STATE_LOADING="loading",i.STATE_LOADED="loaded",i.STATE_FAILED="failed",i}(Pt),tf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ef=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.activeBlockLoadsCount=0,i.blocks=[],i.active=!0,i}var n,e,r;return tf(i,t),n=i,i.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsService.getNum("blockLoadDebounceMillis");t&&t>0&&(this.checkBlockToLoadDebounce=ze.debounce(this.performCheckBlocksToLoad.bind(this),t))},i.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},i.prototype.getMaxConcurrentDatasourceRequests=function(){var t=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==t?2:t<=0?void 0:t},i.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(Xa.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},i.prototype.removeBlock=function(t){ze.removeFromArray(this.blocks,t)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},i.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:n.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},i.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},i.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var t=this.getAvailableLoadingCount(),i=this.blocks.filter((function(t){return t.getState()===Xa.STATE_WAITING_TO_LOAD})).slice(0,t);this.registerLoads(i.length),i.forEach((function(t){return t.load()})),this.printCacheStatus()}},i.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(i){var n=i.getBlockStateJson();t[n.id]=n.state})),t},i.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},i.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},i.prototype.registerLoads=function(t){this.activeBlockLoadsCount+=t},i.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},i.BLOCK_LOADED_EVENT="blockLoaded",i.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",nf([L],i.prototype,"postConstruct",null),nf([(e=0,r=K("loggerFactory"),function(t,i){r(t,i,e)})],i.prototype,"setBeans",null),n=nf([W("rowNodeBlockLoader")],i)}(Pt),rf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),of=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},sf=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.currentPage=0,i.topDisplayedRowIndex=0,i.bottomDisplayedRowIndex=0,i.pixelOffset=0,i.masterRowCount=0,i}return rf(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,Nt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,i){var n=this.rowModel.ensureRowHeightsValid(t,i,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},e.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},e.prototype.onModelUpdated=function(t){this.calculatePages(),this.eventService.dispatchEvent({type:Nt.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows})},e.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages(),this.eventService.dispatchEvent({type:Nt.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0})},e.prototype.goToPage=function(t){this.active&&this.currentPage!==t&&"number"==typeof this.currentPage&&(this.currentPage=t,this.onModelUpdated({type:Nt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0}))},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return n(this.topRowBounds)||n(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},e.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,i){return this.rowModel.getNodesInRangeForSelection(t,i)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var i=this.rowModel.getRowBounds(t);return i.rowIndex=t,i},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var i=this.getPageForIndex(t);this.goToPage(i)}},e.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),i=Math.floor(t/this.pageSize);this.goToPage(i)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum("paginationPageSize"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},e.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(i(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:Nt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},e.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var i=this.pageSize*(this.currentPage+1)-1;if(i>t&&(i=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),i===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(i+1);this.bottomDisplayedRowIndex=n-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},of([z("rowModel")],e.prototype,"rowModel",void 0),of([L],e.prototype,"postConstruct",null),of([W("paginationProxy")],e)}(Pt),uf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},cf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return uf(i,t),i.prototype.processAllCellClasses=function(t,i,n,e){this.processClassRules(t.cellClassRules,i,n,e),this.processStaticCellClasses(t,i,n)},i.prototype.processClassRules=function(t,i,n,e){if(null!=t){for(var r=Object.keys(t),o={},s={},u=function(n){var e,u=r[n],c=t[u];"string"==typeof c?e=h.expressionService.evaluate(c,i):"function"==typeof c&&(e=c(i)),u.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(e?o[t]=!0:s[t]=!0)}))},h=this,c=0;c<r.length;c++)u(c);e&&Object.keys(s).forEach(e),Object.keys(o).forEach(n)}},i.prototype.getStaticCellClasses=function(t,i){var n,e=t.cellClass;return e?("string"==typeof(n="function"==typeof e?e(i):e)&&(n=[n]),n||[]):[]},i.prototype.processStaticCellClasses=function(t,i,n){this.getStaticCellClasses(t,i).forEach((function(t){n(t)}))},hf([z("expressionService")],i.prototype,"expressionService",void 0),hf([W("stylingService")],i)}(Pt),af=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ff=function(t){function i(i){return t.call(this,i,"ag-radio-button","radio")||this}return af(i,t),i.prototype.isSelected=function(){return this.eInput.checked},i.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},i.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Nt.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},i.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},i}(Dc),lf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vf=function(t){function i(i){return t.call(this,i,"ag-toggle-button")||this}return lf(i,t),i.prototype.setValue=function(i,n){return t.prototype.setValue.call(this,i,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},i}(Dc),df=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pf=function(t){function n(i,n,e){return void 0===n&&(n="ag-text-field"),void 0===e&&(e="text"),t.call(this,i,n,e)||this}return df(n,t),n.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},n.prototype.setValue=function(n,e){var r=t.prototype.setValue.call(this,n,e);return this.eInput.value!==n&&(this.eInput.value=i(n)?n:""),r},n.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(i){i.key&&!t.test(i.key)&&i.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(i){var n,e=null===(n=i.clipboardData)||void 0===n?void 0:n.getData("text");e&&e.split("").some((function(i){return!t.test(i)}))&&i.preventDefault()}))},n}(Pr),gf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bf=function(t){function i(i){return t.call(this,i,"ag-text-area",null,"textarea")||this}return gf(i,t),i.prototype.setValue=function(i,n){var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i.prototype.setCols=function(t){return this.eInput.cols=t,this},i.prototype.setRows=function(t){return this.eInput.rows=t,this},i}(Pr),mf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wf=function(t){function i(i){return t.call(this,i,"ag-number-field","number")||this}return mf(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(i.eInput.value),n=isNaN(t)?"":i.normalizeValue(t.toString());i.value!==n&&i.setValue(n)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},i.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},i.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var i=parseFloat(t);return null!=this.min&&i<this.min?t=this.min.toString():null!=this.max&&i>this.max&&(t=this.max.toString()),t},i.prototype.adjustPrecision=function(t){if(this.precision){var i=parseFloat(t).toFixed(this.precision);t=parseFloat(i).toString()}return t},i.prototype.setMin=function(t){return this.min===t||(this.min=t,Se(this.eInput,"min",t)),this},i.prototype.setMax=function(t){return this.max===t||(this.max=t,Se(this.eInput,"max",t)),this},i.prototype.setPrecision=function(t){return this.precision=t,this},i.prototype.setStep=function(t){return this.step===t||(this.step=t,Se(this.eInput,"step",t)),this},i.prototype.setValue=function(i,n){return(i=this.adjustPrecision(i))!=this.normalizeValue(i)?this:t.prototype.setValue.call(this,i,n)},i}(pf),yf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Of=function(t){function i(i){return t.call(this,i,"ag-range-field","range")||this}return yf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var i=this.config,n=i.min,e=i.max,r=i.step;null!=n&&this.setMinValue(n),null!=e&&this.setMaxValue(e),this.setStep(r||1)},i.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){t.setValue(i.target.value)}))},i.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},i.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},i.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},i.prototype.setValue=function(i,n){null!=this.min&&(i=Math.max(parseFloat(i),this.min).toString()),null!=this.max&&(i=Math.min(parseFloat(i),this.max).toString());var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i}(Pr),Sf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rf=function(t){function i(n){var e=t.call(this,n,i.TEMPLATE)||this;return e.labelAlignment="top",e}return Sf(i,t),i.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},i.prototype.onValueChange=function(t){var i=this,n=Sr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(i.eText.getValue());i.eSlider.setValue(n.toString(),!0),t(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=i.eSlider.getValue();i.eText.setValue(n,!0),t(parseFloat(n))})),this},i.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},i.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},i.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},i.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},i.prototype.getValue=function(){return this.eText.getValue()},i.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:Sr.EVENT_CHANGED})),this},i.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},i.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',Cf([nr("eLabel")],i.prototype,"eLabel",void 0),Cf([nr("eSlider")],i.prototype,"eSlider",void 0),Cf([nr("eText")],i.prototype,"eText",void 0),Cf([L],i.prototype,"init",null),i}(yr),jf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_f=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Af=function(t){function i(n){void 0===n&&(n={});var e=t.call(this,i.getTemplate(n))||this;e.suppressEnabledCheckbox=!0,e.suppressOpenCloseIcons=!1;var r=n.enabled,o=n.items,s=n.suppressEnabledCheckbox,u=n.suppressOpenCloseIcons;return e.title=n.title,e.cssIdentifier=n.cssIdentifier||"default",e.enabled=null==r||r,e.items=o||[],e.alignItems=n.alignItems||"center",null!=s&&(e.suppressEnabledCheckbox=s),null!=u&&(e.suppressOpenCloseIcons=u),e}return jf(i,t),i.getTemplate=function(t){var i=t.cssIdentifier||"default";return'<div class="ag-group ag-'+i+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+i+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+i+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+i+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(t.direction||"vertical")+" ag-"+i+'-group-container"></div>\n </div>'},i.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var i=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(i("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},i.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(_e("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(_e("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(i){switch(i.key){case Fe.ENTER:case Fe.SPACE:i.preventDefault(),t.toggleGroupExpand();break;case Fe.RIGHT:case Fe.LEFT:i.preventDefault(),t.toggleGroupExpand(i.key===Fe.RIGHT)}}))},i.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||zi(this.eTitleBar,this.expanded)},i.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;Un(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Un(this.eGroupOpenedIcon,t&&this.expanded),Un(this.eGroupClosedIcon,t&&!this.expanded)},i.prototype.isExpanded=function(){return this.expanded},i.prototype.setAlignItems=function(t){return this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t,this.addCssClass("ag-group-item-alignment-"+this.alignItems),this},i.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Un(this.eContainer,!0),this):(this.expanded===(t=null!=t?t:!this.expanded)||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),Un(this.eContainer,t),this.dispatchEvent({type:this.expanded?i.EVENT_EXPANDED:i.EVENT_COLLAPSED})),this)},i.prototype.addItems=function(t){var i=this;t.forEach((function(t){return i.addItem(t)}))},i.prototype.addItem=function(t){var i=this.eContainer,n=t instanceof ir?t.getGui():t;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),i.appendChild(n),this.items.push(n)},i.prototype.hideItem=function(t,i){Un(this.items[i],!t)},i.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},i.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},i.prototype.setEnabled=function(t,i){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),i||this.cbGroupEnabled.setValue(t),this},i.prototype.isEnabled=function(){return this.enabled},i.prototype.onEnableChange=function(t){var i=this;return this.cbGroupEnabled.onValueChange((function(n){i.setEnabled(n,!0),t(n)})),this},i.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},i.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},i.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},i.EVENT_EXPANDED="expanded",i.EVENT_COLLAPSED="collapsed",_f([nr("eTitleBar")],i.prototype,"eTitleBar",void 0),_f([nr("eGroupOpenedIcon")],i.prototype,"eGroupOpenedIcon",void 0),_f([nr("eGroupClosedIcon")],i.prototype,"eGroupClosedIcon",void 0),_f([nr("eToolbar")],i.prototype,"eToolbar",void 0),_f([nr("cbGroupEnabled")],i.prototype,"cbGroupEnabled",void 0),_f([nr("eTitle")],i.prototype,"eTitle",void 0),_f([nr("eContainer")],i.prototype,"eContainer",void 0),_f([L],i.prototype,"postConstruct",null),i}(ir),xf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ff=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mf=function(t){function i(i){var n=t.call(this)||this;n.skipTabGuardFocus=!1;var e=i.eTopGuard,r=i.eBottomGuard,o=i.focusInnerElement,s=i.onFocusIn,u=i.onFocusOut,h=i.shouldStopEventPropagation,c=i.onTabKeyDown,a=i.handleKeyDown,f=i.eFocusableElement;return n.comp=i.comp,n.eTopGuard=e,n.eBottomGuard=r,n.providedFocusInnerElement=o,n.eFocusableElement=f,n.providedFocusIn=s,n.providedFocusOut=u,n.providedShouldStopEventPropagation=h,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=a,n}return xf(i,t),i.prototype.postConstruct=function(){var t=this;this.createManagedBean(new pr(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)},onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(i){return t.addManagedListener(i,"focus",t.onFocus.bind(t))}))},i.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},i.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},i.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},i.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},i.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},i.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var i=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)}},i.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},i.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},i.prototype.onTabKeyDown=function(t){var i=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var e=this.getNextFocusableElement(t.shiftKey);n&&setTimeout((function(){return i.activateTabGuards()}),0),e&&(e.focus(),t.preventDefault())}},i.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},i.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[t?i.length-1:0].focus()},i.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var i=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,i.focus()},Ff([z("focusService")],i.prototype,"focusService",void 0),Ff([L],i.prototype,"postConstruct",null),i}(Pt),Gf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Df=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Pf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Gf(i,t),i.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var i=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(t){i.forEach((function(i){return null!=t?i.setAttribute("tabIndex",t):i.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Mf({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:t.onFocusIn,onFocusOut:t.onFocusOut,focusInnerElement:t.focusInnerElement,handleKeyDown:t.handleKeyDown,onTabKeyDown:t.onTabKeyDown,shouldStopEventPropagation:t.shouldStopEventPropagation}))},i.prototype.createTabGuard=function(t){var i=document.createElement("div");return i.classList.add("ag-tab-guard","ag-tab-guard-"+t),Di(i,"presentation"),i},i.prototype.addTabGuards=function(t,i){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",i)},i.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];ee(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Df(arguments[i]));return t}(t))},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},i.prototype.appendChild=function(i,n){we(i)||(i=i.getGui());var e=this.eBottomGuard;e?e.insertAdjacentElement("beforebegin",i):t.prototype.appendChild.call(this,i,n)},i}(ir),kf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tf=function(){return Tf=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Tf.apply(this,arguments)},If=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ef=function(t){function i(i){void 0===i&&(i=1);var n=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=i,n.menuItems=[],n}return kf(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.onTabKeyDown=function(t){var i=this.getParentComponent(),n=i&&i.getGui();n&&n.classList.contains("ag-focus-managed")||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},i.prototype.handleKeyDown=function(t){switch(t.key){case Fe.UP:case Fe.RIGHT:case Fe.DOWN:case Fe.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case Fe.ESCAPE:var i=this.findTopMenu();i&&this.focusService.focusInto(i.getGui())}},i.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},i.prototype.addMenuItems=function(t){var i=this;null!=t&&t.forEach((function(t){"separator"===t?i.addSeparator():"string"==typeof t?console.warn("AG Grid: unrecognised menu item "+t):i.addItem(t)}))},i.prototype.addItem=function(t){var i=this,n=this.createManagedBean(new Wf(Tf(Tf({},t),{isAnotherSubMenuOpen:function(){return i.menuItems.some((function(t){return t.isSubMenuOpen()}))}})));n.setParentComponent(this),Li(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Wf.EVENT_MENU_ITEM_SELECTED,(function(t){i.dispatchEvent(t)})),this.addManagedListener(n,Wf.EVENT_MENU_ITEM_ACTIVATED,(function(t){i.activeMenuItem&&i.activeMenuItem!==t.menuItem&&i.activeMenuItem.deactivate(),i.activeMenuItem=t.menuItem}))},i.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},i.prototype.addSeparator=function(){this.appendChild(se('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},i.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof i)return this;for(;;){var n=t&&t.getParentComponent&&t.getParentComponent();if(!n||!(n instanceof i||n instanceof Wf))break;t=n}return t instanceof i?t:void 0},i.prototype.handleNavKey=function(t){switch(t){case Fe.UP:case Fe.DOWN:var i=this.findNextItem(t===Fe.UP);return void(i&&i!==this.activeMenuItem&&i.activate())}t===(this.gridOptionsService.is("enableRtl")?Fe.RIGHT:Fe.LEFT)?this.closeIfIsChild():this.openChild()},i.prototype.closeIfIsChild=function(t){var i=this.getParentComponent();i&&i instanceof Wf&&(t&&t.preventDefault(),i.closeSubMenu(),i.getGui().focus())},i.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},i.prototype.findNextItem=function(t){var i=this.menuItems.filter((function(t){return!t.isDisabled()}));if(i.length){if(!this.activeMenuItem)return t?ut(i):i[0];var n;t&&i.reverse();for(var e=!1,r=0;r<i.length;r++){var o=i[r];if(e){n=o;break}o===this.activeMenuItem&&(e=!0)}return n||this.activeMenuItem}},i.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},If([z("focusService")],i.prototype,"focusService",void 0),If([L],i.prototype,"postConstruct",null),i}(Pf),Nf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hf=function(t){function i(i){var n=t.call(this)||this;return n.wrappedComponent=i,n.setTemplateFromElement(i.getGui()),n}return Nf(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.handleKeyDown=function(t){t.key===Fe.ESCAPE&&this.closePanel()},i.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},i.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(Pf),Lf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wf=function(t){function i(i){var n=t.call(this)||this;return n.params=i,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return Lf(i,t),i.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var i=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Bi(i,!0)):(this.addGuiEventListener("click",(function(i){return t.onItemSelected(i)})),this.addGuiEventListener("keydown",(function(i){i.key!==Fe.ENTER&&i.key!==Fe.SPACE||(i.preventDefault(),t.onItemSelected(i))})),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return t.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return t.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(i){return t.addCssClass(i)}))},i.prototype.isDisabled=function(){return!!this.params.disabled},i.prototype.openSubMenu=function(t){var n=this;if(void 0===t&&(t=!1),this.closeSubMenu(),this.params.subMenu){var e,r=se('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var o=ki(this.getGui()),s=isNaN(o)?1:o+1,u=this.createBean(new Ef(s));u.setParentComponent(this),u.addMenuItems(this.params.subMenu),r.appendChild(u.getGui()),this.addManagedListener(u,i.EVENT_MENU_ITEM_SELECTED,(function(t){return n.dispatchEvent(t)})),u.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),e=function(){return n.destroyBean(u)},t&&setTimeout((function(){return u.activateFirstItem()}),0)}else{var h=this.params.subMenu,c=this.createBean(new Hf(h));c.setParentComponent(this);var a=c.getGui(),f="mouseenter",l=function(){return n.cancelDeactivate()};a.addEventListener(f,l),e=function(){return a.removeEventListener(f,l)},r.appendChild(a),h.afterGuiAttached&&setTimeout((function(){return h.afterGuiAttached()}),0)}var v=this.getGui(),d=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:v,ePopup:r}),p=this.localeService.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:d,anchorToElement:v,ariaLabel:p("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,zi(v,!0),this.hideSubMenu=function(){g&&g.hideFunc(),n.subMenuIsOpen=!1,zi(v,!1),e()}}},i.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,zi(this.getGui(),!1))},i.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},i.prototype.activate=function(t){var i=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){i.isAlive()&&i.isActive&&i.openSubMenu()}),300),this.onItemActivated())},i.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},i.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=se('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(Ae("check",this.gridOptionsService)):this.params.icon&&(we(this.params.icon)?t.appendChild(this.params.icon):"string"==typeof this.params.icon?t.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(t)}},i.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=se('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Ze(this)))},i.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},i.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=se('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=se('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),i=this.getGui();if(this.params.subMenu){var n=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";zi(i,!1),t.appendChild(Ae(n,this.gridOptionsService))}i.appendChild(t)}},i.prototype.onItemSelected=function(t){this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),(!this.params.subMenu||this.params.action)&&this.dispatchEvent({type:i.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:t})},i.prototype.onItemActivated=function(){this.dispatchEvent({type:i.EVENT_MENU_ITEM_ACTIVATED,menuItem:this})},i.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},i.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},i.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),i.ACTIVATION_DELAY):this.activate(!0)},i.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),i.ACTIVATION_DELAY):this.deactivate()},i.prototype.getClassName=function(t){var i=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?i+"-"+t:i},i.EVENT_MENU_ITEM_SELECTED="menuItemSelected",i.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",i.ACTIVATION_DELAY=80,Bf([z("popupService")],i.prototype,"popupService",void 0),Bf([L],i.prototype,"init",null),i}(ir),zf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Uf=function(t){function i(n){var e=t.call(this,i.getTemplate(n))||this;return e.closable=!0,e.config=n,e}return zf(i,t),i.getTemplate=function(t){var i=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+i+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+i+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+i+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+i+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+i+'-panel-content-wrapper"></div>\n </div>'},i.prototype.postConstruct=function(){var t=this,i=this.config,n=i.component,e=i.closable,r=i.hideTitleBar,o=i.title,s=i.minWidth,u=void 0===s?250:s,h=i.width,c=i.minHeight,a=void 0===c?250:c,f=i.height,l=i.centered,v=i.popup,d=i.x,p=i.y;this.positionableFeature=new Ma(this.getGui(),{minWidth:u,width:h,minHeight:a,height:f,centered:l,x:d,y:p,popup:v,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var g=this.getGui();n&&this.setBodyComponent(n),r?Un(this.eTitleBar,!1):(o&&this.setTitle(o),this.setClosable(null!=e?e:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(i){var n=t.gridOptionsService.getDocument();if(g.contains(i.relatedTarget)||g.contains(n.activeElement)||t.eTitleBarButtons.contains(i.target))i.preventDefault();else{var e=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");e&&e.focus()}})),v&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},i.prototype.renderComponent=function(){var t=this,i=this.getGui();i.focus(),this.close=function(){i.parentElement.removeChild(i),t.destroy()}},i.prototype.getHeight=function(){return this.positionableFeature.getHeight()},i.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},i.prototype.getWidth=function(){return this.positionableFeature.getWidth()},i.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},i.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var n=this.closeButtonComp=new ir(i.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var e=n.getGui(),r=Ae("close",this.gridOptionsService);r.classList.add("ag-panel-title-bar-button-icon"),e.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(e,"click",this.onBtClose.bind(this))}else this.closeButtonComp&&((e=this.closeButtonComp.getGui()).parentElement.removeChild(e),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},i.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},i.prototype.addTitleBarButton=function(t,i){var n=this.eTitleBarButtons,e=n.children,r=e.length;null==i&&(i=r),i=Math.max(0,Math.min(i,r)),t.addCssClass("ag-panel-title-bar-button");var o=t.getGui();0===i?n.insertAdjacentElement("afterbegin",o):i===r?n.insertAdjacentElement("beforeend",o):e[i-1].insertAdjacentElement("afterend",o),t.setParentComponent(this)},i.prototype.getBodyHeight=function(){return Zn(this.eContentWrapper)},i.prototype.getBodyWidth=function(){return $n(this.eContentWrapper)},i.prototype.setTitle=function(t){this.eTitle.innerText=t},i.prototype.onBtClose=function(){this.close()},i.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var i=this.getGui();i&&i.offsetParent&&this.close(),t.prototype.destroy.call(this)},i.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Vf([nr("eContentWrapper")],i.prototype,"eContentWrapper",void 0),Vf([nr("eTitleBar")],i.prototype,"eTitleBar",void 0),Vf([nr("eTitleBarButtons")],i.prototype,"eTitleBarButtons",void 0),Vf([nr("eTitle")],i.prototype,"eTitle",void 0),Vf([L],i.prototype,"postConstruct",null),i}(ir),Kf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yf=function(){return Yf=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Yf.apply(this,arguments)},qf=function(t){function i(i){var n=t.call(this,Yf(Yf({},i),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return Kf(i,t),i.prototype.postConstruct=function(){var i=this,n=this.getGui(),e=this.config,r=e.movable,o=e.resizable,s=e.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(t){n.contains(t.relatedTarget)||i.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),o&&this.setResizable(o)},i.prototype.renderComponent=function(){var t=this.getGui(),i=this.config,n=i.alwaysOnTop,e=i.modal,r=i.title,o=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:e,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||o("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},i.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var i=this.lastPosition,n=i.x,e=i.y,r=i.height;this.setWidth(i.width),this.setHeight(r),this.positionableFeature.offsetElement(n,e)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=t.x,this.lastPosition.y=t.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},i.prototype.refreshMaximizeIcon=function(){Un(this.maximizeIcon,!this.isMaximized),Un(this.minimizeIcon,this.isMaximized)},i.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},i.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},i.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},i.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},i.prototype.setMaximizable=function(t){var i=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&t!==this.isMaximizable){var e=this.maximizeButtonComp=this.createBean(new ir('<div class="ag-dialog-button"></span>')),r=e.getGui();r.appendChild(this.maximizeIcon=Ae("maximize",this.gridOptionsService)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Ae("minimize",this.gridOptionsService)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),Un(this.minimizeIcon,!1),e.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(e,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){i.isMaximized=!1,i.refreshMaximizeIcon()}))}},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([z("popupService")],i.prototype,"popupService",void 0),i}(Uf),Jf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$f=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Qf=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}var e;return Jf(n,i),e=n,n.addKeyboardModeEvents=function(t,i){var n=e.instancesMonitored.get(t);n&&n.length>0?-1===n.indexOf(i)&&n.push(i):(e.instancesMonitored.set(t,[i]),t.addEventListener("keydown",e.toggleKeyboardMode),t.addEventListener("mousedown",e.toggleKeyboardMode))},n.removeKeyboardModeEvents=function(t,i){var n=e.instancesMonitored.get(t),r=[];n&&n.length&&(r=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat($f(arguments[i]));return t}(n).filter((function(t){return t!==i})),e.instancesMonitored.set(t,r)),0===r.length&&(t.removeEventListener("keydown",e.toggleKeyboardMode),t.removeEventListener("mousedown",e.toggleKeyboardMode))},n.toggleKeyboardMode=function(t){var i=e.keyboardModeActive,n="keydown"===t.type;if(!(n&&(t.ctrlKey||t.metaKey||t.altKey)||i&&n||!i&&!n)){e.keyboardModeActive=n;var r=t.target.ownerDocument;if(r){var o=e.instancesMonitored.get(r);o&&o.forEach((function(t){t.dispatchEvent({type:n?Nt.EVENT_KEYBOARD_FOCUS:Nt.EVENT_MOUSE_FOCUS})}))}}},n.prototype.init=function(){var t=this,i=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_MODE_CHANGED,i),this.addManagedListener(this.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_GROUP_OPENED,i),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,i),this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl;var n=t.gridOptionsService.getDocument();e.addKeyboardModeEvents(n,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},n.prototype.unregisterGridCompController=function(t){var i=this.gridOptionsService.getDocument();e.removeKeyboardModeEvents(i,t)},n.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,i=this.columnModel.getGridColumn(t.getId());t!==i&&this.clearFocusedCell()}},n.prototype.isKeyboardMode=function(){return e.keyboardModeActive},n.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,Yu.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},n.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,pc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},n.prototype.isDomDataMissingInHierarchy=function(t,i){for(var n=t;n;){if(this.gridOptionsService.getDomData(n,i))return!1;n=n.parentNode}return!0},n.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},n.prototype.getFocusedCell=function(){return this.focusedCellPosition},n.prototype.setFocusedCell=function(i){var n=i.rowIndex,e=i.rowPinned,r=i.forceBrowserFocus,o=void 0!==r&&r,s=i.preventScrollOnBrowserFocus,u=void 0!==s&&s,h=this.columnModel.getGridColumn(i.column);h?(this.focusedCellPosition=h?{rowIndex:n,rowPinned:t(e),column:h}:null,this.onCellFocused(o,u)):this.focusedCellPosition=null},n.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned)},n.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},n.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var i=t.getColumnGroupChild(),n=t.getRowIndex(),e=t.getPinned(),r=this.focusedHeaderPosition,o=r.column;return i===o&&n===r.headerRowIndex&&e==o.getPinned()},n.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},n.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},n.prototype.setFocusedHeader=function(t,i){this.focusedHeaderPosition={headerRowIndex:t,column:i}},n.prototype.focusHeaderPosition=function(t){var i=t.direction,n=t.fromTab,e=t.event,r=t.headerPosition;if(t.allowUserOverride){var o,s=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();n?(o=this.gridOptionsService.getCallback("tabToNextHeader"))&&(r=o({backwards:"Before"===i,previousHeaderPosition:s,nextHeaderPosition:r,headerRowCount:u})):(o=this.gridOptionsService.getCallback("navigateToNextHeader"))&&e&&(r=o({key:e.key,previousHeaderPosition:s,nextHeaderPosition:r,headerRowCount:u,event:e}))}return!!r&&(-1===r.headerRowIndex?this.focusGridView(r.column):(this.headerNavigationService.scrollToColumn(r.column,i),this.ctrlsService.getHeaderRowContainerCtrl(r.column.getPinned()).focusHeader(r.headerRowIndex,r.column,e)))},n.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},n.prototype.focusLastHeader=function(t){var i=this.headerNavigationService.getHeaderRowCount()-1,n=ut(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:i,column:n},event:t})},n.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},n.prototype.isRowFocused=function(i,n){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===i&&this.focusedCellPosition.rowPinned===t(n)},n.prototype.findFocusableElements=function(t,i,n){void 0===n&&(n=!1);var e=zn;i&&(e+=", "+i),n&&(e+=', [tabindex="-1"]');var r,o=Array.prototype.slice.apply(t.querySelectorAll(Wn)),s=Array.prototype.slice.apply(t.querySelectorAll(e));return s.length?(r=s,o.filter((function(t){return-1===r.indexOf(t)}))):o},n.prototype.focusInto=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var e=this.findFocusableElements(t,null,n),r=i?ut(e):e[0];return!!r&&(r.focus(),!0)},n.prototype.findNextFocusableElement=function(t,i,n){void 0===t&&(t=this.eGridDiv);var e=this.findFocusableElements(t,i?':not([tabindex="-1"])':null),r=this.gridOptionsService.getDocument().activeElement,o=(i?e.findIndex((function(t){return t.contains(r)})):e.indexOf(r))+(n?-1:1);return o<0||o>=e.length?null:e[o]},n.prototype.isFocusUnderManagedComponent=function(t){var i=this.gridOptionsService.getDocument(),n=t.querySelectorAll("."+pr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var e=0;e<n.length;e++)if(n[e].contains(i.activeElement))return!0;return!1},n.prototype.findTabbableParent=function(t,i){void 0===i&&(i=5);for(var n=0;t&&null===Cn(t)&&++n<=i;)t=t.parentElement;return null===Cn(t)?null:t},n.prototype.onCellFocused=function(t,i){var n={type:Nt.EVENT_CELL_FOCUSED,forceBrowserFocus:t,preventScrollOnBrowserFocus:i,rowIndex:null,column:null,floating:null,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var e=n.rowIndex=this.focusedCellPosition.rowIndex,r=n.rowPinned=this.focusedCellPosition.rowPinned;n.column=this.focusedCellPosition.column;var o=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:r});o&&(n.isFullWidthCell=o.isFullWidth())}this.eventService.dispatchEvent(n)},n.prototype.focusGridView=function(i,n){if(this.gridOptionsService.is("suppressCellFocus"))return n?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var e=n?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!e)return!1;var r=e.rowIndex,o=e.rowPinned,s=this.getFocusedHeader();return!i&&s&&(i=s.column),!(null==r||!i)&&(this.navigationService.ensureCellVisible({rowIndex:r,column:i,rowPinned:o}),this.setFocusedCell({rowIndex:r,column:i,rowPinned:t(o),forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:r,rowPinned:o,column:i}),!0)},n.prototype.focusNextGridCoreContainer=function(t){return!!this.gridCtrl.focusNextInnerContainer(t)||(t||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},n.AG_KEYBOARD_FOCUS="ag-keyboard-focus",n.keyboardModeActive=!1,n.instancesMonitored=new Map,Zf([z("eGridDiv")],n.prototype,"eGridDiv",void 0),Zf([z("columnModel")],n.prototype,"columnModel",void 0),Zf([z("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Zf([z("rowRenderer")],n.prototype,"rowRenderer",void 0),Zf([z("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Zf([V("rangeService")],n.prototype,"rangeService",void 0),Zf([z("navigationService")],n.prototype,"navigationService",void 0),Zf([z("ctrlsService")],n.prototype,"ctrlsService",void 0),Zf([L],n.prototype,"init",null),e=Zf([W("focusService")],n)}(Pt),Xf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},il=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};
|
|
284
|
+
/**
|
|
285
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
286
|
+
* @version v29.0.0
|
|
287
|
+
* @link https://www.ag-grid.com/
|
|
288
|
+
* @license MIT
|
|
289
|
+
*/!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(Za||(Za={}));var nl=0,el=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.popupList=[],i}var n;return Xf(i,t),n=i,i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl,t.addManagedListener(t.gridCtrl,Nt.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(Qf.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,Nt.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(Qf.AG_KEYBOARD_FOCUS)}))}))}))},i.prototype.getPopupParent=function(){return this.gridOptionsService.get("popupParent")||this.gridCtrl.getGui()},i.prototype.positionPopupForMenu=function(t){var i=t.eventSource.getBoundingClientRect(),n=this.getParentRect(),e=this.keepXYWithinBounds(t.ePopup,i.top-n.top,Za.vertical),r=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=r+"px";var o,s=n.right-n.left-r;function u(){return i.right-n.left-2}function h(){return i.left-n.left-r}this.gridOptionsService.is("enableRtl")?((o=h())<0&&(o=u()),o>s&&(o=0)):((o=u())>s&&(o=h()),o<0&&(o=0)),t.ePopup.style.left=o+"px",t.ePopup.style.top=e+"px"},i.prototype.positionPopupUnderMouseEvent=function(t){var i=this;this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,keepWithinBounds:!0,skipObserver:t.skipObserver,updatePosition:function(){return i.calculatePointerAlign(t.mouseEvent)}}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},i.prototype.calculatePointerAlign=function(t){var i=this.getParentRect();return{x:t.clientX-i.left,y:t.clientY-i.top}},i.prototype.positionPopupByComponent=function(t){var i=t.eventSource.getBoundingClientRect(),n=t.alignSide||"left",e=t.position||"over",r=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,keepWithinBounds:t.keepWithinBounds,updatePosition:function(){var o=i.left-r.left;return"right"===n&&(o-=t.ePopup.offsetWidth-i.width),{x:o,y:"over"===e?i.top-r.top:i.top-r.top+i.height}}}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},i.prototype.callPostProcessPopup=function(t,i,n,e,r,o){var s=this.gridOptionsService.getCallback("postProcessPopup");s&&s({column:r,rowNode:o,ePopup:i,type:t,eventSource:n,mouseEvent:e})},i.prototype.positionPopup=function(t){var i=this,e=t.ePopup,r=t.keepWithinBounds,o=t.nudgeX,s=t.nudgeY,u=t.skipObserver,h=t.updatePosition,c={width:0,height:0},a=function(t){void 0===t&&(t=!1);var n=h(),u=n.x,a=n.y;t&&e.clientWidth===c.width&&e.clientHeight===c.height||(c.width=e.clientWidth,c.height=e.clientHeight,o&&(u+=o),s&&(a+=s),r&&(u=i.keepXYWithinBounds(e,u,Za.horizontal),a=i.keepXYWithinBounds(e,a,Za.vertical)),e.style.left=u+"px",e.style.top=a+"px")};if(a(),!u){var f=this.resizeObserverService.observeResize(e,(function(){return a(!0)}));setTimeout((function(){return f()}),n.WAIT_FOR_POPUP_CONTENT_RESIZE)}},i.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},i.prototype.getPopupList=function(){return this.popupList},i.prototype.getParentRect=function(){var t=this.gridOptionsService.getDocument(),i=this.getPopupParent();i===t.body?i=t.documentElement:"static"===getComputedStyle(i).position&&(i=i.offsetParent);var n=getComputedStyle(i),e=i.getBoundingClientRect();return{top:e.top+parseFloat(n.borderTopWidth)||0,left:e.left+parseFloat(n.borderLeftWidth)||0,right:e.right+parseFloat(n.borderRightWidth)||0,bottom:e.bottom+parseFloat(n.borderBottomWidth)||0}},i.prototype.keepXYWithinBounds=function(t,i,n){var e=n===Za.vertical,r=e?"clientHeight":"clientWidth",o=e?"top":"left",s=e?"offsetHeight":"offsetWidth",u=e?"scrollTop":"scrollLeft",h=this.gridOptionsService.getDocument(),c=h.documentElement,a=this.getPopupParent(),f=a.getBoundingClientRect(),l=h.documentElement.getBoundingClientRect(),v=a===h.body,d=t[s],p=v?(e?Qn:Xn)(c)+c[u]:a[r];v&&(p-=Math.abs(l[o]-f[o]));var g=p-d;return Math.min(Math.max(i,0),Math.abs(g))},i.prototype.keepPopupPositionedRelativeTo=function(t){var i=this,n=this.getPopupParent(),e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect(),o=e.top-r.top,s=e.left-r.left,u=o,h=s,c=t.ePopup.style.top,a=parseInt(c.substring(0,c.length-1),10),f=t.ePopup.style.left,l=parseInt(f.substring(0,f.length-1),10);return new Ke((function(e){i.getFrameworkOverrides().setInterval((function(){var e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)t.hidePopup();else{var c=e.top-r.top;if(c!=u){var f=i.keepXYWithinBounds(t.ePopup,a+o-c,Za.vertical);t.ePopup.style.top=f+"px"}u=c;var v=e.left-r.left;if(v!=h){var d=i.keepXYWithinBounds(t.ePopup,l+s-v,Za.horizontal);t.ePopup.style.left=d+"px"}h=v}}),200).then((function(t){e((function(){null!=t&&window.clearInterval(t)}))}))}))},i.prototype.addPopup=function(t){var i,n=this,e=t.modal,r=t.eChild,o=t.closeOnEsc,s=t.closedCallback,u=t.click,h=t.alwaysOnTop,c=t.afterGuiAttached,a=t.positionCallback,f=t.anchorToElement,l=t.ariaLabel,v=this.gridOptionsService.getDocument(),d=new Ke((function(t){return t((function(){}))}));if(!v)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:d};var p=this.popupList.findIndex((function(t){return t.element===r}));if(-1!==p){var g=this.popupList[p];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var b=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var m=document.createElement("div"),w=this.environment.getTheme().allThemes;w.length&&(i=m.classList).add.apply(i,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(il(arguments[i]));return t}(w)),m.classList.add("ag-popup"),r.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||Di(r,"dialog"),Ii(r,l),this.focusService.isKeyboardMode()&&r.classList.add(Qf.AG_KEYBOARD_FOCUS),m.appendChild(r),b.appendChild(m),h?this.setAlwaysOnTop(m,!0):this.bringPopupToFront(m);var y=!1,O=function(t){m.contains(v.activeElement)&&t.key===Fe.ESCAPE&&R({keyboardEvent:t})},S=function(t){return R({mouseEvent:t})},C=function(t){return R({touchEvent:t})},R=function(t){void 0===t&&(t={});var i=t.mouseEvent,e=t.touchEvent,o=t.keyboardEvent;n.isEventFromCurrentPopup({mouseEvent:i,touchEvent:e},r)||n.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:i,touchEvent:e})||y||(y=!0,b.removeChild(m),v.removeEventListener("keydown",O),v.removeEventListener("mousedown",S),v.removeEventListener("touchstart",C),v.removeEventListener("contextmenu",S),n.eventService.removeEventListener(Nt.EVENT_DRAG_STARTED,S),s&&s(i||e||o),n.popupList=n.popupList.filter((function(t){return t.element!==r})),d&&d.then((function(t){return t&&t()})))};return c&&c({hidePopup:R}),window.setTimeout((function(){o&&v.addEventListener("keydown",O),e&&(v.addEventListener("mousedown",S),n.eventService.addEventListener(Nt.EVENT_DRAG_STARTED,S),v.addEventListener("touchstart",C),v.addEventListener("contextmenu",S))}),0),a&&a(),f&&(d=this.keepPopupPositionedRelativeTo({element:f,ePopup:r,hidePopup:R})),this.popupList.push({element:r,wrapper:m,hideFunc:R,stopAnchoringPromise:d,instanceId:nl++,isAnchored:!!f}),{hideFunc:R,stopAnchoringPromise:d}},i.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},i.prototype.isEventFromCurrentPopup=function(t,i){var n=t.mouseEvent||t.touchEvent;if(!n)return!1;var e=this.popupList.findIndex((function(t){return t.element===i}));if(-1===e)return!1;for(var r=e;r<this.popupList.length;r++)if(_t(this.popupList[r].element,n))return!0;return this.isElementWithinCustomPopup(n.target)},i.prototype.isElementWithinCustomPopup=function(t){for(var i=this.gridOptionsService.getDocument();t&&t!==i.body;){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},i.prototype.isEventSameChainAsOriginalEvent=function(t){var i=t.originalMouseEvent,n=t.mouseEvent,e=t.touchEvent,r=null;if(n?r=n:e&&(r=e.touches[0]),r&&i){var o=n?n.screenY:0,s=Math.abs(i.screenX-(n?n.screenX:0))<5,u=Math.abs(i.screenY-o)<5;if(s&&u)return!0}return!1},i.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},i.prototype.setAlwaysOnTop=function(t,i){var n=this.getWrapper(t);n&&(n.classList.toggle("ag-always-on-top",!!i),i&&this.bringPopupToFront(n))},i.prototype.bringPopupToFront=function(t){var i=this.getPopupParent(),n=Array.prototype.slice.call(i.querySelectorAll(".ag-popup")),e=n.length,r=Array.prototype.slice.call(i.querySelectorAll(".ag-popup.ag-always-on-top")),o=r.length,s=this.getWrapper(t);if(s&&!(e<=1)&&i.contains(t)){var u=n.indexOf(s),h=s.querySelectorAll("div"),c=[];for(h.forEach((function(t){0!==t.scrollTop&&c.push([t,t.scrollTop])})),o?s.classList.contains("ag-always-on-top")?u!==e-1&&ut(r).insertAdjacentElement("afterend",s):u!==e-o-1&&r[0].insertAdjacentElement("beforebegin",s):u!==e-1&&ut(n).insertAdjacentElement("afterend",s);c.length;){var a=c.pop();a[0].scrollTop=a[1]}var f={type:"popupToFront",api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),eWrapper:s};this.eventService.dispatchEvent(f)}},i.WAIT_FOR_POPUP_CONTENT_RESIZE=200,tl([z("focusService")],i.prototype,"focusService",void 0),tl([z("ctrlsService")],i.prototype,"ctrlsService",void 0),tl([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),tl([L],i.prototype,"postConstruct",null),n=tl([W("popupService")],i)}(Pt),rl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ol=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(n,e,r){void 0===n&&(n="default"),void 0===e&&(e="listbox");var o=t.call(this,i.getTemplate(n))||this;return o.cssIdentifier=n,o.ariaRole=e,o.listName=r,o.renderedRows=new Map,o.rowHeight=20,o}rl(i,t),i.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)},focusInnerElement:function(i){return t.focusInnerElement(i)},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}}),this.setAriaProperties()},i.prototype.setAriaProperties=function(){var t=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),i=this.eContainer;Di(i,this.ariaRole),Ii(i,t)},i.prototype.addResizeObserver=function(){var t=this,i=this.resizeObserverService.observeResize(this.getGui(),(function(){return t.drawVirtualRows()}));this.addDestroyFunc(i)},i.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},i.prototype.onFocusIn=function(t){var i=t.target;return i.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Ti(i)-1),!1},i.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},i.prototype.handleKeyDown=function(t){switch(t.key){case Fe.UP:case Fe.DOWN:this.navigate(t.key===Fe.UP)&&t.preventDefault()}},i.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusService.focusInto(this.getGui(),!t.shiftKey)},i.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var i=this.lastFocusedRowIndex+(t?-1:1);return!(i<0||i>=this.model.getRowCount()||(this.focusRow(i),0))},i.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},i.prototype.focusRow=function(t){var i=this;this.ensureIndexVisible(t),window.setTimeout((function(){if(i.isAlive()){var n=i.renderedRows.get(t);n&&n.eDiv.focus()}}),10)},i.prototype.getComponentAt=function(t){var i=this.renderedRows.get(t);return i&&i.rowComponent},i.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(i,n){return t(i.rowComponent,n)}))},i.getTemplate=function(t){return'\n <div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n </div>'},i.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},i.prototype.ensureIndexVisible=function(t){var i=this.model.getRowCount();if("number"!=typeof t||t<0||t>=i)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t);else{var n=t*this.rowHeight,e=n+this.rowHeight,r=this.getGui(),o=r.scrollTop,s=r.offsetHeight,u=o+s<e;o>n?r.scrollTop=n:u&&(r.scrollTop=e-s)}},i.prototype.setComponentCreator=function(t){this.componentCreator=t},i.prototype.setComponentUpdater=function(t){this.componentUpdater=t},i.prototype.getRowHeight=function(){return this.rowHeight},i.prototype.getScrollTop=function(){return this.getGui().scrollTop},i.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},i.prototype.refresh=function(t){var i=this;if(null!=this.model&&this.isAlive()){var n=this.model.getRowCount();this.eContainer.style.height=n*this.rowHeight+"px",k((function(){return i.eContainer.clientHeight>=n*i.rowHeight}),(function(){i.isAlive()&&(i.canSoftRefresh(t)?i.drawVirtualRows(!0):(i.clearVirtualRows(),i.drawVirtualRows()))}))}},i.prototype.canSoftRefresh=function(t){return!!(t&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},i.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(i,n){return t.removeRow(n)}))},i.prototype.drawVirtualRows=function(t){if(this.isAlive()){var i=this.getGui(),n=i.scrollTop,e=n+i.offsetHeight,r=Math.floor(n/this.rowHeight),o=Math.floor(e/this.rowHeight);this.ensureRowsRendered(r,o,t)}},i.prototype.ensureRowsRendered=function(t,i,n){var e=this;this.renderedRows.forEach((function(n,r){(r<t||r>i)&&r!==e.lastFocusedRowIndex&&e.removeRow(r)})),n&&this.refreshRows();for(var r=t;r<=i;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)},i.prototype.insertRow=function(t){var i=this,n=this.model.getRow(t),e=document.createElement("div");if(e.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Di(e,"tree"===this.ariaRole?"treeitem":"option"),Ui(e,this.model.getRowCount()),Ki(e,t+1),e.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var r=this.model.isRowSelected(t);nn(e,!!r),en(e,r)}e.style.height=this.rowHeight+"px",e.style.top=this.rowHeight*t+"px";var o=this.componentCreator(n,e);o.addGuiEventListener("focusin",(function(){return i.lastFocusedRowIndex=t})),e.appendChild(o.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",e):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",e):this.eContainer.appendChild(e),this.renderedRows.set(t,{rowComponent:o,eDiv:e,value:n})},i.prototype.removeRow=function(t){var i=this.renderedRows.get(t);this.eContainer.removeChild(i.eDiv),this.destroyBean(i.rowComponent),this.renderedRows.delete(t)},i.prototype.refreshRows=function(){var t=this,i=this.model.getRowCount();this.renderedRows.forEach((function(n,e){var r,o;if(e>=i)t.removeRow(e);else{var s=t.model.getRow(e);(null===(o=(r=t.model).areRowsEqual)||void 0===o?void 0:o.call(r,n.value,s))?t.componentUpdater(s,n.rowComponent):t.removeRow(e)}}))},i.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}),{passive:!0})},i.prototype.setModel=function(t){this.model=t},i.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),t.prototype.destroy.call(this))},ol([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),ol([z("focusService")],i.prototype,"focusService",void 0),ol([nr("eContainer")],i.prototype,"eContainer",void 0),ol([L],i.prototype,"postConstruct",null)}(Pf);
|
|
290
|
+
/**
|
|
291
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
292
|
+
* @version v29.0.0
|
|
293
|
+
* @link https://www.ag-grid.com/
|
|
294
|
+
* @license MIT
|
|
295
|
+
*/
|
|
296
|
+
var sl,ul=["mouseover","mouseout","mouseenter","mouseleave"],hl=["touchstart","touchend","touchmove","touchcancel"],cl=function(){function t(){this.isOutsideAngular=function(t){return dt(ul,t)}}return t.prototype.setTimeout=function(t,i){window.setTimeout(t,i)},t.prototype.setInterval=function(t,i){return new Ke((function(n){n(window.setInterval(t,i))}))},t.prototype.addEventListener=function(t,i,n,e){var r=dt(hl,i);t.addEventListener(i,n,{capture:!!e,passive:r})},t.prototype.dispatchEvent=function(t,i){i()},t.prototype.frameworkComponent=function(){return null},t.prototype.isFrameworkComponent=function(){return!1},t}(),al=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ll=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},vl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return al(i,t),i.prototype.getNextCellToFocus=function(t,i,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(t,i):this.getNextCellToFocusWithoutCtrlPressed(t,i)},i.prototype.getNextCellToFocusWithCtrlPressed=function(t,i){var n,e,r=t===Fe.UP,o=t===Fe.LEFT;if(r||t===Fe.DOWN)e=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=i.column;else{var s=this.columnModel.getAllDisplayedColumns(),u=this.gridOptionsService.is("enableRtl");e=i.rowIndex,n=o!==u?s[0]:ut(s)}return{rowIndex:e,rowPinned:null,column:n}},i.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,i){for(var n=i,e=!1;!e;){switch(t){case Fe.UP:n=this.getCellAbove(n);break;case Fe.DOWN:n=this.getCellBelow(n);break;case Fe.RIGHT:n=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case Fe.LEFT:n=this.gridOptionsService.is("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+t)}e=!n||this.isCellGoodToFocusOn(n)}return n},i.prototype.isCellGoodToFocusOn=function(t){var i,n=t.column;switch(t.rowPinned){case"top":i=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case"bottom":i=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:i=this.rowModel.getRow(t.rowIndex)}return!!i&&!n.isSuppressNavigable(i)},i.prototype.getCellToLeft=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColBefore(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getCellToRight=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColAfter(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getRowBelow=function(t){var i=t.rowIndex,n=t.rowPinned;if(this.isLastRowInContainer(t))switch(n){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e)||{rowIndex:i+1,rowPinned:n}},i.prototype.getNextStickyPosition=function(t,i){if(this.gridOptionsService.is("groupRowsSticky")&&t&&t.sticky){var n=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ll(arguments[i]));return t}(this.rowRenderer.getStickyTopRowCtrls()).sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode().rowIndex})),e=i?-1:1,r=n.findIndex((function(i){return i.getRowNode().rowIndex===t.rowIndex})),o=n[r+e];return o?{rowIndex:o.getRowNode().rowIndex,rowPinned:null}:void 0}},i.prototype.getCellBelow=function(t){if(!t)return null;var i=this.getRowBelow(t);return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.isLastRowInContainer=function(t){var i=t.rowPinned,n=t.rowIndex;return"top"===i?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:"bottom"===i?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},i.prototype.getRowAbove=function(t){var i=t.rowIndex,n=t.rowPinned;if(n?0===i:i===this.paginationProxy.getPageFirstRow())return"top"===n?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e,!0)||{rowIndex:i-1,rowPinned:n}},i.prototype.getCellAbove=function(t){if(!t)return null;var i=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},i.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},i.prototype.getNextTabbedCell=function(t,i){return i?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},i.prototype.getNextTabbedCellForwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),e=t.rowIndex,r=t.rowPinned,o=this.columnModel.getDisplayedColAfter(t.column);if(!o){o=i[0];var s=this.getRowBelow(t);if(n(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;e=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:e,column:o,rowPinned:r}},i.prototype.getNextTabbedCellBackwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),e=t.rowIndex,r=t.rowPinned,o=this.columnModel.getDisplayedColBefore(t.column);if(!o){o=ut(i);var s=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(n(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;e=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:e,column:o,rowPinned:r}},fl([z("columnModel")],i.prototype,"columnModel",void 0),fl([z("rowModel")],i.prototype,"rowModel",void 0),fl([z("rowRenderer")],i.prototype,"rowRenderer",void 0),fl([z("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),fl([z("paginationProxy")],i.prototype,"paginationProxy",void 0),fl([W("cellNavigationService")],i)}(Pt),dl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},gl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.consuming=!1,i}return dl(i,t),i.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},i.prototype.init=function(){this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},i.prototype.fireEvent=function(t){if(!this.consuming){var i=this.gridOptionsService.get("alignedGrids");i&&i.forEach((function(i){if(i.api){var n=i.api.__getAlignedGridService();t(n)}}))}},i.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},i.prototype.fireColumnEvent=function(t){this.fireEvent((function(i){i.onColumnEvent(t)}))},i.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(i){i.onScrollEvent(t)}))},i.prototype.onScrollEvent=function(t){var i=this;this.onEvent((function(){i.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left)}))},i.prototype.getMasterColumns=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t)})):t.column&&i.push(t.column),i},i.prototype.getColumnIds=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t.getColId())})):t.column&&i.push(t.column.getColId()),i},i.prototype.onColumnEvent=function(t){var i=this;this.onEvent((function(){switch(t.type){case Nt.EVENT_COLUMN_MOVED:case Nt.EVENT_COLUMN_VISIBLE:case Nt.EVENT_COLUMN_PINNED:case Nt.EVENT_COLUMN_RESIZED:i.processColumnEvent(t);break;case Nt.EVENT_COLUMN_GROUP_OPENED:i.processGroupOpenedEvent(t);break;case Nt.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},i.prototype.processGroupOpenedEvent=function(t){var i=t.columnGroup,n=null;if(i){var e=i.getGroupId();n=this.columnModel.getProvidedColumnGroup(e)}i&&!n||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+i.isExpanded()),this.columnModel.setColumnGroupOpened(n,i.isExpanded(),"alignedGridChanged"))},i.prototype.processColumnEvent=function(t){var i,n=this,e=t.column,r=null;if(e&&(r=this.columnModel.getPrimaryColumn(e.getColId())),!e||r){var o=this.getMasterColumns(t);switch(t.type){case Nt.EVENT_COLUMN_MOVED:var s=t,u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:u,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case Nt.EVENT_COLUMN_VISIBLE:var h=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+h.visible);break;case Nt.EVENT_COLUMN_PINNED:var c=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+c.pinned);break;case Nt.EVENT_COLUMN_RESIZED:var a=t,f={};o.forEach((function(i){n.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+i.getActualWidth()),f[i.getId()]={key:i.getColId(),newWidth:i.getActualWidth()}})),null===(i=a.flexColumns)||void 0===i||i.forEach((function(t){f[t.getId()]&&delete f[t.getId()]})),this.columnModel.setColumnWidths(Object.values(f),!1,a.finished,"alignedGridChanged")}var l=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),v=this.gridOptionsService.get("alignedGrids");v&&v.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(l)}))}},pl([z("columnModel")],i.prototype,"columnModel",void 0),pl([z("ctrlsService")],i.prototype,"ctrlsService",void 0),pl([(n=0,e=K("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),pl([L],i.prototype,"init",null),pl([W("alignedGridsService")],i);var n,e}(Pt),bl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ml=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return bl(n,t),n.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},n.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedListener(this.eventService,Nt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},n.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},n.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},n.prototype.getSelectedNodes=function(){var t=[];return a(this.selectedNodes,(function(i,n){n&&t.push(n)})),t},n.prototype.getSelectedRows=function(){var t=[];return a(this.selectedNodes,(function(i,n){n&&n.data&&t.push(n.data)})),t},n.prototype.removeGroupsFromSelection=function(){var t=this;a(this.selectedNodes,(function(i,n){n&&n.group&&(t.selectedNodes[n.id]=void 0)}))},n.prototype.updateGroupsFromChildrenSelections=function(t,i){if(!this.gridOptionsService.is("groupSelectsChildren"))return!1;if("clientSide"!==this.rowModel.getType())return!1;var n=this.rowModel.getRootNode();i||(i=new $a(!0,n)).setInactive();var e=!1;return i.forEachChangedNodeDepthFirst((function(i){if(i!==n){var r=i.calculateSelectedFromChildren();e=i.selectThisNode(null!==r&&r,void 0,t)||e}})),e},n.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},n.prototype.clearOtherNodes=function(t,i){var n=this,e={},r=0;return a(this.selectedNodes,(function(o,s){s&&s.id!==t.id&&(r+=n.selectedNodes[s.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:i}),n.groupSelectsChildren&&s.parent&&(e[s.parent.id]=s.parent))})),a(e,(function(t,n){var e=n.calculateSelectedFromChildren();n.selectThisNode(null!==e&&e,void 0,i)})),r},n.prototype.onRowSelected=function(t){var i=t.node;this.groupSelectsChildren&&i.group||(this.selectedNodes[i.id]=i.isSelected()?i:void 0)},n.prototype.syncInRowNode=function(t,i){this.syncInOldRowNode(t,i),this.syncInNewRowNode(t)},n.prototype.syncInOldRowNode=function(t,n){i(n)&&t.id!==n.id&&n&&this.selectedNodes[n.id]==t&&(this.selectedNodes[n.id]=n)},n.prototype.syncInNewRowNode=function(t){i(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},n.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},n.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var t=this.rowModel.getTopLevelNodes();if(null!==t){var i=[];return function t(n){for(var e=0,r=n.length;e<r;e++){var o=n[e];o.isSelected()?i.push(o):o.group&&o.children&&t(o.children)}}(t),i}}},n.prototype.setRowModel=function(t){this.rowModel=t},n.prototype.isEmpty=function(){var t=0;return a(this.selectedNodes,(function(i,n){n&&t++})),0===t},n.prototype.deselectAllRowNodes=function(t,i){void 0===i&&(i=!1);var n=function(i){return i.selectThisNode(!1,void 0,t)},e="clientSide"===this.rowModel.getType();if(i){if(!e)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.rowModel.forEachNodeAfterFilter(n)}else a(this.selectedNodes,(function(t,i){i&&n(i)})),this.reset();e&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t),this.eventService.dispatchEvent({type:Nt.EVENT_SELECTION_CHANGED,source:t})},n.prototype.selectAllRowNodes=function(t,i){if(void 0===i&&(i=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var n=this.rowModel,e=function(i){return i.selectThisNode(!0,void 0,t)};i?n.forEachNodeAfterFilter(e):n.forEachNode(e),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t),this.eventService.dispatchEvent({type:Nt.EVENT_SELECTION_CHANGED,source:t})},ml([z("rowModel")],n.prototype,"rowModel",void 0),ml([(e=0,r=K("loggerFactory"),function(t,i){r(t,i,e)})],n.prototype,"setBeans",null),ml([L],n.prototype,"init",null),ml([W("selectionService")],n);var e,r}(Pt),yl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ol=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,i){this.columnModel.setColumnGroupOpened(t,i,"api")},t.prototype.getColumnGroup=function(t,i){return this.columnModel.getColumnGroup(t,i)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,i){return this.columnModel.getDisplayNameForColumn(t,i)||""},t.prototype.getDisplayNameForColumnGroup=function(t,i){return this.columnModel.getDisplayNameForColumnGroup(t,i)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,i){this.columnModel.setColumnVisible(t,i,"api")},t.prototype.setColumnsVisible=function(t,i){this.columnModel.setColumnsVisible(t,i,"api")},t.prototype.setColumnPinned=function(t,i){this.columnModel.setColumnPinned(t,i,"api")},t.prototype.setColumnsPinned=function(t,i){this.columnModel.setColumnsPinned(t,i,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,i){this.columnModel.moveColumn(t,i,"api")},t.prototype.moveColumnByIndex=function(t,i){this.columnModel.moveColumnByIndex(t,i,"api")},t.prototype.moveColumns=function(t,i){this.columnModel.moveColumns(t,i,"api")},t.prototype.moveRowGroupColumn=function(t,i){this.columnModel.moveRowGroupColumn(t,i)},t.prototype.setColumnAggFunc=function(t,i){this.columnModel.setColumnAggFunc(t,i)},t.prototype.setColumnWidth=function(t,i,n,e){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:t,newWidth:i}],!1,n,e)},t.prototype.setColumnWidths=function(t,i,n){void 0===i&&(i=!0),this.columnModel.setColumnWidths(t,!1,i,n)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getPivotResultColumn=function(t,i){return this.columnModel.getSecondaryPivotColumn(t,i)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,i){return this.columnModel.autoSizeColumn(t,i,"api")},t.prototype.autoSizeColumns=function(t,i){this.columnModel.autoSizeColumns({columns:t,skipHeader:i})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(ze.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return ti("28.0","getAllColumns","getColumns"),this.getColumns()},t.prototype.getOriginalColumnGroup=function(t){return ti("27.0","getOriginalColumnGroup","getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},t.prototype.getPrimaryColumns=function(){return ti("28.0","getPrimaryColumns","getColumns"),this.getColumns()},t.prototype.getSecondaryColumns=function(){return ti("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},t.prototype.setSecondaryColumns=function(t){ti("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},t.prototype.getSecondaryPivotColumn=function(t,i){return ti("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,i)},yl([z("columnModel")],t.prototype,"columnModel",void 0),yl([B],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),yl([W("columnApi")],t)}(),Sl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rl=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.initialised=!1,i}return Sl(e,t),e.prototype.init=function(){var t=this;this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.initialised=!0,this.eventService.addEventListener(Nt.EVENT_CELL_VALUE_CHANGED,(function(i){return t.callColumnCellValueChangedHandler(i)}),this.gridOptionsService.useAsyncEvents())},e.prototype.getValue=function(t,i,n,e){if(void 0===n&&(n=!1),void 0===e&&(e=!1),this.initialised||this.init(),i){var r,o=t.getColDef(),s=o.field,u=t.getId(),h=i.data,c=i.groupData&&void 0!==i.groupData[u],a=!e&&i.aggData&&void 0!==i.aggData[u];if(n&&o.filterValueGetter?r=this.executeFilterValueGetter(o.filterValueGetter,h,t,i):this.gridOptionsService.isTreeData()&&a?r=i.aggData[u]:this.gridOptionsService.isTreeData()&&o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):this.gridOptionsService.isTreeData()&&s&&h?r=w(h,s,t.isFieldContainsDots()):c?r=i.groupData[u]:a?r=i.aggData[u]:o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):s&&h&&(r=w(h,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var f=r.substring(1);r=this.executeValueGetter(f,h,t,i)}if(null==r){var l=this.getOpenedGroup(i,t);if(null!=l)return l}return r}},e.prototype.getOpenedGroup=function(t,i){if(this.gridOptionsService.is("showOpenedGroup")&&i.getColDef().showRowGroup)for(var n=i.getColDef().showRowGroup,e=t.parent;null!=e;){if(e.rowGroupColumn&&(!0===n||n===e.rowGroupColumn.getId()))return e.key;e=e.parent}},e.prototype.setValue=function(t,e,r,o){var s=this.columnModel.getPrimaryColumn(e);if(!t||!s)return!1;n(t.data)&&(t.data={});var u=s.getColDef(),h=u.field,c=u.valueSetter;if(n(h)&&n(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var a,f={node:t,data:t.data,oldValue:this.getValue(s,t),newValue:r,colDef:s.getColDef(),column:s,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")};return f.newValue=r,void 0===(a=i(c)?this.expressionService.evaluate(c,f):this.setValueUsingField(t.data,h,r,s.isFieldContainsDots()))&&(a=!0),!!a&&(t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),f.newValue=this.getValue(s,t),this.eventService.dispatchEvent({type:Nt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:f.column,api:f.api,columnApi:f.columnApi,colDef:f.colDef,context:f.context,data:t.data,node:t,oldValue:f.oldValue,newValue:f.newValue,value:f.newValue,source:o}),!0)},e.prototype.callColumnCellValueChangedHandler=function(t){var i=t.colDef.onCellValueChanged;"function"==typeof i&&i({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},e.prototype.setValueUsingField=function(t,i,n,e){if(!i)return!1;var r=!1;if(e)for(var o=i.split("."),s=t;o.length>0&&s;){var u=o.shift();0===o.length?(r=s[u]==n)||(s[u]=n):s=s[u]}else(r=t[i]==n)||(t[i]=n);return!r},e.prototype.executeFilterValueGetter=function(t,i,n,e){var r={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context"),getValue:this.getValueCallback.bind(this,e)};return this.expressionService.evaluate(t,r)},e.prototype.executeValueGetter=function(t,i,n,e){var r=n.getId(),o=this.valueCache.getValue(e,r);if(void 0!==o)return o;var s={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context"),getValue:this.getValueCallback.bind(this,e)},u=this.expressionService.evaluate(t,s);return this.valueCache.setValue(e,r,u),u},e.prototype.getValueCallback=function(t,i){var n=this.columnModel.getPrimaryColumn(i);return n?this.getValue(n,t):null},e.prototype.getKeyForNode=function(t,i){var n=this.getValue(t,i),e=t.getColDef().keyCreator,r=n;return e&&(r=e({value:n,colDef:t.getColDef(),column:t,node:i,data:i.data,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")})),"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&R((function(){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")}),"getKeyForNode - warn about [object,object]"),r},Cl([z("expressionService")],e.prototype,"expressionService",void 0),Cl([z("columnModel")],e.prototype,"columnModel",void 0),Cl([z("valueCache")],e.prototype,"valueCache",void 0),Cl([L],e.prototype,"init",null),Cl([W("valueService")],e)}(Pt),jl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_l=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Al=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.expressionToFunctionCache={},i}return jl(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},i.prototype.evaluate=function(t,i){return"function"==typeof t?t(i):"string"==typeof t?this.evaluateExpression(t,i):void console.error("AG Grid: value should be either a string or a function",t)},i.prototype.evaluateExpression=function(t,i){try{return this.createExpressionFunction(t)(i.value,i.context,i.oldValue,i.newValue,i.value,i.node,i.data,i.colDef,i.rowIndex,i.api,i.columnApi,i.getValue,i.column,i.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",i),console.log("Exception = "+n),null}},i.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var i=this.createFunctionBody(t),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",i);return this.expressionToFunctionCache[t]=n,n},i.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},_l([(n=0,e=K("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),_l([W("expressionService")],i);var n,e}(Pt),xl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.templateCache={},i.waitingCallbacks={},i}return xl(i,t),i.prototype.getTemplate=function(t,i){var n=this.templateCache[t];if(n)return n;var e=this.waitingCallbacks[t],r=this;if(!e){this.waitingCallbacks[t]=e=[];var o=new XMLHttpRequest;o.onload=function(){r.handleHttpResult(this,t)},o.open("GET",t),o.send()}return i&&e.push(i),null},i.prototype.handleHttpResult=function(t,i){if(200===t.status&&null!==t.response){this.templateCache[i]=t.response||t.responseText;for(var n=this.waitingCallbacks[i],e=0;e<n.length;e++)(0,n[e])()}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+i)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("templateService")],i)}(Pt),Ml=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ml(i,t),i.prototype.setBeans=function(t){this.logging=t.is("debug")},i.prototype.create=function(t){return new Pl(t,this.isLogging.bind(this))},i.prototype.isLogging=function(){return this.logging},Gl([(n=0,e=K("gridOptionsService"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Gl([W("loggerFactory")],i);var n,e}(Pt),Pl=function(){function t(t,i){this.name=t,this.isLoggingFunc=i}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),kl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Il=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return kl(i,t),i.prototype.setComp=function(t,i,n){var e=this;this.view=t,this.eGridHostDiv=i,this.eGui=n,this.dragAndDropService.addDropTarget({getContainer:function(){return e.eGui},isInterestedIn:function(t){return t===Ir.HeaderCell||t===Ir.ToolPanel},getIconName:function(){return qo.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(i),this.createManagedBean(new eu(this.view)),this.addRtlSupport(),this.addManagedListener(this,Nt.EVENT_KEYBOARD_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Nt.EVENT_MOUSE_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},i.prototype.isDetailGrid=function(){var t,i=this.focusService.findTabbableParent(this.getGui());return(null===(t=null==i?void 0:i.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},i.prototype.showDropZones=function(){return X.isRegistered(q.RowGroupingModule)},i.prototype.showSideBar=function(){return X.isRegistered(q.SideBarModule)},i.prototype.showStatusBar=function(){return X.isRegistered(q.StatusBarModule)},i.prototype.showWatermark=function(){return X.isRegistered(q.EnterpriseCoreModule)},i.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:Nt.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})},i.prototype.addRtlSupport=function(){var t=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},i.prototype.destroyGridUi=function(){this.view.destroyGridUi()},i.prototype.getGui=function(){return this.eGui},i.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},i.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},i.prototype.focusNextInnerContainer=function(t){var i=this.gridOptionsService.getDocument(),n=this.view.getFocusableContainers(),e=n.findIndex((function(t){return t.contains(i.activeElement)}))+(t?-1:1);return!(e<=0||e>=n.length)&&this.focusService.focusInto(n[e])},i.prototype.focusInnerElement=function(t){var i=this.view.getFocusableContainers();if(t){if(i.length>1)return this.focusService.focusInto(ut(i),!0);var n=ut(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},Tl([z("focusService")],i.prototype,"focusService",void 0),Tl([z("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Tl([z("columnModel")],i.prototype,"columnModel",void 0),Tl([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Tl([z("mouseEventService")],i.prototype,"mouseEventService",void 0),Tl([z("dragAndDropService")],i.prototype,"dragAndDropService",void 0),i}(Pt),El=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hl=function(t){function i(i){var n=t.call(this)||this;return n.eGridDiv=i,n}return El(i,t),i.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var i={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(i){return t.addCssClass(i)},addOrRemoveKeyboardFocusClass:function(i){return t.addOrRemoveCssClass(Qf.AG_KEYBOARD_FOCUS,i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){t.getGui().style.userSelect=null!=i?i:"",t.getGui().style.webkitUserSelect=null!=i?i:""},setCursor:function(i){t.getGui().style.cursor=null!=i?i:""}};this.ctrl=this.createManagedBean(new Il);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return t.ctrl.focusInnerElement(i)}})},i.prototype.insertGridIntoDom=function(){var t=this,i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc((function(){t.eGridDiv.removeChild(i),t.logger.log("Grid removed from DOM")}))},i.prototype.updateLayoutClasses=function(t,i){var n=this.eRootWrapperBody.classList;n.toggle(Us.AUTO_HEIGHT,i.autoHeight),n.toggle(Us.NORMAL,i.normal),n.toggle(Us.PRINT,i.print),this.addOrRemoveCssClass(Us.AUTO_HEIGHT,i.autoHeight),this.addOrRemoveCssClass(Us.NORMAL,i.normal),this.addOrRemoveCssClass(Us.PRINT,i.print)},i.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},i.prototype.getFocusableElement=function(){return this.eRootWrapperBody},i.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return oe(t)}))},Nl([z("loggerFactory")],i.prototype,"loggerFactory",void 0),Nl([nr("gridBody")],i.prototype,"gridBodyComp",void 0),Nl([nr("sideBar")],i.prototype,"sideBarComp",void 0),Nl([nr("rootWrapperBody")],i.prototype,"eRootWrapperBody",void 0),Nl([L],i.prototype,"postConstruct",null),i}(Pf),Ll=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},zl=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Wl(arguments[i]));return t},Vl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return Ll(i,t),n=i,i.prototype.progressSort=function(t,i,n){var e=this.getNextSortDirection(t);this.setSortForColumn(t,e,i,n)},i.prototype.setSortForColumn=function(t,i,n,e){"asc"!==i&&"desc"!==i&&(i=null);var r=[t];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t.getColDef().showRowGroup){var o=this.columnModel.getSourceColumnsForGroupColumn(t),s=null==o?void 0:o.filter((function(t){return t.getColDef().sortable}));s&&(r=zl([t],s))}r.forEach((function(t){return t.setSort(i,e)})),(n||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(r,e),this.updateSortIndex(t),this.dispatchSortChangedEvents(e)},i.prototype.updateSortIndex=function(t){var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),e=i&&n||t,r=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var o=r.filter((function(t){return t!==e}));(e.getSort()?zl(o,[e]):o).forEach((function(t,i){return t.setSortIndex(i)}))},i.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},i.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},i.prototype.dispatchSortChangedEvents=function(t){this.eventService.dispatchEvent({type:Nt.EVENT_SORT_CHANGED,source:t})},i.prototype.clearSortBarTheseColumns=function(t,i){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){t.includes(n)||n.setSort(void 0,i)}))},i.prototype.getNextSortDirection=function(t){var i;if(i=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):n.DEFAULT_SORTING_ORDER,!Array.isArray(i)||i.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+i),null;var e,r=i.indexOf(t.getSort());return n.DEFAULT_SORTING_ORDER.indexOf(e=r<0||r==i.length-1?i[0]:i[r+1])<0?(console.warn("AG Grid: invalid sort type "+e),null):e},i.prototype.getColumnsOrderedForSort=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),i={};return t.forEach((function(t,n){return i[t.getId()]=n})),t.sort((function(t,n){var e=t.getSortIndex(),r=n.getSortIndex();return null!=e&&null!=r?e-r:null==e&&null==r?i[t.getId()]>i[n.getId()]?1:-1:null==r?-1:1})),t},i.prototype.getIndexableColumnsOrdered=function(){var t=this;return this.gridOptionsService.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter((function(i){if(i.getColDef().showRowGroup){if(i.getColDef().field&&i.getSort())return!0;var n=t.columnModel.getSourceColumnsForGroupColumn(i);return null==n?void 0:n.some((function(t){return!!t.getSort()}))}return!!i.getSort()})):this.getColumnsWithSortingOrdered()},i.prototype.getColumnsWithSortingOrdered=function(){return this.getColumnsOrderedForSort().filter((function(t){return!!t.getSort()}))},i.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},i.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},i.prototype.canColumnDisplayMixedSort=function(t){var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=!!t.getColDef().showRowGroup;return i&&n},i.prototype.getDisplaySortForColumn=function(t){var i=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null==i?void 0:i.length))return t.getSort();var n=t.getColDef().field?zl([t],i):i,e=n[0].getSort();return n.every((function(t){return t.getSort()==e}))?e:"mixed"},i.prototype.getDisplaySortIndexForColumn=function(t){var i=this;if(!this.gridOptionsService.isColumnsSortingCoupledToGroup())return this.getColumnsWithSortingOrdered().indexOf(t);var n=this.columnModel.getGroupDisplayColumnForGroup(t.getId());return n?t.getSort()?this.getDisplaySortIndexForColumn(n):null:this.getIndexableColumnsOrdered().filter((function(t){return!i.columnModel.getGroupDisplayColumnForGroup(t.getId())})).indexOf(t)},i.DEFAULT_SORTING_ORDER=["asc","desc",null],Bl([z("columnModel")],i.prototype,"columnModel",void 0),n=Bl([W("sortController")],i)}(Pt),Ul=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ul(i,t),i.prototype.setMouseOver=function(t){this.selectedColumns=t,this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:Nt.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("columnHoverService")],i)}(Pt),Yl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ql=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.executeNextFuncs=[],i.executeLaterFuncs=[],i.active=!1,i.animationThreadCount=0,i}return Yl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){return t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.isActive=function(){return this.active},i.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},i.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},i.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},i.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},i.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var i=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===i&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},i.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var i=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===i.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return i.forEach((function(t){return t()}))}),300))},ql([z("ctrlsService")],i.prototype,"ctrlsService",void 0),ql([L],i.prototype,"postConstruct",null),ql([W("columnAnimationService")],i)}(Pt),Zl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$l=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ql=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Zl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCon=i.centerRowContainerCtrl,t.addManagedListener(t.eventService,Nt.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},i.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")},i.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},i.prototype.onBodyHeightChanged=function(){this.checkPageSize()},i.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsService.getRowHeightAsNumber(),i=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(i>0){var n=Math.floor(i/t);this.gridOptionsService.set("paginationPageSize",n)}}},$l([z("ctrlsService")],i.prototype,"ctrlsService",void 0),$l([L],i.prototype,"postConstruct",null),$l([W("paginationAutoPageSizeService")],i)}(Pt),Xl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},iv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cacheVersion=0,i}return Xl(i,t),i.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},i.prototype.onDataChanged=function(){this.neverExpires||this.expire()},i.prototype.expire=function(){this.cacheVersion++},i.prototype.setValue=function(t,i,n){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[i]=n)},i.prototype.getValue=function(t,i){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[i]},tv([L],i.prototype,"init",null),tv([W("valueCache")],i)}(Pt),nv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ev=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nv(i,t),i.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Nt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},i.prototype.onCellValueChanged=function(t){"paste"!==t.source&&this.doChangeDetection(t.node,t.column)},i.prototype.doChangeDetection=function(t,i){if(!this.gridOptionsService.is("suppressChangeDetection")){if(this.clientSideRowModel&&!t.isRowPinned()){var n=this.gridOptionsService.is("aggregateOnlyChangedColumns"),e=new $a(n,this.clientSideRowModel.getRootNode());e.addParentNode(t.parent,[i]),this.clientSideRowModel.doAggregate(e)}this.rowRenderer.refreshCells()}},ev([z("rowModel")],i.prototype,"rowModel",void 0),ev([z("rowRenderer")],i.prototype,"rowRenderer",void 0),ev([L],i.prototype,"init",null),ev([W("changeDetectionService")],i)}(Pt),ov=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},uv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ov(i,t),i.prototype.adaptFunction=function(t,i){var n=this.componentMetadataProvider.retrieve(t);return n&&n.functionAdapter?n.functionAdapter(i):null},i.prototype.adaptCellRendererFunction=function(t){return function(){function i(){}return i.prototype.refresh=function(){return!1},i.prototype.getGui=function(){return this.eGui},i.prototype.init=function(i){var n=t(i),e=typeof n;this.eGui="string"!==e&&"number"!==e&&"boolean"!==e?null!=n?n:se("<span></span>"):se("<span>"+n+"</span>")},i}()},i.prototype.doesImplementIComponent=function(t){return!!t&&t.prototype&&"getGui"in t.prototype},sv([z("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),sv([W("agComponentUtils")],i)}(Pt),hv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},av=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return hv(i,t),i.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},i.prototype.retrieve=function(t){return this.componentMetaData[t]},cv([z("agComponentUtils")],i.prototype,"agComponentUtils",void 0),cv([L],i.prototype,"postConstruct",null),cv([W("componentMetadataProvider")],i)}(Pt),fv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),lv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},vv={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},dv={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},pv={},gv=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return fv(n,t),n.prototype.getSassVariable=function(t,i){var n="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),e=vv[n][i],r=0;pv[t]||(pv[t]={});var o=pv[t][i];if(null!=o)return o;if(dv[i]){var s=dv[i],u=document.createElement("div");u.classList.add(t),u.style.position="absolute";var h=s.reduce((function(t,i){var n=document.createElement("div");return n.style.position="static",n.classList.add(i),t.appendChild(n),n}),u);if(document.body){document.body.appendChild(u);var c=-1!==i.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(h)[c],10),document.body.removeChild(u)}}return pv[t][i]=r||e,pv[t][i]},n.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},n.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},n.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,i=this.eGridDiv,n=null,e=[];i;){if(n=t.exec(i.className)){var r=i.className.match(t);r&&(e=r);break}i=i.parentElement||void 0}if(!n)return{allThemes:e};var o=n[0];return{theme:o,el:i,themeFamily:o.replace(/-dark$/,""),allThemes:e}},n.prototype.getFromTheme=function(t,i){var n=this.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.getSassVariable(n,i):t},n.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},n.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},n.prototype.setRowHeightVariable=function(t){var i=t+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=i&&this.eGridDiv.style.setProperty("--ag-line-height",i)},n.prototype.getMinColWidth=function(){var t=this.getFromTheme(null,"headerCellMinWidth");return i(t)?Math.max(t,10):10},n.prototype.destroy=function(){for(var i in pv)delete pv[i];t.prototype.destroy.call(this)},lv([z("eGridDiv")],n.prototype,"eGridDiv",void 0),lv([W("environment")],n)}(Pt),bv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.scrollY=0,i.uiBodyHeight=0,i}return bv(i,t),i.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Rn(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},i.prototype.isStretching=function(){return this.stretching},i.prototype.getDivStretchOffset=function(){return this.divStretchOffset},i.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,i=this.getUiBodyHeight();(t!==this.scrollY||i!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=i,this.calculateOffset())}},i.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,i=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+i+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(i)},i.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:Nt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},i.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},i.prototype.setDivStretchOffset=function(t){var i="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==i&&(this.divStretchOffset=i,this.eventService.dispatchEvent({type:Nt.EVENT_HEIGHT_SCALE_CHANGED}))},i.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},i.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},i.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},i.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},i.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var i=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(t/i)},mv([z("ctrlsService")],i.prototype,"ctrlsService",void 0),mv([(n=0,e=K("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"agWire",null),mv([L],i.prototype,"postConstruct",null),mv([W("rowContainerHeightService")],i);var n,e}(Pt),yv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ov=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sv=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return yv(n,t),n.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},n.prototype.updateSelectableAfterGrouping=function(t){this.isRowSelectableFunc&&this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))},n.prototype.recurseDown=function(t,n){var e=this;t&&t.forEach((function(t){var r;t.group&&(t.hasChildren()&&e.recurseDown(n(t),n),r=e.groupSelectsChildren?i((n(t)||[]).find((function(t){return!0===t.selectable}))):!!e.isRowSelectableFunc&&e.isRowSelectableFunc(t),t.setRowSelectable(r))}))},Ov([L],n.prototype,"init",null),Ov([W("selectableService")],n)}(Pt),Cv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jv=function(t){function i(){var i=t.call(this)||this;return i.previousAndFirstButtonsDisabled=!1,i.nextButtonDisabled=!1,i.lastButtonDisabled=!1,i.areListenersSetup=!1,i}return Cv(i,t),i.prototype.postConstruct=function(){var t=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ae(t?"last":"first",this.gridOptionsService)),this.btPrevious.insertAdjacentElement("afterbegin",Ae(t?"next":"previous",this.gridOptionsService)),this.btNext.insertAdjacentElement("afterbegin",Ae(t?"previous":"next",this.gridOptionsService)),this.btLast.insertAdjacentElement("afterbegin",Ae(t?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},i.prototype.onPaginationChanged=function(){var t=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},i.prototype.setupListeners=function(){var t=this;this.areListenersSetup||(this.addManagedListener(this.eventService,Nt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(i){var n=i.el,e=i.fn;t.addManagedListener(n,"click",e),t.addManagedListener(n,"keydown",(function(t){t.key!==Fe.ENTER&&t.key!==Fe.SPACE||(t.preventDefault(),e())}))})),this.areListenersSetup=!0)},i.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},i.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,i=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(t?i+1:0)},i.prototype.formatNumber=function(t){var i=this.gridOptionsService.getCallback("paginationNumberFormatter");if(i)return i({value:t});var n=this.localeService.getLocaleTextFunc();return Pn(t,n("thousandSeparator",","),n("decimalSeparator","."))},i.prototype.getTemplate=function(){var t=this.localeService.getLocaleTextFunc(),i=t("page","Page"),n=t("to","to"),e=t("of","of"),r=t("firstPage","First Page"),o=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),u=t("lastPage","Last Page"),h=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+h+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+h+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-to">'+n+'</span>\n <span id="ag-'+h+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-of">'+e+'</span>\n <span id="ag-'+h+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+o+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+h+'-start-page">'+i+'</span>\n <span id="ag-'+h+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+h+'-of-page">'+e+'</span>\n <span id="ag-'+h+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+u+'"></div>\n </span>\n </div>'},i.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},i.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},i.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},i.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var e=this.isZeroPagesToDisplay();this.nextButtonDisabled=i&&t===n-1||e,this.lastButtonDisabled=!i||e||t===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},i.prototype.toggleButtonDisabled=function(t,i){Bi(t,i),t.classList.toggle("ag-disabled",i),i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},i.prototype.updateRowLabels=function(){var t,i,n=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=i=0:(i=(t=e*n+1)+e-1,r&&i>o&&(i=o)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.lbLastRowOnPage.innerHTML=this.rowNodeBlockLoader.isLoading()?"?":this.formatNumber(i)},i.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();return t&&0===i},i.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages(),n=t?this.paginationProxy.getMasterRowCount():null;if(1===n){var e=this.paginationProxy.getRow(0);if(e&&e.group&&!e.groupData&&!e.aggData)return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(i),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},i.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Rv([z("paginationProxy")],i.prototype,"paginationProxy",void 0),Rv([z("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),Rv([nr("btFirst")],i.prototype,"btFirst",void 0),Rv([nr("btPrevious")],i.prototype,"btPrevious",void 0),Rv([nr("btNext")],i.prototype,"btNext",void 0),Rv([nr("btLast")],i.prototype,"btLast",void 0),Rv([nr("lbRecordCount")],i.prototype,"lbRecordCount",void 0),Rv([nr("lbFirstRowOnPage")],i.prototype,"lbFirstRowOnPage",void 0),Rv([nr("lbLastRowOnPage")],i.prototype,"lbLastRowOnPage",void 0),Rv([nr("lbCurrent")],i.prototype,"lbCurrent",void 0),Rv([nr("lbTotal")],i.prototype,"lbTotal",void 0),Rv([L],i.prototype,"postConstruct",null),i}(ir),_v=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Av=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(sl||(sl={}));var xv=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n.manuallyDisplayed=!1,n}return _v(i,t),i.prototype.updateLayoutClasses=function(t,i){var n=this.eOverlayWrapper.classList;n.toggle(Us.AUTO_HEIGHT,i.autoHeight),n.toggle(Us.NORMAL,i.normal),n.toggle(Us.PRINT,i.print)},i.prototype.postConstruct=function(){this.createManagedBean(new eu(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,Nt.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},i.prototype.setWrapperTypeClass=function(t){var i=this.eOverlayWrapper.classList;i.toggle("ag-overlay-loading-wrapper",t===sl.Loading),i.toggle("ag-overlay-no-rows-wrapper",t===sl.NoRows)},i.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,sl.Loading)}},i.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,sl.NoRows)}},i.prototype.showOverlay=function(t,i){var n=this;this.inProgress||(this.setWrapperTypeClass(i),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){n.inProgress=!1,n.eOverlayWrapper.appendChild(t.getGui()),n.activeOverlay=t,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},i.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),ee(this.eOverlayWrapper))},i.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},i.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},i.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),i=this.gridOptionsService.is("suppressNoRowsOverlay");t&&!i?this.showNoRowsOverlay():this.hideOverlay()},i.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},i.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},i.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Av([z("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Av([z("paginationProxy")],i.prototype,"paginationProxy",void 0),Av([z("gridApi")],i.prototype,"gridApi",void 0),Av([z("columnModel")],i.prototype,"columnModel",void 0),Av([nr("eOverlayWrapper")],i.prototype,"eOverlayWrapper",void 0),Av([L],i.prototype,"postConstruct",null),i}(ir),Fv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gv=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Fv(n,t),n.prototype.getFirstRow=function(){var t,i=0;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,i=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:i,rowPinned:t}},n.prototype.getLastRow=function(){var t,i=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),e=this.pinnedRowModel.getPinnedTopRowCount();return n?(i="bottom",t=n-1):this.rowModel.getRowCount()?(i=null,t=this.paginationProxy.getPageLastRow()):e&&(i="top",t=e-1),void 0===t?null:{rowIndex:t,rowPinned:i}},n.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},n.prototype.sameRow=function(t,i){return!t&&!i||!(t&&!i||!t&&i)&&t.rowIndex===i.rowIndex&&t.rowPinned==i.rowPinned},n.prototype.before=function(t,n){switch(t.rowPinned){case"top":if("top"!==n.rowPinned)return!0;break;case"bottom":if("bottom"!==n.rowPinned)return!1;break;default:if(i(n.rowPinned))return"top"!==n.rowPinned}return t.rowIndex<n.rowIndex},n.prototype.rowMax=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(i,t))&&(i=t)})),i},n.prototype.rowMin=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(t,i))&&(i=t)})),i},Mv([z("rowModel")],n.prototype,"rowModel",void 0),Mv([z("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Mv([z("paginationProxy")],n.prototype,"paginationProxy",void 0),Mv([W("rowPositionUtils")],n)}(Pt),Dv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Dv(i,t),i.prototype.createId=function(t){return this.createIdFromValues(t.rowIndex,t.column,t.rowPinned)},i.prototype.createIdFromValues=function(t,i,n){return t+"."+(null==n?"null":n)+"."+i.getId()},i.prototype.equals=function(t,i){return t.column===i.column&&t.rowPinned===i.rowPinned&&t.rowIndex===i.rowIndex},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("cellPositionUtils")],i)}(Pt),kv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tv=function(t){this.cellValueChanges=t},Iv=function(t){function i(i,n,e,r){var o=t.call(this,i)||this;return o.initialRange=n,o.finalRange=e,o.ranges=r,o}return kv(i,t),i}(Tv),Ev=function(){function t(i){this.actionStack=[],this.maxStackSize=i||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),Nv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hv=function(){return Hv=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Hv.apply(this,arguments)},Lv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Bv=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Wv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cellValueChanges=[],i.activeCellEdit=null,i.activeRowEdit=null,i.isPasting=!1,i.isRangeInAction=!1,i.onCellValueChanged=function(t){var n={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},e=null!==i.activeCellEdit&&i.cellPositionUtils.equals(i.activeCellEdit,n),r=null!==i.activeRowEdit&&i.rowPositionUtils.sameRow(i.activeRowEdit,n);if(e||r||i.isPasting||i.isRangeInAction){var o=t.oldValue,s=t.value,u={rowPinned:t.rowPinned,rowIndex:t.rowIndex,columnId:t.column.getColId(),newValue:s,oldValue:o};i.cellValueChanges.push(u)}},i.clearStacks=function(){i.undoStack.clear(),i.redoStack.clear()},i}return Nv(i,t),i.prototype.init=function(){var t=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var i=this.gridOptionsService.getNum("undoRedoCellEditingLimit");i<=0||(this.undoStack=new Ev(i),this.redoStack=new Ev(i),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,Nt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Nt.EVENT_MODEL_UPDATED,(function(i){i.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Nt.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},i.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},i.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},i.prototype.undo=function(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof Iv?this.processRange(t.ranges||[t.initialRange]):this.processCell(t.cellValueChanges),this.redoStack.push(t))}},i.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof Iv?this.processRange(t.ranges||[t.finalRange]):this.processCell(t.cellValueChanges),this.undoStack.push(t))}},i.prototype.processAction=function(t,i){var n=this;t.cellValueChanges.forEach((function(t){var e=t.columnId,r=n.getRowNode({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(r.displayed){var o=i(t),s="function"==typeof(null==o?void 0:o.toString)?o.toString():o;r.setDataValue(e,s)}}))},i.prototype.processRange=function(t){var i,n=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(e,r){if(e){var o=e.startRow,s=e.endRow;r===t.length-1&&(i={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:e.startColumn.getColId()},n.setLastFocusedCell(i)),n.rangeService.addCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:e.startColumn,columns:e.columns})}}))},i.prototype.processCell=function(t){var i=t[0],n=this.getRowNode({rowIndex:i.rowIndex,rowPinned:i.rowPinned});this.setLastFocusedCell({rowPinned:i.rowPinned,rowIndex:n.rowIndex,columnId:i.columnId},!!this.rangeService)},i.prototype.setLastFocusedCell=function(t,i){var n=t.rowIndex,e=t.columnId,r=t.rowPinned,o=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(e);if(s){o.ensureIndexVisible(n),o.ensureColumnVisible(s);var u={rowIndex:n,column:s,rowPinned:r};this.focusService.setFocusedCell(Hv(Hv({},u),{forceBrowserFocus:!0})),i&&this.rangeService.setRangeToCell(u)}},i.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_ROW_EDITING_STARTED,(function(i){t.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,Nt.EVENT_ROW_EDITING_STOPPED,(function(){var i=new Tv(t.cellValueChanges);t.pushActionsToUndoStack(i),t.activeRowEdit=null}))},i.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_CELL_EDITING_STARTED,(function(i){t.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,Nt.EVENT_CELL_EDITING_STOPPED,(function(i){if(t.activeCellEdit=null,i.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var n=new Tv(t.cellValueChanges);t.pushActionsToUndoStack(n)}}))},i.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,Nt.EVENT_PASTE_END,(function(){var i=new Tv(t.cellValueChanges);t.pushActionsToUndoStack(i),t.isPasting=!1}))},i.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,Nt.EVENT_FILL_END,(function(i){var n=new Iv(t.cellValueChanges,i.initialRange,i.finalRange);t.pushActionsToUndoStack(n),t.isRangeInAction=!1}))},i.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,Nt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var i;i=t.rangeService&&t.gridOptionsService.isEnableRangeSelection()?new Iv(t.cellValueChanges,void 0,void 0,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Bv(arguments[i]));return t}(t.rangeService.getCellRanges())):new Tv(t.cellValueChanges),t.pushActionsToUndoStack(i),t.isRangeInAction=!1}))},i.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},i.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},Lv([z("focusService")],i.prototype,"focusService",void 0),Lv([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Lv([z("rowModel")],i.prototype,"rowModel",void 0),Lv([z("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Lv([z("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),Lv([z("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),Lv([z("columnModel")],i.prototype,"columnModel",void 0),Lv([V("rangeService")],i.prototype,"rangeService",void 0),Lv([L],i.prototype,"init",null),Lv([W("undoRedoService")],i)}(Pt),zv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Uv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return zv(i,t),i.prototype.findHeader=function(t,i){var n;if(n=t.column instanceof ei?this.columnModel["getDisplayedGroup"+i](t.column):this.columnModel["getDisplayedCol"+i](t.column))return{column:n,headerRowIndex:t.headerRowIndex}},i.prototype.findColAtEdgeForHeaderRow=function(t,i){var n=this.columnModel.getAllDisplayedColumns(),e=n["start"===i?0:n.length-1];if(e){var r=this.ctrlsService.getHeaderRowContainerCtrl(e.getPinned()).getRowType(t);return r==mh.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(e,t)}:{headerRowIndex:null==r?-1:t,column:e}}},Vv([z("columnModel")],i.prototype,"columnModel",void 0),Vv([z("ctrlsService")],i.prototype,"ctrlsService",void 0),Vv([W("headerPositionUtils")],i)}(Pt),Kv=function(){function t(){}return t.prototype.buildColumnDefs=function(t,i,n){var e=this,r=[],o={};return t.forEach((function(t){for(var s=!0,u=e.createDefFromColumn(t,i,n),h=t.getOriginalParent();h;){var c=null;if(h.isPadding())h=h.getOriginalParent();else{var a=o[h.getGroupId()];if(a){a.children.push(u),s=!1;break}(c=e.createDefFromGroup(h))&&(c.children=[u],o[c.groupId]=c,u=c,h=h.getOriginalParent())}}s&&r.push(u)})),r},t.prototype.createDefFromGroup=function(t){var i=l(t.getColGroupDef(),["children"]);return i&&(i.groupId=t.getGroupId()),i},t.prototype.createDefFromColumn=function(t,i,n){var e=l(t.getColDef());return e.colId=t.getColId(),e.width=t.getActualWidth(),e.rowGroup=t.isRowGroupActive(),e.rowGroupIndex=t.isRowGroupActive()?i.indexOf(t):null,e.pivot=t.isPivotActive(),e.pivotIndex=t.isPivotActive()?n.indexOf(t):null,e.aggFunc=t.isValueActive()?t.getAggFunc():null,e.hide=!t.isVisible()||void 0,e.pinned=t.isPinned()?t.getPinned():null,e.sort=t.getSort()?t.getSort():null,e.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,e},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("columnDefFactory")],t)}(),Yv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},qv=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var n=[];return i(t.extraCssClass)&&n.push(t.extraCssClass),n.push("ag-row"),n.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&n.push("ag-opacity-zero"),n.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&n.push("ag-row-pinned"),t.rowNode.isSelected()&&n.push("ag-row-selected"),t.rowNode.footer&&n.push("ag-row-footer"),n.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&n.push("ag-row-loading"),t.fullWidthRow&&n.push("ag-full-width-row"),t.expandable&&(n.push("ag-row-group"),n.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&n.push("ag-row-dragging"),gt(n,this.processClassesFromGridOptions(t.rowNode)),gt(n,this.preProcessRowClassRules(t.rowNode)),n.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&n.push("ag-row-first"),t.lastRowOnPage&&n.push("ag-row-last"),t.fullWidthRow&&("left"===t.pinned&&n.push("ag-cell-last-left-pinned"),"right"===t.pinned&&n.push("ag-cell-first-right-pinned")),n},t.prototype.processClassesFromGridOptions=function(t){var i=[],n=function(t){"string"==typeof t?i.push(t):Array.isArray(t)&&t.forEach((function(t){return i.push(t)}))},e=this.gridOptionsService.get("rowClass");if(e){if("function"==typeof e)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(e)}var r=this.gridOptionsService.getCallback("getRowClass");return r&&n(r({data:t.data,node:t,rowIndex:t.rowIndex})),i},t.prototype.preProcessRowClassRules=function(t){var i=[];return this.processRowClassRules(t,(function(t){i.push(t)}),(function(){})),i},t.prototype.processRowClassRules=function(t,i,n){var e={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsService.get("api"),columnApi:this.gridOptionsService.get("columnApi"),context:this.gridOptionsService.get("context")};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),e,i,n)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},Yv([z("stylingService")],t.prototype,"stylingService",void 0),Yv([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Yv([W("rowCssClassCalculator")],t)}(),Jv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zv=function(){function t(){}return t.prototype.doFullSort=function(t,i){var n=t.map((function(t,i){return{currentPos:i,rowNode:t}}));return n.sort(this.compareRowNodes.bind(this,i)),n.map((function(t){return t.rowNode}))},t.prototype.compareRowNodes=function(t,i,n){for(var e=i.rowNode,r=n.rowNode,o=0,s=t.length;o<s;o++){var u,h=t[o],c="desc"===h.sort,a=this.getValue(e,h.column),f=this.getValue(r,h.column),l=this.getComparator(h,e);if(u=l?l(a,f,e,r,c):ze.defaultComparator(a,f,this.gridOptionsService.is("accentedSort")),!isNaN(u)&&0!==u)return"asc"===h.sort?u:-1*u}return i.currentPos-n.currentPos},t.prototype.getComparator=function(t,i){var n=t.column,e=n.getColDef().comparator;if(null!=e)return e;if(n.getColDef().showRowGroup){var r=!i.group&&n.getColDef().field;if(r){var o=this.columnModel.getPrimaryColumn(r);if(o)return o.getColDef().comparator}}},t.prototype.getValue=function(t,i){var n,e;if(!this.gridOptionsService.isColumnsSortingCoupledToGroup())return this.valueService.getValue(i,t,!1,!1);if(t.rowGroupColumn===i){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(i.getColDef().keyCreator)return t.key;var r=null===(n=t.allLeafChildren)||void 0===n?void 0:n[0];return r?this.valueService.getValue(i,r,!1,!1):void 0}var o=this.columnModel.getGroupDisplayColumnForGroup(i.getId());if(!o)return;return null===(e=t.groupData)||void 0===e?void 0:e[o.getId()]}return t.group&&i.getColDef().showRowGroup?void 0:this.valueService.getValue(i,t,!1,!1)},Jv([z("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Jv([z("valueService")],t.prototype,"valueService",void 0),Jv([z("columnModel")],t.prototype,"columnModel",void 0),Jv([W("rowNodeSorter")],t)}(),$v=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ready=!1,i.readyCallbacks=[],i}var n;return $v(i,t),n=i,i.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach((function(i){return i(t)})),this.readyCallbacks.length=0}},i.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},i.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},i.prototype.registerFakeHScrollComp=function(t){this.fakeHScrollComp=t,this.checkReady()},i.prototype.registerFakeVScrollComp=function(t){this.fakeVScrollComp=t,this.checkReady()},i.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},i.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},i.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},i.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerHeaderContainer=function(t,i){switch(i){case"left":this.leftHeaderRowContainerCtrl=t;break;case"right":this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t}this.checkReady()},i.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},i.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},i.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},i.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},i.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},i.prototype.getGridCtrl=function(){return this.gridCtrl},i.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},i.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},i.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},i.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},i.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},i.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},i.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},i.NAME="ctrlsService",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W(n.NAME)],i)}(Pt),Xv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),td=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.registry={},i}return Xv(i,t),i.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},i.prototype.getInstance=function(t){var i=this.registry[t];if(null!=i)return new i},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("ctrlsFactory")],i)}(Pt),id=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ed=function(t){function i(i,n){var e=t.call(this,i)||this;return e.direction=n,e.hideTimeout=null,e}return id(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Nt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",yn()||On())},i.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=An(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},i.prototype.addActiveListenerToggles=function(){var t=this,i=this.getGui();["mouseenter","mousedown","touchstart"].forEach((function(n){return t.addManagedListener(i,n,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(n){return t.addManagedListener(i,n,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},i.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},i.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,Nt.EVENT_BODY_SCROLL,(function(i){i.direction===t.direction&&(null!==t.hideTimeout&&(window.clearInterval(t.hideTimeout),t.hideTimeout=null),t.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,Nt.EVENT_BODY_SCROLL_END,(function(){t.hideTimeout=window.setTimeout((function(){t.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),t.hideTimeout=null}),400)}))},i.prototype.getViewport=function(){return this.eViewport},i.prototype.getContainer=function(){return this.eContainer},nd([nr("eViewport")],i.prototype,"eViewport",void 0),nd([nr("eContainer")],i.prototype,"eContainer",void 0),nd([z("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),nd([z("ctrlsService")],i.prototype,"ctrlsService",void 0),i}(ir),rd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),od=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},sd=function(t){function i(){return t.call(this,i.TEMPLATE,"horizontal")||this}return rd(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this);var n=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,Nt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",n),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new dh((function(t){return i.eContainer.style.width=t+"px"})))},i.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),t.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},i.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},i.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=t+"px"}},i.prototype.onScrollVisibilityChanged=function(){t.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},i.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),i=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&t,e=this.gridOptionsService.getScrollbarWidth();n&&(i+=e),ge(this.eRightSpacer,i),this.eRightSpacer.classList.toggle("ag-scroller-corner",i<=e);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(r+=e),ge(this.eLeftSpacer,r),this.eLeftSpacer.classList.toggle("ag-scroller-corner",r<=e)},i.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),i=this.invisibleScrollbar,n=this.gridOptionsService.is("suppressHorizontalScroll"),e=t&&this.gridOptionsService.getScrollbarWidth()||0,r=n?0:0===e&&i?16:e;this.addOrRemoveCssClass("ag-scrollbar-invisible",i),be(this.getGui(),r),be(this.eViewport,r),be(this.eContainer,r),this.setDisplayed(t,{skipAriaHidden:!0})},i.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',od([nr("eLeftSpacer")],i.prototype,"eLeftSpacer",void 0),od([nr("eRightSpacer")],i.prototype,"eRightSpacer",void 0),od([z("columnModel")],i.prototype,"columnModel",void 0),od([z("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),od([L],i.prototype,"postConstruct",null),i}(ed),ud=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},cd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ud(i,t),i.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Nt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedPropertyListener("domLayout",t)},i.prototype.checkContainerWidths=function(){var t=this.gridOptionsService.isDomLayout("print"),i=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=t?0:this.columnModel.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,this.eventService.dispatchEvent({type:Nt.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Nt.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},i.prototype.getPinnedRightWidth=function(){return this.rightWidth},i.prototype.getPinnedLeftWidth=function(){return this.leftWidth},hd([z("columnModel")],i.prototype,"columnModel",void 0),hd([L],i.prototype,"postConstruct",null),hd([W("pinnedWidthService")],i)}(Pt),ad=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ld=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.events=[],i}return ad(i,t),i.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},i.prototype.dispatchExpanded=function(t){var i=this;null!=this.clientSideRowModel?(this.events.push(t),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){i.clientSideRowModel&&i.clientSideRowModel.onRowGroupOpened(),i.events.forEach((function(t){return i.eventService.dispatchEvent(t)})),i.events=[]}))),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(t)},fd([z("animationFrameService")],i.prototype,"animationFrameService",void 0),fd([z("rowModel")],i.prototype,"rowModel",void 0),fd([L],i.prototype,"postConstruct",null),fd([W("rowNodeEventThrottle")],i)}(Pt),vd=function(){return vd=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},vd.apply(this,arguments)},dd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pd=function(t,i){return function(n,e){i(n,e,t)}},gd=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};
|
|
297
|
+
/**
|
|
298
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
299
|
+
* @version v29.0.0
|
|
300
|
+
* @link https://www.ag-grid.com/
|
|
301
|
+
* @license MIT
|
|
302
|
+
*/function bd(t){return!0===t||"true"===t}var md,wd=function(){function t(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Q}return t.prototype.agWire=function(t,i){this.gridOptions.api=t,this.gridOptions.columnApi=i},t.prototype.init=function(){this.gridOptionLookup=new Set(function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(gd(arguments[i]));return t}(Vt.ALL_PROPERTIES,Vt.EVENT_CALLBACKS));var t=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),t),this.getScrollbarWidth()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.is=function(t){return bd(this.gridOptions[t])},t.prototype.get=function(t){return this.gridOptions[t]},t.prototype.getNum=function(t){return"number"==typeof(i=this.gridOptions[t])?i:"string"==typeof i?parseInt(i,10):void 0;var i},t.prototype.getCallback=function(t){return this.mergeGridCommonParams(this.gridOptions[t])},t.prototype.exists=function(t){return i(this.gridOptions[t])},t.prototype.mergeGridCommonParams=function(t){var i=this;return t?function(n){var e=vd(vd({},n),{api:i.gridOptions.api,columnApi:i.gridOptions.columnApi,context:i.gridOptions.context});return t(e)}:t},t.prototype.set=function(t,i,n,e){if(void 0===n&&(n=!1),void 0===e&&(e={}),this.gridOptionLookup.has(t)){var r=this.gridOptions[t];if(n||r!==i){this.gridOptions[t]=i;var o=vd({type:t,currentValue:i,previousValue:r},e);this.propertyEventService.dispatchEvent(o)}}},t.prototype.addEventListener=function(t,i){this.propertyEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.propertyEventService.removeEventListener(t,i)},t.prototype.globalEventHandler=function(t,i){if(!this.destroyed){var n=Vt.getCallbackForEvent(t);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](i)}},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:jn();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:Nt.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.isRowModelType=function(t){return this.gridOptions.rowModelType===t||"clientSide"===t&&n(this.gridOptions.rowModelType)},t.prototype.isDomLayout=function(t){var i;return(null!==(i=this.get("domLayout"))&&void 0!==i?i:"normal")===t},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,i,n){if(void 0===i&&(i=!1),null==n&&(n=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(i)return{height:n,estimated:!0};var e={node:t,data:t.data},r=this.getCallback("getRowHeight")(e);if(this.isNumeric(r))return 0===r&&R((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"),{height:Math.max(1,r),estimated:!1}}return t.detail&&this.is("masterDetail")?this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||n(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var t=this.gridOptions.rowHeight;return t&&this.isNumeric(t)?(this.environment.setRowHeightVariable(t),t):(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,i){var n=t[this.getDomDataKey()];return n?n[i]:void 0},t.prototype.setDomData=function(t,i,e){var r=this.getDomDataKey(),o=t[r];n(o)&&(t[r]=o={}),o[i]=e},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&i(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&i(t)?t:document},t.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},t.prototype.getRowIdFunc=function(){var t=this.getCallback("getRowId");if(t)return t;var i=this.get("getRowNodeId");return i?function(t){return i(t.data)}:void 0},t.prototype.getAsyncTransactionWaitMillis=function(){return i(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},t.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},t.prototype.isTreeData=function(){return this.is("treeData")&&X.assertRegistered(q.RowGroupingModule,"Tree Data")},t.prototype.isMasterDetail=function(){return this.is("masterDetail")&&X.assertRegistered(q.MasterDetailModule,"masterDetail")},t.prototype.isEnableRangeSelection=function(){return this.is("enableRangeSelection")&&X.isRegistered(q.RangeSelectionModule)},t.prototype.isColumnsSortingCoupledToGroup=function(){var t=this.get("autoGroupColumnDef");return this.isRowModelType("clientSide")&&!(null==t?void 0:t.comparator)},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.getCallback("groupAggFiltering"):bd(t)?function(){return!0}:void 0},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?ni("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},t.prototype.isGroupUseEntireRow=function(t){return!t&&!!this.gridOptions.groupDisplayType&&ni("groupRows",this.gridOptions.groupDisplayType)},dd([z("gridOptions")],t.prototype,"gridOptions",void 0),dd([z("eventService")],t.prototype,"eventService",void 0),dd([z("environment")],t.prototype,"environment",void 0),dd([z("eGridDiv")],t.prototype,"eGridDiv",void 0),dd([pd(0,K("gridApi")),pd(1,K("columnApi"))],t.prototype,"agWire",null),dd([L],t.prototype,"init",null),dd([B],t.prototype,"destroy",null),dd([W("gridOptionsService")],t)}(),yd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Od=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yd(i,t),i.prototype.getLocaleTextFunc=function(){var t=this.gridOptionsService.getCallback("getLocaleText");if(t)return function(i,n,e){return t({key:i,defaultValue:n,variableValues:e})};var i=this.gridOptionsService.get("localeTextFunc");if(i)return i;var n=this.gridOptionsService.get("localeText");return function(t,i,e){var r=n&&n[t];if(r&&e&&e.length)for(var o=0;!(o>=e.length)&&-1!==r.indexOf("${variable}");)r=r.replace("${variable}",e[o++]);return null!=r?r:i}},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([W("localeService")],i)}(Pt),Sd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cd=function(t){function i(){return t.call(this,i.TEMPLATE,"vertical")||this}return Sd(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.createManagedBean(new hh(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},i.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),i=this.invisibleScrollbar,n=t&&this.gridOptionsService.getScrollbarWidth()||0,e=0===n&&i?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",i),ge(this.getGui(),e),ge(this.eViewport,e),ge(this.eContainer,e),this.setDisplayed(t,{skipAriaHidden:!0})},i.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n </div>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(ed),Rd=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},jd=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Rd(arguments[i]));return t},_d=function(){function t(t,i,n){i?(this.gridOptions=i,(new Ad).create(t,i,(function(i){var n=new Hl(t);i.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),Ad=function(){function t(){}return t.prototype.create=function(t,i,n,e,r){var o=this,s=!!i.debug,u=this.getRegisteredModules(r),h=this.createBeansList(i.rowModelType,u),c=this.createProvidedBeans(t,i,r);if(h){var a={providedBeanInstances:c,beanClasses:h,debug:s},f=new Pl("AG Grid",(function(){return i.debug})),l=new Pl("Context",(function(){return a.debug})),v=new N(a,l),d=v.getBean("beans");this.registerModuleUserComponents(d,u),this.registerStackComponents(d,u),this.registerControllers(d,u),n(v),d.ctrlsService.whenReady((function(){o.setColumnsAndData(d),o.dispatchGridReadyEvent(d);var t=X.isRegistered(q.EnterpriseCoreModule);f.log("initialised successfully, enterprise = "+t)})),e&&e(v)}},t.prototype.registerControllers=function(t,i){i.forEach((function(i){i.controllers&&i.controllers.forEach((function(i){return t.ctrlsFactory.register(i)}))}))},t.prototype.registerStackComponents=function(t,i){var n=this.createAgStackComponentsList(i);t.agStackComponentsRegistry.setupComponents(n)},t.prototype.getRegisteredModules=function(t){var i=t?t.modules:null,n=X.getRegisteredModules(),e=[],r={};function o(t,i){var n;r[(n=i).moduleName]||(r[n.moduleName]=!0,e.push(n),X.register(n,t)),i.dependantModules&&i.dependantModules.forEach(o.bind(null,t))}return i&&i.forEach(o.bind(null,!0)),n&&n.forEach(o.bind(null,!X.isPackageBased())),e},t.prototype.registerModuleUserComponents=function(t,i){this.extractModuleEntity(i,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(i){t.userComponentRegistry.registerDefaultComponent(i.componentName,i.componentClass)}))},t.prototype.createProvidedBeans=function(t,i,e){var r=e?e.frameworkOverrides:null;n(r)&&(r=new cl);var o={gridOptions:i,eGridDiv:t,globalEventListener:e?e.globalEventListener:null,frameworkOverrides:r};return e&&e.providedBeanInstances&&Object.assign(o,e.providedBeanInstances),o},t.prototype.createAgStackComponentsList=function(t){var i=[{componentName:"AgCheckbox",componentClass:Dc},{componentName:"AgRadioButton",componentClass:ff},{componentName:"AgToggleButton",componentClass:vf},{componentName:"AgInputTextField",componentClass:pf},{componentName:"AgInputTextArea",componentClass:bf},{componentName:"AgInputNumberField",componentClass:wf},{componentName:"AgInputRange",componentClass:Of},{componentName:"AgSelect",componentClass:Mr},{componentName:"AgSlider",componentClass:Rf},{componentName:"AgGridBody",componentClass:_h},{componentName:"AgHeaderRoot",componentClass:fa},{componentName:"AgSortIndicator",componentClass:mo},{componentName:"AgPagination",componentClass:jv},{componentName:"AgOverlayWrapper",componentClass:xv},{componentName:"AgGroupComponent",componentClass:Af},{componentName:"AgPanel",componentClass:Uf},{componentName:"AgDialog",componentClass:qf},{componentName:"AgRowContainer",componentClass:Kh},{componentName:"AgFakeHorizontalScroll",componentClass:sd},{componentName:"AgFakeVerticalScroll",componentClass:Cd}],n=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return i.concat(n)},t.prototype.createBeansList=function(t,i){var n=this.getRowModelClass(t,i);if(n){var e=[n,Gu,Gv,Pv,Uv,Ql,wc,ws,uv,av,Sa,Ls,wv,da,Od,ii,Ja,Vs,_i,Q,wd,el,wl,Js,Si,sa,sf,Wa,Al,It,Fl,gl,Ih,iv,Rl,Dl,Ri,Pa,ba,qo,Ol,Qf,Dh,gv,vl,Ka,cf,Fh,Vl,Kl,Jl,Sv,hi,rv,ja,Wv,xi,Kv,qv,ef,Zv,Qv,cd,ld,td],r=this.extractModuleEntity(i,(function(t){return t.beans?t.beans:[]}));e.push.apply(e,jd(r));var o=[];return e.forEach((function(t){o.indexOf(t)<0&&o.push(t)})),o}},t.prototype.extractModuleEntity=function(t,i){return[].concat.apply([],jd(t.map(i)))},t.prototype.setColumnsAndData=function(t){var i=t.gridOptionsService.get("columnDefs");t.columnModel.setColumnDefs(i||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){t.eventService.dispatchEvent({type:Nt.EVENT_GRID_READY})},t.prototype.getRowModelClass=function(t,n){t||(t="clientSide");var e={};n.forEach((function(t){a(t.rowModels,(function(t,i){e[t]=i}))}));var r=e[t];if(i(r))return r;var o={clientSide:q.ClientSideRowModelModule,infinite:q.InfiniteRowModelModule,serverSide:q.ServerSideRowModelModule,viewport:q.ViewportRowModelModule};o[t]?X.assertRegistered(o[t],"rowModelType = '"+t+"'"):console.error("AG Grid: could not find row model for rowModelType = "+t)},t}();
|
|
303
|
+
/**
|
|
304
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
305
|
+
* @version v29.0.0
|
|
306
|
+
* @link https://www.ag-grid.com/
|
|
307
|
+
* @license MIT
|
|
308
|
+
*/!function(t){t.InsideBase="insideBase",t.InsideEnd="insideEnd",t.Center="center",t.OutsideEnd="outsideEnd"}(md||(md={}));
|
|
309
|
+
/**
|
|
310
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
311
|
+
* @version v29.0.0
|
|
312
|
+
* @link https://www.ag-grid.com/
|
|
313
|
+
* @license MIT
|
|
314
|
+
*/
|
|
315
|
+
var xd="undefined"==typeof global?{}:global;xd.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,xd.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,xd.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,xd.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,xd.Node="undefined"==typeof Node?{}:Node,xd.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Fd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Md=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.watermarkMessage=void 0,i}var n;return Fd(i,t),n=i,i.prototype.validateLicense=function(){if(ze.missingOrEmpty(n.licenseKey))this.isWebsiteUrl()||this.outputMissingLicenseKey();else if(n.licenseKey.length>32){var t=n.extractLicenseComponents(n.licenseKey),i=t.license,e=t.version,r=t.isTrial;t.md5===this.md5.md5(i)?ze.exists(e)&&e?this.validateLicenseKeyForVersion(e,!!r,i):this.validateLegacyKey(i):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},i.extractExpiry=function(t){var i=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(n.decode(i),10))},i.extractLicenseComponents=function(t){var i=t.replace(/[\u200B-\u200D\uFEFF]/g,""),e=(i=i.replace(/\r?\n|\r/g,"")).length-32,r=i.substring(e),o=i.substring(0,e),s=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(n.extractBracketedInformation(i),2);return{md5:r,license:o,version:s[0],isTrial:s[1]}},i.prototype.getLicenseDetails=function(t){var i=n.extractLicenseComponents(t),e=i.license,r=i.version,o=i.isTrial,s=i.md5===this.md5.md5(e),u=null;return s&&(u=n.extractExpiry(e),s=!isNaN(u.getTime())),{licenseKey:t,valid:s,expiry:s?n.formatDate(u):null,version:r||"legacy",isTrial:o}},i.prototype.isDisplayWatermark=function(){return!this.isLocalhost()&&!this.isWebsiteUrl()&&!ze.missingOrEmpty(this.watermarkMessage)},i.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},i.prototype.getHostname=function(){var t=(this.gridOptionsService.getDocument().defaultView||window).location.hostname;return void 0===t?"":t},i.prototype.isWebsiteUrl=function(){return null!==this.getHostname().match(/^((?:\w+\.)?ag-grid\.com)$/)},i.prototype.isLocalhost=function(){return null!==this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)},i.formatDate=function(t){var i=t.getDate(),n=t.getMonth(),e=t.getFullYear();return i+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][n]+" "+e},i.getGridReleaseDate=function(){return new Date(parseInt(n.decode(n.RELEASE_INFORMATION),10))},i.decode=function(t){for(var i,e,r,o,s,u,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",a=0,f=t.replace(/[^A-Za-z0-9+/=]/g,"");a<f.length;)r=h.indexOf(f.charAt(a++)),i=(15&(o=h.indexOf(f.charAt(a++))))<<4|(s=h.indexOf(f.charAt(a++)))>>2,e=(3&s)<<6|(u=h.indexOf(f.charAt(a++))),c+=String.fromCharCode(r<<2|o>>4),64!=s&&(c+=String.fromCharCode(i)),64!=u&&(c+=String.fromCharCode(e));return n.utf8_decode(c)},i.utf8_decode=function(t){t=t.replace(/rn/g,"n");for(var i="",n=0;n<t.length;n++){var e=t.charCodeAt(n);e<128?i+=String.fromCharCode(e):e>127&&e<2048?(i+=String.fromCharCode(e>>6|192),i+=String.fromCharCode(63&e|128)):(i+=String.fromCharCode(e>>12|224),i+=String.fromCharCode(e>>6&63|128),i+=String.fromCharCode(63&e|128))}return i},i.setLicenseKey=function(t){n.licenseKey=t},i.extractBracketedInformation=function(t){var i=t.split("[").filter((function(t){return t.indexOf("]")>-1})).map((function(t){return t.split("]")[0]}));if(!i||0===i.length)return[null,null];var n=1===i.filter((function(t){return"TRIAL"===t})).length;return[i.filter((function(t){return 0===t.indexOf("v")})).map((function(t){return t.replace(/^v/,"")}))[0],n]},i.prototype.validateLicenseKeyForVersion=function(t,i,n){"2"===t&&(i?this.validateForTrial(n):this.validateLegacyKey(n))},i.prototype.validateLegacyKey=function(t){var i=n.getGridReleaseDate(),e=n.extractExpiry(t),r=!1,o=!1;if(isNaN(e.getTime())||(r=!0,o=i<e),r){if(!o){var s=n.formatDate(e),u=n.formatDate(i);this.outputIncompatibleVersion(s,u)}}else this.outputInvalidLicenseKey()},i.prototype.validateForTrial=function(t){var i=n.extractExpiry(t),e=new Date,r=!1,o=!1;if(isNaN(i.getTime())||(r=!0,o=i>e),r){if(!o){var s=n.formatDate(i);this.outputExpiredTrialKey(s)}}else this.outputInvalidLicenseKey()},i.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},i.prototype.outputExpiredTrialKey=function(t){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+t+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},i.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},i.prototype.outputIncompatibleVersion=function(t,i){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("* AG Grid Enterprise License *"),console.error("* License not compatible with installed version of AG Grid Enterprise. *"),console.error("* *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *"),console.error("* license end date. The license key that you have expires on "+t+", however the version of AG Grid you *"),console.error("* are trying to use was released on "+i+". *"),console.error("* *"),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 *"),console.error("* version of AG Grid. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},i.RELEASE_INFORMATION="MTY3MzM3ODMwNzAyMA==",Md([z("md5")],i.prototype,"md5",void 0),Md([H],i.prototype,"validateLicense",null),n=Md([W("licenseManager")],i)}(Pt),Dd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},kd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ieCompatibility=!1,i}return Dd(i,t),i.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},i.prototype.md5cycle=function(t,i){var n=t[0],e=t[1],r=t[2],o=t[3];n=this.ff(n,e,r,o,i[0],7,-680876936),o=this.ff(o,n,e,r,i[1],12,-389564586),r=this.ff(r,o,n,e,i[2],17,606105819),e=this.ff(e,r,o,n,i[3],22,-1044525330),n=this.ff(n,e,r,o,i[4],7,-176418897),o=this.ff(o,n,e,r,i[5],12,1200080426),r=this.ff(r,o,n,e,i[6],17,-1473231341),e=this.ff(e,r,o,n,i[7],22,-45705983),n=this.ff(n,e,r,o,i[8],7,1770035416),o=this.ff(o,n,e,r,i[9],12,-1958414417),r=this.ff(r,o,n,e,i[10],17,-42063),e=this.ff(e,r,o,n,i[11],22,-1990404162),n=this.ff(n,e,r,o,i[12],7,1804603682),o=this.ff(o,n,e,r,i[13],12,-40341101),r=this.ff(r,o,n,e,i[14],17,-1502002290),e=this.ff(e,r,o,n,i[15],22,1236535329),n=this.gg(n,e,r,o,i[1],5,-165796510),o=this.gg(o,n,e,r,i[6],9,-1069501632),r=this.gg(r,o,n,e,i[11],14,643717713),e=this.gg(e,r,o,n,i[0],20,-373897302),n=this.gg(n,e,r,o,i[5],5,-701558691),o=this.gg(o,n,e,r,i[10],9,38016083),r=this.gg(r,o,n,e,i[15],14,-660478335),e=this.gg(e,r,o,n,i[4],20,-405537848),n=this.gg(n,e,r,o,i[9],5,568446438),o=this.gg(o,n,e,r,i[14],9,-1019803690),r=this.gg(r,o,n,e,i[3],14,-187363961),e=this.gg(e,r,o,n,i[8],20,1163531501),n=this.gg(n,e,r,o,i[13],5,-1444681467),o=this.gg(o,n,e,r,i[2],9,-51403784),r=this.gg(r,o,n,e,i[7],14,1735328473),e=this.gg(e,r,o,n,i[12],20,-1926607734),n=this.hh(n,e,r,o,i[5],4,-378558),o=this.hh(o,n,e,r,i[8],11,-2022574463),r=this.hh(r,o,n,e,i[11],16,1839030562),e=this.hh(e,r,o,n,i[14],23,-35309556),n=this.hh(n,e,r,o,i[1],4,-1530992060),o=this.hh(o,n,e,r,i[4],11,1272893353),r=this.hh(r,o,n,e,i[7],16,-155497632),e=this.hh(e,r,o,n,i[10],23,-1094730640),n=this.hh(n,e,r,o,i[13],4,681279174),o=this.hh(o,n,e,r,i[0],11,-358537222),r=this.hh(r,o,n,e,i[3],16,-722521979),e=this.hh(e,r,o,n,i[6],23,76029189),n=this.hh(n,e,r,o,i[9],4,-640364487),o=this.hh(o,n,e,r,i[12],11,-421815835),r=this.hh(r,o,n,e,i[15],16,530742520),e=this.hh(e,r,o,n,i[2],23,-995338651),n=this.ii(n,e,r,o,i[0],6,-198630844),o=this.ii(o,n,e,r,i[7],10,1126891415),r=this.ii(r,o,n,e,i[14],15,-1416354905),e=this.ii(e,r,o,n,i[5],21,-57434055),n=this.ii(n,e,r,o,i[12],6,1700485571),o=this.ii(o,n,e,r,i[3],10,-1894986606),r=this.ii(r,o,n,e,i[10],15,-1051523),e=this.ii(e,r,o,n,i[1],21,-2054922799),n=this.ii(n,e,r,o,i[8],6,1873313359),o=this.ii(o,n,e,r,i[15],10,-30611744),r=this.ii(r,o,n,e,i[6],15,-1560198380),e=this.ii(e,r,o,n,i[13],21,1309151649),n=this.ii(n,e,r,o,i[4],6,-145523070),o=this.ii(o,n,e,r,i[11],10,-1120210379),r=this.ii(r,o,n,e,i[2],15,718787259),e=this.ii(e,r,o,n,i[9],21,-343485551),t[0]=this.add32(n,t[0]),t[1]=this.add32(e,t[1]),t[2]=this.add32(r,t[2]),t[3]=this.add32(o,t[3])},i.prototype.cmn=function(t,i,n,e,r,o){return i=this.add32(this.add32(i,t),this.add32(e,o)),this.add32(i<<r|i>>>32-r,n)},i.prototype.ff=function(t,i,n,e,r,o,s){return this.cmn(i&n|~i&e,t,i,r,o,s)},i.prototype.gg=function(t,i,n,e,r,o,s){return this.cmn(i&e|n&~e,t,i,r,o,s)},i.prototype.hh=function(t,i,n,e,r,o,s){return this.cmn(i^n^e,t,i,r,o,s)},i.prototype.ii=function(t,i,n,e,r,o,s){return this.cmn(n^(i|~e),t,i,r,o,s)},i.prototype.md51=function(t){var i,n=t.length,e=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)this.md5cycle(e,this.md5blk(t.substring(i-64,i)));t=t.substring(i-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<t.length;i++)r[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(r[i>>2]|=128<<(i%4<<3),i>55)for(this.md5cycle(e,r),i=0;i<16;i++)r[i]=0;return r[14]=8*n,this.md5cycle(e,r),e},i.prototype.md5blk=function(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return i},i.prototype.rhex=function(t){for(var i="0123456789abcdef".split(""),n="",e=0;e<4;e++)n+=i[t>>8*e+4&15]+i[t>>8*e&15];return n},i.prototype.hex=function(t){for(var i=0;i<t.length;i++)t[i]=this.rhex(t[i]);return t.join("")},i.prototype.md5=function(t){return this.hex(this.md51(t))},i.prototype.add32=function(t,i){return this.ieCompatibility?this.add32Compat(t,i):this.add32Std(t,i)},i.prototype.add32Std=function(t,i){return t+i&4294967295},i.prototype.add32Compat=function(t,i){var n=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(n>>16)<<16|65535&n},Pd([L],i.prototype,"init",null),Pd([W("md5")],i)}(Pt),Td=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Id=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ed=function(t){function i(){return t.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return Td(i,t),i.prototype.postConstruct=function(){var t=this,i=this.shouldDisplayWatermark();this.setDisplayed(i),i&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return t.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return t.setDisplayed(!1)}),5e3))},i.prototype.shouldDisplayWatermark=function(){var t=(this.gridOptionsService.getDocument().defaultView||window).location.pathname,i=this.licenseManager.isDisplayWatermark();return!!t&&-1!==t.indexOf("forceWatermark")||i},Id([z("licenseManager")],i.prototype,"licenseManager",void 0),Id([nr("eLicenseTextRef")],i.prototype,"eLicenseTextRef",void 0),Id([L],i.prototype,"postConstruct",null),i}(ir);export{z as A,W as B,ac as C,Nt as E,ui as G,Gd as L,q as M,V as O,L as P,Ho as R,Ed as W,ze as _,kd as a,Bs as b,$a as c,Pt as d,ei as e,ri as f,Yo as g,ic as h,Ke as i,nr as j,ir as k,X as l,_d as m}
|