").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/