diff --git a/bower.json b/bower.json index 36192fbd..5094421d 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "devextreme", - "version": "19.1.10-build-20034-1114", + "version": "19.1.10-build-20036-0309", "description": "A blazing-fast HTML5 Data Grid and rich libraries of high-performance touch-enabled data vizualization and UI widgets", "moduleType": [ "globals" diff --git a/css/dx.carmine.compact.css b/css/dx.carmine.compact.css index bd28f247..4ca284e7 100644 --- a/css/dx.carmine.compact.css +++ b/css/dx.carmine.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.carmine.css b/css/dx.carmine.css index a21eed49..783cefc8 100644 --- a/css/dx.carmine.css +++ b/css/dx.carmine.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.common.css b/css/dx.common.css index ecb8aa30..4d69fe5d 100644 --- a/css/dx.common.css +++ b/css/dx.common.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.contrast.compact.css b/css/dx.contrast.compact.css index 2bda6655..dce8e2ec 100644 --- a/css/dx.contrast.compact.css +++ b/css/dx.contrast.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.contrast.css b/css/dx.contrast.css index 1c75f0d8..e51e6a3b 100644 --- a/css/dx.contrast.css +++ b/css/dx.contrast.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.dark.compact.css b/css/dx.dark.compact.css index 74d2d2d3..6cc22288 100644 --- a/css/dx.dark.compact.css +++ b/css/dx.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.dark.css b/css/dx.dark.css index 2b00e817..9d6c2bea 100644 --- a/css/dx.dark.css +++ b/css/dx.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkmoon.compact.css b/css/dx.darkmoon.compact.css index fd1d503f..76fb9083 100644 --- a/css/dx.darkmoon.compact.css +++ b/css/dx.darkmoon.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkmoon.css b/css/dx.darkmoon.css index 02c2656a..f5430b18 100644 --- a/css/dx.darkmoon.css +++ b/css/dx.darkmoon.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkviolet.compact.css b/css/dx.darkviolet.compact.css index dc411bf4..11851b34 100644 --- a/css/dx.darkviolet.compact.css +++ b/css/dx.darkviolet.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkviolet.css b/css/dx.darkviolet.css index 164a0c95..1ea489eb 100644 --- a/css/dx.darkviolet.css +++ b/css/dx.darkviolet.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.greenmist.compact.css b/css/dx.greenmist.compact.css index ced3e060..92794c80 100644 --- a/css/dx.greenmist.compact.css +++ b/css/dx.greenmist.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.greenmist.css b/css/dx.greenmist.css index 8be702c5..76018254 100644 --- a/css/dx.greenmist.css +++ b/css/dx.greenmist.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.ios7.default.css b/css/dx.ios7.default.css index f55d8730..91c98472 100644 --- a/css/dx.ios7.default.css +++ b/css/dx.ios7.default.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.light.compact.css b/css/dx.light.compact.css index d7e30269..15bf93cf 100644 --- a/css/dx.light.compact.css +++ b/css/dx.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.light.css b/css/dx.light.css index 45106377..f33fc2fe 100644 --- a/css/dx.light.css +++ b/css/dx.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.dark.compact.css b/css/dx.material.blue.dark.compact.css index 231ae655..dadd2cd7 100644 --- a/css/dx.material.blue.dark.compact.css +++ b/css/dx.material.blue.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.dark.css b/css/dx.material.blue.dark.css index 4499d425..130205fb 100644 --- a/css/dx.material.blue.dark.css +++ b/css/dx.material.blue.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.light.compact.css b/css/dx.material.blue.light.compact.css index 1abaabc2..4f031d77 100644 --- a/css/dx.material.blue.light.compact.css +++ b/css/dx.material.blue.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.light.css b/css/dx.material.blue.light.css index 33add227..42e0e4a6 100644 --- a/css/dx.material.blue.light.css +++ b/css/dx.material.blue.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.dark.compact.css b/css/dx.material.lime.dark.compact.css index cc0954eb..1e45d201 100644 --- a/css/dx.material.lime.dark.compact.css +++ b/css/dx.material.lime.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.dark.css b/css/dx.material.lime.dark.css index 128ca938..7b87a2a9 100644 --- a/css/dx.material.lime.dark.css +++ b/css/dx.material.lime.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.light.compact.css b/css/dx.material.lime.light.compact.css index 02458c52..608b4aa4 100644 --- a/css/dx.material.lime.light.compact.css +++ b/css/dx.material.lime.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.light.css b/css/dx.material.lime.light.css index fa59479b..cb3ed8df 100644 --- a/css/dx.material.lime.light.css +++ b/css/dx.material.lime.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.dark.compact.css b/css/dx.material.orange.dark.compact.css index 0847e0f1..bc61b95f 100644 --- a/css/dx.material.orange.dark.compact.css +++ b/css/dx.material.orange.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.dark.css b/css/dx.material.orange.dark.css index c4ad773b..570ddf16 100644 --- a/css/dx.material.orange.dark.css +++ b/css/dx.material.orange.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.light.compact.css b/css/dx.material.orange.light.compact.css index 27643848..de8b66e2 100644 --- a/css/dx.material.orange.light.compact.css +++ b/css/dx.material.orange.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.light.css b/css/dx.material.orange.light.css index 48617715..befddc99 100644 --- a/css/dx.material.orange.light.css +++ b/css/dx.material.orange.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.dark.compact.css b/css/dx.material.purple.dark.compact.css index 0c907897..65011d21 100644 --- a/css/dx.material.purple.dark.compact.css +++ b/css/dx.material.purple.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.dark.css b/css/dx.material.purple.dark.css index c40f18bf..5c889b7f 100644 --- a/css/dx.material.purple.dark.css +++ b/css/dx.material.purple.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.light.compact.css b/css/dx.material.purple.light.compact.css index e317c4f7..826ffa0d 100644 --- a/css/dx.material.purple.light.compact.css +++ b/css/dx.material.purple.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.light.css b/css/dx.material.purple.light.css index 454a34d7..16ffc4aa 100644 --- a/css/dx.material.purple.light.css +++ b/css/dx.material.purple.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.dark.compact.css b/css/dx.material.teal.dark.compact.css index 82bbcc75..f7d4c05f 100644 --- a/css/dx.material.teal.dark.compact.css +++ b/css/dx.material.teal.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.dark.css b/css/dx.material.teal.dark.css index 5a03ca00..4210c586 100644 --- a/css/dx.material.teal.dark.css +++ b/css/dx.material.teal.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.light.compact.css b/css/dx.material.teal.light.compact.css index b5cb122b..10acddf4 100644 --- a/css/dx.material.teal.light.compact.css +++ b/css/dx.material.teal.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.light.css b/css/dx.material.teal.light.css index 92244f8e..1ed4dc72 100644 --- a/css/dx.material.teal.light.css +++ b/css/dx.material.teal.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.softblue.compact.css b/css/dx.softblue.compact.css index 444c997a..c22b0c87 100644 --- a/css/dx.softblue.compact.css +++ b/css/dx.softblue.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.softblue.css b/css/dx.softblue.css index fc6f3550..3234f0a5 100644 --- a/css/dx.softblue.css +++ b/css/dx.softblue.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.9 (build 20034-1114) -* Build date: Feb 3, 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Feb 5, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/dx.all.debug.js b/js/dx.all.debug.js index 0305e7e2..257a4de1 100644 --- a/js/dx.all.debug.js +++ b/js/dx.all.debug.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.debug.js) - * Version: 19.1.9 (build 20034-1114) - * Build date: Mon Feb 03 2020 + * Version: 19.1.9 (build 20036-0309) + * Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ @@ -92172,9 +92172,9 @@ position: options.menu.position, animation: options.menu.animation, contentTemplate: function(contentElement) { - var $menuContainer = (0, _renderer2.default)("
"); + var $menuContainer = (0, _renderer2.default)("
").appendTo(contentElement); that._createComponent($menuContainer, _tree_view2.default, options.menu); - return $menuContainer + this.repaint() }, maxHeight: function() { return (0, _utils3.getElementMaxHeightByWindow)(options.menu.position.of) diff --git a/js/dx.all.js b/js/dx.all.js index 0105bb6f..abefa807 100644 --- a/js/dx.all.js +++ b/js/dx.all.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ @@ -53,7 +53,7 @@ o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(r)}r.callBase(t)}}}() },init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),r=a&&(a.data("dxValidator")||e.find("."+o.addWidgetPrefix(q)).eq(0).data("dxValidator")),s=a&&a.closest(".dx-row").data("options"),l=s?o.getController("editing").getEditDataByKey(s.key):null,u=a&&a.closest("."+o.addWidgetPrefix(z)).find(o._getTooltipsSelector()),c=a&&a.is("td")?a:null,d=!1,h=c&&o.getController("columns").getVisibleColumns()[c.index()];return arguments.length?(u&&u.remove(),r&&(o.getController("validating").setValidator(r),void 0!==r.option("adapter").getValue()&&(n=r.validate(),n.isValid||(t=!0,d=!0))),(n&&!n.isValid||l&&"update"===l.type&&!o._editingController.isSaving())&&o._editingController.getEditMode()===Q&&(i=o._showRevertButton(a,c?a.find("."+j).first():a)),d&&c&&h&&n.brokenRule.message&&o._showValidationMessage(a,n.brokenRule.message,h.alignment||"left",i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}}()},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),r=a&&a.find("."+o.addWidgetPrefix($)+" .dx-overlay-content");if(o.callBase(e),r&&r.length&&(t=o._getRowElements(),i=o._getFreeSpaceRowElements(e),n=i.first(),n&&1===t.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,g.deferUpdate)(function(){var i=t.find(".dx-widget").first(),o=i.length&&!i.children().length;o||n.getController("validating").createValidator(e,i)})},_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(4),l=n(359),u=i(l),c=n(35),d=i(c),h=n(3),p=n(6),f=n(27),g=i(f),_=n(93),m=i(_),v="table",y="bottom-load-panel",b="table-content",x="group-space",w="content",C="dx-row",k="dx-freespace-row",S="dx-column-lines",I="dx-virtual-row",T="infinite",D="virtual",E="standard",A=25e4,O=300,B=function(e){return e.option("scrolling.mode")===D},P=function(e){return e.option("scrolling.mode")===T},R=function(e){var t=e.option("scrolling.rowRenderingMode");return t===D||t!==E&&void 0},M=function(e,t,n,i){for(var o=n?0:1,a=0;a=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()0){var n=function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())};e.resizeCompleted.add(n)}},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(B(n)||P(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;t=s*a;for(var l in r)l<=s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t,n=this,i=new Date;if(n.callBase.apply(n,arguments),t=n._dataController._dataSource,t&&e){var o=e.items?e.items.length:20,a=n._dataController.viewportSize()||20;R(n)?t._renderTime=(new Date-i)*a/o:t._renderTime=new Date-i}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+I)},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,r.hasWindow)()&&t.addClass(n.addWidgetPrefix(b)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var o=this.getController("errorHandling");i.map(function(e){var t=(0,a.default)(e);o&&o.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var i=(0,a.default)(n).data("options");if(i){var o=t.getEditDataByKey(i.key);o&&t._showErrorRow(o)}})},_updateContent:function(t,n){var i,o,a=this,r=a._findContentElement(),s=n&&n.changeType;if("append"===s||"prepend"===s){i=r.children().first();var l=a._getBodies(t);a.option("legacyRendering")||1!==l.length?l["append"===s?"appendTo":"prependTo"](i):a._getBodies(i)["append"===s?"append":"prepend"](l.children()),t.remove(),o=a._getFreeSpaceRowElements(i),e(o,k),n.removeCount&&a._removeRowsElements(i,n.removeCount,s),a._restoreErrorRow(i)}else a.callBase.apply(a,arguments);a._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow(I,t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_updateContentPosition:function(t){var n=this,i=n._dataController,o=n._rowHeight||20;if(i.viewportItemSize(o),n.option("legacyRendering")||!B(n)&&!R(n))(0,s.deferUpdate)(function(){n._updateContentPositionCore()});else{if(!t){var r=n._getRowElements(n._tableElement).toArray().map(function(e){return e.getBoundingClientRect().height});i.setContentSize(r)}var l=i.getContentOffset("begin"),u=i.getContentOffset("end"),c=n.getTableElements(),d=c.children("tbody").children("."+I);e(d,I),c.each(function(e){var t=e>0;n._isFixedTableRendering=t,n._addVirtualRow((0,a.default)(this),t,"top",l),n._addVirtualRow((0,a.default)(this),t,"bottom",u),n._isFixedTableRendering=!1}),!t&&n._updateScrollTopPosition(l)}},_updateScrollTopPosition:function(e){this._scrollTop0&&this.scrollTo({top:e,left:this._scrollLeft})},_updateContentPositionCore:function(){var e,t,n,i,o,a,r,l=this,u=l._rowHeight||20,c=l._dataController.virtualItemsCount();c&&(e=l._findContentElement(),i=e.children(),o=i.eq(0),a=i.eq(1),l._contentTableHeight=o[0].offsetHeight,l._dataController.viewportItemSize(u),l._dataController.setContentSize(l._contentTableHeight),t=l._dataController.getVirtualContentSize(),n=l._dataController.getContentOffset(),(0,s.deferRender)(function(){g.default.move(o,{left:0,top:n}),r=l._contentHeight!==t||0===t||!l._isTableLinesDisplaysCorrect(a)||!l._isColumnElementsEqual(o.find("col"),a.find("col")),r&&(l._contentHeight=t,l._renderVirtualTableContent(a,t)),l._updateScrollTopPosition(n)}))},_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+S).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,h.each)(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),r="",s=i.option("showColumnLines")?S:"",l=function(e){return""+r+""};for(n=0;n"}for(;t>A;)a+=l(A),t-=A;a+=l(t),e.addClass(i.addWidgetPrefix(v)),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix(x)),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(y));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===D,i=t===T,o=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||i),r=e._findContentElement(),s=e._findBottomLoadPanel(r);o?s||(0,a.default)("
").addClass(e.addWidgetPrefix(y)).append(e._createComponent((0,a.default)("
"),m.default).$element()).appendTo(r):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===T&&t.option("scrolling.rowRenderingMode")!==D},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():(0,a.default)((0,r.getWindow)()).outerHeight(),t._dataController.viewportSize(Math.ceil(e/t._rowHeight)))},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController,a=o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel();a&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,r.getWindow)().document).length&&(e._windowScroll=u.default.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(w)).children(":not(."+this.addWidgetPrefix(b)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:V,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new p.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t0&&(u=Math.round(u+l.outerHeight()*(n%1)),r.scrollTo({y:u}))}}})},initVirtualRows:function(){var e=this,t=R(e);if("virtual"!==e.option("scrolling.mode")&&t!==!0||t===!1||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var n=function(t){return"data"===t.rowType&&!t.isNewRow||"group"===t.rowType&&e._dataSource.isGroupItemCountable(t.data)};e._rowsScrollController=new u.default.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return B(e)?e.totalItemsCount():e._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function e(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e?e:1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){t=t||{},t.changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(e,t,i){return M(e,t,i,n)},items:function(t){var i=e.dataSource(),o=i&&i.virtualItemsCount(),a=o?o.begin:0,r=e.getRowPageSize(),s=e._rowPageIndex*r-a,l=r,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),t?u.filter(n):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n.isLoading()?O:n&&n._renderTime||0}},(!0)),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)}):(o.forEach(function(e,i){o[i]=t._items[i+n]||o[i]}),e.items=o),o.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){var a="prepend"===i;o=M(t._items,o,a,function(e,n){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)}),e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments).done(function(){t&&t.setViewportItemIndex(e.getViewportItemIndex())}):t&&t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)}};return d.default.proxyMethod(e,"virtualItemsCount"),d.default.proxyMethod(e,"getVirtualContentSize"),d.default.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!B(t)&&!R(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i0?n:0,t(n)}}function s(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),s=g;if(n||(n=t&&(0,a.default)((0,r.getWindow)())||"auto"===e.css("overflowY")&&e,s=l.default,n)){var u=o(n);s.on(n,"scroll",u),d.push(function(e){var t=i(n),o=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[o](e+t)}),c.push(n),h.push(function(){s.off(n,"scroll",u)})}}var u,c=[],d=[],h=[];n=n||e;var g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(u=n.parent();u.length;u=u.parent())s(u);return{scrollTo:function(e){(0,f.each)(d,function(t,n){n(e)})},dispose:function(){(0,f.each)(h,function(e,t){t()})}}},t.VirtualScrollController=_.default.inherit(function(){var e=function(e){var t=e._dataSource.pageSize(),n=e.option("scrolling.preventPreload");if(n)return 0;var i=e._viewportSize;if(b(e)&&!e.option("legacyRendering")&&e.option("scrolling.removeInvisiblePages")){i=0;for(var o=e._viewportSize*e._viewportItemSize,a=e.getContentOffset(),r=e._position||0,s=e.virtualItemsCount(),l=e._dataSource.totalItemsCount(),u=s.begin;u=r+o);u++){var c=e._itemSizes[u]||e._viewportItemSize;a+=c,a>=r&&i++}}return t&&i>0?Math.ceil(i/t):1},n=function(t,n){var i=t.option("scrolling.preloadEnabled"),o=e(t);return o&&(n?o=i?1:0:(i&&o++,x(t)&&o--)),o},i=function(e){var t,i,r,s=-1,l=o(e),u=e._dataSource;return l<0?s=e._pageIndex:e._cache[e._pageIndex-l]?l>=0&&e._viewportSize>=0&&(l>0&&(r=a(e)+1===u.pageCount()&&e._cache.length0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e,t=this,n=t._position,i=t.getItemSize(),o=0,a=0,r=Object.keys(t._itemSizes).concat(-1),s=0;sr?n._sizeRatio=r/a:n._sizeRatio=1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),o=e;if(!i)return 0;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(i){o&&(t?i>=r-e:i=0)return o._viewportSize&&e+o._viewportSize>=u&&!o._isVirtual?o._dataSource.hasKnownLastPage()?(i=r-1,t=u%a,i>0&&t>0&&t0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,t,n,o=this,a=o._dataSource;return b(o)||x(o)?(e=i(o),e>=0&&(t=u(o,e),t&&(n=new m.Deferred,t.done(function(){var e=o._delayDeferred;e?e.done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),a.updateLoading()))):n=a.load(),n||o._lastPageIndex===o.pageIndex()||o._dataSource.onChanged({changeType:"pageIndex"}),n||(new m.Deferred).resolve()},loadIfNeed:function(){var e=this;if((b(e)||x(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(e,t){var i,u,c,d,h=this,p=h._dataSource,f=h._cache.length;if(t&&t.changes)r(h,e,t);else if(b(h)||x(h)){if(i=o(h),i>=0&&(b(h)&&i+h._cache.length!==p.pageIndex()&&i-1!==p.pageIndex()&&(f=0,h._cache=[]),x(h)))if(0===p.pageIndex())h._cache=[];else if(p.pageIndex()Math.max(n(this)+(h.option("scrolling.preloadEnabled")?1:0),2):s(h,e,{isDelayed:!0});var g;i===p.pageIndex()+1?(c&&(g=h._cache.pop()),u="prepend",h._cache.unshift(d)):(c&&(g=h._cache.shift()),u="append",h._cache.push(d));var _=b(h)&&0===f;l(h,e,h._cache.length>1?u:void 0,_,g),h._delayDeferred=h.load().done(function(){s(h,e)&&h.load()})}else l(h,e,t)},itemsCount:function e(t){var e=0;return!t&&b(this)?(0,f.each)(this._cache,function(){e+=this.itemsCount}):e=this._dataSource.itemsCount(),e},reset:function(e){this._loadingPageIndexes={},this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"onClick"===e.option("filterRow.applyFilter")}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(1),c=n(0),d=n(8),h=n(3),p=i(h),f=n(39),g=i(f),_=n(35),m=i(_),v=n(14),y=i(v),b=n(49),x=i(b),w=n(60),C=i(w),k=n(361),S=i(k),I=n(105),T={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},D={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},E=700,A=1,O="filter-row",B="filter-range-overlay",P="filter-range-start",R="filter-range-end",M="dx-menu",V="dx-editor-with-menu",F="dx-editor-container",L="dx-editor-cell",H="dx-filter-menu",z="dx-apply-button",N="dx-highlight-outline",$="dx-focused",W="dx-cell-focus-disabled",G="dx-filter-range-content",j="dx-filter-modified",q="input:not([type='hidden'])",K=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof x.default)return i},t=function(e,t){var i="",o="",a=n(e,t),r=m.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=m.default.formatValue(a[0],r),o=m.default.formatValue(a[1],r),""!==o&&(i+=" - "+o)):(0,u.isDefined)(a)&&(i=m.default.formatValue(a,r)),i},n=function(e,t){if(t)return o(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},i=function(e,t){if(t)return o(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},a=function(e,t,o){var a=e._columnsController.columnOption(t),r=n(e,a),s=o.closest("."+e.addWidgetPrefix(B)).length,l=o.hasClass(e.addWidgetPrefix(P));return r&&Array.isArray(r)&&"between"===i(e,a)?l?r[0]:r[1]:s||void 0===r?null:r},s=function(e,t,o,a){if("between"===i(e,o)){var r=n(e,o);return a.hasClass(e.addWidgetPrefix(P))?[t,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,t]}return t},h=function(e,t){var n=""===t.value?null:t.value,i=t.container,r=e._columnsController.columnOption(t.column.index),l=a(e,r.index,i);((0,u.isDefined)(l)||(0,u.isDefined)(n))&&(e._applyFilterViewController.setHighLight(i,l!==n),e._columnsController.columnOption(r.index,o(e)?"bufferedFilterValue":"filterValue",s(e,n,r,i),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",a(i,t.index,n)); },_columnOptionChanged:function(e){var n,o,a,s,l,u,c,d=this,h=e.optionNames;return m.default.checkChanges(h,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(o=d._columnsController.getVisibleIndex(e.columnIndex),a=d._columnsController.columnOption(e.columnIndex),s=d._getCellElement(d.element().find("."+d.addWidgetPrefix(O)).index(),o)||(0,r.default)(),l=s.find("."+F).first(),(h.filterValue||h.bufferedFilterValue)&&(d._updateEditorValue(a,l),n=s.find("."+d.addWidgetPrefix(B)).data("dxOverlay"),n&&(u=n.$content().find("."+F),d._updateEditorValue(a,u.first()),d._updateEditorValue(a,u.last())),n&&n.option("visible")||d._updateFilterRangeContent(s,t(d,a))),void((h.selectedFilterOperation||h.bufferedSelectedFilterOperation)&&o>=0&&a&&(c=s.find("."+M),c.length&&(d._updateFilterOperationChooser(c,a,l),"between"===i(d,a)?d._renderFilterRangeContent(s,a):l.find("."+G).length&&(d._renderEditor(l,d._getEditorOptions(l,a)),d._hideFilterRange()))))):void d.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,a={},s=e.find(".dx-editor-container"),u=(0,r.default)("
").addClass(o.addWidgetPrefix(B)).appendTo(e);return o._createComponent(u,C.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var i,s=(0,r.default)("
").addClass(F+" "+o.addWidgetPrefix(P)).appendTo(t);return n=o._columnsController.columnOption(n.index),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,d.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),l.default.trigger(n,"focus"))}),s=(0,r.default)("
").addClass(F+" "+o.addWidgetPrefix(R)).appendTo(t),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){"tab"!==(0,d.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),l.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,r.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+F).first();l.default.trigger(t.find(q),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find("."+M).parent().addClass(V),"between"===i(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(B)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+A}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(O)),this.option("useLegacyKeyboardNavigation")||l.default.on(n,"keydown",function(e){return(0,I.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n,o,a=this,s=t.column,l=(0,r.default)(e);if(a.component.option("showColumnHeaders")&&a.setAria("describedby",s.headerId,l),a.setAria("label",y.default.format("dxDataGrid-ariaFilterCell"),l),l.addClass(L),n=(0,r.default)("
").appendTo(l),o=(0,r.default)("
").addClass(F).appendTo(n),"between"===i(a,s))a._renderFilterRangeContent(l,s);else{var u=a._getEditorOptions(o,s);a._renderEditor(o,u)}s.alignment&&l.find(q).first().css("textAlign",s.alignment),s.filterOperations&&s.filterOperations.length&&a._renderFilterOperationChooser(n,s,o)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html(" ");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t);n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,o={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},r=(0,c.extend)(o,t,{value:a(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:E,width:null,setValue:function(i,o){h(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(P))?r.placeholder=n.option("filterRow.betweenStartText"):r.placeholder=n.option("filterRow.betweenEndText")),r},_getFilterInputAccessibilityAttributes:function(e){var t=y.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,r.default)("
").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,o=e.find("."+F).first();o.empty();var a=(0,r.default)("
").addClass(G).attr("tabindex",this.option("tabIndex"));l.default.on(a,"focusin",function(){i._showFilterRange(e,n)}),a.appendTo(o),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+G);n.length&&(""===t?n.html(" "):n.text(t))},_updateFilterOperationChooser:function(t,n,a){var r,s=this,u=function(){var e=S.default.getInstance(t);e&&e.option("focusedElement",null),r&&s._focusEditor(a)};s._createComponent(t,S.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:s.getWidgetContainerClass()+" "+W+" "+H,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:T[i(s,n)||"default"],selectable:!1,items:s._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,l=i(s,n),u=!1,c=o(s),d={};if(!(t.itemData.items||r&&r===l)){if(r?(d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==l||(u="between"===r,d[c?"bufferedFilterValue":"filterValue"]=null)):(d[c?"bufferedFilterValue":"filterValue"]=null,d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),s._columnsController.columnOption(n.index,d),s._applyFilterViewController.setHighLight(a,!0),!r){var h=e(a);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?s._showFilterRange(a.closest("."+L),n):s._focusEditor(a)}},onSubmenuShown:function(){r=s._isEditorFocused(a),s.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){l.default.trigger(t,"blur"),u()},onContentReady:function(e){l.default.on(t,"blur",function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),u()})},rtlEnabled:s.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass($)||e.parents("."+$).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),l.default.trigger(e.find(q),"focus")},_renderFilterOperationChooser:function(e,t,n){var i,o=this;o.option("filterRow.showOperationChooser")&&(e.addClass(V),i=(0,r.default)("
").prependTo(e),o._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),a=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var r=e.filterOperations.filter(function(e){return(0,u.isDefined)(D[e])});n=p.default.map(r,function(n){var o=D[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:a[o],icon:T[n]}}),n.push({name:null,text:o&&o.resetOperationText,icon:T.default})}return n},optionChanged:function(e){var t=this;switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}}}}(),U={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns();return p.default.each(t,function(){var t;this.allowFiltering&&this.calculateFilterExpression&&(0,u.isDefined)(this.filterValue)&&(t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow"),e.push(t))}),m.default.combineFilters(e)}};t.ApplyFilterViewController=g.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){o(this)&&(e&&e.toggleClass(N,t)&&e.closest("."+L).toggleClass(j,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;ne)}}},{key:"_init",value:function(){c(h(t.prototype),"_init",this).call(this),this._submenus=[]}},{key:"_initActions",value:function(){var e=this;this._actions={},(0,C.each)(he,function(t,n){e._actions[n]=e._createActionByOption(n)})}},{key:"_initMarkup",value:function(){this._visibleSubmenu=null,this.$element().addClass($),c(h(t.prototype),"_initMarkup",this).call(this),this.setAria("role","menubar")}},{key:"_render",value:function(){c(h(t.prototype),"_render",this).call(this),this._initAdaptivity()}},{key:"_renderHamburgerButton",value:function(){return this._hamburger=new H.default((0,_.default)("
").addClass(ne),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}},{key:"_toggleTreeView",value:function(e){(0,k.isPlainObject)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)}},{key:"_toggleHamburgerActiveState",value:function(e){this._hamburger&&this._hamburger.$element().toggleClass(ee,e)}},{key:"_toggleAdaptiveMode",value:function(e){var t=this.$element().find(".".concat(G)),n=this.$element().find(".".concat(te));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)}},{key:"_removeAdaptivity",value:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}},{key:"_treeviewItemClickHandler",value:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}},{key:"_getAdaptiveOverlayOptions",value:function(){var e=this,t=this.option("rtlEnabled"),n=t?"right":"left";return{maxHeight:function(){return(0,I.getElementMaxHeightByWindow)(e.$element())},deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){e._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(e){return!(0,_.default)(e.target).closest(".".concat(ne)).length},position:{collision:"flipfit",at:"bottom "+n,my:"top "+n,of:this._hamburger.$element()}}}},{key:"_getTreeViewOptions",value:function(){var e=this,t={},n=["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],i=["onItemContextMenu","onSelectionChanged"];return(0,C.each)(n,function(n,i){t[i]=e.option(i)}),(0,C.each)(i,function(n,i){t[i]=function(t){e._actions[i](t)}}),(0,S.extend)(t,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(t){e._overlay.repaint(),e._actions.onSubmenuShown(t)},onItemCollapsed:function(t){e._overlay.repaint(),e._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}},{key:"_initAdaptivity",value:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,_.default)("
").addClass(te);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,_.default)("
"),N.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,_.default)("
"),M.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(te).addClass(this.option("cssClass")),this._overlay._wrapper().addClass(ie),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}},{key:"_getDelay",value:function(e){var t=this.option("showFirstSubmenuMode").delay;return(0,k.isDefined)(t)?(0,k.isObject)(t)?t[e]:t:de[e]}},{key:"_keyboardHandler",value:function(e){return!!this._visibleSubmenu||c(h(t.prototype),"_keyboardHandler",this).call(this,e)}},{key:"_renderContainer",value:function(){var e=(0,_.default)("
");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?G:W),c(h(t.prototype),"_renderContainer",this).call(this,e)}},{key:"_renderSubmenuItems",value:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n}},{key:"_createSubmenu",value:function(e,t){var n=(0,_.default)("
").addClass(U).appendTo(t),i=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),o=this._getChildNodes(e),a=this._createComponent(n,F.default,(0,S.extend)(this._getSubmenuOptions(),{_keyboardProcessor:i,_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:o,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,a),a}},{key:"_getSubmenuOptions",value:function(){var e=this,t=(0,_.default)("
"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:t,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(t){t.component.option("visible")&&e.option("focusedElement",t.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,ce),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,ue),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?ce:null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,ue):null}}},{key:"_getShowFirstSubmenuMode",value:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,k.isObject)(e)?e.name:e}},{key:"_moveMainMenuFocus",value:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter(".".concat(K)).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),o+=e===ce?-1:1,o>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",(0,w.getPublicElement)(a))}},{key:"_nestedItemOnSelectionChangedHandler",value:function(e){var t=e.addedItems.length&&e.addedItems[0],n=F.default.getInstance(e.element),i=this._actions.onSelectionChanged;i(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)}},{key:"_clearSelectionInSubmenus",value:function(e,t){var n=this,i=!arguments.length;(0,C.each)(this._submenus,function(e,o){var a=o._itemContainer(),r=!a.is(t&&t._itemContainer()),s=a.find(".".concat(n._selectedItemClass()));if(r&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),o._clearSelectedItems()}})}},{key:"_clearRootSelection",value:function(){var e=this.$element().find(".".concat(q)).first().children().children().filter(".".concat(this._selectedItemClass()));if(e.length){var t;t=this._getItemData(e),t.selected=!1,e.removeClass(this._selectedItemClass())}}},{key:"_nestedItemOnItemClickHandler",value:function(e){this._actions.onItemClick(e)}},{key:"_attachSubmenuHandlers",value:function(e,t){var n=this,i=t.getOverlayContent(),o=i.find(".".concat(Z)),a=(0,T.addNamespace)(O.default.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,C.each)(o,function(t,i){v.default.off(i,a),v.default.on(i,a,null,n._submenuMouseLeaveHandler.bind(n,e))})}},{key:"_submenuOnShowingHandler",value:function(e,t){var n=e.children(".".concat(Y));this._actions.onSubmenuShowing({rootItem:(0,w.getPublicElement)(e),submenu:t}),n.show(),e.addClass(K)}},{key:"_submenuOnShownHandler",value:function(e,t){this._actions.onSubmenuShown({rootItem:(0,w.getPublicElement)(e),submenu:t})}},{key:"_submenuOnHidingHandler",value:function(e,t,n){var i=e.children(".".concat(Y)),o=n;o.rootItem=(0,w.getPublicElement)(e),o.submenu=t,this._actions.onSubmenuHiding(o),n=o,n.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(K))}},{key:"_submenuOnHiddenHandler",value:function(e,t){this._actions.onSubmenuHidden({rootItem:(0,w.getPublicElement)(e),submenu:t})}},{key:"_submenuMouseLeaveHandler",value:function(e,t){var n=(0,_.default)(t.relatedTarget).parents(".".concat(U))[0],i=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==i&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}},{key:"_hideSubmenuAfterTimeout",value:function(){if(this._visibleSubmenu){var e=(0,_.default)(this._visibleSubmenu.$element().context).hasClass(J),t=this._visibleSubmenu.getOverlayContent().find(".".concat(J)).length,n=this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover");n||t||e||this._visibleSubmenu.hide()}}},{key:"_getSubmenuByRootElement",value:function(e){if(!e)return!1;var t=e.children(".".concat(U));return t.length&&F.default.getInstance(t)}},{key:"getSubmenuPosition",value:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o}},{key:"_renderBorderElement",value:function(e){(0,_.default)("
").appendTo(e).addClass(Y).hide()}},{key:"_itemPointerDownHandler",value:function(e){var n=(0,_.default)(e.target),i=n.closest(this._itemElements());return i.hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void c(h(t.prototype),"_itemPointerDownHandler",this).call(this,e)}},{key:"_hoverStartHandler",value:function(e){var t=(0,T.addNamespace)(E.default.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),o=(0,k.isDefined)(e.buttons)&&1===e.buttons||!(0,k.isDefined)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(v.default.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var a=this._getSubmenuByElement(n);this._clearTimeouts(),a.isOverlayVisible()||(v.default.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}},{key:"_hoverEndHandler",value:function(e){var n=this,i=this._getItemElementByEventArgs(e),o=(0,_.default)(e.relatedTarget);c(h(t.prototype),"_hoverEndHandler",this).call(this,e),this._clearTimeouts(),this._isItemDisabled(i)||o.hasClass(X)||this.option("hideSubmenuOnMouseLeave")&&!o.hasClass(q)&&(this._hideSubmenuTimer=setTimeout(function(){n._hideSubmenuAfterTimeout()},this._getDelay("hide")))}},{key:"_hideVisibleSubmenu",value:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}},{key:"_showSubmenu",value:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}},{key:"_hideSubmenu",value:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}},{key:"_itemMouseMoveHandler",value:function(e){var t=this;if(!e.pointers||!e.pointers.length){var n=(0,_.default)(e.currentTarget);(0,k.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},this._getDelay("show")))}}},{key:"_clearTimeouts",value:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}},{key:"_getSubmenuByElement",value:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,_.default)(t.itemElement),i=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===i)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu)); this._hideSubmenu(this._visibleSubmenu)}if(i)return i.isOverlayVisible()?void 0:void this._showSubmenu(n)}}},{key:"_optionChanged",value:function(e){switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),c(h(t.prototype),"_optionChanged",this).call(this,e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),c(h(t.prototype),"_optionChanged",this).call(this,e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),c(h(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_changeSubmenusOption",value:function(e,t){(0,C.each)(this._submenus,function(n,i){i.option(e,t)})}},{key:"selectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),c(h(t.prototype),"selectItem",this).call(this,e)}},{key:"unselectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),c(h(t.prototype),"selectItem",this).call(this,e)}}]),t}(P.default);(0,b.default)("dxMenu",pe),e.exports=pe},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return["!",e]}var a=n(5),r=i(a),s=n(39),l=i(s),u=n(165),c=i(u),d=n(35),h=i(d),p=n(364),f=n(14),g=i(f),_=n(19),m=i(_),v=n(20),y=n(3),b=n(1),x=n(98),w=n(0),C=n(44),k=n(32),S=i(k),I=n(87),T=n(6),D=n(105),E={month:function(e){return S.default.getMonthNames()[e-1]},quarter:function(e){return S.default.format(new Date(2e3,3*e-1),"quarter")}},A=l.default.ViewController.inherit(function(){var e=function(e,t,n){var i=c.default.getGroupInterval(t),o=h.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],h.default.isDateType(t.dataType)?o.format=E[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=h.default.formatValue(e,o),r=e+i[n],s=h.default.formatValue(r,o);return a&&s?a+" - "+s:""})),o};return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,p.updateHeaderFilterItemSelectionState)(o,h.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):(i=e.key,o=i),e=(0,b.isObject)(e)?(0,w.extend)({},e):{},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),e},getHeaderItemText:function(t,n,i,o){var a=h.default.formatValue(t,e(t,n,i));return a||(a=o.texts.emptyValue),a},_processGroupItems:function(e,t,n,i){var o,a,r=this,s=i.column,l=s.lookup,u=i.level;n=n||[],t=t||0,l&&(o=(0,v.compileGetter)(l.displayExpr),a=(0,v.compileGetter)(l.valueExpr));for(var c=0;c1?"tree":"list",remoteFiltering:r,onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");o=o||{},o.width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)})},onHidden:function(){return(0,D.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}}()),O=(0,w.extend)({},p.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,p.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}),n&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&r.default.on(e,m.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return h.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),B=(0,w.extend)({},p.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&(0,p.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&(n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,x.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),n&&r.default.on(n,m.default.name,i.createAction(function(e){var n=e.event;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),o}}),P={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(),i=e.getController("headerFilter"),o=i.getCurrentColumn();return(0,y.each)(n,function(e,n){var i;if((!o||o.index!==n.index)&&(0,p.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,y.each)(n.filterValues,function(e,t){Array.isArray(t)?i=t:(n.deserializeValue&&!h.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),i=n.createFilterExpression(t,"=","headerFilter")),i&&(i.columnIndex=n.index),a.push(i)}),a=h.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}}),h.default.combineFilters(t)}};e.exports={invertFilterExpression:o,defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:g.default.format("dxDataGrid-headerFilterEmptyValue"),ok:g.default.format("dxDataGrid-headerFilterOK"),cancel:g.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:A},views:{headerFilterView:p.HeaderFilterView},extenders:{controllers:{data:P},views:{columnHeadersView:O,headerPanel:B}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){e=e||[];for(var t=0;t0)return o[0].selector;if((0,p.isFunction)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||i&&i.width,a=e.headerFilter&&e.headerFilter.height||i&&i.height,r={width:o,height:a,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,p.isDefined)(t._popupContainer)?t._popupContainer.option(r):t._popupContainer=t._createComponent(n,m.default,r)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),i={searchEnabled:r(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){var o=(0,l.default)(i);return e.encodeHtml?o.text(t.text):o.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent((0,l.default)("
").appendTo(n),y.default,(0,g.extend)(i,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent((0,l.default)("
").appendTo(n),x.default,(0,g.extend)(i,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");t.component._selectedItemsUpdating||t.component.option("searchValue")||e.isFilterBuilder||(0===i.length&&n.length&&(!e.filterValues||e.filterValues.length<=1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])),(0,f.each)(n,function(t,n){var o,a=h.default.getIndexByKey(n,i,null)>=0,r=!!n.selected;r!==a&&(n.selected=a,e.filterValues=e.filterValues||[],o=h.default.getIndexByKey(n.value,e.filterValues,null),o>=0&&e.filterValues.splice(o,1),a^"exclude"===e.filterType&&e.filterValues.push(n.value))}),a(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,f.each)(i,function(){this.selected&&o.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,a(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass(C)}});var S=t.allowHeaderFiltering=function(e){return(0,p.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+w).remove(),S(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?w:this.callBase(e)},_renderIndicator:function(e){var t,n=e.container,i=e.indicator;return"headerFilter"===e.name&&(t=this.option("rtlEnabled"),n.children().length&&(!t&&"right"===e.columnAlignment||t&&"left"===e.columnAlignment))?void n.prepend(i):void this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.dataField||e.name}function a(e){e.forEach(function(e){var t=o(e);if(!(0,r.isDefined)(t)&&e.allowFiltering)throw new h.default.Error("E1049",e.caption)})}var r=n(1),s=n(39),l=i(s),u=n(201),c=i(u),d=n(17),h=i(d),p=n(35),f=i(p),g=n(165),_=i(g),m=n(636),v=i(m),y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],b="include",x="exclude",w=l.default.Controller.inherit(function(){var e=function(){return{filterType:b,filterValues:void 0}},t=function(e){return!(_.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var o,a=n[1],r=n[2],s=Array.isArray(r);if(!s&&!t(i))return e();switch(a){case"anyof":case"=":o=b;break;case"noneof":case"<>":o=x;break;default:return e()}return{filterType:o,filterValues:s?r:[r]}},i=function(e){var t=e.filterValue;if((0,r.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||c.default.getDefaultOperation(e),i=[o(e),n,e.filterValue];return i}return null},s=function(e){var n,i,a=e.filterValues;return a?(t(e)&&1===e.filterValues.length&&!Array.isArray(a[0])?(n=e.filterType===x?"<>":"=",i=a[0]):(n=e.filterType===x?"noneof":"anyof",i=a),[o(e),n,i]):null},l=function(e,t,i){var a=n(i,t);e.columnOption(o(t),a)},u=function(e,t,n){var i,a=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&y.indexOf(a)>=0?(a!==t.defaultFilterOperation||(0,r.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:a}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(o(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var i=c.default.getMatchedConditions(e.option("filterValue"),o(n));if(1===i.length){var a=i[0];l(t,n,a),u(t,n,a)}else(0,r.isDefined)(n.filterValues)&&l(t,n),(0,r.isDefined)(n.filterValue)&&u(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(a(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(i);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,r.isDefined)(n)?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=s(e),o=i(e);n&&c.default.addItem(n,t),o&&c.default.addItem(o,t)}),c.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[v.default.anyOf(this.component),v.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),C={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,r.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(e.option("filterPanel.filterEnabled")===!1)return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var a=e.getController("headerFilter").getCurrentColumn();a&&i&&(i=c.default.removeFieldConditionsFromFilter(i,o(a)))}var r=e.getController("filterSync").getCustomFilterOperations(),s=c.default.getFilterExpression(i,n,r,"filterBuilder");return s&&t.push(s),f.default.combineFilters(t)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?x!==e.value&&x!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},k={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!c.default.filterHasField(this.option("filterValue"),o(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}};e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:w},extenders:{controllers:{data:C},views:{columnHeadersView:k}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(15),u=i(l),c=n(5),d=i(c),h=n(18),p=i(h),f=n(9),g=i(f),_=n(0),m=n(14),v=i(m),y=n(201),b=i(y),x=n(6),w=i(x),C=n(1),k=n(143),S=i(k),I=n(46),T=i(I),D=n(248),E=n(355),A=i(E),O=n(8),B="dx-filterbuilder",P=B+"-group",R=P+"-item",M=P+"-content",V=P+"-operations",F=P+"-operation",L=B+"-action",H=L+"-icon",z="dx-icon-plus",N="dx-icon-remove",$=B+"-text",W=$+"-part",G=$+"-separator",j=G+"-empty",q=B+"-item-field",K=B+"-item-operation",U=B+"-item-value",Y=B+"-item-value-text",X=B+"-overlay",Z=B+"-operations",Q=B+"-fields",J=B+"-add-condition",ee="dx-state-active",te=B+"-menu-custom-operation",ne="filterBuilder",ie="dx-state-disabled",oe="tab",ae="enter",re="escape",se=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],le={and:"and",or:"or",notAnd:"!and",notOr:"!or"},ue=u.default.inherit(A.default),ce=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach(function(t,o){(0,a.default)("").addClass(W).text(t).appendTo(e),o!==i&&(0,a.default)("").addClass(G).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass(j).appendTo(e)})}else t?e.text(t):e.text(v.default.format("dxFilterBuilder-enterValueText"))},de=p.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.default.format("dxFilterBuilder-and"),or:v.default.format("dxFilterBuilder-or"),notAnd:v.default.format("dxFilterBuilder-notAnd"),notOr:v.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:v.default.format("dxFilterBuilder-filterOperationBetween"),equal:v.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.default.format("dxFilterBuilder-filterOperationContains"),notContains:v.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,_.extend)(!0,[],this._model);return b.default.getFilterExpression(b.default.getNormalizedFilter(t),e,this._customOperations,ne)},_getNormalizedFields:function(){return b.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,_.extend)(!0,[],this._model),t=b.default.getNormalizedFilter(e),n=b.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new ue},_initCustomOperations:function(){this._customOperations=b.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"))},_getModel:function(e){return b.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},se.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(B),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,a.default)("
").addClass(P).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find("."+M),a=b.default.getGroupCriteria(e),r=0;r").addClass(R),r=(0,a.default)("
").addClass(M),s=(0,a.default)("
").addClass(P).append(o).append(r);return null!=t&&this._createRemoveButton(function(){b.default.removeItem(t,e),s.remove(),i._updateFilter()}).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton(function(){var t=b.default.createEmptyGroup(i.option("defaultGroupOperation"));b.default.addItem(t,e),i._createGroupElement(t,e,n+1).appendTo(r),i._updateFilter()},function(){var t=i.option("fields")[0],n=b.default.createCondition(t,i._customOperations);b.default.addItem(n,e),i._createConditionElement(n,e).appendTo(r),i._updateFilter()},n).appendTo(o),s},_createButton:function(e){return(0,a.default)("
").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=b.default.getGroupMenuItem(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass(ie):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(b.default.setGroupValue(e,n.itemData.value),a.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:V}});return a.addClass($).addClass(F).attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+ee).removeClass(ee),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),o=function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}},r=i?"right":"left",s=this._createButton(e.caption);return(0,_.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:o(e.menu.onItemClick),onHiding:function(e){s.removeClass(ee)},position:{my:r+" top",at:r+" bottom",offset:"0 1",of:s,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:X+" "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,a.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");d.default.on(n,"keyup keydown",function(n){var i=(0,O.normalizeKeyName)(n);("keydown"===n.type&&i===oe||"keyup"===n.type&&(i===re||i===ae))&&(t.component.hide(),d.default.trigger(e.menu.position.of,"focus"))}),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(s,function(){n(),t._createPopupWithTreeView(e,t.$element()),s.addClass(ee)}),s},_hasValueButton:function(e){var t=b.default.getCustomOperation(this._customOperations,e[1]);return t?t.hasValue!==!1:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,o=b.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),r=b.default.getOperationFromAvailable(b.default.getOperationValue(e),o),s=this._createButtonWithMenu({caption:r.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,a.default)(e.itemElement).addClass(te)},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(o){if(r!==o.itemData){r=o.itemData,b.default.updateConditionByOperation(e,r.value,i._customOperations);var a=s.siblings().filter("."+U);i._hasValueButton(e)?(0!==a.length&&a.remove(),i._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:Z}}).addClass($).addClass(K).attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=b.default.getItems(e,a),s=b.default.getField(n.name||n.dataField,r),l=function(e,t){return a?b.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",b.default.updateConditionByOperation(t,b.default.getDefaultOperation(s),o._customOperations),u.siblings().filter("."+$).remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:Q}}).addClass($).addClass(q).attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,a.default)("
").addClass(R),o=this._getNormalizedFields(),r=b.default.getField(e[0],o);return this._createRemoveButton(function(){ -b.default.removeItem(t,e),i.remove(),n._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(o,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[b.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:le[e]}})},_createRemoveButton:function(e){var t=(0,a.default)("
").addClass(H).addClass(N).addClass(L).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,o=this.option("maxGroupLevel");return(0,C.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:v.default.format("dxFilterBuilder-addCondition"),click:t},{caption:v.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:J}}),i.addClass(H).addClass(z).addClass(L).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,a.default)("
").html(" ").addClass(Y).attr("tabindex",0).appendTo(n),r=e[2],s=b.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?b.default.getCurrentLookupValueText(t,r,function(e){ce(o,e)}):w.default.when(b.default.getCurrentValueText(t,r,s)).done(function(e){ce(o,e,s)}),i._subscribeOnClickAndEnterKey(o,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){var i=e[2]!==t;i&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=s.default.getDocument(),i=function(e){return o||a?void(a=!1):void t(e)};d.default.on(n,"keyup",i);var o=!1,a=!1,r=e.find("input");d.default.on(r,"compositionstart",function(){o=!0}),d.default.on(r,"compositionend",function(){o=!1,a=!0}),d.default.on(r,"keydown",function(e){229!==e.which&&(a=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=s.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(d.default.trigger(e.find("input"),"change"),t())};d.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||s.default.getActiveElement();return(0,a.default)(n).closest(e.children()).length||(0,a.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=s.default.getDocument();(0,C.isDefined)(this._documentKeyUpHandler)&&d.default.off(e,"keyup",this._documentKeyUpHandler),(0,C.isDefined)(this._documentClickHandler)&&d.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},s={value:""===o?null:o,filterOperation:b.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var l=this._createValueEditor(n,t,s);d.default.trigger(l.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(l,r),this._addDocumentKeyUp(l,function(t){var r=(0,O.normalizeKeyName)(t);if(r===oe){if(i._isFocusOnEditorParts(l))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&d.default.trigger(n.prev(),"focus")})}r===re&&d.default.trigger(a(),"focus"),r===ae&&i._updateConditionValue(e,o,function(){d.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,a.default)("
").addClass($).addClass(U);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,a.default)("
").attr("tabindex",0).appendTo(e),o=b.default.getCustomOperation(this._customOperations,n.filterOperation),r=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;if(r){var s=this._getTemplate(r);s.render({model:(0,_.extend)({field:t},n),container:i})}else this._editorFactory.createEditor.call(this,i,(0,_.extend)({},t,n,{parentType:ne}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,a.default)("
").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,T.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,a.default)("
");return n._createComponent(i,S.default,e.menu),i},maxHeight:function(){return(0,D.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){d.default.on(e,"dxclick",t),d.default.on(e,"keyup",function(e){(0,O.normalizeKeyName)(e)===ae&&t(e)})}});(0,g.default)("dxFilterBuilder",de),e.exports=de,e.exports.renderValueText=ce},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(0),u=n(368),c=i(u),d=n(14),h=i(d),p=n(162),f=i(p),g=n(46),_=i(g),m=n(105),v=s.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),_.default,(0,l.extend)({title:h.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,m.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,a.default)(e),n=(0,a.default)("
").appendTo((0,a.default)(e));this._filterBuilder=this._createComponent(n,c.default,(0,l.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,f.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:h.default.format("dxFilterBuilder-and"),or:h.default.format("dxFilterBuilder-or"),notAnd:h.default.format("dxFilterBuilder-notAnd"),notOr:h.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:h.default.format("dxFilterBuilder-filterOperationBetween"),equal:h.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:h.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:h.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:h.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:h.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:h.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:h.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:h.default.format("dxFilterBuilder-filterOperationContains"),notContains:h.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:h.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:v}}},function(e,t,n){e.exports=n(366)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(39),l=i(s),u=n(35),c=i(u),d=n(5),h=i(d),p=n(14),f=i(p),g=n(103),_=i(g),m=n(201),v=i(m),y=n(6),b=n(33),x=i(b),w=n(255),C="filter-panel",k=C+"-text",S=C+"-checkbox",I=C+"-clear-filter",T=C+"-left",D="filterPanel",E=l.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e,t=this,n=t.element();n.empty().addClass(t.addWidgetPrefix(C)),e=(0,a.default)("
").addClass(t.addWidgetPrefix(T)).appendTo(n),t.option("filterValue")||t._filterValueBuffer?(e.append(t._getCheckElement()).append(t._getFilterElement()).append(t._getTextElement()),n.append(t._getRemoveButtonElement())):e.append(t._getFilterElement()).append(t._getTextElement())},_getCheckElement:function(){var e=this,t=(0,a.default)("
").addClass(this.addWidgetPrefix(S));return e._createComponent(t,_.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,a.default)("
").addClass("dx-icon-filter");return h.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,a.default)("
").addClass(t.addWidgetPrefix(k)),i=t.option("filterValue");return i?(0,y.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),h.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,a.default)("
").addClass(e.addWidgetPrefix(I)).text(e.option("filterPanel.texts.clearFilter"));return h.default.on(n,"click",t),(0,w.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="[".concat(e,"] ").concat(t);return(0,r.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,n){var i=this,o=new y.Deferred,a=t&&t.customizeText;if((0,r.isDefined)(n)||a)if(!a&&e.lookup)v.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var s=Array.isArray(n)?n:c.default.getDisplayValue(e,n);(0,y.when)(v.default.getCurrentValueText(e,s,t,D)).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new y.Deferred,r=v.default.getCustomOperation(t.customOperations,o),s=v.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||x.default.captionize(r.name):null===u?v.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):v.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new y.Deferred,a=[],r=v.default.getGroupValue(e);return e.forEach(function(e){v.default.isCondition(e)?a.push(i.getConditionText(e,t)):v.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),y.when.apply(this,a).done(function(){for(var e,i=arguments.length,a=new Array(i),s=0;s").addClass(n.addWidgetPrefix(v)).appendTo(a);n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:b,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":g.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},getSearchTextEditor:function(){var e=this.element(),t=e.find("."+this.addWidgetPrefix(v)).filter(function(){return(0,s.default)(this).closest(".dx-datagrid-header-panel").is(e)});return t.length?t.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,p.getFormatOptionsByColumn)(e,"search");return(0,p.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o,a=this,r=t.parent(),l=this._getStringNormalizer(),u=l(n);return r.length?e&&(e.groupIndex>=0&&!e.showWhenGrouped?i=t:(o=a._columnsController.getVisibleIndex(e.index),i=r.children("td").eq(o).find("*"))):r=(0,s.default)("
").append(t),i=i&&i.length?i:r.find("*"),i=i.filter(function(e,t){for(var n=(0,s.default)(t).contents(),i=0;i-1}})},_highlightSearchTextCore:function(e,t){var n=this,i=(0,s.default)("").addClass(n.addWidgetPrefix(y)),o=e.text(),a=e[0],r=this._getStringNormalizer(),l=r(o).indexOf(r(t));if(l>=0)return a.textContent?a.textContent=o.substr(0,l):a.nodeValue=o.substr(0,l),e.after(i.text(o.substr(l,t.length))),e=(0,s.default)(u.default.createTextNode(o.substr(l+t.length))).insertAfter(i),n._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var r=i._findHighlightingTextNodes(n,e,a);(0,h.each)(r,function(e,n){(0,h.each)((0,s.default)(n).contents(),function(e,n){t?o((0,s.default)(n).text())===o(a)&&(0,s.default)(this).replaceWith((0,s.default)("").addClass(i.addWidgetPrefix(y)).text((0,s.default)(n).text())):i._highlightSearchTextCore((0,s.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==i;o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(39),a=i(o),r=n(641),s=i(r),l=n(13),u=n(1),c=n(7),d="pager",h=10,p=a.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(d)),n=e.option("pager")||{},i=e.getController("data"),o={maxPagesCount:h,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(t){var n=e.getController("keyboardNavigation");n&&n.executeAction("onKeyDown",t)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation")};(0,u.isDefined)(n.infoText)&&(o.infoText=n.infoText),e._createComponent(t,s.default,o)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,u.isDefined)(e._pageSizes)&&(0,l.inArray)(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,c.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:p}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(5),u=i(l),c=n(25),d=i(c),h=n(1),p=i(h),f=n(3),g=n(0),_=n(8),m=n(23),v=i(m),y=n(56),b=i(y),x=n(39),w=i(x),C=n(35),k=i(C),S=n(38),I=i(S),T=n(153),D="columns-separator",E="columns-separator-transparent",A="drag-header",O="text-content",B="drag-action",P="tracker",R="drop-highlight",M="dx-block-separator",V="dx-header-row",F="dx-widget",L="dx-drag-command-cell",H="dxDataGridResizingReordering",z=10,N=5,$=.5,W=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},G=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},j=w.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(P)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(P))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return W(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=w.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.width();t.width(e)}}}),K=q.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(D))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=W(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(G(this)||W(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=W(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(E)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(E);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=p.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),U=q.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(M).html(" ")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+M).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){I.default.stop(n,!0),I.default.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.css("display","")}t.callBase()}}),Y=w.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return(0,f.each)(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.yo.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.xN||o>N)&&(c.show(),t=s.x-u.deltaX,n=s.y-u.deltaY,c.css({left:t,top:n}),r.dockHeader(s)),a.preventDefault()}},dockHeader:function(e){var t,n,i=this,o=i._getDraggingPanelByPos(e),r=i._controller,s=i._dropOptions,l=i._dragOptions;if(o){var u=i.option("rtlEnabled"),c="columnChooser"===o.getName(),d=c?"y":"x",h=o.getName(),p="headers"===h?l.rowIndex:void 0,f=l.sourceColumn,_=o.getColumnElements(p,f&&f.ownerBand)||[],m=l.pointsByTarget=l.pointsByTarget||{},v="columnChooser"===h?[]:m[h]||r._generatePointsByColumns((0,g.extend)({},l,{targetDraggingPanel:o,columns:o.getColumns(p),columnElements:_,isVerticalOrientation:c,startColumnIndex:"headers"===h&&(0,a.default)(_[0]).index()}));if(m[h]=v,s.targetLocation=h,v.length>0){for(t=0;tn:e[d]=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=X(this),r=this.option("rtlEnabled"),s=!a&&r?0:1;return!(e.index>=s&&e.index").addClass(H).addClass(N).addClass(L).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,o=this.option("maxGroupLevel");return(0,C.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:v.default.format("dxFilterBuilder-addCondition"),click:t},{caption:v.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:J}}),i.addClass(H).addClass(z).addClass(L).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,a.default)("
").html(" ").addClass(Y).attr("tabindex",0).appendTo(n),r=e[2],s=b.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?b.default.getCurrentLookupValueText(t,r,function(e){ce(o,e)}):w.default.when(b.default.getCurrentValueText(t,r,s)).done(function(e){ce(o,e,s)}),i._subscribeOnClickAndEnterKey(o,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){var i=e[2]!==t;i&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=s.default.getDocument(),i=function(e){return o||a?void(a=!1):void t(e)};d.default.on(n,"keyup",i);var o=!1,a=!1,r=e.find("input");d.default.on(r,"compositionstart",function(){o=!0}),d.default.on(r,"compositionend",function(){o=!1,a=!0}),d.default.on(r,"keydown",function(e){229!==e.which&&(a=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=s.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(d.default.trigger(e.find("input"),"change"),t())};d.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||s.default.getActiveElement();return(0,a.default)(n).closest(e.children()).length||(0,a.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=s.default.getDocument();(0,C.isDefined)(this._documentKeyUpHandler)&&d.default.off(e,"keyup",this._documentKeyUpHandler),(0,C.isDefined)(this._documentClickHandler)&&d.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},s={value:""===o?null:o,filterOperation:b.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var l=this._createValueEditor(n,t,s);d.default.trigger(l.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(l,r),this._addDocumentKeyUp(l,function(t){var r=(0,O.normalizeKeyName)(t);if(r===oe){if(i._isFocusOnEditorParts(l))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&d.default.trigger(n.prev(),"focus")})}r===re&&d.default.trigger(a(),"focus"),r===ae&&i._updateConditionValue(e,o,function(){d.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,a.default)("
").addClass($).addClass(U);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,a.default)("
").attr("tabindex",0).appendTo(e),o=b.default.getCustomOperation(this._customOperations,n.filterOperation),r=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;if(r){var s=this._getTemplate(r);s.render({model:(0,_.extend)({field:t},n),container:i})}else this._editorFactory.createEditor.call(this,i,(0,_.extend)({},t,n,{parentType:ne}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,a.default)("
").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,T.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,a.default)("
").appendTo(t);n._createComponent(i,S.default,e.menu),this.repaint()},maxHeight:function(){return(0,D.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){d.default.on(e,"dxclick",t),d.default.on(e,"keyup",function(e){(0,O.normalizeKeyName)(e)===ae&&t(e)})}});(0,g.default)("dxFilterBuilder",de),e.exports=de,e.exports.renderValueText=ce},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(0),u=n(368),c=i(u),d=n(14),h=i(d),p=n(162),f=i(p),g=n(46),_=i(g),m=n(105),v=s.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),_.default,(0,l.extend)({title:h.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,m.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,a.default)(e),n=(0,a.default)("
").appendTo((0,a.default)(e));this._filterBuilder=this._createComponent(n,c.default,(0,l.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,f.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:h.default.format("dxFilterBuilder-and"),or:h.default.format("dxFilterBuilder-or"),notAnd:h.default.format("dxFilterBuilder-notAnd"),notOr:h.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:h.default.format("dxFilterBuilder-filterOperationBetween"),equal:h.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:h.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:h.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:h.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:h.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:h.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:h.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:h.default.format("dxFilterBuilder-filterOperationContains"),notContains:h.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:h.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:v}}},function(e,t,n){e.exports=n(366)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(39),l=i(s),u=n(35),c=i(u),d=n(5),h=i(d),p=n(14),f=i(p),g=n(103),_=i(g),m=n(201),v=i(m),y=n(6),b=n(33),x=i(b),w=n(255),C="filter-panel",k=C+"-text",S=C+"-checkbox",I=C+"-clear-filter",T=C+"-left",D="filterPanel",E=l.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e,t=this,n=t.element();n.empty().addClass(t.addWidgetPrefix(C)),e=(0,a.default)("
").addClass(t.addWidgetPrefix(T)).appendTo(n),t.option("filterValue")||t._filterValueBuffer?(e.append(t._getCheckElement()).append(t._getFilterElement()).append(t._getTextElement()),n.append(t._getRemoveButtonElement())):e.append(t._getFilterElement()).append(t._getTextElement())},_getCheckElement:function(){var e=this,t=(0,a.default)("
").addClass(this.addWidgetPrefix(S));return e._createComponent(t,_.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,a.default)("
").addClass("dx-icon-filter");return h.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,a.default)("
").addClass(t.addWidgetPrefix(k)),i=t.option("filterValue");return i?(0,y.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),h.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,a.default)("
").addClass(e.addWidgetPrefix(I)).text(e.option("filterPanel.texts.clearFilter"));return h.default.on(n,"click",t),(0,w.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="[".concat(e,"] ").concat(t);return(0,r.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,n){var i=this,o=new y.Deferred,a=t&&t.customizeText;if((0,r.isDefined)(n)||a)if(!a&&e.lookup)v.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var s=Array.isArray(n)?n:c.default.getDisplayValue(e,n);(0,y.when)(v.default.getCurrentValueText(e,s,t,D)).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new y.Deferred,r=v.default.getCustomOperation(t.customOperations,o),s=v.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||x.default.captionize(r.name):null===u?v.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):v.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new y.Deferred,a=[],r=v.default.getGroupValue(e);return e.forEach(function(e){v.default.isCondition(e)?a.push(i.getConditionText(e,t)):v.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),y.when.apply(this,a).done(function(){for(var e,i=arguments.length,a=new Array(i),s=0;s").addClass(n.addWidgetPrefix(v)).appendTo(a);n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:b,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":g.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},getSearchTextEditor:function(){var e=this.element(),t=e.find("."+this.addWidgetPrefix(v)).filter(function(){return(0,s.default)(this).closest(".dx-datagrid-header-panel").is(e)});return t.length?t.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,p.getFormatOptionsByColumn)(e,"search");return(0,p.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o,a=this,r=t.parent(),l=this._getStringNormalizer(),u=l(n);return r.length?e&&(e.groupIndex>=0&&!e.showWhenGrouped?i=t:(o=a._columnsController.getVisibleIndex(e.index),i=r.children("td").eq(o).find("*"))):r=(0,s.default)("
").append(t),i=i&&i.length?i:r.find("*"),i=i.filter(function(e,t){for(var n=(0,s.default)(t).contents(),i=0;i-1}})},_highlightSearchTextCore:function(e,t){var n=this,i=(0,s.default)("").addClass(n.addWidgetPrefix(y)),o=e.text(),a=e[0],r=this._getStringNormalizer(),l=r(o).indexOf(r(t));if(l>=0)return a.textContent?a.textContent=o.substr(0,l):a.nodeValue=o.substr(0,l),e.after(i.text(o.substr(l,t.length))),e=(0,s.default)(u.default.createTextNode(o.substr(l+t.length))).insertAfter(i),n._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var r=i._findHighlightingTextNodes(n,e,a);(0,h.each)(r,function(e,n){(0,h.each)((0,s.default)(n).contents(),function(e,n){t?o((0,s.default)(n).text())===o(a)&&(0,s.default)(this).replaceWith((0,s.default)("").addClass(i.addWidgetPrefix(y)).text((0,s.default)(n).text())):i._highlightSearchTextCore((0,s.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==i;o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(39),a=i(o),r=n(641),s=i(r),l=n(13),u=n(1),c=n(7),d="pager",h=10,p=a.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(d)),n=e.option("pager")||{},i=e.getController("data"),o={maxPagesCount:h,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(t){var n=e.getController("keyboardNavigation");n&&n.executeAction("onKeyDown",t)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation")};(0,u.isDefined)(n.infoText)&&(o.infoText=n.infoText),e._createComponent(t,s.default,o)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,u.isDefined)(e._pageSizes)&&(0,l.inArray)(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,c.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:p}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(5),u=i(l),c=n(25),d=i(c),h=n(1),p=i(h),f=n(3),g=n(0),_=n(8),m=n(23),v=i(m),y=n(56),b=i(y),x=n(39),w=i(x),C=n(35),k=i(C),S=n(38),I=i(S),T=n(153),D="columns-separator",E="columns-separator-transparent",A="drag-header",O="text-content",B="drag-action",P="tracker",R="drop-highlight",M="dx-block-separator",V="dx-header-row",F="dx-widget",L="dx-drag-command-cell",H="dxDataGridResizingReordering",z=10,N=5,$=.5,W=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},G=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},j=w.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(P)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(P))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return W(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=w.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.width();t.width(e)}}}),K=q.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(D))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=W(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(G(this)||W(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=W(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(E)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(E);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=p.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),U=q.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(M).html(" ")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+M).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){I.default.stop(n,!0),I.default.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.css("display","")}t.callBase()}}),Y=w.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return(0,f.each)(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.yo.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.xN||o>N)&&(c.show(),t=s.x-u.deltaX,n=s.y-u.deltaY,c.css({left:t,top:n}),r.dockHeader(s)),a.preventDefault()}},dockHeader:function(e){var t,n,i=this,o=i._getDraggingPanelByPos(e),r=i._controller,s=i._dropOptions,l=i._dragOptions;if(o){var u=i.option("rtlEnabled"),c="columnChooser"===o.getName(),d=c?"y":"x",h=o.getName(),p="headers"===h?l.rowIndex:void 0,f=l.sourceColumn,_=o.getColumnElements(p,f&&f.ownerBand)||[],m=l.pointsByTarget=l.pointsByTarget||{},v="columnChooser"===h?[]:m[h]||r._generatePointsByColumns((0,g.extend)({},l,{targetDraggingPanel:o,columns:o.getColumns(p),columnElements:_,isVerticalOrientation:c,startColumnIndex:"headers"===h&&(0,a.default)(_[0]).index()}));if(m[h]=v,s.targetLocation=h,v.length>0){for(t=0;tn:e[d]=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=X(this),r=this.option("rtlEnabled"),s=!a&&r?0:1;return!(e.index>=s&&e.index0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,_.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,_.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,z),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=k.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this._moveSeparatorHandler),this._startResizingHandler&&u.default.off(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this._startResizingHandler),this._endResizingHandler&&(u.default.off(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler),u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this,this._moveSeparatorHandler),u.default.on(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this,this._startResizingHandler),u.default.on(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return p.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&h.columnOption(e.index,"visibleWidth",n),e&&h.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&h.columnOption(e.index,"visibleWidth",null),e&&h.columnOption(e.index,"width",n))}}function i(e,n){var i,o=n.every(function(e){return e.width});return o&&(i=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0),i>100&&(e=e/i*100)),e}var o,a,r,s,l,u,c=!1,d=this._resizingInfo,h=this._columnsController,f=h.getVisibleColumns(),g=this._columnsSeparatorView.width(),_=this._rowsView.contentWidth(),m=X(this),v=m&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");if(o=e-d.startPosX,m&&this.option("rtlEnabled")&&(o=-o),u=d.currentColumnWidth+o,r=f[d.currentColumnIndex],s=r&&r.minWidth||g,c=u>=s,m&&(a=d.nextColumnWidth-o,l=f[d.nextColumnIndex],s=l&&l.minWidth||g,c=c&&a>=s),c){if(h.beginUpdate(),u=Math.floor(u),_=i(_,f),n(r,u,_,v),m)a=Math.floor(a),n(l,a,_,v);else{var y=this._columnHeadersView.getColumnWidths();y[d.currentColumnIndex]=u;var b=y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth();if(!b){var x=k.default.getLastResizableColumnIndex(f);x>=0&&h.columnOption(f[x].index,"visibleWidth","auto")}for(var w=0;w=0,s=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o))};t._columnHeadersView.element().find("."+V).toggleClass(t.addWidgetPrefix(R),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?s():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+V).removeClass(this.addWidgetPrefix(R))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:K,blockSeparatorView:U,draggingHeaderView:Y,trackerView:j},controllers:{draggingHeader:J,tablePosition:Q,columnsResizer:Z},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&e.hasClass(H)}function a(e){return e&&e.hasClass(N)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return!e||e.hasClass($)||e.hasClass(W)}function l(e){return e.length&&"TD"===e[0].tagName}function u(e,t){return!e._isRowEditMode()&&t&&t.hasClass(j)}function c(e){return(0,b.isDefined)(e)&&e.length>0}var d=n(2),h=i(d),p=n(10),f=i(p),g=n(5),_=i(g),m=n(39),v=i(m),y=n(35),b=n(1),x=n(13),w=n(65),C=n(3),k=n(159),S=i(k),I=n(8),T=i(I),D=n(23),E=i(D),A=n(4),O=n(105),B=n(26),P=i(B),R="rowsview",M="edit-form",V="group-footer",F="dx-row",L="dx-data-row",H="dx-group-row",z="edit-form-item",N="dx-master-detail-row",$="dx-freespace-row",W="dx-virtual-row",G="dx-master-detail-cell",j="dx-editor-cell",q="dx-edit-row",K="dx-dropdowneditor-overlay",U="dx-command-expand",Y="dx-command-select",X="[class^=dx-command]",Z="dx-cell-focus-disabled",Q="dxDateBox",J="dx-state-focused",ee="dx-widget",te="delete",ne="input:not([type='hidden']), textarea, a, select, [tabindex]",ie=["rowsView"],oe="row",ae="form",re="batch",se="cell",le="row",ue="cell",ce=v.default.ViewController.inherit({_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return e===oe||e===ae},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return e===se||e===re},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(ne).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,y.focusAndSelectElement)(this,n)}},_updateFocus:function(e){var t=this;setTimeout(function(){var n=t._getFocusedCell(),i=t._editingController.isEditing();if(n&&(!t._isMasterDetailCell(n)||t._isRowEditMode())){if(t._hasSkipRow(n.parent())){var o=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=t._getNextCell(o)}if(c(n)){if(e&&!i&&t._checkCellOverlapped(n))return;n.is("td")||n.hasClass(t.addWidgetPrefix(z))?(t.getController("editorFactory").focus()?t._focus(n):t._isCellEditMode()?t._focus(n,t._isHiddenFocus):t._isHiddenFocus&&t._focus(n,!0),i&&t._focusInteractiveElement.bind(t)(n)):_.default.trigger(n,"focus")}}})},_checkCellOverlapped:function(e){var t=e.offset(),n=this.component.getScrollable&&this.component.getScrollable(),i=!1;return n&&(t.left<0?i=e.width()+t.left<=0:t.top<0&&(i=e.height()+t.top<=0)),i},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,b.isDefined)(t)?t:0)},_isEventInCurrentGrid:function(e){return(0,y.isElementInCurrentGrid)(this,(0,h.default)(e.target))},_clickHandler:function(e){var t=e.event,n=(0,h.default)(t.currentTarget),i=t.data,o=i.view&&i.view.element(),a=n.parent(),r=a.hasClass(q);this._isEventInCurrentGrid(t)&&this._isCellValid(n,!0)?(n=this._isInsideEditForm(n)?(0,h.default)(t.target):n,this._focusView(i.view,i.viewIndex),(0,h.default)(o).removeClass(J),a.hasClass($)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):this._isMasterDetailCell(n)||r?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)):n.is("td")&&this._resetFocusedCell()},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},_clickTargetCellHandler:function(e,t){var n,i=this.getView("rowsView").getCellIndex(t),o=this._columnsController.getVisibleColumns()[i],a=this._isCellEditMode();if(this.setCellFocusType(),n=this._fireFocusChangingEvents(e,t,!0),t=n.$newCellElement,n.cancel)this.setRowFocusType(),this.setFocusedRowIndex(n.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&a&&this._editingController.closeEditCell();else{if(n.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(n.rowIndexChanged&&(t=this._getFocusedCell()),n.isHighlighted||a||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&a&&o&&o.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var r=e&&(0,h.default)(e.target),s=r&&r.not(t).is(ne),l=!n.isHighlighted||s;this._focus(t,l,s)}}},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],(0,C.each)(ie,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),(0,C.each)(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(o){var a=i.element(),r=!o||"refresh"===o.changeType,s=e._focusedView&&e._focusedView.name===i.name,l=!1,u=o&&("append"===o.changeType||"prepend"===o.changeType),c=".".concat(F," > td, .").concat(F),d=(0,h.default)(":focus"),p=!d.length||d.closest(a).length||P.default.msie&&d.is("body");_.default.off(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),t),_.default.on(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),c,{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,a,e._keyDownHandler),e._setRowsViewAttributes(a),s&&p&&(l=e._isNeedFocus?!u:e._isHiddenFocus&&r,l&&e._updateFocus(!0))})})},_setRowsViewAttributes:function(e){var t=!this._dataController.getVisibleRows().length;if(t){var n=this.option("tabindex")||0;e.attr("tabindex",n)}},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new S.default({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return(0,h.default)(this._getCell(this._focusedCellPosition))},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getCellPosition:function(e,t){var n,i,o=this,a=c(e)&&e.closest("tr");if(c(a)&&o._focusedView)return n=o._getRowIndex(a),i=o._focusedView.getCellIndex(e,n),t&&(i="previous"===t?i-1:i+1,i=o._applyColumnIndexBoundaries(i)),{rowIndex:n,columnIndex:i}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,b.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e,t){if(c(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController.getVisibleColumns(),s=n.getCellIndex(e),l=o[s],u=this._getVisibleColumnCount(),d=this._editingController,h=a(i),p=l&&l.showWhenGrouped,f=l&&!e.hasClass(U)&&r(i),g=function(){return!h&&l&&(!(0,b.isDefined)(l.groupIndex)||p&&f)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(u>s&&g()){var _=this._dataController.items(),m=n.getRowIndex(i),v=_[m],y=d&&this._isCellEditMode()&&d.isEditing(),x=d&&d.isEditRow(m),w=x||y;return l.command?this._isLegacyNavigation()?!w&&"expand"===l.command:y?!l.command:x?"select"!==l.command:!w:(!y||!v||"data"===v.rowType)&&(!w||l.allowEditing||t)}}},_isCellByPositionValid:function(e){var t=(0,h.default)(this._getCell(e));return this._isCellValid(t)},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!s(i)){var a,r=this._getFocusedCell(),u=this._focusedView,c=u&&u.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,u&&this.setFocusedRowIndex(this._getRowIndex(i))):l(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(_.default.one(a,"blur",function(){return a.removeClass(Z)}),n||(this._applyTabIndexToElement(a),_.default.trigger(a,"focus")),t?(c&&c.find("."+Z+"[tabIndex]").not(a).removeClass(Z).removeAttr("tabIndex"),a.addClass(Z)):(c&&c.find("."+Z+":not(."+G+")").removeClass(Z),this.getController("editorFactory").focus(a)))}},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(V))||a(e)&&!e.hasClass(this.addWidgetPrefix(M)))},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(U)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.default.trigger((0,h.default)(t),"change"),this._editingController.closeEditCell(),e.preventDefault())},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex],r=this._editingController.allowUpdating({row:o})&&a&&a.allowEditing;r&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n,i=this,o=this.getVisibleRowIndex(),a=this._focusedCellPosition.columnIndex;if(this._fastEditingStarted=(0,b.isDefined)(t),n=this._editingController.editCell(o,a),this._isFastEditingStarted())if(n===!0)i._editingCellHandler(e,t);else if(n&&n.done){var r=t!==te?t:"";n.done(function(){return i._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=T.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=T.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=T.default.createEvent(e,{type:"input",target:n.get(0)});_.default.trigger(n,i),i.isDefaultPrevented()||(_.default.trigger(n,o),o.isDefaultPrevented()||setTimeout(function(){n.val(t);var e=n.closest(".".concat(ee));_.default.off(e,"focusout"),_.default.one(e,"focusout",function(){_.default.trigger(n,"change")}),_.default.trigger(n,a)}))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted(),l=(!t||s)&&r(o);if(l){this.setCellFocusType(),s&&this._editingController.closeEditCell();var u=this._getNextCell(a);c(u)&&this._arrowKeysHandlerFocusCell(i,u),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n,i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted(),c=(!t||u)&&o&&!a(o);c&&(u&&this._editingController.closeEditCell(),this._navigateNextCell(r,e.keyName)||this._isVirtualScrolling()&&s&&l&&!l.isLoading()&&(n=o.outerHeight(),i=this._focusedCellPosition.rowIndex-1,this._scrollBy(-n,i,r)),r&&r.preventDefault())},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t))&&(this._focus(t,!i.isHighlighted),!0)},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(o=this._fireFocusedCellChanging(e,t,i),o.cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,h.default)(this._getCell(a)))),!o.cancel&&n&&t&&(o=this._fireFocusedRowChanging(e,t.parent()),o.cancel?e&&e.preventDefault():(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,h.default)(this._getCell(a)),o.$newCellElement.length||(o.$newCellElement=t),o},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){var a=function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))};o.on("scroll",a)}o.scrollBy({left:0,top:e})},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,b.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),n=o._fireFocusedRowChanging(t,i),!n.cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),_.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t0},_isMasterDetailCell:function(e){var t=(0,h.default)(e).closest("."+G),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,h.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,h.default)(r).addClass(J),n&&a&&!o)if((0,h.default)(a).hasClass(this.addWidgetPrefix(R))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i,o,a=this.option("editing"),r=e.originalEvent.target,s=this._getCellElementFromTarget(r),l=e.originalEvent,u=this._getElementType(r);if(s.is(X))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(s),s=this._getNextCellByTabKey(l,t,u),!s||this._handleTabKeyOnMasterDetailCell(s,t))return!1;if(n=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(s)],i=this._dataController.items()[this._getRowIndex(s&&s.parent())],n.allowEditing){var c=!i||"data"===i.rowType;o=a.allowUpdating?c:i&&i.isNewRow}return o||this._editingController.closeEditCell(),this._focusCell(s)&&(!this._isRowEditMode()&&o?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(s,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!u(this,a)&&s.length&&o!==s.get(0))l=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,h.default)(o).hasClass(F)&&this._updateFocusedCellPosition((0,h.default)(o).children().first()),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,h.default)(o))&&(o=this.getFirstValidCellInRow((0,h.default)(o)),n=this._getElementType(o))),a=this._getNextCellByTabKey(i,t,n),!a)return!1;if(a=this._checkNewLineTransition(i,a),!a)return!1;this._focusCell(a),u(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i); if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},getFirstValidCellInRow:function(e,t){var n,i,o=this,a=e.find("> td");t=t||0;for(var r=t;r=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a,r,s=n||this._focusedCellPosition,l=this.isRowFocusType(),u=l||(0,x.inArray)(e,["next","previous"])>-1,d="previous"===e?this._isFirstValidCell(s):this._isLastValidCell(s);if(this._focusedView&&s){if(o=this._getNewPositionByCode(s,t,e),a=(0,h.default)(this._getCell(o)),c(a)&&!this._isCellValid(a)&&this._isCellInRow(o,u)&&!d&&(a=l?this.getFirstValidCellInRow(a.parent(),o.columnIndex):this._getNextCell(e,"cell",o)),r=c(a)&&a.parent(),this._hasSkipRow(r)){if(i=this._getRowIndex(r),this._isLastRow(i))return null;a=this._getNextCell(e,"row",{columnIndex:s.columnIndex,rowIndex:i})}return c(a)?a:null}return null},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this.component.getVisibleRows(),a=o&&o[n],r=this._isLastRow(n);return!!r&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n td")},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=(0,h.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(R)).length,o=n.closest("."+K).length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),_.default.on(f.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.update(),n&&n.scrollToElement(e,t)},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=l((0,h.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,h.default)(e),i)},_focusElement:function(e,t){var n=this._getFocusedViewByElement(e),i=this.isRowFocusType(),a={};!n||l(e)&&!this._isCellValid(e)||(this._focusView(n.view,n.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,(l(e)||o(e))&&(this.setCellFocusType(),a=this._fireFocusChangingEvents(null,e,!1,t),e=a.$newCellElement,i&&!a.isHighlighted&&this.setRowFocusType()),this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){var t=function(t){return e&&e.closest(t._$element).length};return this._getFocusedViewByCondition(t)},_getFocusedViewByCondition:function(e){var t;return(0,C.each)(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},isRowFocusType:function(){return this.focusType===le},isCellFocusType:function(){return this.focusType===ue},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=le)},setCellFocusType:function(){this.focusType=ue},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!(0,b.isDefined)(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){var t=function(t){return t.name===e};return this._getFocusedViewByCondition(t)},optionChanged:function(e){var t=this;switch(e.name){case"useKeyboard":case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:t.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),_.default.off(f.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,h.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i.getController("editing").isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n,i=this.option("focusedRowIndex");this.option("focusedRowEnabled")&&(i>=0&&(n=this.getController("data"),t=i>=0&&n.getVisibleRows()[i-n.getRowIndexOffset()]),this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:i,row:t}))},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useKeyboard:!0,useLegacyKeyboardNavigation:!1,keyboardNavigation:{enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:ce},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex();t===e.rowIndex&&this.getController("keyboardNavigation").setCellFocusType(),this.callBase.apply(this,arguments)},renderFocusState:function(){var e,t=this._dataController,n=this.option("focusedRowIndex")||0,i=this.element();i&&!(0,w.focused)(i)&&i.attr("tabIndex",null),(n<0||n>=t.getVisibleRows().length)&&(n=0),e=this.getCellElements(n),this.option("useKeyboard")&&e&&this.updateFocusElementTabIndex(e)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex");(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex"),a=i.getController("keyboardNavigation"),r=a._focusedView,s=e?e.length:-1;if(a._focusedView=i,s>0){s<=t&&(t=s-1);for(var u=t;u=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(128),u=i(l),c=n(14),d=i(c),h=n(35),p=i(h),f=n(1),g=n(0),_=n(3),m=n(26),v=i(m),y=n(27),b=i(y),x="content",w="content-fixed",C="dx-master-detail-cell",k="dx-first-cell",S="dx-last-cell",I="dx-state-hover",T="dx-col-fixed",D="dx-fixed-columns",E="dx-pointer-events-target",A="dx-pointer-events-none",O="transparent",B="dx-group-row",P=function(e){var t=-1;return(0,_.each)(e,function(e,n){if(n.command===O)return t=e,!1}),t},R=function(e,t,n){var i,o=0;if(e&&t&&n)for(i=0;i=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n,i=this,o=i.getFixedColumns();if(i._isFixedColumns=!!o.length,n=i.callBase(e),i._isFixedColumns){i._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;i._correctColumnIndicesForFixedColumns(o,a),t=i._createTable(o),i._renderRows(t,(0,g.extend)({},e,{columns:o})),i._updateContent(t,a),r&&(a.columnIndices=r),i._isFixedTableRendering=!1}else i._fixedTableElement&&i._fixedTableElement.parent().remove(),i._fixedTableElement=null;return n},_renderRow:function(e,t){var n,i,o=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&o&&o.length){i=0,n=t.row.cells||[],o=o.slice(),t.row.cells=o;for(var a=0;a0&&(o=P(r._columnsController.getFixedColumns()),i=n.length-at?r.eq(n).css("height",e):e=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(I,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(I,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n,i=this,o=i.addWidgetPrefix(x),r=i.element(),l=v.default.mozilla?60:0;return r&&i._isFixedTableRendering?(e=r.children("."+o),t=i.getScrollable(),!e.length&&t&&(e=(0,a.default)("
").addClass(o),s.default.on(e,"scroll",function(e){clearTimeout(i._fixedScrollTimeout),i._fixedScrollTimeout=setTimeout(function(){n=(0,a.default)(e.target).scrollTop(),t.scrollTo({y:n})},l)}),s.default.on(e,u.default.name,function(e){if(t&&(n=t.scrollTop(),t.scrollTo({y:n-e.delta}),t.scrollTop()>0&&t.scrollTop()+t.clientHeight()0&&e.css("visibility","hidden"),i=r),this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){var n;return this._isFixedTableRendering?(n=P(t),e>n&&(e+=t[n].colspan-1),e):this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(D,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t,n=this._fixedTableElement,i=0;return n&&e.is("td")&&e.closest(n).length?(t=this.getFixedColumns(),(0,_.each)(t,function(t,n){return t!==e[0].cellIndex&&(n.colspan?void(i+=n.colspan):void i++)}),i):this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus(),n&&i.focus(n))}},setScrollerSpacing:function(e,t){var n,i=this,o={marginBottom:0},a=i.element().children("."+this.addWidgetPrefix(w));a.length&&i._fixedTableElement&&(a.css(o),i._fixedTableElement.css(o),o[i.option("rtlEnabled")?"marginLeft":"marginRight"]=e,o.marginBottom=t,n=i._scrollable&&i._scrollable.option("useNative"),(n?a:i._fixedTableElement).css(o))},_getElasticScrollTop:function(e){var t,n,i,o=0,a=this.getScrollbarWidth(!0);return e.scrollOffset.top<0?o=-e.scrollOffset.top:e.reachedBottom&&(n=this._findContentElement(),i=e.component._container(),t=Math.max(n.height()+a-i.height(),0),o=t-e.scrollOffset.top),o},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?b.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),L=M;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:d.default.format("dxDataGrid-columnFixingFix"),unfix:d.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:d.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:d.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:V,rowsView:F,footerView:L},controllers:function(){var e=function(e,t,n){var i=P(t),o=e.length-t.length;return(0,_.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n,i=t.columns,o=t.targetDraggingPanel;return o&&"headers"===o.getName()&&o.isFixedColumns()&&t.sourceColumn.fixed?(t.rowIndex||(t.columnElements=o.getFixedColumnElements(0)),t.columns=o.getFixedColumns(t.rowIndex),n=this.callBase(t),e(i,t.columns,n),n):this.callBase(t)},_pointCreated:function(e,t,n,i){var o,a=this.callBase.apply(this,arguments),r=this._columnHeadersView.getTransparentColumnElement();return!a&&"headers"===n&&r&&r.length?(o=r.get(0).getBoundingClientRect(),i&&i.fixed?"right"===i.fixedPosition?e.xo.left:e.xo.right):a}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=p.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i,o,a="widget"===this.option("columnResizingMode");return e.index>0&&e.index=i.right)?this.callBase(this._pointsByFixedColumns,t,n):this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,l.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,l.default)("").addClass(o.addWidgetPrefix(W)),c.default.on(n,h.default.addNamespace(f.default.name,F),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):I.default.setEmptyText(i)}var s=n(2),l=i(s),u=n(5),c=i(u),d=n(8),h=i(d),p=n(19),f=i(p),g=n(1),_=i(g),m=n(26),v=i(m),y=n(40),b=i(y),x=n(39),w=i(x),C=n(142),k=i(C),S=n(35),I=i(S),T=n(31),D=i(T),E=n(7),A=n(4),O=n(3),B=n(0),P="columnHeadersView",R="rowsView",M="footerView",V=[P,R,M],F="dxDataGridAdaptivity",L="adaptiveHidden",H="detailAdaptive",z="dx-field-item-content",N="dx-item-modified",$="hidden-column",W="adaptive-more",G="dx-command-adaptive",j="dx-command-adaptive-hidden",q="dx-adaptive-detail-row",K="dx-adaptive-item-text",U="dx-master-detail-cell",Y="dx-last-data-cell",X="adaptive",Z="batch",Q="row",J="form",ee="popup",te="revert-tooltip",ne=w.default.ViewController.inherit({_isRowEditMode:function(){var e=this._getEditMode();return e===Q},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&_.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i,o=this,a=e.column,r=o.createAction(function(){ c.default.trigger(n,f.default.name)}),s=a.calculateCellValue(t.data),l=I.default.getDisplayValue(a,s,t.data,t.rowType),u=I.default.formatValue(l,a),d=this._editingController.isCellOrBatchEditMode();if(a.allowEditing&&o.option("useKeyboard")&&(n.attr("tabIndex",o.option("tabIndex")),d&&(c.default.off(n,"focus",r),c.default.on(n,"focus",r))),a.cellTemplate){var h=(0,B.extend)({},t,{value:s,displayValue:l,text:u,column:a});o._rowsView.renderTemplate(n,a.cellTemplate,h,!!n.closest((0,E.getWindow)().document).length)}else i=n.get(0),a.encodeHtml?i.textContent=u:i.innerHTML=u,n.addClass(K),_.default.isDefined(u)&&""!==u||n.html(" "),o._isRowEditMode()||o._isItemModified(e,t)&&n.addClass(N);o.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var s=(0,l.default)(r),u=n._columnsController.getVisibleIndex(i.visibleIndex),c=(0,B.extend)({},t),d=function(){var r=n._isItemEdited(e);c.value=t.row.values[u],r||i.showEditorAlways?o.renderFormEditTemplate(c,e,a.component,s,!r):(c.column=i,c.columnIndex=u,n._renderFormViewTemplate(e,c,s))};d(),c.watch&&c.watch(function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}},function(){s.contents().remove(),s.removeClass(K),d()})}},_isVisibleColumnsValid:function(e){var t=function(){var t,n,i=0;for(t=0;t0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;_.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{var c=this.option("columnAutoWidth");a=c||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex=0&&(a=c.eq(o).children().eq(r),this._isCellValid(a)&&a.addClass(t)))}},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var e=this._getEditMode();return e===J||e===ee},hideRedundantColumns:function(e,t,n){var i,a=this;if(this._hiddenColumns=[],a._isVisibleColumnsValid(t)&&n.length){var r,s,l,u,c,d=0,h=a.component.$element(),p=h.width()-a._getCommandColumnsWidth(),f=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),g=f(),_=g.length;do{for(c=!1,d=0,r=a._calculatePercentWidths(e,t),s=r<100&&0!==r,l=0;lh.width()){var w=n.pop(),C=a._columnsController.getVisibleIndex(w.index);p+=a._calculateColumnWidth(w,p,g,s),a._addCssClassToColumn(a.addWidgetPrefix($),C),e[C]=L,this._hiddenColumns.push(w),g=f()}}while(c&&g.length>1&&n.length);_===g.length&&a._hideAdaptiveColumn(e,t)}else a._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){var t,n,i;for(n=0;n").appendTo(i),k.default,(0,B.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+z)}}))},hasAdaptiveDetailRowExpanded:function(){return _.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&_.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(_.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:X,command:X,visible:!0,adaptiveHidden:!0,cssClass:G,alignment:"center",width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,A.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:ne},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===H&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,l.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===H&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(q),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass(Y)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+z);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==H&&t.column.visibleWidth===L&&e.addClass(this.addWidgetPrefix($))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===H?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,l.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+G).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===L?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===L||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===L;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex-1]||{},r=a.visibleWidth===L;return o||r}},editing:{_isRowEditMode:function(){return this.getEditMode()===Q},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==Q&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+z),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=I.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()&&this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===H?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t,n=this._dataController._adaptiveExpandedKey;n&&(t=I.default.getIndexByKey(n,this._dataController.items()),t>-1&&e.unshift(t))},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===Z&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;v.default.msie&&parseInt(v.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout(function(){e.getView("rowsView")._updateScrollable()}))},_correctColumnWidths:function(e,t){var n,i=this._adaptiveColumnsController,o=this.option("columnAutoWidth"),a=i.getHiddenColumns(),r=i.updateHidingQueue(this._columnsController.getColumns());return i.hideRedundantColumns(e,t,r),n=i.getHiddenColumns(),i.hasAdaptiveDetailRowExpanded()&&a.length!==n.length&&i.updateForm(n),!n.length&&i.collapseAdaptiveDetailRow(),o&&r.length&&!n.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n,i,o=this,a=t.changeType;return e=o.callBase.apply(o,arguments),"loadingAll"!==a&&_.default.isDefined(o._adaptiveExpandedKey)?(i=I.default.getIndexByKey(o._adaptiveExpandedKey,e),i>=0?(n=e[i],e.splice(i+1,0,{visible:!0,rowType:H,key:n.key,data:n.data,modifiedValues:n.modifiedValues,isNewRow:n.isNewRow,values:n.values})):"refresh"===a&&(o._adaptiveExpandedKey=void 0),e):e},_getRowIndicesForExpand:function(e){var t,n=this.callBase.apply(this,arguments);return this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)&&(t=n[n.length-1],n.push(t+1)),n},adaptiveExpandedKey:function(e){return _.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=I.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=I.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++;var a=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-a,o-a]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(te)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix($))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(e)&&e&&t){var n=function t(){c.default.off(e,"focus",t),c.default.trigger(e,"dxclick")};c.default.on(e,"focus",n)}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(377),a=50,r={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}},s={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},l=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||a})},t={init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=en:t._endPageIndex1&&"number"==typeof t){for(var w=[],C=0;C=a)break}r[n]=c}}function o(e,t,n){var o=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&in&&(s=n-i),s!==u&&(l=(0,a.extend)({},l,{colspan:s})),o[r].push(l);else if(i>n)return!1});for(var r=0;r1||a.rowspan>1){for(var s=n._cloneItem(a),l=1;l=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,h.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data"),n=this.getController("keyboardNavigation")._isVirtualScrolling();if(n){var i=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),a=o?o.begin:-1,r=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(r/t.pageSize());return a<=e&&s>i}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this._navigateToRow(e,!0)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return!n||"data"===n.rowType||"group"===n.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=this.getController("data"),o=this.option("focusedRowIndex"),a=new h.Deferred;if(n.option("skipFocusedRowNavigation",!t),void 0===e||!i.dataSource())return a.reject().promise();var r=n._getFocusedRowIndexByKey(e),s=i.getDataSource().paginate();return!s||o>=0&&o===r?n._navigateTo(e,a,t):i.getPageIndexByKey(e).done(function(o){return o<0?void a.resolve(-1):void(o===i.pageIndex()?i.reload().done(function(){n.isRowFocused(e)?a.resolve(n._getFocusedRowIndexByKey(e)):n._navigateToVisibleRow(e,a,t)}).fail(a.reject):i.pageIndex(o).done(function(){n._navigateTo(e,a,t)}).fail(a.reject))}).always(function(){return n.option("skipFocusedRowNavigation",!1)}).fail(a.reject),a.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),o="virtual"===this.option("scrolling.rowRenderingMode");o&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var i=this.getView("rowsView"),o=this.getController("data").getRowIndexByKey(e),a=i.getRow(o);i._scrollToElement(a)}},_navigateToVirtualRow:function(e,t,n){var i=this,o=this.getController("data"),a=o._rowsScrollController,r=(0,u.getIndexByKey)(e,o.items(!0)),s=i.getView("rowsView").getScrollable();if(a&&s&&r>=0){var l=r+o.getRowIndexOffset()-o.getRowIndexDelta(),c=a.getItemOffset(l);if(n){var d=function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)};i.component.on("contentReady",d)}s.scrollTo({y:c})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e),a=this.getView("rowsView");a._scrollToElement(a.getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if(void 0!==t)return(0,c.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,o=i._dataController.getRowIndexByKey(e.focusedRowKey),r=i.getView("rowsView");(0,l.each)(r.getTableElements(),function(r,s){n=(0,a.default)(s),i._clearPreviousFocusedRow(n,o);var l=0===r;t=i._prepareFocusedRow(e.items[o],n,o),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n=this,i=function(t,i){var o=(0,a.default)(i).closest(".".concat(n.addWidgetPrefix(g)));return e.is(o)},o=e.find(f).filter(i);if(o.removeClass(p).removeClass(_).removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==t){var r=(0,a.default)(this.getView("rowsView").getRowElement(0));r.removeClass(_).removeAttr("tabIndex")}},_prepareFocusedRow:function(e,t,n){var i,o=this.option("tabindex")||0,r=this.getView("rowsView");return!e||"data"!==e.rowType&&"group"!==e.rowType||(i=(0,a.default)(r._getRowElements(t).eq(n)),i.addClass(p).attr("tabindex",o),r._scrollToElement(i)),i}}}()),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,d.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,d.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e); diff --git a/js/dx.aspnet.mvc.js b/js/dx.aspnet.mvc.js index aae8145d..89d4b1ce 100644 --- a/js/dx.aspnet.mvc.js +++ b/js/dx.aspnet.mvc.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.aspnet.mvc.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.cs.js b/js/localization/dx.messages.cs.js index 7d90d076..4ce11d91 100644 --- a/js/localization/dx.messages.cs.js +++ b/js/localization/dx.messages.cs.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.cs.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.de.js b/js/localization/dx.messages.de.js index b7870485..0b6a2a0a 100644 --- a/js/localization/dx.messages.de.js +++ b/js/localization/dx.messages.de.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.de.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.el.js b/js/localization/dx.messages.el.js index d4df814e..0cc2290b 100644 --- a/js/localization/dx.messages.el.js +++ b/js/localization/dx.messages.el.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.el.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.en.js b/js/localization/dx.messages.en.js index 8064dbed..ac60fc52 100644 --- a/js/localization/dx.messages.en.js +++ b/js/localization/dx.messages.en.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.en.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.es.js b/js/localization/dx.messages.es.js index 044bba1f..da3bfd97 100644 --- a/js/localization/dx.messages.es.js +++ b/js/localization/dx.messages.es.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.es.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.fi.js b/js/localization/dx.messages.fi.js index 2ff8491d..f4eea6db 100644 --- a/js/localization/dx.messages.fi.js +++ b/js/localization/dx.messages.fi.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.fi.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.fr.js b/js/localization/dx.messages.fr.js index 05ee4285..f30a69d4 100644 --- a/js/localization/dx.messages.fr.js +++ b/js/localization/dx.messages.fr.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.fr.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.hu.js b/js/localization/dx.messages.hu.js index 6d3e695a..6c2a6995 100644 --- a/js/localization/dx.messages.hu.js +++ b/js/localization/dx.messages.hu.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.hu.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.it.js b/js/localization/dx.messages.it.js index 3de8a74a..f5ca2c22 100644 --- a/js/localization/dx.messages.it.js +++ b/js/localization/dx.messages.it.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.it.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.ja.js b/js/localization/dx.messages.ja.js index 7be54ccb..23004e39 100644 --- a/js/localization/dx.messages.ja.js +++ b/js/localization/dx.messages.ja.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.ja.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.nl.js b/js/localization/dx.messages.nl.js index 1a2683b2..d5438d17 100644 --- a/js/localization/dx.messages.nl.js +++ b/js/localization/dx.messages.nl.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.nl.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.pt.js b/js/localization/dx.messages.pt.js index 6263deda..b9278347 100644 --- a/js/localization/dx.messages.pt.js +++ b/js/localization/dx.messages.pt.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.pt.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.ru.js b/js/localization/dx.messages.ru.js index 25fcca75..550e8232 100644 --- a/js/localization/dx.messages.ru.js +++ b/js/localization/dx.messages.ru.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.ru.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.sl.js b/js/localization/dx.messages.sl.js index 9d6f5fae..df443bc9 100644 --- a/js/localization/dx.messages.sl.js +++ b/js/localization/dx.messages.sl.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.sl.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.sv.js b/js/localization/dx.messages.sv.js index 7b74041c..454ff754 100644 --- a/js/localization/dx.messages.sv.js +++ b/js/localization/dx.messages.sv.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.sv.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.tr.js b/js/localization/dx.messages.tr.js index 508c3d11..05a66858 100644 --- a/js/localization/dx.messages.tr.js +++ b/js/localization/dx.messages.tr.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.tr.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.vi.js b/js/localization/dx.messages.vi.js index 19fee1c0..414c7d9e 100644 --- a/js/localization/dx.messages.vi.js +++ b/js/localization/dx.messages.vi.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.vi.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.zh.js b/js/localization/dx.messages.zh.js index a1e58dba..db2b3fdc 100644 --- a/js/localization/dx.messages.zh.js +++ b/js/localization/dx.messages.zh.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.zh.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.debug.js b/js/vectormap-utils/dx.vectormaputils.debug.js index a71dd276..ad64682f 100644 --- a/js/vectormap-utils/dx.vectormaputils.debug.js +++ b/js/vectormap-utils/dx.vectormaputils.debug.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.debug.js) - * Version: 19.1.9 (build 20034-1114) - * Build date: Mon Feb 03 2020 + * Version: 19.1.9 (build 20036-0309) + * Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.js b/js/vectormap-utils/dx.vectormaputils.js index ae8aeb40..2eebed3e 100644 --- a/js/vectormap-utils/dx.vectormaputils.js +++ b/js/vectormap-utils/dx.vectormaputils.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.js) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.node.js b/js/vectormap-utils/dx.vectormaputils.node.js index 347e4c88..184bc8b4 100644 --- a/js/vectormap-utils/dx.vectormaputils.node.js +++ b/js/vectormap-utils/dx.vectormaputils.node.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.node.js) - * Version: 19.1.9 (build 20034-1114) - * Build date: Mon Feb 03 2020 + * Version: 19.1.9 (build 20036-0309) + * Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/ts/dx.all.d.ts b/ts/dx.all.d.ts index 0642a6e7..9f124daf 100644 --- a/ts/dx.all.d.ts +++ b/ts/dx.all.d.ts @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.d.ts) -* Version: 19.1.9 (build 20034-1114) -* Build date: Mon Feb 03 2020 +* Version: 19.1.9 (build 20036-0309) +* Build date: Wed Feb 05 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/