@progress/kendo-react-data-tools
Advanced tools
Comparing version 3.7.0 to 3.8.0-dev.201911181349
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@progress/kendo-react-intl"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-react-intl","prop-types"],t):"object"==typeof exports?exports.KendoReactDataTools=t(require("react"),require("@progress/kendo-react-intl"),require("prop-types")):e.KendoReactDataTools=t(e.React,e.KendoReactIntl,e.PropTypes)}(window,(function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(0);t.createFilterCell=function(e){return function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.filterChange=function(e){r.props.onFilterChange&&r.props.onFilterChange(e)},r.inputChange=function(t){var n=t.target.value,o=r.props,a=o.filter,s=void 0===a?[]:a,l=o.field,c=void 0===l?"":l,p=r.findCellFilter(),u=p?s.map((function(e){return e.field===c?i({},p,{value:n}):e})):s.concat([i({},e.emptyFilter,{value:n,field:c})]);r.filterChange({filter:u,field:c,syntheticEvent:t.syntheticEvent})},r.operatorChange=function(t){var n=t.target.value.operator,o=r.props,a=o.filter,s=void 0===a?[]:a,l=o.field,c=void 0===l?"":l,p=r.findCellFilter(),u=p?s.map((function(e){return e.field===c?i({},p,{operator:n}):e})):s.concat([i({},e.emptyFilter,{field:c,operator:n})]);r.filterChange({filter:u,field:c,syntheticEvent:t.syntheticEvent})},r.clearButtonClick=function(e){var t=r.props,n=t.filter,o=void 0===n?[]:n,i=t.field,a=void 0===i?"":i;r.filterChange({filter:o.filter((function(e){return e.field!==a})),field:a,syntheticEvent:e})},r.findCellFilter=function(){var e=r.props,t=e.filter,n=void 0===t?[]:t,o=e.field;return n.find((function(e){return e.field===o}))},r}return o(r,t),r.prototype.render=function(){var t=this.props,r=t.clearButtonTitle,n=void 0===r?"":r,o=t.operators,s=void 0===o?[]:o,l=this.findCellFilter()||i({},e.emptyFilter,{operator:""}),c=l.operator,p=l.value,u={value:s.find((function(e){return e.operator===c}))||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:s,textField:"text",popupSettings:{width:""},components:this.props.components};return a.createElement("div",{className:"k-filtercell"},a.createElement("div",{className:"k-filtercell-wrapper"},e.inputComponent({value:p,onChange:this.inputChange,components:this.props.components}),a.createElement("div",{className:"k-filtercell-operator"},e.operatorComponent(u,this.props),a.createElement("button",{className:null!==p&&""!==p||c?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:n,type:"button",onClick:this.clearButtonClick},a.createElement("span",{className:"k-icon k-i-filter-clear"})))))},r}(a.Component)}},function(e,r){e.exports=t},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.messages=((n={})[t.pagerItemPerPage]="items per page",n[t.pagerInfo]="{0} - {1} of {2} items",n[t.pagerFirstPage]="Go to the first page",n[t.pagerPreviousPage]="Go to the previous page",n[t.pagerNextPage]="Go to the next page",n[t.pagerLastPage]="Go to the last page",n[t.pagerPage]="Page",n[t.pagerOf]="of",n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.HeaderCell=function(e){var t=e.onClick?{href:"#",onClick:e.onClick}:{},r=o.createElement("a",n({className:"k-link"},t),e.title||e.field||" ",e.children);return e.render?e.render.call(void 0,r,e):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var o=r(8);t.Pager=o.Pager,n(r(13)),n(r(18)),n(r(25))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(9),s=r(10),l=r(11),c=r(12),p=r(3),u=r(2),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changePage=function(e,r){t.props.onPageChange&&e>0&&e<=t.totalPages&&t.props.onPageChange({target:t,skip:(e-1)*t.props.take,take:t.props.take,syntheticEvent:r,nativeEvent:r.nativeEvent})},t}return o(t,e),t.prototype.render=function(){var e,t,r,n,o=this.props,a=o.skip,f=o.take,d=o.total,h=o.pageSizes,g=o.className,v=u.provideLocalizationService(this),y=u.provideIntlService(this),m=Math.floor(a/f)+1,_="numeric"===this.props.type?i.createElement(s.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:m,pageChange:this.changePage}):i.createElement(l.PagerInput,{currentPage:m,totalPages:this.totalPages,pageChange:this.changePage});this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===m?" k-state-disabled":""),v.toLanguageString(p.pagerFirstPage,p.messages[p.pagerFirstPage]),"k-icon k-i-arrow-end-left"),t=this.renderButton(m-1,"k-link k-pager-nav"+(1===m?" k-state-disabled":""),v.toLanguageString(p.pagerPreviousPage,p.messages[p.pagerPreviousPage]),"k-icon k-i-arrow-60-left"),r=this.renderButton(m+1,"k-link k-pager-nav"+(m===this.totalPages?" k-state-disabled":""),v.toLanguageString(p.pagerNextPage,p.messages[p.pagerNextPage]),"k-icon k-i-arrow-60-right"),n=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(m===this.totalPages?" k-state-disabled":""),v.toLanguageString(p.pagerLastPage,p.messages[p.pagerLastPage]),"k-icon k-i-arrow-end-right"));var b=void 0!==h&&i.createElement(c.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:f,pageSizes:h}),P=this.props.info&&i.createElement("div",{className:"k-pager-info k-label"},y.format(v.toLanguageString(p.pagerInfo,p.messages[p.pagerInfo]),[Math.min(a+1,d),Math.min(a+f,d),d]));return i.createElement("div",{className:"k-pager-wrap k-floatwrap k-widget"+(g?" "+g:""),style:this.props.style},e,t,_,r,n,b,P)},t.prototype.renderButton=function(e,t,r,n){var o=this;return i.createElement("a",{onClick:function(t){t.preventDefault(),o.changePage(e,t)},href:"#",className:t,title:r},i.createElement("span",{className:n,"aria-label":r}))},Object.defineProperty(t.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),t.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func},t.defaultProps={buttonCount:10,info:!0,type:"numeric"},t}(i.Component);t.Pager=f,u.registerForIntl(f),u.registerForLocalization(f)},function(e,t){e.exports=r},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePageChange=function(e,r){e.preventDefault(),t.props.pageChange(r,e)},t}return o(t,e),t.prototype.render=function(){for(var e=this,t=this.start>1&&this.renderDots(this.start-1),r=this.end<this.props.totalPages&&this.renderDots(this.end+1),n=[],o=this.start;o<=this.end;o++)n.push(o);var a=n.map((function(t){return i.createElement("li",{key:t},i.createElement("a",{href:"#",onClick:function(r){return e.handlePageChange(r,t)},className:e.props.currentPage===t?"k-link k-state-selected":"k-link"},t))}));return i.createElement("ul",{className:"k-pager-numbers k-reset"},t,a,r)},t.prototype.renderDots=function(e){var t=this;return i.createElement("li",null,i.createElement("a",{className:"k-link",onClick:function(r){return t.handlePageChange(r,e)},href:"#"},"..."))},Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(e>t){var r=e%t;return 0===r?e-t+1:e-r+1}return 1},enumerable:!0,configurable:!0}),t}(i.Component);t.PagerNumericButtons=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(2),s=r(3),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._text=void 0,t.onChange=function(e){var r=t._text=e.target.value.replace(/\D/g,"");t.forceUpdate(),r&&t.props.pageChange(parseInt(r,10),e)},t.value=function(){var e=void 0===t._text?t.props.currentPage.toString():t._text;return t._text=void 0,e},t}return o(t,e),t.prototype.render=function(){var e=this,t=a.provideLocalizationService(this);return i.createElement("span",{className:"k-pager-input k-label"},t.toLanguageString(s.pagerPage,s.messages[s.pagerPage]),i.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),t.toLanguageString(s.pagerOf,s.messages[s.pagerOf])+" "+this.props.totalPages)},t}(i.Component);t.PagerInput=l,a.registerForLocalization(l)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(2),s=r(3),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.pageSizes.slice();return 0===t.filter((function(t){return t===e.props.pageSize})).length&&t.unshift(this.props.pageSize),i.createElement("label",{className:"k-pager-sizes k-label"},i.createElement("select",{value:this.props.pageSize,onChange:this.pageSizeChange},t.map((function(e,t){return i.createElement("option",{key:t,value:e}," ",e," ")}))),a.provideLocalizationService(this).toLanguageString(s.pagerItemPerPage,s.messages[s.pagerItemPerPage]))},t}(i.Component);t.PagerPageSizes=l,a.registerForLocalization(l)},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(1)),n(r(14)),n(r(15)),n(r(16)),n(r(17))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),l=r(1),c={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,t){var r=t.filter,n=void 0===r?[]:r,o=t.field,l=n.find((function(e){return e.field===o})),c=e.components.DropDownList,p=a(e,["components"]);return c&&s.createElement(c,i({},p,{value:e.data.find((function(e){return e.operator===(l?l.value:"")})),onChange:function(e){if(t.onFilterChange){var r=e.target.value.operator;if(""!==r){var a=l?n.map((function(e){return e.field===o?i({},l,{value:r}):e})):n.concat([{value:r,field:o,operator:"eq"}]);t.onFilterChange.call(void 0,{filter:a,field:o,syntheticEvent:e.syntheticEvent})}else l&&t.onFilterChange.call(void 0,{filter:n.filter((function(e){return e.field!==l.field})),field:o,syntheticEvent:e.syntheticEvent})}}}))}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(l.createFilterCell(c));t.BooleanFilter=p},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),l={inputComponent:function(e){var t=e.components.DatePicker,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(1).createFilterCell(l));t.DateFilter=c},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),l={inputComponent:function(e){var t=e.components.NumericTextBox,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(1).createFilterCell(l));t.NumericFilter=c},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),l={inputComponent:function(e){var t=e.components.Input,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&s.createElement(t,i({},r))},emptyFilter:{operator:"contains",value:""}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(1).createFilterCell(l));t.TextFilter=c},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(4)),n(r(19)),n(r(20)),n(r(5)),n(r(22)),n(r(23)),n(r(6)),n(r(24))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(e,t,r){var n=r?"k-grid-header-sticky":"";return e.some((function(e){return e.field===t}))&&(n+=" k-sorted"),n};t.FilterRow=function(e){var t=e.columns,r=e.filter,i=e.filterChange,a=e.sort,s=void 0===a?[]:a;return n.createElement("tr",{className:"k-filter-row"},t.map((function(e,t){return n.createElement("th",{key:t,className:o(s,e.field,e.locked)},e.filter&&n.createElement(e.filter,{field:e.field,filter:r,onFilterChange:i}))})))}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(21),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.divStyle={},t.element=null,t.headerWrap=null,t.table=null,t}return o(t,e),t.prototype.componentDidMount=function(){if(this.element){this.setState({});var e=(new a.BrowserSupportService).scrollbarWidth,t="rtl"===getComputedStyle(this.element).direction||!1,r=Math.max(0,e-1)+"px",n=t?0:r,o=t?r:0;this.divStyle={padding:"0 "+n+" 0 "+o}}},t.prototype.setScrollLeft=function(e){this.headerWrap&&(this.headerWrap.scrollLeft=e)},t.prototype.setWidth=function(e){this.table&&(this.table.style.width=e+"px")},t.prototype.render=function(){var e=this;return this.props.staticHeaders?i.createElement("div",{ref:function(t){e.element=t},className:"k-grid-header",style:this.divStyle},i.createElement("div",{ref:function(t){e.headerWrap=t},className:"k-grid-header-wrap"},i.createElement("table",{ref:function(t){e.table=t}},i.createElement("colgroup",{ref:function(t){e.props.columnResize.colGroupHeader=t}},this.props.cols),i.createElement("thead",null,this.props.headerRow,this.props.filterRow)))):i.createElement("thead",{className:"k-grid-header"},this.props.headerRow,this.props.filterRow)},t}(i.Component);t.Header=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=n();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}();t.BrowserSupportService=o},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(0),s=r(5),l=r(6),c={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},p={none:"none",asc:"ascending",desc:"descending"},u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellClick=function(e,r){if(e.preventDefault(),t.props.sortChange){var n=l.normalize(t.props.sortable||!1,r.sortable||!1),o=n.allowUnsort,i=n.mode,a=(t.props.sort||[]).filter((function(e){return e.field===r.field}))[0],s=c[o][a&&a.dir||""],p="single"===i?[]:(t.props.sort||[]).filter((function(e){return e.field!==r.field}));""!==s&&r.field&&p.push({field:r.field,dir:s}),t.props.sortChange(e,p,r.field)}},t.cells=function(e){return e.map((function(e,r){var n=t.props.columns[e],o=t.props.sortable&&n.sortable,l=t.props.sort?t.props.sort.findIndex((function(e){return e.field===n.field})):-1,c=l>=0&&t.props.sort[l].dir||"none",u={field:n.field,onClick:o&&function(e){return t.cellClick(e,n)}||void 0,selectionChange:t.props.selectionChange,title:n.title,selectionValue:n.headerSelectionValue,render:t.props.cellRender,children:t.sortIcon(l)},f=(n.kFirst?"k-first ":"")+t.cellClass(n.field,n.headerClassName,n.locked),d=void 0!==n.locked?{left:n.left,right:n.right,borderRightWidth:n.rightBorder?"1px":""}:{};return a.createElement("th",{"aria-sort":p[c],key:r,colSpan:n.colSpan,rowSpan:n.rowSpan,className:f,style:d},n.headerCell&&a.createElement(n.headerCell,i({},u))||a.createElement(s.HeaderCell,i({},u)))}))},t}return o(t,e),t.prototype.cellClass=function(e,t,r){var n="k-header"+(r?" k-grid-header-sticky":"")+(t?" "+t:"");return this.props.sort&&this.props.sort.some((function(t){return t.field===e}))&&(n+=" k-sorted"),n},t.prototype.sortIcon=function(e){return this.props.sort?e>=0&&[a.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),this.props.sort.length>1&&a.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},t.prototype.render=function(){var e=this;return this.props.columnsMap.map((function(t,r){return a.createElement("tr",{key:r},e.cells(t))}))},t}(a.Component);t.HeaderRow=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.HeaderSelectionCell=function(e){var t=[n.createElement("input",{key:0,checked:e.selectionValue,id:e.inputId,type:"checkbox",className:"k-checkbox",onChange:function(t){return e.selectionChange({field:e.field,syntheticEvent:t})}}),n.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:e.inputId})];return e.render?e.render.call(void 0,t,e):t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4);t.mapColumns=function(e){for(var t=[[]],r=0,n=e.length-1;n>=0;n--)e[n].colSpan=e[n].colSpan||1,-1!==e[n].parentIndex&&(e[e[n].parentIndex].colSpan=(e[e[n].parentIndex].colSpan||0)+e[n].colSpan);var o=0;e.forEach((function(e){o=Math.max(o,e.depth)}));var i=1;e.forEach((function(e,n){t[e.depth]=t[e.depth]||[];var a=!1;0===t[e.depth].length&&(i<=1?i=1+(e.children.length>0?0:o-e.depth):(i--,a=!0)),e.rowSpan=1+(e.children.length>0?0:o-e.depth),e.kFirst=a,e.index=t[e.depth].length,t[e.depth].push(n),e.locked&&0===e.children.length&&(e.left=r,r+=e.width?parseFloat(e.width.toString()):0)}));for(var a=!1,s=0,l=e.length-1;l>=0;l--){var c=e[l];c.locked&&0===c.children.length&&(c.right=s,s+=c.width?parseFloat(c.width.toString()):0,c.rightBorder=!a),a=c.locked||!1}return t},t.readColumns=function e(t,r,o){void 0===o&&(o=0);var i=[];if(!t)return[];if(t&&void 0===t.length&&(t=[t]),t.forEach((function(t,a){t=t.props?t.props:t;var s=r[a]||null,l=e(t.children,s&&s.children||[],o+1);i.push(Object.assign({depth:o},n.ColumnDefaultProps,l.length?{cell:function(){return null},filter:function(){return null}}:{},s?{width:s.width,orderIndex:s.orderIndex}:{},t,{declarationIndex:i.length,children:l,rowSpan:0,colSpan:0}))})),i.sort((function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)})),0===o){var a=[],s=function(e,t){return e.forEach((function(e){e.parentIndex=t,s(e.children,a.push(e)-1)}))};return s(i,-1),a}return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(26))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,r=e.columns,n=void 0===r?[]:r,o=e.tableViewPortWidth,i=e.scrollLeft,a=n.map((function(){return 1})),s=n.map((function(){return!1}));if(t){for(var l=n.map((function(e){return parseFloat((e.width||"").toString())||10})),c=0,p=0,u=0;u<n.length;u++)if(!n[u].locked){var f=u<l.length-1?l[u+1]:0;if(!(p+l[u]+f<i)){a[u]=1+c;break}s[u]=!0,c++,p+=l[u]}var d=l.reduce((function(e,t){return e+t}),0);c=0,p=0;for(u=n.length-1;u>=0;u--)if(!n[u].locked){if(!(p+2*l[u]<d-o-i)){a[u]=Math.max(a[u],1+c);break}s[u]=!0,c++,p+=l[u]}}return{colSpans:a,hiddenColumns:s}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactDataTools=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):e.KendoReactDataTools=t(e.React,e.PropTypes,e.KendoReactIntl)}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0);t.createFilterCell=function(e){return function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.filterChange=function(e){n.props.onFilterChange&&n.props.onFilterChange(e)},n.inputChange=function(t){var r=t.target.value,o=n.props,a=o.filter,s=void 0===a?[]:a,u=o.field,l=void 0===u?"":u,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===l?i({},c,{value:r}):e})):s.concat([i({},e.emptyFilter,{value:r,field:l})]);n.filterChange({filter:p,field:l,syntheticEvent:t.syntheticEvent})},n.operatorChange=function(t){var r=t.target.value.operator,o=n.props,a=o.filter,s=void 0===a?[]:a,u=o.field,l=void 0===u?"":u,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===l?i({},c,{operator:r}):e})):s.concat([i({},e.emptyFilter,{field:l,operator:r})]);n.filterChange({filter:p,field:l,syntheticEvent:t.syntheticEvent})},n.clearButtonClick=function(e){var t=n.props,r=t.filter,o=void 0===r?[]:r,i=t.field,a=void 0===i?"":i;n.filterChange({filter:o.filter((function(e){return e.field!==a})),field:a,syntheticEvent:e})},n.findCellFilter=function(){var e=n.props,t=e.filter,r=void 0===t?[]:t,o=e.field;return r.find((function(e){return e.field===o}))},n}return o(n,t),n.prototype.render=function(){var t=this.props,n=t.clearButtonTitle,r=void 0===n?"":n,o=t.operators,s=void 0===o?[]:o,u=this.findCellFilter()||i({},e.emptyFilter,{operator:""}),l=u.operator,c=u.value,p={value:s.find((function(e){return e.operator===l}))||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:s,textField:"text",popupSettings:{width:""},components:this.props.components};return a.createElement("div",{className:"k-filtercell"},a.createElement("div",{className:"k-filtercell-wrapper"},e.inputComponent({value:c,onChange:this.inputChange,components:this.props.components}),a.createElement("div",{className:"k-filtercell-operator"},e.operatorComponent(p,this.props),a.createElement("button",{className:null!==c&&""!==c||l?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:r,type:"button",onClick:this.clearButtonClick},a.createElement("span",{className:"k-icon k-i-filter-clear"})))))},n}(a.Component)}},function(e,t){e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.messages=((r={})[t.pagerItemPerPage]="items per page",r[t.pagerInfo]="{0} - {1} of {2} items",r[t.pagerFirstPage]="Go to the first page",r[t.pagerPreviousPage]="Go to the previous page",r[t.pagerNextPage]="Go to the next page",r[t.pagerLastPage]="Go to the last page",r[t.pagerPage]="Page",r[t.pagerOf]="of",r)},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(6)),r(n(21)),r(n(22)),r(n(8)),r(n(23)),r(n(26)),r(n(9)),r(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.mapColumns=function(e){for(var t=[[]],n=0,r=e.length-1;r>=0;r--)e[r].colSpan=e[r].colSpan||1,-1!==e[r].parentIndex&&(e[e[r].parentIndex].colSpan=(e[e[r].parentIndex].colSpan||0)+e[r].colSpan);var o=0;e.forEach((function(e){o=Math.max(o,e.depth)}));var i=1;e.forEach((function(e,r){t[e.depth]=t[e.depth]||[];var a=!1;0===t[e.depth].length&&(i<=1?i=1+(e.children.length>0?0:o-e.depth):(i--,a=!0)),e.rowSpan=1+(e.children.length>0?0:o-e.depth),e.kFirst=a,e.index=t[e.depth].length,t[e.depth].push(r),e.locked&&0===e.children.length&&(e.left=n,n+=e.width?parseFloat(e.width.toString()):0)}));for(var a=!1,s=0,u=e.length-1;u>=0;u--){var l=e[u];l.locked&&0===l.children.length&&(l.right=s,s+=l.width?parseFloat(l.width.toString()):0,l.rightBorder=!a),a=l.locked||!1}return t},t.readColumns=function e(t,n){void 0===n&&(n=0);var o=[];if(!t||!t.length)return[];if(t.forEach((function(t){var i=e(t.children||[],n+1);o.push(Object.assign({},{depth:n},r.ColumnDefaultProps,t,{declarationIndex:o.length,children:i,rowSpan:0,colSpan:0}))})),o.sort((function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)})),0===n){var i=[],a=function(e,t){return e.forEach((function(e){e.parentIndex=t,a(e.children,i.push(e)-1)}))};return a(o,-1),i}return o},t.isRtl=function(e){return Boolean(e&&"rtl"===getComputedStyle(e).direction)},t.getIndex=function(e,t){if(!t||!e||!e.originalEvent)return-1;for(var n=document.elementFromPoint(e.clientX,e.originalEvent.clientY);n&&n.parentElement!==t;)n=n.parentElement;for(var r=t.children,o=0;o<r.length;o++)if(r[o]===n)return o;return-1}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.HeaderCell=function(e){var t=e.onClick?{href:"#",onClick:e.onClick}:{},n=o.createElement("a",r({className:"k-link"},t),e.title||e.field||" ",e.children);return e.render?e.render.call(void 0,n,e):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,t,n){"use strict";n.r(t);var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},i=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},a={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},s=function(){},u=function(){},l=n(0),c=n(1),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return p(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,i=e.value,a=e.placeholder,s=e.valid,u=e.style,c=o({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(i||a),"k-state-invalid":!s&&void 0!==s,"k-rtl":"rtl"===this.props.dir},r);return l.createElement("span",{className:c,onFocus:this.handleFocus,onBlur:this.handleBlur,style:u,dir:this.props.dir},this.props.children,t?n?l.createElement("label",{htmlFor:n,className:"k-label"},t):l.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:c.string,id:c.string,value:c.string,placeholder:c.string,valid:c.bool},t}(l.Component);function d(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var h=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),g=function(e,t){return function(n){return t(e(n))}},m=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},v=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},_=function(e){return e.preventDefault()},b=/touch/;function P(e){return e.type.match(b)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var C=function(e){var t=this,n=e.press;void 0===n&&(n=y);var r=e.drag;void 0===r&&(r=y);var o=e.release;void 0===o&&(o=y);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=g(P,n),this._dragHandler=g(P,r),this._releaseHandler=g(P,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(m(document,"mousemove",t._mousemove),m(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){v(document,"mousemove",t._mousemove),v(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(m(document,"pointermove",t._pointermove),m(document,"pointerup",t._pointerup),m(document,"pointercancel",t._pointerup),m(document,"contextmenu",_),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(v(document,"pointermove",t._pointermove),v(document,"pointerup",t._pointerup),v(document,"pointercancel",t._pointerup),v(document,"contextmenu",_),t._releaseHandler(e))}};C.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},C.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},C.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?m(e,"pointerdown",this._pointerdown):(m(e,"mousedown",this._mousedown),this._mouseOnly||(m(e,"touchstart",this._touchstart),m(e,"touchmove",this._touchmove),m(e,"touchend",this._touchend)))},C.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return v(e,"pointerdown",this._pointerdown),v(document,"pointermove",this._pointermove),v(document,"pointerup",this._pointerup),v(document,"contextmenu",_),void v(document,"pointercancel",this._pointerup);v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend))},C.prototype._usePointers=function(){return!this._mouseOnly&&C.supportPointerEvent()},C.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},C.default=C;var O=C,k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new O({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return k(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return l.cloneElement(l.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:c.element.isRequired},t}(l.Component),w=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},j=function(e,t){var n=l.useState(t),r=n[0],o=n[1];return l.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&o(t)}}),[]),r},x=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,S={};function D(e){if(S[e])return S[e];var t=[];return e.replace(x,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),S[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},S[e]}S.undefined=function(){};var M={};function F(e){if(M[e])return M[e];var t=[];return e.replace(x,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),M[e]=function(e,n){for(var r=e,o=t.length-1,i=0;i<o&&r;i++)r=r[t[i]]=r[t[i]]||{};r[t[o]]=n},M[e]}M.undefined=function(e){return e};var N=function(e){return e?new Date(e.getTime()):null};function R(e){var t={};return I(e,t),t}function I(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=z(r,t[n])}}function z(e,t){if(Array.isArray(e))return H(e);if(e instanceof Date)return N(e);if(e&&"object"==typeof e){var n=t||{};return I(e,n),n}return e}function H(e){return e.map((function(e){return z(e,void 0)}))}n.d(t,"classNames",(function(){return o})),n.d(t,"guid",(function(){return i})),n.d(t,"Keys",(function(){return a})),n.d(t,"noop",(function(){return s})),n.d(t,"FloatingLabel",(function(){return f})),n.d(t,"FormComponent",(function(){return u})),n.d(t,"dispatchEvent",(function(){return d})),n.d(t,"canUseDOM",(function(){return h})),n.d(t,"Draggable",(function(){return E})),n.d(t,"focusFirstFocusableChild",(function(){return w})),n.d(t,"useRtl",(function(){return j})),n.d(t,"getter",(function(){return D})),n.d(t,"setter",(function(){return F})),n.d(t,"clone",(function(){return R})),n.d(t,"cloneArray",(function(){return H})),n.d(t,"cloneValue",(function(){return z})),n.d(t,"cloneObject",(function(){return I})),n.d(t,"cloneDate",(function(){return N}))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(12);t.Pager=o.Pager,r(n(16)),r(n(5)),r(n(27));var i=n(29);t.ColumnResize=i.ColumnResize;var a=n(30);t.CommonDragLogic=a.CommonDragLogic;var s=n(31);t.DragClue=s.DragClue;var u=n(32);t.DropClue=u.DropClue},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=n(13),u=n(14),l=n(15),c=n(4),p=n(3),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changePage=function(e,n){t.props.onPageChange&&e>0&&e<=t.totalPages&&t.props.onPageChange({target:t,skip:(e-1)*t.props.take,take:t.props.take,syntheticEvent:n,nativeEvent:n.nativeEvent})},t}return o(t,e),t.prototype.render=function(){var e,t,n,r,o=this.props,a=o.skip,f=o.take,d=o.total,h=o.pageSizes,g=o.className,m=p.provideLocalizationService(this),v=p.provideIntlService(this),y=Math.floor(a/f)+1,_="numeric"===this.props.type?i.createElement(s.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:y,pageChange:this.changePage}):i.createElement(u.PagerInput,{currentPage:y,totalPages:this.totalPages,pageChange:this.changePage});this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===y?" k-state-disabled":""),m.toLanguageString(c.pagerFirstPage,c.messages[c.pagerFirstPage]),"k-icon k-i-arrow-end-left"),t=this.renderButton(y-1,"k-link k-pager-nav"+(1===y?" k-state-disabled":""),m.toLanguageString(c.pagerPreviousPage,c.messages[c.pagerPreviousPage]),"k-icon k-i-arrow-60-left"),n=this.renderButton(y+1,"k-link k-pager-nav"+(y===this.totalPages?" k-state-disabled":""),m.toLanguageString(c.pagerNextPage,c.messages[c.pagerNextPage]),"k-icon k-i-arrow-60-right"),r=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(y===this.totalPages?" k-state-disabled":""),m.toLanguageString(c.pagerLastPage,c.messages[c.pagerLastPage]),"k-icon k-i-arrow-end-right"));var b=void 0!==h&&i.createElement(l.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:f,pageSizes:h}),P=this.props.info&&i.createElement("div",{className:"k-pager-info k-label"},v.format(m.toLanguageString(c.pagerInfo,c.messages[c.pagerInfo]),[Math.min(a+1,d),Math.min(a+f,d),d]));return i.createElement("div",{className:"k-pager-wrap k-floatwrap k-widget"+(g?" "+g:""),style:this.props.style},e,t,_,n,r,b,P)},t.prototype.renderButton=function(e,t,n,r){var o=this;return i.createElement("a",{onClick:function(t){t.preventDefault(),o.changePage(e,t)},href:"#",className:t,title:n},i.createElement("span",{className:r,"aria-label":n}))},Object.defineProperty(t.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),t.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func},t.defaultProps={buttonCount:10,info:!0,type:"numeric"},t}(i.Component);t.Pager=f,p.registerForIntl(f),p.registerForLocalization(f)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePageChange=function(e,n){e.preventDefault(),t.props.pageChange(n,e)},t}return o(t,e),t.prototype.render=function(){for(var e=this,t=this.start>1&&this.renderDots(this.start-1),n=this.end<this.props.totalPages&&this.renderDots(this.end+1),r=[],o=this.start;o<=this.end;o++)r.push(o);var a=r.map((function(t){return i.createElement("li",{key:t},i.createElement("a",{href:"#",onClick:function(n){return e.handlePageChange(n,t)},className:e.props.currentPage===t?"k-link k-state-selected":"k-link"},t))}));return i.createElement("ul",{className:"k-pager-numbers k-reset"},t,a,n)},t.prototype.renderDots=function(e){var t=this;return i.createElement("li",null,i.createElement("a",{className:"k-link",onClick:function(n){return t.handlePageChange(n,e)},href:"#"},"..."))},Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(e>t){var n=e%t;return 0===n?e-t+1:e-n+1}return 1},enumerable:!0,configurable:!0}),t}(i.Component);t.PagerNumericButtons=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(4),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._text=void 0,t.onChange=function(e){var n=t._text=e.target.value.replace(/\D/g,"");t.forceUpdate(),n&&t.props.pageChange(parseInt(n,10),e)},t.value=function(){var e=void 0===t._text?t.props.currentPage.toString():t._text;return t._text=void 0,e},t}return o(t,e),t.prototype.render=function(){var e=this,t=a.provideLocalizationService(this);return i.createElement("span",{className:"k-pager-input k-label"},t.toLanguageString(s.pagerPage,s.messages[s.pagerPage]),i.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),t.toLanguageString(s.pagerOf,s.messages[s.pagerOf])+" "+this.props.totalPages)},t}(i.Component);t.PagerInput=u,a.registerForLocalization(u)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),s=n(4),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.pageSizes.slice();return 0===t.filter((function(t){return t===e.props.pageSize})).length&&t.unshift(this.props.pageSize),i.createElement("label",{className:"k-pager-sizes k-label"},i.createElement("select",{value:this.props.pageSize,onChange:this.pageSizeChange},t.map((function(e,t){return i.createElement("option",{key:t,value:e}," ",e," ")}))),a.provideLocalizationService(this).toLanguageString(s.pagerItemPerPage,s.messages[s.pagerItemPerPage]))},t}(i.Component);t.PagerPageSizes=u,a.registerForLocalization(u)},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(2)),r(n(17)),r(n(18)),r(n(19)),r(n(20))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(2),l={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,t){var n=t.filter,r=void 0===n?[]:n,o=t.field,u=r.find((function(e){return e.field===o})),l=e.components.DropDownList,c=a(e,["components"]);return l&&s.createElement(l,i({},c,{value:e.data.find((function(e){return e.operator===(u?u.value:"")})),onChange:function(e){if(t.onFilterChange){var n=e.target.value.operator;if(""!==n){var a=u?r.map((function(e){return e.field===o?i({},u,{value:n}):e})):r.concat([{value:n,field:o,operator:"eq"}]);t.onFilterChange.call(void 0,{filter:a,field:o,syntheticEvent:e.syntheticEvent})}else u&&t.onFilterChange.call(void 0,{filter:r.filter((function(e){return e.field!==u.field})),field:o,syntheticEvent:e.syntheticEvent})}}}))}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(u.createFilterCell(l));t.BooleanFilter=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u={inputComponent:function(e){var t=e.components.DatePicker,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},operatorComponent:function(e){var t=e.components.DropDownList,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},emptyFilter:{operator:"eq",value:null}},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(2).createFilterCell(u));t.DateFilter=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u={inputComponent:function(e){var t=e.components.NumericTextBox,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},operatorComponent:function(e){var t=e.components.DropDownList,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},emptyFilter:{operator:"eq",value:null}},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(2).createFilterCell(u));t.NumericFilter=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u={inputComponent:function(e){var t=e.components.Input,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},operatorComponent:function(e){var t=e.components.DropDownList,n=a(e,["components"]);return t&&s.createElement(t,i({},n))},emptyFilter:{operator:"contains",value:""}},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(2).createFilterCell(u));t.TextFilter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e,t,n){var r=n?"k-grid-header-sticky":"";return e.some((function(e){return e.field===t}))&&(r+=" k-sorted"),r};t.FilterRow=function(e){var t=e.columns,n=e.filter,i=e.filterChange,a=e.sort,s=void 0===a?[]:a;return r.createElement("tr",{className:"k-filter-row"},t.map((function(e,t){return r.createElement("th",{key:t,className:o(s,e.field,e.locked)},e.filter&&r.createElement(e.filter,{field:e.field,filter:n,onFilterChange:i}))})))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(7),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.columnResize;e&&e.resizable&&e.setIsRtl(a.isRtl(this.element))},t.prototype.render=function(){var e=this;return i.createElement("thead",{className:"k-grid-header",ref:function(t){return e.element=t}},this.props.headerRow,this.props.filterRow)},t}(i.Component);t.Header=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(8),u=n(9),l=n(24),c=n(25),p={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},f={none:"none",asc:"ascending",desc:"descending"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellClick=function(e,n){if(e.preventDefault(),t.props.sortChange){var r=u.normalize(t.props.sortable||!1,n.sortable||!1),o=r.allowUnsort,i=r.mode,a=(t.props.sort||[]).filter((function(e){return e.field===n.field}))[0],s=p[o][a&&a.dir||""],l="single"===i?[]:(t.props.sort||[]).filter((function(e){return e.field!==n.field}));""!==s&&n.field&&l.push({field:n.field,dir:s}),t.props.sortChange(e,l,n.field)}},t.cells=function(e){return e.map((function(e,n){var r=t.props.columns[e],o=t.props.columnResize,u=o&&o.resizable&&r.resizable,c=t.props.sortable&&r.sortable,p=t.props.sort?t.props.sort.findIndex((function(e){return e.field===r.field})):-1,d=p>=0&&t.props.sort[p].dir||"none",h={field:r.field,onClick:c&&function(e){return t.cellClick(e,r)}||void 0,selectionChange:t.props.selectionChange,title:r.title,selectionValue:r.headerSelectionValue,render:t.props.cellRender,children:t.sortIcon(p)},g=(r.kFirst?"k-first ":"")+t.cellClass(r.field,r.headerClassName,r.locked),m=void 0!==r.locked?{left:r.left,right:r.right,borderRightWidth:r.rightBorder?"1px":""}:{};return a.createElement("th",{"aria-sort":c?f[d]:void 0,key:n,colSpan:r.colSpan,rowSpan:r.rowSpan,className:g,style:m},r.headerCell&&a.createElement(r.headerCell,i({},h))||a.createElement(s.HeaderCell,i({},h)),u&&o&&a.createElement(l.ColumnResizer,{key:"ColumnResizer",resize:function(e,t,n){return o.dragHandler(e,r,t,n)}}))}))},t}return o(t,e),t.prototype.cellClass=function(e,t,n){var r="k-header"+(n?" k-grid-header-sticky":"")+(t?" "+t:"");return this.props.sort&&this.props.sort.some((function(t){return t.field===e}))&&(r+=" k-sorted"),r},t.prototype.sortIcon=function(e){return this.props.sort?e>=0&&[a.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),this.props.sort.length>1&&a.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},t.prototype.render=function(){var e=this;return this.props.columnsMap.map((function(t,n){return e.props.pressHandler&&a.createElement(c.ColumnDraggable,{key:n,pressHandler:e.props.pressHandler,dragHandler:e.props.dragHandler,releaseHandler:e.props.releaseHandler},e.cells(t))||a.createElement("tr",null,e.cells(t))}))},t}(a.Component);t.HeaderRow=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(10),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!1)},t.onRelease=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!0)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("span",{className:"k-column-resizer",draggable:!1}))},t}(i.PureComponent);t.ColumnResizer=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(10),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPress=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.pressHandler&&t.props.pressHandler(e.event,n)},t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.dragHandler&&t.props.dragHandler(e.event,n)},t.onRelease=function(e){t.draggable&&t.draggable.element&&t.props.releaseHandler&&t.props.releaseHandler(e.event)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("tr",null,this.props.children))},t}(i.PureComponent);t.ColumnDraggable=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.HeaderSelectionCell=function(e){var t=[r.createElement("input",{key:0,checked:e.selectionValue,id:e.inputId,type:"checkbox",className:"k-checkbox",onChange:function(t){return e.selectionChange({field:e.field,syntheticEvent:t})}}),r.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:e.inputId})];return e.render?e.render.call(void 0,t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(28))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,n=e.columns,r=void 0===n?[]:n,o=e.tableViewPortWidth,i=e.scrollLeft,a=r.map((function(){return 1})),s=r.map((function(){return!1}));if(t){for(var u=r.map((function(e){return parseFloat((e.width||"").toString())||10})),l=0,c=0,p=0;p<r.length;p++)if(!r[p].locked){var f=p<u.length-1?u[p+1]:0;if(!(c+u[p]+f<i)){a[p]=1+l;break}s[p]=!0,l++,c+=u[p]}var d=u.reduce((function(e,t){return e+t}),0);l=0,c=0;for(p=r.length-1;p>=0;p--)if(!r[p].locked){if(!(c+2*u[p]<d-o-i)){a[p]=Math.max(a[p],1+l);break}s[p]=!0,l++,c+=u[p]}}return{colSpans:a,hiddenColumns:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.resizable=!1,this.isRtl=!1,this.setIsRtl=function(e){t.isRtl=e},this.onResize=e,this.dragHandler=this.dragHandler.bind(this)}return e.prototype.dragHandler=function(e,t,n,r){var o=e.originalEvent;r||(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation());var i=n.parentElement;if(i&&i.parentElement){var a,s=i.clientWidth;if(this.isRtl?(a=n.getBoundingClientRect().right-n.offsetWidth/2-e.clientX,a+=s):a=s+e.clientX-n.getBoundingClientRect().left-n.offsetWidth/2,r||!(Math.abs(a-s)<1)){this.setWidths(t,Math.floor(a)/s);var u=this.columns.filter((function(e){return!e.children.length})).indexOf(t);this.onResize(u,s,a,o,r)}}},e.prototype.setWidths=function(e,t){for(var n=this.columns.indexOf(e),r=[],o=e.children.length,i=n+1;o>0&&i<this.columns.length;i++,o--){var a=this.columns[i];a.children.length?o+=a.children.length:r.push(a)}0===r.length&&r.push(e),r.forEach((function(e){var n=e.width?parseFloat(e.width.toString())*t:0,r=void 0===e.minResizableWidth?10:e.minResizableWidth;n<r&&(n=r),e.width=n})),this.updateColElements(r)},e.prototype.updateColElements=function(e){for(var t=this.columns.filter((function(e){return!e.children.length})),n=1e-10,r=0;r<e.length;r++){var o=t.indexOf(e[r]),i=parseFloat((e[r].width||0).toString());n+=i-Math.floor(i);var a=Math.floor(i)+Math.floor(n);n-=Math.floor(n),this.setColWidth(this.colGroupMain&&this.colGroupMain.children[o],a),this.setColWidth(this.colGroupHeader&&this.colGroupHeader.children[o],a),this.setColWidth(this.colGroupFooter&&this.colGroupFooter.children[o],a)}},e.prototype.setColWidth=function(e,t){e&&(e.style.width=t+"px")},e}();t.ColumnResize=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=function(){function e(e,t,n){var r=this;this.reorderable=!1,this.groupable=!1,this.startColumn=-1,this.startGroup=-1,this.currentColumn=-1,this.currentGroup=-1,this.dropElementClue=null,this.dragElementClue=null,this.groupPanelDivElement=null,this.refGroupPanelDiv=function(e){r.groupPanelDivElement=e},this.refDropElementClue=function(e){r.dropElementClue=e},this.refDragElementClue=function(e){r.dragElementClue=e},this.pressHandler=function(e,t){e.isTouch||e.originalEvent.preventDefault();var n=r.getColumnIndex(e,t);if(r.startGroup=r.getGroupIndex(e),n>=0){var o=r.columns[n];(o.reorderable&&r.reorderable||o.groupable&&r.groupable)&&(r.startColumn=n)}},this.dragHandler=function(e,t){if(e.isTouch||e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),-1!==r.startColumn||-1!==r.startGroup){r.currentColumn=r.getColumnIndex(e,t),r.currentGroup=r.getGroupIndex(e),r.groupPanelDivElement&&r.startGroup>=0&&(r.currentGroup=Math.min(r.currentGroup,r.groupPanelDivElement.children.length-2));var n=!r.isValid();n&&(r.currentColumn=-1,r.currentGroup=-1);var o=r.currentColumn>=0?t.children[r.columns[r.currentColumn].index]:r.groupPanelDivElement&&r.groupPanelDivElement.children[r.currentGroup];r.updateDragElementClue(e,t,o,n),r.updateDropElementClue(e,t,o,n)}},this.releaseHandler=function(e){var t=r.startColumn,n=r.currentColumn,o=r.startGroup,i=r.currentGroup;r.dropElementClue&&r.dropElementClue.setState({visible:!1}),r.dragElementClue&&r.dragElementClue.setState({visible:!1});var a=r.isValid();r.startColumn=r.startGroup=r.currentColumn=r.currentGroup=-1,a&&(t>=0&&n>=0?r.columnReorder(t,n,e.originalEvent):o>=0&&i>=0?r.groupReorder(o,i,e.originalEvent):t>=0&&i>=0&&r.columnToGroup(t,i,e.originalEvent))},this.columnReorder=e,this.groupReorder=t,this.columnToGroup=n}return e.prototype.getColumnIndex=function(e,t){if(!t||t.parentElement===this.groupPanelDivElement)return-1;var n=r.getIndex(e,t);if(-1===n)return-1;for(var o=function(e){if(t.parentNode.children[e]===t)return{value:i.columns.findIndex((function(t){return t.index===n&&t.depth===e}))}},i=this,a=0;a<t.parentNode.children.length;a++){var s=o(a);if("object"==typeof s)return s.value}return-1},e.prototype.getGroupIndex=function(e){return r.getIndex(e,this.groupPanelDivElement)},e.prototype.isValid=function(){return this.startGroup>=0?this.currentGroup>=0&&this.currentGroup!==this.startGroup:-1!==this.startColumn&&(this.currentGroup>=0?!0===this.columns[this.startColumn].groupable&&!0===this.groupable:!0===this.reorderable&&this.currentColumn>=0&&this.currentColumn!==this.startColumn&&!0===this.columns[this.startColumn].reorderable&&this.columns[this.currentColumn].parentIndex===this.columns[this.startColumn].parentIndex)},e.prototype.updateDragElementClue=function(e,t,n,r){if(this.dragElementClue){var o=this.startColumn>=0?t.children[this.columns[this.startColumn].index].innerText:t.innerText;this.dragElementClue.setState({visible:!0,top:e.pageY+10,left:e.pageX,innerText:o,status:r||!n?"k-i-cancel":"k-i-add"})}},e.prototype.updateDropElementClue=function(e,t,n,r){if(this.dropElementClue)if(!r&&n){var o=n.getBoundingClientRect(),i=o.left+e.pageX-e.clientX-6;(this.currentColumn>this.startColumn||this.currentGroup>this.startGroup&&-1!==this.startGroup)&&(i+=o.width);var a=o.top+e.pageY-e.clientY;this.dropElementClue.setState({visible:!0,top:a,left:i,height:this.currentColumn>=0?t.clientHeight:o.height})}else this.dropElementClue.setState({visible:!1})},e}();t.CommonDragLogic=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,innerText:"",status:"k-i-cancel"},t}return o(t,e),t.prototype.render=function(){return this.state.visible&&i.createElement("div",{className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:this.state.top+"px",left:this.state.left+"px"}},i.createElement("span",{className:"k-icon k-drag-status "+this.state.status+" k-icon-with-modifier"},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.innerText)},t}(i.PureComponent);t.DragClue=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={height:0,visible:!1,left:0,top:0},t}return o(t,e),t.prototype.render=function(){return this.state.visible&&i.createElement("div",{className:"k-grouping-dropclue",style:{zIndex:1e4,display:"block",top:this.state.top+"px",left:this.state.left+"px",height:this.state.height+"px"}})},t}(i.PureComponent);t.DropClue=a}])})); |
@@ -75,8 +75,21 @@ import { ComponentType } from 'react'; | ||
/** | ||
* @hidden | ||
* Indicates whether the column is resizable. | ||
*/ | ||
children?: any; | ||
resizable?: boolean; | ||
/** | ||
* @hidden | ||
* Indicates whether the column is reorderable. | ||
*/ | ||
reorderable?: boolean; | ||
/** | ||
* The width of the column (in pixels) below which the user is not able to resize the column through the UI. Defaults to `10`. | ||
*/ | ||
minResizableWidth?: number; | ||
/** | ||
* A collection of child columns. | ||
*/ | ||
children?: ColumnProps[]; | ||
/** | ||
* Determines the position of the column. | ||
* Columns with smaller `orderIndex` will appear before columns with bigger `orderIndex`. Defaults to `0`. | ||
*/ | ||
orderIndex?: number; | ||
@@ -99,2 +112,3 @@ } | ||
rightBorder: boolean; | ||
groupable: boolean; | ||
} | ||
@@ -101,0 +115,0 @@ /** |
import * as React from 'react'; | ||
import { ColumnResize } from './../drag/ColumnResize'; | ||
/** | ||
@@ -6,9 +7,5 @@ * @hidden | ||
export interface HeaderProps { | ||
staticHeaders: boolean; | ||
headerRow: React.ReactElement<any>; | ||
filterRow?: React.ReactElement<any>; | ||
columnResize: { | ||
colGroupHeader: HTMLTableColElement | null; | ||
}; | ||
cols: React.ReactElement<HTMLTableColElement>[]; | ||
columnResize?: ColumnResize; | ||
} | ||
@@ -18,19 +15,6 @@ /** | ||
*/ | ||
export declare class Header extends React.Component<HeaderProps, {}> { | ||
private divStyle; | ||
export declare class Header extends React.Component<HeaderProps> { | ||
private element; | ||
private headerWrap; | ||
private table; | ||
componentDidMount(): void; | ||
/** | ||
* | ||
* @param scrollLeft - Scrolls to the left (in pixels). | ||
*/ | ||
setScrollLeft(scrollLeft: number): void; | ||
/** | ||
* | ||
* @param width - Scrolls the width (in pixels). | ||
*/ | ||
setWidth(width: number): void; | ||
render(): JSX.Element; | ||
} |
@@ -15,3 +15,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import * as React from 'react'; | ||
import { BrowserSupportService } from './utils/browser-support.service'; | ||
import { isRtl } from './utils'; | ||
/** | ||
@@ -24,51 +24,16 @@ * @hidden | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.divStyle = {}; | ||
_this.element = null; | ||
_this.headerWrap = null; | ||
_this.table = null; | ||
return _this; | ||
} | ||
Header.prototype.componentDidMount = function () { | ||
if (this.element) { | ||
this.setState({}); | ||
var scrollbarWidth = (new BrowserSupportService()).scrollbarWidth; | ||
var rtl = (getComputedStyle(this.element).direction === 'rtl') || false; | ||
var padding = Math.max(0, scrollbarWidth - 1) + 'px'; | ||
var right = rtl ? 0 : padding; | ||
var left = rtl ? padding : 0; | ||
this.divStyle = { padding: "0 " + right + " 0 " + left }; | ||
var columnResize = this.props.columnResize; | ||
if (columnResize && columnResize.resizable) { | ||
columnResize.setIsRtl(isRtl(this.element)); | ||
} | ||
}; | ||
/** | ||
* | ||
* @param scrollLeft - Scrolls to the left (in pixels). | ||
*/ | ||
Header.prototype.setScrollLeft = function (scrollLeft) { | ||
if (this.headerWrap) { | ||
this.headerWrap.scrollLeft = scrollLeft; | ||
} | ||
}; | ||
/** | ||
* | ||
* @param width - Scrolls the width (in pixels). | ||
*/ | ||
Header.prototype.setWidth = function (width) { | ||
if (this.table) { | ||
this.table.style.width = width + 'px'; | ||
} | ||
}; | ||
Header.prototype.render = function () { | ||
var _this = this; | ||
if (!this.props.staticHeaders) { | ||
return (React.createElement("thead", { className: "k-grid-header" }, | ||
this.props.headerRow, | ||
this.props.filterRow)); | ||
} | ||
return (React.createElement("div", { ref: function (div) { _this.element = div; }, className: "k-grid-header", style: this.divStyle }, | ||
React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap" }, | ||
React.createElement("table", { ref: function (table) { _this.table = table; } }, | ||
React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols), | ||
React.createElement("thead", null, | ||
this.props.headerRow, | ||
this.props.filterRow))))); | ||
return (React.createElement("thead", { className: "k-grid-header", ref: function (el) { return _this.element = el; } }, | ||
this.props.headerRow, | ||
this.props.filterRow)); | ||
}; | ||
@@ -75,0 +40,0 @@ return Header; |
@@ -6,6 +6,8 @@ import * as React from 'react'; | ||
import { SortSettings } from './SortSettings'; | ||
import { ColumnResize } from '../drag/ColumnResize'; | ||
import { ColumnDraggableProps } from '../drag/ColumnDraggable'; | ||
/** | ||
* @hidden | ||
*/ | ||
export interface HeaderRowProps { | ||
export interface HeaderRowProps extends ColumnDraggableProps { | ||
sortable?: SortSettings; | ||
@@ -18,2 +20,3 @@ sortChange?: (e: React.SyntheticEvent<any>, descriptors: SortDescriptor[], field?: string) => void; | ||
cellRender?: (defaultRendering: React.ReactNode | null, props: HeaderCellProps) => React.ReactNode; | ||
columnResize?: ColumnResize; | ||
} | ||
@@ -20,0 +23,0 @@ /** |
@@ -28,2 +28,4 @@ var __extends = (this && this.__extends) || (function () { | ||
import { normalize } from './SortSettings'; | ||
import { ColumnResizer } from '../drag/ColumnResizer'; | ||
import { ColumnDraggable } from '../drag/ColumnDraggable'; | ||
/** | ||
@@ -68,2 +70,4 @@ * @hidden | ||
var column = _this.props.columns[columnIndex]; | ||
var columnResize = _this.props.columnResize; | ||
var resizable = columnResize && columnResize.resizable && column.resizable; | ||
var sortable = _this.props.sortable && column.sortable; | ||
@@ -88,4 +92,7 @@ var sortIndex = _this.props.sort ? _this.props.sort.findIndex(function (s) { return s.field === column.field; }) : -1; | ||
} : {}; | ||
return (React.createElement("th", { "aria-sort": ariaSortMap[sortDir], key: index, colSpan: column.colSpan, rowSpan: column.rowSpan, className: className, style: style }, column.headerCell && React.createElement(column.headerCell, __assign({}, headerCellProps)) || | ||
React.createElement(HeaderCell, __assign({}, headerCellProps)))); | ||
return (React.createElement("th", { "aria-sort": sortable ? ariaSortMap[sortDir] : undefined, key: index, colSpan: column.colSpan, rowSpan: column.rowSpan, className: className, style: style }, | ||
column.headerCell && React.createElement(column.headerCell, __assign({}, headerCellProps)) || | ||
React.createElement(HeaderCell, __assign({}, headerCellProps)), | ||
resizable && columnResize && | ||
React.createElement(ColumnResizer, { key: "ColumnResizer", resize: function (e, element, end) { return columnResize.dragHandler(e, column, element, end); } }))); | ||
}); }; | ||
@@ -113,3 +120,3 @@ return _this; | ||
return this.props.columnsMap.map(function (rowIndexes, i) { | ||
return React.createElement("tr", { key: i }, _this.cells(rowIndexes)); | ||
return _this.props.pressHandler && (React.createElement(ColumnDraggable, { key: i, pressHandler: _this.props.pressHandler, dragHandler: _this.props.dragHandler, releaseHandler: _this.props.releaseHandler }, _this.cells(rowIndexes))) || React.createElement("tr", null, _this.cells(rowIndexes)); | ||
}); | ||
@@ -116,0 +123,0 @@ }; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { ExtendedColumnProps, ColumnProps } from '../ColumnProps'; | ||
@@ -10,2 +9,10 @@ /** | ||
*/ | ||
export declare function readColumns(elements: (React.ReactNode | React.ReactChild | ColumnProps)[], oldColumns: ColumnProps[], depth?: number): ExtendedColumnProps[]; | ||
export declare function readColumns(elements: ColumnProps[], depth?: number): ExtendedColumnProps[]; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare function isRtl(element: HTMLElement | null): boolean; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare function getIndex(event: any, parent: HTMLTableRowElement | HTMLDivElement | null): number; |
@@ -55,18 +55,13 @@ import { ColumnDefaultProps } from '../ColumnProps'; | ||
*/ | ||
export function readColumns(elements, oldColumns, depth) { | ||
export function readColumns(elements, depth) { | ||
if (depth === void 0) { depth = 0; } | ||
var columns = []; | ||
if (!elements) { | ||
if (!elements || !elements.length) { | ||
return []; | ||
} | ||
if (elements && elements.length === undefined) { | ||
elements = [elements]; | ||
} | ||
elements.forEach(function (columnProps, index) { | ||
columnProps = columnProps.props ? columnProps.props : columnProps; | ||
var oldColumn = oldColumns[index] || null; | ||
var c = readColumns(columnProps.children, oldColumn && oldColumn.children || [], depth + 1); | ||
columns.push(Object.assign({ depth: depth }, ColumnDefaultProps, (c.length) ? { cell: function () { return null; }, filter: function () { return null; } } : {}, oldColumn ? { width: oldColumn.width, orderIndex: oldColumn.orderIndex } : {}, columnProps, { | ||
elements.forEach(function (columnProps) { | ||
var children = readColumns(columnProps.children || [], depth + 1); | ||
columns.push(Object.assign({}, { depth: depth }, ColumnDefaultProps, columnProps, { | ||
declarationIndex: columns.length, | ||
children: c, | ||
children: children, | ||
rowSpan: 0, | ||
@@ -95,2 +90,27 @@ colSpan: 0 | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
export function isRtl(element) { | ||
return Boolean(element && getComputedStyle(element).direction === 'rtl'); | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
export function getIndex(event, parent) { | ||
if (!parent || !event || !event.originalEvent) { | ||
return -1; | ||
} | ||
var target = document.elementFromPoint(event.clientX, event.originalEvent.clientY); | ||
while (target && target.parentElement !== parent) { | ||
target = target.parentElement; | ||
} | ||
var children = parent.children; | ||
for (var i = 0; i < children.length; i++) { | ||
if (children[i] === target) { | ||
return i; | ||
} | ||
} | ||
return -1; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -5,1 +5,5 @@ export { Pager, PagerProps, PageChangeEvent } from './pager/Pager'; | ||
export * from './virtualization'; | ||
export { ColumnResize } from './drag/ColumnResize'; | ||
export { CommonDragLogic } from './drag/CommonDragLogic'; | ||
export { DragClue } from './drag/DragClue'; | ||
export { DropClue } from './drag/DropClue'; |
@@ -5,2 +5,6 @@ export { Pager } from './pager/Pager'; | ||
export * from './virtualization'; | ||
export { ColumnResize } from './drag/ColumnResize'; | ||
export { CommonDragLogic } from './drag/CommonDragLogic'; | ||
export { DragClue } from './drag/DragClue'; | ||
export { DropClue } from './drag/DropClue'; | ||
//# sourceMappingURL=main.js.map |
@@ -75,8 +75,21 @@ import { ComponentType } from 'react'; | ||
/** | ||
* @hidden | ||
* Indicates whether the column is resizable. | ||
*/ | ||
children?: any; | ||
resizable?: boolean; | ||
/** | ||
* @hidden | ||
* Indicates whether the column is reorderable. | ||
*/ | ||
reorderable?: boolean; | ||
/** | ||
* The width of the column (in pixels) below which the user is not able to resize the column through the UI. Defaults to `10`. | ||
*/ | ||
minResizableWidth?: number; | ||
/** | ||
* A collection of child columns. | ||
*/ | ||
children?: ColumnProps[]; | ||
/** | ||
* Determines the position of the column. | ||
* Columns with smaller `orderIndex` will appear before columns with bigger `orderIndex`. Defaults to `0`. | ||
*/ | ||
orderIndex?: number; | ||
@@ -99,2 +112,3 @@ } | ||
rightBorder: boolean; | ||
groupable: boolean; | ||
} | ||
@@ -101,0 +115,0 @@ /** |
import * as React from 'react'; | ||
import { ColumnResize } from './../drag/ColumnResize'; | ||
/** | ||
@@ -6,9 +7,5 @@ * @hidden | ||
export interface HeaderProps { | ||
staticHeaders: boolean; | ||
headerRow: React.ReactElement<any>; | ||
filterRow?: React.ReactElement<any>; | ||
columnResize: { | ||
colGroupHeader: HTMLTableColElement | null; | ||
}; | ||
cols: React.ReactElement<HTMLTableColElement>[]; | ||
columnResize?: ColumnResize; | ||
} | ||
@@ -18,19 +15,6 @@ /** | ||
*/ | ||
export declare class Header extends React.Component<HeaderProps, {}> { | ||
private divStyle; | ||
export declare class Header extends React.Component<HeaderProps> { | ||
private element; | ||
private headerWrap; | ||
private table; | ||
componentDidMount(): void; | ||
/** | ||
* | ||
* @param scrollLeft - Scrolls to the left (in pixels). | ||
*/ | ||
setScrollLeft(scrollLeft: number): void; | ||
/** | ||
* | ||
* @param width - Scrolls the width (in pixels). | ||
*/ | ||
setWidth(width: number): void; | ||
render(): JSX.Element; | ||
} |
@@ -17,3 +17,3 @@ "use strict"; | ||
var React = require("react"); | ||
var browser_support_service_1 = require("./utils/browser-support.service"); | ||
var utils_1 = require("./utils"); | ||
/** | ||
@@ -26,51 +26,16 @@ * @hidden | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.divStyle = {}; | ||
_this.element = null; | ||
_this.headerWrap = null; | ||
_this.table = null; | ||
return _this; | ||
} | ||
Header.prototype.componentDidMount = function () { | ||
if (this.element) { | ||
this.setState({}); | ||
var scrollbarWidth = (new browser_support_service_1.BrowserSupportService()).scrollbarWidth; | ||
var rtl = (getComputedStyle(this.element).direction === 'rtl') || false; | ||
var padding = Math.max(0, scrollbarWidth - 1) + 'px'; | ||
var right = rtl ? 0 : padding; | ||
var left = rtl ? padding : 0; | ||
this.divStyle = { padding: "0 " + right + " 0 " + left }; | ||
var columnResize = this.props.columnResize; | ||
if (columnResize && columnResize.resizable) { | ||
columnResize.setIsRtl(utils_1.isRtl(this.element)); | ||
} | ||
}; | ||
/** | ||
* | ||
* @param scrollLeft - Scrolls to the left (in pixels). | ||
*/ | ||
Header.prototype.setScrollLeft = function (scrollLeft) { | ||
if (this.headerWrap) { | ||
this.headerWrap.scrollLeft = scrollLeft; | ||
} | ||
}; | ||
/** | ||
* | ||
* @param width - Scrolls the width (in pixels). | ||
*/ | ||
Header.prototype.setWidth = function (width) { | ||
if (this.table) { | ||
this.table.style.width = width + 'px'; | ||
} | ||
}; | ||
Header.prototype.render = function () { | ||
var _this = this; | ||
if (!this.props.staticHeaders) { | ||
return (React.createElement("thead", { className: "k-grid-header" }, | ||
this.props.headerRow, | ||
this.props.filterRow)); | ||
} | ||
return (React.createElement("div", { ref: function (div) { _this.element = div; }, className: "k-grid-header", style: this.divStyle }, | ||
React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap" }, | ||
React.createElement("table", { ref: function (table) { _this.table = table; } }, | ||
React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols), | ||
React.createElement("thead", null, | ||
this.props.headerRow, | ||
this.props.filterRow))))); | ||
return (React.createElement("thead", { className: "k-grid-header", ref: function (el) { return _this.element = el; } }, | ||
this.props.headerRow, | ||
this.props.filterRow)); | ||
}; | ||
@@ -77,0 +42,0 @@ return Header; |
@@ -6,6 +6,8 @@ import * as React from 'react'; | ||
import { SortSettings } from './SortSettings'; | ||
import { ColumnResize } from '../drag/ColumnResize'; | ||
import { ColumnDraggableProps } from '../drag/ColumnDraggable'; | ||
/** | ||
* @hidden | ||
*/ | ||
export interface HeaderRowProps { | ||
export interface HeaderRowProps extends ColumnDraggableProps { | ||
sortable?: SortSettings; | ||
@@ -18,2 +20,3 @@ sortChange?: (e: React.SyntheticEvent<any>, descriptors: SortDescriptor[], field?: string) => void; | ||
cellRender?: (defaultRendering: React.ReactNode | null, props: HeaderCellProps) => React.ReactNode; | ||
columnResize?: ColumnResize; | ||
} | ||
@@ -20,0 +23,0 @@ /** |
@@ -30,2 +30,4 @@ "use strict"; | ||
var SortSettings_1 = require("./SortSettings"); | ||
var ColumnResizer_1 = require("../drag/ColumnResizer"); | ||
var ColumnDraggable_1 = require("../drag/ColumnDraggable"); | ||
/** | ||
@@ -70,2 +72,4 @@ * @hidden | ||
var column = _this.props.columns[columnIndex]; | ||
var columnResize = _this.props.columnResize; | ||
var resizable = columnResize && columnResize.resizable && column.resizable; | ||
var sortable = _this.props.sortable && column.sortable; | ||
@@ -90,4 +94,7 @@ var sortIndex = _this.props.sort ? _this.props.sort.findIndex(function (s) { return s.field === column.field; }) : -1; | ||
} : {}; | ||
return (React.createElement("th", { "aria-sort": ariaSortMap[sortDir], key: index, colSpan: column.colSpan, rowSpan: column.rowSpan, className: className, style: style }, column.headerCell && React.createElement(column.headerCell, __assign({}, headerCellProps)) || | ||
React.createElement(HeaderCell_1.HeaderCell, __assign({}, headerCellProps)))); | ||
return (React.createElement("th", { "aria-sort": sortable ? ariaSortMap[sortDir] : undefined, key: index, colSpan: column.colSpan, rowSpan: column.rowSpan, className: className, style: style }, | ||
column.headerCell && React.createElement(column.headerCell, __assign({}, headerCellProps)) || | ||
React.createElement(HeaderCell_1.HeaderCell, __assign({}, headerCellProps)), | ||
resizable && columnResize && | ||
React.createElement(ColumnResizer_1.ColumnResizer, { key: "ColumnResizer", resize: function (e, element, end) { return columnResize.dragHandler(e, column, element, end); } }))); | ||
}); }; | ||
@@ -115,3 +122,3 @@ return _this; | ||
return this.props.columnsMap.map(function (rowIndexes, i) { | ||
return React.createElement("tr", { key: i }, _this.cells(rowIndexes)); | ||
return _this.props.pressHandler && (React.createElement(ColumnDraggable_1.ColumnDraggable, { key: i, pressHandler: _this.props.pressHandler, dragHandler: _this.props.dragHandler, releaseHandler: _this.props.releaseHandler }, _this.cells(rowIndexes))) || React.createElement("tr", null, _this.cells(rowIndexes)); | ||
}); | ||
@@ -118,0 +125,0 @@ }; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { ExtendedColumnProps, ColumnProps } from '../ColumnProps'; | ||
@@ -10,2 +9,10 @@ /** | ||
*/ | ||
export declare function readColumns(elements: (React.ReactNode | React.ReactChild | ColumnProps)[], oldColumns: ColumnProps[], depth?: number): ExtendedColumnProps[]; | ||
export declare function readColumns(elements: ColumnProps[], depth?: number): ExtendedColumnProps[]; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare function isRtl(element: HTMLElement | null): boolean; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare function getIndex(event: any, parent: HTMLTableRowElement | HTMLDivElement | null): number; |
@@ -58,18 +58,13 @@ "use strict"; | ||
*/ | ||
function readColumns(elements, oldColumns, depth) { | ||
function readColumns(elements, depth) { | ||
if (depth === void 0) { depth = 0; } | ||
var columns = []; | ||
if (!elements) { | ||
if (!elements || !elements.length) { | ||
return []; | ||
} | ||
if (elements && elements.length === undefined) { | ||
elements = [elements]; | ||
} | ||
elements.forEach(function (columnProps, index) { | ||
columnProps = columnProps.props ? columnProps.props : columnProps; | ||
var oldColumn = oldColumns[index] || null; | ||
var c = readColumns(columnProps.children, oldColumn && oldColumn.children || [], depth + 1); | ||
columns.push(Object.assign({ depth: depth }, ColumnProps_1.ColumnDefaultProps, (c.length) ? { cell: function () { return null; }, filter: function () { return null; } } : {}, oldColumn ? { width: oldColumn.width, orderIndex: oldColumn.orderIndex } : {}, columnProps, { | ||
elements.forEach(function (columnProps) { | ||
var children = readColumns(columnProps.children || [], depth + 1); | ||
columns.push(Object.assign({}, { depth: depth }, ColumnProps_1.ColumnDefaultProps, columnProps, { | ||
declarationIndex: columns.length, | ||
children: c, | ||
children: children, | ||
rowSpan: 0, | ||
@@ -99,2 +94,29 @@ colSpan: 0 | ||
exports.readColumns = readColumns; | ||
/** | ||
* @hidden | ||
*/ | ||
function isRtl(element) { | ||
return Boolean(element && getComputedStyle(element).direction === 'rtl'); | ||
} | ||
exports.isRtl = isRtl; | ||
/** | ||
* @hidden | ||
*/ | ||
function getIndex(event, parent) { | ||
if (!parent || !event || !event.originalEvent) { | ||
return -1; | ||
} | ||
var target = document.elementFromPoint(event.clientX, event.originalEvent.clientY); | ||
while (target && target.parentElement !== parent) { | ||
target = target.parentElement; | ||
} | ||
var children = parent.children; | ||
for (var i = 0; i < children.length; i++) { | ||
if (children[i] === target) { | ||
return i; | ||
} | ||
} | ||
return -1; | ||
} | ||
exports.getIndex = getIndex; | ||
//# sourceMappingURL=index.js.map |
@@ -5,1 +5,5 @@ export { Pager, PagerProps, PageChangeEvent } from './pager/Pager'; | ||
export * from './virtualization'; | ||
export { ColumnResize } from './drag/ColumnResize'; | ||
export { CommonDragLogic } from './drag/CommonDragLogic'; | ||
export { DragClue } from './drag/DragClue'; | ||
export { DropClue } from './drag/DropClue'; |
@@ -11,2 +11,10 @@ "use strict"; | ||
__export(require("./virtualization")); | ||
var ColumnResize_1 = require("./drag/ColumnResize"); | ||
exports.ColumnResize = ColumnResize_1.ColumnResize; | ||
var CommonDragLogic_1 = require("./drag/CommonDragLogic"); | ||
exports.CommonDragLogic = CommonDragLogic_1.CommonDragLogic; | ||
var DragClue_1 = require("./drag/DragClue"); | ||
exports.DragClue = DragClue_1.DragClue; | ||
var DropClue_1 = require("./drag/DropClue"); | ||
exports.DropClue = DropClue_1.DropClue; | ||
//# sourceMappingURL=main.js.map |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-data-tools",["react","prop-types","@progress/kendo-react-intl"],function(i){var a,s,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)}],execute:function(){function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,n;n={},o.m=r=[function(e,t){e.exports=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var c=r(0);t.createFilterCell=function(p){return t=c.Component,o(e,t),e.prototype.render=function(){var e=this.props,t=e.clearButtonTitle,r=void 0===t?"":t,n=e.operators,o=void 0===n?[]:n,i=this.findCellFilter()||u({},p.emptyFilter,{operator:""}),a=i.operator,s=i.value,l={value:o.find(function(e){return e.operator===a})||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:o,textField:"text",popupSettings:{width:""},components:this.props.components};return c.createElement("div",{className:"k-filtercell"},c.createElement("div",{className:"k-filtercell-wrapper"},p.inputComponent({value:s,onChange:this.inputChange,components:this.props.components}),c.createElement("div",{className:"k-filtercell-operator"},p.operatorComponent(l,this.props),c.createElement("button",{className:null!==s&&""!==s||a?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:r,type:"button",onClick:this.clearButtonClick},c.createElement("span",{className:"k-icon k-i-filter-clear"})))))},e;function e(){var c=null!==t&&t.apply(this,arguments)||this;return c.filterChange=function(e){c.props.onFilterChange&&c.props.onFilterChange(e)},c.inputChange=function(e){var t=e.target.value,r=c.props,n=r.filter,o=void 0===n?[]:n,i=r.field,a=void 0===i?"":i,s=c.findCellFilter(),l=s?o.map(function(e){return e.field===a?u({},s,{value:t}):e}):o.concat([u({},p.emptyFilter,{value:t,field:a})]);c.filterChange({filter:l,field:a,syntheticEvent:e.syntheticEvent})},c.operatorChange=function(e){var t=e.target.value.operator,r=c.props,n=r.filter,o=void 0===n?[]:n,i=r.field,a=void 0===i?"":i,s=c.findCellFilter(),l=s?o.map(function(e){return e.field===a?u({},s,{operator:t}):e}):o.concat([u({},p.emptyFilter,{field:a,operator:t})]);c.filterChange({filter:l,field:a,syntheticEvent:e.syntheticEvent})},c.clearButtonClick=function(e){var t=c.props,r=t.filter,n=void 0===r?[]:r,o=t.field,i=void 0===o?"":o;c.filterChange({filter:n.filter(function(e){return e.field!==i}),field:i,syntheticEvent:e})},c.findCellFilter=function(){var e=c.props,t=e.filter,r=void 0===t?[]:t,n=e.field;return r.find(function(e){return e.field===n})},c}var t}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.messages=((n={})[t.pagerItemPerPage]="items per page",n[t.pagerInfo]="{0} - {1} of {2} items",n[t.pagerFirstPage]="Go to the first page",n[t.pagerPreviousPage]="Go to the previous page",n[t.pagerNextPage]="Go to the next page",n[t.pagerLastPage]="Go to the last page",n[t.pagerPage]="Page",n[t.pagerOf]="of",n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.HeaderCell=function(e){var t=e.onClick?{href:"#",onClick:e.onClick}:{},r=o.createElement("a",n({className:"k-link"},t),e.title||e.field||" ",e.children);return e.render?e.render.call(void 0,r,e):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0});var o=t(8);r.Pager=o.Pager,n(t(13)),n(t(18)),n(t(25)),function(e){for(var t in e)i(t,e[t])}(r)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,v=r(0),a=r(9),y=r(10),m=r(11),_=r(12),b=r(3),P=r(2),s=(i=v.Component,o(l,i),l.prototype.render=function(){var e,t,r,n,o=this.props,i=o.skip,a=o.take,s=o.total,l=o.pageSizes,c=o.className,p=P.provideLocalizationService(this),u=P.provideIntlService(this),f=Math.floor(i/a)+1,h="numeric"===this.props.type?v.createElement(y.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:f,pageChange:this.changePage}):v.createElement(m.PagerInput,{currentPage:f,totalPages:this.totalPages,pageChange:this.changePage});this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===f?" k-state-disabled":""),p.toLanguageString(b.pagerFirstPage,b.messages[b.pagerFirstPage]),"k-icon k-i-arrow-end-left"),t=this.renderButton(f-1,"k-link k-pager-nav"+(1===f?" k-state-disabled":""),p.toLanguageString(b.pagerPreviousPage,b.messages[b.pagerPreviousPage]),"k-icon k-i-arrow-60-left"),r=this.renderButton(f+1,"k-link k-pager-nav"+(f===this.totalPages?" k-state-disabled":""),p.toLanguageString(b.pagerNextPage,b.messages[b.pagerNextPage]),"k-icon k-i-arrow-60-right"),n=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(f===this.totalPages?" k-state-disabled":""),p.toLanguageString(b.pagerLastPage,b.messages[b.pagerLastPage]),"k-icon k-i-arrow-end-right"));var d=void 0!==l&&v.createElement(_.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:a,pageSizes:l}),g=this.props.info&&v.createElement("div",{className:"k-pager-info k-label"},u.format(p.toLanguageString(b.pagerInfo,b.messages[b.pagerInfo]),[Math.min(i+1,s),Math.min(i+a,s),s]));return v.createElement("div",{className:"k-pager-wrap k-floatwrap k-widget"+(c?" "+c:""),style:this.props.style},e,t,h,r,n,d,g)},l.prototype.renderButton=function(t,e,r,n){var o=this;return v.createElement("a",{onClick:function(e){e.preventDefault(),o.changePage(t,e)},href:"#",className:e,title:r},v.createElement("span",{className:n,"aria-label":r}))},Object.defineProperty(l.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),l.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func},l.defaultProps={buttonCount:10,info:!0,type:"numeric"},l);function l(){var r=null!==i&&i.apply(this,arguments)||this;return r.changePage=function(e,t){r.props.onPageChange&&0<e&&e<=r.totalPages&&r.props.onPageChange({target:r,skip:(e-1)*r.props.take,take:r.props.take,syntheticEvent:t,nativeEvent:t.nativeEvent})},r}t.Pager=s,P.registerForIntl(s),P.registerForLocalization(s)},function(e,t){e.exports=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=(i=a.Component,o(l,i),l.prototype.render=function(){for(var r=this,e=1<this.start&&this.renderDots(this.start-1),t=this.end<this.props.totalPages&&this.renderDots(this.end+1),n=[],o=this.start;o<=this.end;o++)n.push(o);var i=n.map(function(t){return a.createElement("li",{key:t},a.createElement("a",{href:"#",onClick:function(e){return r.handlePageChange(e,t)},className:r.props.currentPage===t?"k-link k-state-selected":"k-link"},t))});return a.createElement("ul",{className:"k-pager-numbers k-reset"},e,i,t)},l.prototype.renderDots=function(t){var r=this;return a.createElement("li",null,a.createElement("a",{className:"k-link",onClick:function(e){return r.handlePageChange(e,t)},href:"#"},"..."))},Object.defineProperty(l.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(t<e){var r=e%t;return 0==r?e-t+1:e-r+1}return 1},enumerable:!0,configurable:!0}),l);function l(){var r=null!==i&&i.apply(this,arguments)||this;return r.handlePageChange=function(e,t){e.preventDefault(),r.props.pageChange(t,e)},r}t.PagerNumericButtons=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(2),l=r(3),c=(i=a.Component,o(p,i),p.prototype.render=function(){var e=this,t=s.provideLocalizationService(this);return a.createElement("span",{className:"k-pager-input k-label"},t.toLanguageString(l.pagerPage,l.messages[l.pagerPage]),a.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),t.toLanguageString(l.pagerOf,l.messages[l.pagerOf])+" "+this.props.totalPages)},p);function p(){var r=null!==i&&i.apply(this,arguments)||this;return r._text=void 0,r.onChange=function(e){var t=r._text=e.target.value.replace(/\D/g,"");r.forceUpdate(),t&&r.props.pageChange(parseInt(t,10),e)},r.value=function(){var e=void 0===r._text?r.props.currentPage.toString():r._text;return r._text=void 0,e},r}t.PagerInput=c,s.registerForLocalization(c)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(2),l=r(3),c=(i=a.Component,o(p,i),p.prototype.render=function(){var t=this,e=this.props.pageSizes.slice();return 0===e.filter(function(e){return e===t.props.pageSize}).length&&e.unshift(this.props.pageSize),a.createElement("label",{className:"k-pager-sizes k-label"},a.createElement("select",{value:this.props.pageSize,onChange:this.pageSizeChange},e.map(function(e,t){return a.createElement("option",{key:t,value:e}," ",e," ")})),s.provideLocalizationService(this).toLanguageString(l.pagerItemPerPage,l.messages[l.pagerItemPerPage]))},p);function p(){var t=null!==i&&i.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}t.PagerPageSizes=c,s.registerForLocalization(c)},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),n(t(1)),n(t(14)),n(t(15)),n(t(16)),n(t(17))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var i,p=r(0),a=r(1),s={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,n){var t=n.filter,o=void 0===t?[]:t,i=n.field,a=o.find(function(e){return e.field===i}),r=e.components.DropDownList,s=c(e,["components"]);return r&&p.createElement(r,l({},s,{value:e.data.find(function(e){return e.operator===(a?a.value:"")}),onChange:function(e){if(n.onFilterChange){var t=e.target.value.operator;if(""!==t){var r=a?o.map(function(e){return e.field===i?l({},a,{value:t}):e}):o.concat([{value:t,field:i,operator:"eq"}]);n.onFilterChange.call(void 0,{filter:r,field:i,syntheticEvent:e.syntheticEvent})}else a&&n.onFilterChange.call(void 0,{filter:o.filter(function(e){return e.field!==a.field}),field:i,syntheticEvent:e.syntheticEvent})}}}))}},u=(i=a.createFilterCell(s),o(f,i),f);function f(){return null!==i&&i.apply(this,arguments)||this}t.BooleanFilter=u},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),c={inputComponent:function(e){var t=e.components.DatePicker,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},p=(s=r(1).createFilterCell(c),o(u,s),u);function u(){return null!==s&&s.apply(this,arguments)||this}t.DateFilter=p},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),c={inputComponent:function(e){var t=e.components.NumericTextBox,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},p=(s=r(1).createFilterCell(c),o(u,s),u);function u(){return null!==s&&s.apply(this,arguments)||this}t.NumericFilter=p},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),c={inputComponent:function(e){var t=e.components.Input,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"contains",value:""}},p=(s=r(1).createFilterCell(c),o(u,s),u);function u(){return null!==s&&s.apply(this,arguments)||this}t.TextFilter=p},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),n(t(4)),n(t(19)),n(t(20)),n(t(5)),n(t(22)),n(t(23)),n(t(6)),n(t(24))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(0);t.FilterRow=function(e){var t=e.columns,r=e.filter,n=e.filterChange,o=e.sort,i=void 0===o?[]:o;return a.createElement("tr",{className:"k-filter-row"},t.map(function(e,t){return a.createElement("th",{key:t,className:function(e,t,r){var n=r?"k-grid-header-sticky":"";return e.some(function(e){return e.field===t})&&(n+=" k-sorted"),n}(i,e.field,e.locked)},e.filter&&a.createElement(e.filter,{field:e.field,filter:r,onFilterChange:n}))}))}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(21),l=(i=a.Component,o(c,i),c.prototype.componentDidMount=function(){if(this.element){this.setState({});var e=(new s.BrowserSupportService).scrollbarWidth,t="rtl"===getComputedStyle(this.element).direction||!1,r=Math.max(0,e-1)+"px",n=t?0:r,o=t?r:0;this.divStyle={padding:"0 "+n+" 0 "+o}}},c.prototype.setScrollLeft=function(e){this.headerWrap&&(this.headerWrap.scrollLeft=e)},c.prototype.setWidth=function(e){this.table&&(this.table.style.width=e+"px")},c.prototype.render=function(){var t=this;return this.props.staticHeaders?a.createElement("div",{ref:function(e){t.element=e},className:"k-grid-header",style:this.divStyle},a.createElement("div",{ref:function(e){t.headerWrap=e},className:"k-grid-header-wrap"},a.createElement("table",{ref:function(e){t.table=e}},a.createElement("colgroup",{ref:function(e){t.props.columnResize.colGroupHeader=e}},this.props.cols),a.createElement("thead",null,this.props.headerRow,this.props.filterRow)))):a.createElement("thead",{className:"k-grid-header"},this.props.headerRow,this.props.filterRow)},c);function c(){var e=null!==i&&i.apply(this,arguments)||this;return e.divStyle={},e.element=null,e.headerWrap=null,e.table=null,e}t.Header=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(Object.defineProperty(o.prototype,"scrollbarWidth",{get:function(){var e="undefined"!=typeof document?document:{};if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),o);function o(){}t.BrowserSupportService=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=this&&this.__assign||function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i,u=r(0),f=r(5),l=r(6),h={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},d={none:"none",asc:"ascending",desc:"descending"},a=(i=u.Component,o(s,i),s.prototype.cellClass=function(t,e,r){var n="k-header"+(r?" k-grid-header-sticky":"")+(e?" "+e:"");return this.props.sort&&this.props.sort.some(function(e){return e.field===t})&&(n+=" k-sorted"),n},s.prototype.sortIcon=function(e){return this.props.sort?0<=e&&[u.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),1<this.props.sort.length&&u.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},s.prototype.render=function(){var r=this;return this.props.columnsMap.map(function(e,t){return u.createElement("tr",{key:t},r.cells(e))})},s);function s(){var c=null!==i&&i.apply(this,arguments)||this;return c.cellClick=function(e,t){if(e.preventDefault(),c.props.sortChange){var r=l.normalize(c.props.sortable||!1,t.sortable||!1),n=r.allowUnsort,o=r.mode,i=(c.props.sort||[]).filter(function(e){return e.field===t.field})[0],a=h[n][i&&i.dir||""],s="single"===o?[]:(c.props.sort||[]).filter(function(e){return e.field!==t.field});""!==a&&t.field&&s.push({field:t.field,dir:a}),c.props.sortChange(e,s,t.field)}},c.cells=function(e){return e.map(function(e,t){var r=c.props.columns[e],n=c.props.sortable&&r.sortable,o=c.props.sort?c.props.sort.findIndex(function(e){return e.field===r.field}):-1,i=0<=o&&c.props.sort[o].dir||"none",a={field:r.field,onClick:n&&function(e){return c.cellClick(e,r)}||void 0,selectionChange:c.props.selectionChange,title:r.title,selectionValue:r.headerSelectionValue,render:c.props.cellRender,children:c.sortIcon(o)},s=(r.kFirst?"k-first ":"")+c.cellClass(r.field,r.headerClassName,r.locked),l=void 0!==r.locked?{left:r.left,right:r.right,borderRightWidth:r.rightBorder?"1px":""}:{};return u.createElement("th",{"aria-sort":d[i],key:t,colSpan:r.colSpan,rowSpan:r.rowSpan,className:s,style:l},r.headerCell&&u.createElement(r.headerCell,p({},a))||u.createElement(f.HeaderCell,p({},a)))})},c}t.HeaderRow=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.HeaderSelectionCell=function(t){var e=[n.createElement("input",{key:0,checked:t.selectionValue,id:t.inputId,type:"checkbox",className:"k-checkbox",onChange:function(e){return t.selectionChange({field:t.field,syntheticEvent:e})}}),n.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:t.inputId})];return t.render?t.render.call(void 0,e,t):e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=r(4);t.mapColumns=function(e){for(var n=[[]],o=0,t=e.length-1;0<=t;t--)e[t].colSpan=e[t].colSpan||1,-1!==e[t].parentIndex&&(e[e[t].parentIndex].colSpan=(e[e[t].parentIndex].colSpan||0)+e[t].colSpan);var i=0;e.forEach(function(e){i=Math.max(i,e.depth)});var a=1;e.forEach(function(e,t){n[e.depth]=n[e.depth]||[];var r=!1;0===n[e.depth].length&&(a<=1?a=1+(0<e.children.length?0:i-e.depth):(a--,r=!0)),e.rowSpan=1+(0<e.children.length?0:i-e.depth),e.kFirst=r,e.index=n[e.depth].length,n[e.depth].push(t),e.locked&&0===e.children.length&&(e.left=o,o+=e.width?parseFloat(e.width.toString()):0)});for(var r=!1,s=0,l=e.length-1;0<=l;l--){var c=e[l];c.locked&&0===c.children.length&&(c.right=s,s+=c.width?parseFloat(c.width.toString()):0,c.rightBorder=!r),r=c.locked||!1}return n},t.readColumns=function o(e,i,a){void 0===a&&(a=0);var s=[];if(!e)return[];if(e&&void 0===e.length&&(e=[e]),e.forEach(function(e,t){e=e.props?e.props:e;var r=i[t]||null,n=o(e.children,r&&r.children||[],a+1);s.push(Object.assign({depth:a},l.ColumnDefaultProps,n.length?{cell:function(){return null},filter:function(){return null}}:{},r?{width:r.width,orderIndex:r.orderIndex}:{},e,{declarationIndex:s.length,children:n,rowSpan:0,colSpan:0}))}),s.sort(function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)}),0!==a)return s;var r=[],n=function(e,t){return e.forEach(function(e){e.parentIndex=t,n(e.children,r.push(e)-1)})};return n(s,-1),r}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(26))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,r=e.columns,n=void 0===r?[]:r,o=e.tableViewPortWidth,i=e.scrollLeft,a=n.map(function(){return 1}),s=n.map(function(){return!1});if(t){for(var l=n.map(function(e){return parseFloat((e.width||"").toString())||10}),c=0,p=0,u=0;u<n.length;u++)if(!n[u].locked){var f=u<l.length-1?l[u+1]:0;if(!(p+l[u]+f<i)){a[u]=1+c;break}s[u]=!0,c++,p+=l[u]}var h=l.reduce(function(e,t){return e+t},0);for(p=c=0,u=n.length-1;0<=u;u--)if(!n[u].locked){if(!(p+2*l[u]<h-o-i)){a[u]=Math.max(a[u],1+c);break}s[u]=!0,c++,p+=l[u]}}return{colSpans:a,hiddenColumns:s}}}],o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=7)}}}); | ||
System.register("@progress/kendo-react-data-tools",["prop-types","react","@progress/kendo-react-intl","@progress/kendo-react-common"],function(u){var i,a,s,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)}],execute:function(){function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,n;n={},o.m=r=[function(e,t){e.exports=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.createFilterCell=function(p){return t=u.Component,o(e,t),e.prototype.render=function(){var e=this.props,t=e.clearButtonTitle,r=void 0===t?"":t,n=e.operators,o=void 0===n?[]:n,i=this.findCellFilter()||c({},p.emptyFilter,{operator:""}),a=i.operator,s=i.value,l={value:o.find(function(e){return e.operator===a})||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:o,textField:"text",popupSettings:{width:""},components:this.props.components};return u.createElement("div",{className:"k-filtercell"},u.createElement("div",{className:"k-filtercell-wrapper"},p.inputComponent({value:s,onChange:this.inputChange,components:this.props.components}),u.createElement("div",{className:"k-filtercell-operator"},p.operatorComponent(l,this.props),u.createElement("button",{className:null!==s&&""!==s||a?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:r,type:"button",onClick:this.clearButtonClick},u.createElement("span",{className:"k-icon k-i-filter-clear"})))))},e;function e(){var u=null!==t&&t.apply(this,arguments)||this;return u.filterChange=function(e){u.props.onFilterChange&&u.props.onFilterChange(e)},u.inputChange=function(e){var t=e.target.value,r=u.props,n=r.filter,o=void 0===n?[]:n,i=r.field,a=void 0===i?"":i,s=u.findCellFilter(),l=s?o.map(function(e){return e.field===a?c({},s,{value:t}):e}):o.concat([c({},p.emptyFilter,{value:t,field:a})]);u.filterChange({filter:l,field:a,syntheticEvent:e.syntheticEvent})},u.operatorChange=function(e){var t=e.target.value.operator,r=u.props,n=r.filter,o=void 0===n?[]:n,i=r.field,a=void 0===i?"":i,s=u.findCellFilter(),l=s?o.map(function(e){return e.field===a?c({},s,{operator:t}):e}):o.concat([c({},p.emptyFilter,{field:a,operator:t})]);u.filterChange({filter:l,field:a,syntheticEvent:e.syntheticEvent})},u.clearButtonClick=function(e){var t=u.props,r=t.filter,n=void 0===r?[]:r,o=t.field,i=void 0===o?"":o;u.filterChange({filter:n.filter(function(e){return e.field!==i}),field:i,syntheticEvent:e})},u.findCellFilter=function(){var e=u.props,t=e.filter,r=void 0===t?[]:t,n=e.field;return r.find(function(e){return e.field===n})},u}var t}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.messages=((n={})[t.pagerItemPerPage]="items per page",n[t.pagerInfo]="{0} - {1} of {2} items",n[t.pagerFirstPage]="Go to the first page",n[t.pagerPreviousPage]="Go to the previous page",n[t.pagerNextPage]="Go to the next page",n[t.pagerLastPage]="Go to the last page",n[t.pagerPage]="Page",n[t.pagerOf]="of",n)},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),n(t(5)),n(t(21)),n(t(22)),n(t(7)),n(t(23)),n(t(26)),n(t(8)),n(t(6))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(5);t.mapColumns=function(e){for(var n=[[]],o=0,t=e.length-1;0<=t;t--)e[t].colSpan=e[t].colSpan||1,-1!==e[t].parentIndex&&(e[e[t].parentIndex].colSpan=(e[e[t].parentIndex].colSpan||0)+e[t].colSpan);var i=0;e.forEach(function(e){i=Math.max(i,e.depth)});var a=1;e.forEach(function(e,t){n[e.depth]=n[e.depth]||[];var r=!1;0===n[e.depth].length&&(a<=1?a=1+(0<e.children.length?0:i-e.depth):(a--,r=!0)),e.rowSpan=1+(0<e.children.length?0:i-e.depth),e.kFirst=r,e.index=n[e.depth].length,n[e.depth].push(t),e.locked&&0===e.children.length&&(e.left=o,o+=e.width?parseFloat(e.width.toString()):0)});for(var r=!1,s=0,l=e.length-1;0<=l;l--){var u=e[l];u.locked&&0===u.children.length&&(u.right=s,s+=u.width?parseFloat(u.width.toString()):0,u.rightBorder=!r),r=u.locked||!1}return n},t.readColumns=function r(e,n){void 0===n&&(n=0);var o=[];if(!e||!e.length)return[];if(e.forEach(function(e){var t=r(e.children||[],n+1);o.push(Object.assign({},{depth:n},s.ColumnDefaultProps,e,{declarationIndex:o.length,children:t,rowSpan:0,colSpan:0}))}),o.sort(function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)}),0!==n)return o;var i=[],a=function(e,t){return e.forEach(function(e){e.parentIndex=t,a(e.children,i.push(e)-1)})};return a(o,-1),i},t.isRtl=function(e){return Boolean(e&&"rtl"===getComputedStyle(e).direction)},t.getIndex=function(e,t){if(!t||!e||!e.originalEvent)return-1;for(var r=document.elementFromPoint(e.clientX,e.originalEvent.clientY);r&&r.parentElement!==t;)r=r.parentElement;for(var n=t.children,o=0;o<n.length;o++)if(n[o]===r)return o;return-1}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.HeaderCell=function(e){var t=e.onClick?{href:"#",onClick:e.onClick}:{},r=o.createElement("a",n({className:"k-link"},t),e.title||e.field||" ",e.children);return e.render?e.render.call(void 0,r,e):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,t){e.exports=l},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0});var o=t(11);r.Pager=o.Pager,n(t(16)),n(t(4)),n(t(27));var i=t(29);r.ColumnResize=i.ColumnResize;var a=t(30);r.CommonDragLogic=a.CommonDragLogic;var s=t(31);r.DragClue=s.DragClue;var l=t(32);r.DropClue=l.DropClue,function(e){for(var t in e)u(t,e[t])}(r)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,v=r(0),a=r(12),m=r(13),y=r(14),_=r(15),b=r(3),P=r(2),s=(i=v.Component,o(l,i),l.prototype.render=function(){var e,t,r,n,o=this.props,i=o.skip,a=o.take,s=o.total,l=o.pageSizes,u=o.className,p=P.provideLocalizationService(this),c=P.provideIntlService(this),f=Math.floor(i/a)+1,h="numeric"===this.props.type?v.createElement(m.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:f,pageChange:this.changePage}):v.createElement(y.PagerInput,{currentPage:f,totalPages:this.totalPages,pageChange:this.changePage});this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===f?" k-state-disabled":""),p.toLanguageString(b.pagerFirstPage,b.messages[b.pagerFirstPage]),"k-icon k-i-arrow-end-left"),t=this.renderButton(f-1,"k-link k-pager-nav"+(1===f?" k-state-disabled":""),p.toLanguageString(b.pagerPreviousPage,b.messages[b.pagerPreviousPage]),"k-icon k-i-arrow-60-left"),r=this.renderButton(f+1,"k-link k-pager-nav"+(f===this.totalPages?" k-state-disabled":""),p.toLanguageString(b.pagerNextPage,b.messages[b.pagerNextPage]),"k-icon k-i-arrow-60-right"),n=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(f===this.totalPages?" k-state-disabled":""),p.toLanguageString(b.pagerLastPage,b.messages[b.pagerLastPage]),"k-icon k-i-arrow-end-right"));var d=void 0!==l&&v.createElement(_.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:a,pageSizes:l}),g=this.props.info&&v.createElement("div",{className:"k-pager-info k-label"},c.format(p.toLanguageString(b.pagerInfo,b.messages[b.pagerInfo]),[Math.min(i+1,s),Math.min(i+a,s),s]));return v.createElement("div",{className:"k-pager-wrap k-floatwrap k-widget"+(u?" "+u:""),style:this.props.style},e,t,h,r,n,d,g)},l.prototype.renderButton=function(t,e,r,n){var o=this;return v.createElement("a",{onClick:function(e){e.preventDefault(),o.changePage(t,e)},href:"#",className:e,title:r},v.createElement("span",{className:n,"aria-label":r}))},Object.defineProperty(l.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),l.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func},l.defaultProps={buttonCount:10,info:!0,type:"numeric"},l);function l(){var r=null!==i&&i.apply(this,arguments)||this;return r.changePage=function(e,t){r.props.onPageChange&&0<e&&e<=r.totalPages&&r.props.onPageChange({target:r,skip:(e-1)*r.props.take,take:r.props.take,syntheticEvent:t,nativeEvent:t.nativeEvent})},r}t.Pager=s,P.registerForIntl(s),P.registerForLocalization(s)},function(e,t){e.exports=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=(i=a.Component,o(l,i),l.prototype.render=function(){for(var r=this,e=1<this.start&&this.renderDots(this.start-1),t=this.end<this.props.totalPages&&this.renderDots(this.end+1),n=[],o=this.start;o<=this.end;o++)n.push(o);var i=n.map(function(t){return a.createElement("li",{key:t},a.createElement("a",{href:"#",onClick:function(e){return r.handlePageChange(e,t)},className:r.props.currentPage===t?"k-link k-state-selected":"k-link"},t))});return a.createElement("ul",{className:"k-pager-numbers k-reset"},e,i,t)},l.prototype.renderDots=function(t){var r=this;return a.createElement("li",null,a.createElement("a",{className:"k-link",onClick:function(e){return r.handlePageChange(e,t)},href:"#"},"..."))},Object.defineProperty(l.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(t<e){var r=e%t;return 0==r?e-t+1:e-r+1}return 1},enumerable:!0,configurable:!0}),l);function l(){var r=null!==i&&i.apply(this,arguments)||this;return r.handlePageChange=function(e,t){e.preventDefault(),r.props.pageChange(t,e)},r}t.PagerNumericButtons=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(2),l=r(3),u=(i=a.Component,o(p,i),p.prototype.render=function(){var e=this,t=s.provideLocalizationService(this);return a.createElement("span",{className:"k-pager-input k-label"},t.toLanguageString(l.pagerPage,l.messages[l.pagerPage]),a.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),t.toLanguageString(l.pagerOf,l.messages[l.pagerOf])+" "+this.props.totalPages)},p);function p(){var r=null!==i&&i.apply(this,arguments)||this;return r._text=void 0,r.onChange=function(e){var t=r._text=e.target.value.replace(/\D/g,"");r.forceUpdate(),t&&r.props.pageChange(parseInt(t,10),e)},r.value=function(){var e=void 0===r._text?r.props.currentPage.toString():r._text;return r._text=void 0,e},r}t.PagerInput=u,s.registerForLocalization(u)},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(2),l=r(3),u=(i=a.Component,o(p,i),p.prototype.render=function(){var t=this,e=this.props.pageSizes.slice();return 0===e.filter(function(e){return e===t.props.pageSize}).length&&e.unshift(this.props.pageSize),a.createElement("label",{className:"k-pager-sizes k-label"},a.createElement("select",{value:this.props.pageSize,onChange:this.pageSizeChange},e.map(function(e,t){return a.createElement("option",{key:t,value:e}," ",e," ")})),s.provideLocalizationService(this).toLanguageString(l.pagerItemPerPage,l.messages[l.pagerItemPerPage]))},p);function p(){var t=null!==i&&i.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}t.PagerPageSizes=u,s.registerForLocalization(u)},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),n(t(1)),n(t(17)),n(t(18)),n(t(19)),n(t(20))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var i,p=r(0),a=r(1),s={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,n){var t=n.filter,o=void 0===t?[]:t,i=n.field,a=o.find(function(e){return e.field===i}),r=e.components.DropDownList,s=u(e,["components"]);return r&&p.createElement(r,l({},s,{value:e.data.find(function(e){return e.operator===(a?a.value:"")}),onChange:function(e){if(n.onFilterChange){var t=e.target.value.operator;if(""!==t){var r=a?o.map(function(e){return e.field===i?l({},a,{value:t}):e}):o.concat([{value:t,field:i,operator:"eq"}]);n.onFilterChange.call(void 0,{filter:r,field:i,syntheticEvent:e.syntheticEvent})}else a&&n.onFilterChange.call(void 0,{filter:o.filter(function(e){return e.field!==a.field}),field:i,syntheticEvent:e.syntheticEvent})}}}))}},c=(i=a.createFilterCell(s),o(f,i),f);function f(){return null!==i&&i.apply(this,arguments)||this}t.BooleanFilter=c},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),u={inputComponent:function(e){var t=e.components.DatePicker,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},p=(s=r(1).createFilterCell(u),o(c,s),c);function c(){return null!==s&&s.apply(this,arguments)||this}t.DateFilter=p},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),u={inputComponent:function(e){var t=e.components.NumericTextBox,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"eq",value:null}},p=(s=r(1).createFilterCell(u),o(c,s),c);function c(){return null!==s&&s.apply(this,arguments)||this}t.NumericFilter=p},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var s,l=r(0),u={inputComponent:function(e){var t=e.components.Input,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},operatorComponent:function(e){var t=e.components.DropDownList,r=a(e,["components"]);return t&&l.createElement(t,i({},r))},emptyFilter:{operator:"contains",value:""}},p=(s=r(1).createFilterCell(u),o(c,s),c);function c(){return null!==s&&s.apply(this,arguments)||this}t.TextFilter=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(0);t.FilterRow=function(e){var t=e.columns,r=e.filter,n=e.filterChange,o=e.sort,i=void 0===o?[]:o;return a.createElement("tr",{className:"k-filter-row"},t.map(function(e,t){return a.createElement("th",{key:t,className:function(e,t,r){var n=r?"k-grid-header-sticky":"";return e.some(function(e){return e.field===t})&&(n+=" k-sorted"),n}(i,e.field,e.locked)},e.filter&&a.createElement(e.filter,{field:e.field,filter:r,onFilterChange:n}))}))}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(6),l=(i=a.Component,o(u,i),u.prototype.componentDidMount=function(){var e=this.props.columnResize;e&&e.resizable&&e.setIsRtl(s.isRtl(this.element))},u.prototype.render=function(){var t=this;return a.createElement("thead",{className:"k-grid-header",ref:function(e){return t.element=e}},this.props.headerRow,this.props.filterRow)},u);function u(){var e=null!==i&&i.apply(this,arguments)||this;return e.element=null,e}t.Header=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i,h=r(0),d=r(7),l=r(8),g=r(24),a=r(25),u={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},v={none:"none",asc:"ascending",desc:"descending"},s=(i=h.Component,o(p,i),p.prototype.cellClass=function(t,e,r){var n="k-header"+(r?" k-grid-header-sticky":"")+(e?" "+e:"");return this.props.sort&&this.props.sort.some(function(e){return e.field===t})&&(n+=" k-sorted"),n},p.prototype.sortIcon=function(e){return this.props.sort?0<=e&&[h.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),1<this.props.sort.length&&h.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},p.prototype.render=function(){var r=this;return this.props.columnsMap.map(function(e,t){return r.props.pressHandler&&h.createElement(a.ColumnDraggable,{key:t,pressHandler:r.props.pressHandler,dragHandler:r.props.dragHandler,releaseHandler:r.props.releaseHandler},r.cells(e))||h.createElement("tr",null,r.cells(e))})},p);function p(){var c=null!==i&&i.apply(this,arguments)||this;return c.cellClick=function(e,t){if(e.preventDefault(),c.props.sortChange){var r=l.normalize(c.props.sortable||!1,t.sortable||!1),n=r.allowUnsort,o=r.mode,i=(c.props.sort||[]).filter(function(e){return e.field===t.field})[0],a=u[n][i&&i.dir||""],s="single"===o?[]:(c.props.sort||[]).filter(function(e){return e.field!==t.field});""!==a&&t.field&&s.push({field:t.field,dir:a}),c.props.sortChange(e,s,t.field)}},c.cells=function(e){return e.map(function(e,t){var n=c.props.columns[e],o=c.props.columnResize,r=o&&o.resizable&&n.resizable,i=c.props.sortable&&n.sortable,a=c.props.sort?c.props.sort.findIndex(function(e){return e.field===n.field}):-1,s=0<=a&&c.props.sort[a].dir||"none",l={field:n.field,onClick:i&&function(e){return c.cellClick(e,n)}||void 0,selectionChange:c.props.selectionChange,title:n.title,selectionValue:n.headerSelectionValue,render:c.props.cellRender,children:c.sortIcon(a)},u=(n.kFirst?"k-first ":"")+c.cellClass(n.field,n.headerClassName,n.locked),p=void 0!==n.locked?{left:n.left,right:n.right,borderRightWidth:n.rightBorder?"1px":""}:{};return h.createElement("th",{"aria-sort":i?v[s]:void 0,key:t,colSpan:n.colSpan,rowSpan:n.rowSpan,className:u,style:p},n.headerCell&&h.createElement(n.headerCell,f({},l))||h.createElement(d.HeaderCell,f({},l)),r&&o&&h.createElement(g.ColumnResizer,{key:"ColumnResizer",resize:function(e,t,r){return o.dragHandler(e,n,t,r)}}))})},c}t.HeaderRow=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(9),l=(i=a.PureComponent,o(u,i),u.prototype.render=function(){var t=this;return a.createElement(s.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){t.draggable=e}},a.createElement("span",{className:"k-column-resizer",draggable:!1}))},u);function u(){var r=null!==i&&i.apply(this,arguments)||this;return r.onDrag=function(e){var t=r.draggable&&r.draggable.element;t&&r.props.resize(e.event,t,!1)},r.onRelease=function(e){var t=r.draggable&&r.draggable.element;t&&r.props.resize(e.event,t,!0)},r}t.ColumnResizer=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=r(9),l=(i=a.PureComponent,o(u,i),u.prototype.render=function(){var t=this;return a.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){t.draggable=e}},a.createElement("tr",null,this.props.children))},u);function u(){var r=null!==i&&i.apply(this,arguments)||this;return r.onPress=function(e){var t=r.draggable&&r.draggable.element;t&&r.props.pressHandler&&r.props.pressHandler(e.event,t)},r.onDrag=function(e){var t=r.draggable&&r.draggable.element;t&&r.props.dragHandler&&r.props.dragHandler(e.event,t)},r.onRelease=function(e){r.draggable&&r.draggable.element&&r.props.releaseHandler&&r.props.releaseHandler(e.event)},r}t.ColumnDraggable=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.HeaderSelectionCell=function(t){var e=[n.createElement("input",{key:0,checked:t.selectionValue,id:t.inputId,type:"checkbox",className:"k-checkbox",onChange:function(e){return t.selectionChange({field:t.field,syntheticEvent:e})}}),n.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:t.inputId})];return t.render?t.render.call(void 0,e,t):e}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(28))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,r=e.columns,n=void 0===r?[]:r,o=e.tableViewPortWidth,i=e.scrollLeft,a=n.map(function(){return 1}),s=n.map(function(){return!1});if(t){for(var l=n.map(function(e){return parseFloat((e.width||"").toString())||10}),u=0,p=0,c=0;c<n.length;c++)if(!n[c].locked){var f=c<l.length-1?l[c+1]:0;if(!(p+l[c]+f<i)){a[c]=1+u;break}s[c]=!0,u++,p+=l[c]}var h=l.reduce(function(e,t){return e+t},0);for(p=u=0,c=n.length-1;0<=c;c--)if(!n[c].locked){if(!(p+2*l[c]<h-o-i)){a[c]=Math.max(a[c],1+u);break}s[c]=!0,u++,p+=l[c]}}return{colSpans:a,hiddenColumns:s}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(o.prototype.dragHandler=function(e,t,r,n){var o=e.originalEvent;n||(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation());var i=r.parentElement;if(i&&i.parentElement){var a,s=i.clientWidth;if(this.isRtl?(a=r.getBoundingClientRect().right-r.offsetWidth/2-e.clientX,a+=s):a=s+e.clientX-r.getBoundingClientRect().left-r.offsetWidth/2,n||!(Math.abs(a-s)<1)){this.setWidths(t,Math.floor(a)/s);var l=this.columns.filter(function(e){return!e.children.length}).indexOf(t);this.onResize(l,s,a,o,n)}}},o.prototype.setWidths=function(e,n){for(var t=this.columns.indexOf(e),r=[],o=e.children.length,i=t+1;0<o&&i<this.columns.length;i++,o--){var a=this.columns[i];a.children.length?o+=a.children.length:r.push(a)}0===r.length&&r.push(e),r.forEach(function(e){var t=e.width?parseFloat(e.width.toString())*n:0,r=void 0===e.minResizableWidth?10:e.minResizableWidth;t<r&&(t=r),e.width=t}),this.updateColElements(r)},o.prototype.updateColElements=function(e){for(var t=this.columns.filter(function(e){return!e.children.length}),r=1e-10,n=0;n<e.length;n++){var o=t.indexOf(e[n]),i=parseFloat((e[n].width||0).toString());r+=i-Math.floor(i);var a=Math.floor(i)+Math.floor(r);r-=Math.floor(r),this.setColWidth(this.colGroupMain&&this.colGroupMain.children[o],a),this.setColWidth(this.colGroupHeader&&this.colGroupHeader.children[o],a),this.setColWidth(this.colGroupFooter&&this.colGroupFooter.children[o],a)}},o.prototype.setColWidth=function(e,t){e&&(e.style.width=t+"px")},o);function o(e){var t=this;this.resizable=!1,this.isRtl=!1,this.setIsRtl=function(e){t.isRtl=e},this.onResize=e,this.dragHandler=this.dragHandler.bind(this)}t.ColumnResize=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),n=(o.prototype.getColumnIndex=function(e,r){if(!r||r.parentElement===this.groupPanelDivElement)return-1;var n=s.getIndex(e,r);if(-1===n)return-1;for(var t=function(t){if(r.parentNode.children[t]===r)return{value:o.columns.findIndex(function(e){return e.index===n&&e.depth===t})}},o=this,i=0;i<r.parentNode.children.length;i++){var a=t(i);if("object"==typeof a)return a.value}return-1},o.prototype.getGroupIndex=function(e){return s.getIndex(e,this.groupPanelDivElement)},o.prototype.isValid=function(){return 0<=this.startGroup?0<=this.currentGroup&&this.currentGroup!==this.startGroup:-1!==this.startColumn&&(0<=this.currentGroup?!0===this.columns[this.startColumn].groupable&&!0===this.groupable:!0===this.reorderable&&0<=this.currentColumn&&this.currentColumn!==this.startColumn&&!0===this.columns[this.startColumn].reorderable&&this.columns[this.currentColumn].parentIndex===this.columns[this.startColumn].parentIndex)},o.prototype.updateDragElementClue=function(e,t,r,n){if(this.dragElementClue){var o=0<=this.startColumn?t.children[this.columns[this.startColumn].index].innerText:t.innerText;this.dragElementClue.setState({visible:!0,top:e.pageY+10,left:e.pageX,innerText:o,status:n||!r?"k-i-cancel":"k-i-add"})}},o.prototype.updateDropElementClue=function(e,t,r,n){if(this.dropElementClue)if(!n&&r){var o=r.getBoundingClientRect(),i=o.left+e.pageX-e.clientX-6;(this.currentColumn>this.startColumn||this.currentGroup>this.startGroup&&-1!==this.startGroup)&&(i+=o.width);var a=o.top+e.pageY-e.clientY;this.dropElementClue.setState({visible:!0,top:a,left:i,height:0<=this.currentColumn?t.clientHeight:o.height})}else this.dropElementClue.setState({visible:!1})},o);function o(e,t,r){var a=this;this.reorderable=!1,this.groupable=!1,this.startColumn=-1,this.startGroup=-1,this.currentColumn=-1,this.currentGroup=-1,this.dropElementClue=null,this.dragElementClue=null,this.groupPanelDivElement=null,this.refGroupPanelDiv=function(e){a.groupPanelDivElement=e},this.refDropElementClue=function(e){a.dropElementClue=e},this.refDragElementClue=function(e){a.dragElementClue=e},this.pressHandler=function(e,t){e.isTouch||e.originalEvent.preventDefault();var r=a.getColumnIndex(e,t);if(a.startGroup=a.getGroupIndex(e),0<=r){var n=a.columns[r];(n.reorderable&&a.reorderable||n.groupable&&a.groupable)&&(a.startColumn=r)}},this.dragHandler=function(e,t){if(e.isTouch||e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),-1!==a.startColumn||-1!==a.startGroup){a.currentColumn=a.getColumnIndex(e,t),a.currentGroup=a.getGroupIndex(e),a.groupPanelDivElement&&0<=a.startGroup&&(a.currentGroup=Math.min(a.currentGroup,a.groupPanelDivElement.children.length-2));var r=!a.isValid();r&&(a.currentColumn=-1,a.currentGroup=-1);var n=0<=a.currentColumn?t.children[a.columns[a.currentColumn].index]:a.groupPanelDivElement&&a.groupPanelDivElement.children[a.currentGroup];a.updateDragElementClue(e,t,n,r),a.updateDropElementClue(e,t,n,r)}},this.releaseHandler=function(e){var t=a.startColumn,r=a.currentColumn,n=a.startGroup,o=a.currentGroup;a.dropElementClue&&a.dropElementClue.setState({visible:!1}),a.dragElementClue&&a.dragElementClue.setState({visible:!1});var i=a.isValid();a.startColumn=a.startGroup=a.currentColumn=a.currentGroup=-1,i&&(0<=t&&0<=r?a.columnReorder(t,r,e.originalEvent):0<=n&&0<=o?a.groupReorder(n,o,e.originalEvent):0<=t&&0<=o&&a.columnToGroup(t,o,e.originalEvent))},this.columnReorder=e,this.groupReorder=t,this.columnToGroup=r}t.CommonDragLogic=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=(i=a.PureComponent,o(l,i),l.prototype.render=function(){return this.state.visible&&a.createElement("div",{className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:this.state.top+"px",left:this.state.left+"px"}},a.createElement("span",{className:"k-icon k-drag-status "+this.state.status+" k-icon-with-modifier"},a.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.innerText)},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.state={visible:!1,top:0,left:0,innerText:"",status:"k-i-cancel"},e}t.DragClue=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(0),s=(i=a.PureComponent,o(l,i),l.prototype.render=function(){return this.state.visible&&a.createElement("div",{className:"k-grouping-dropclue",style:{zIndex:1e4,display:"block",top:this.state.top+"px",left:this.state.left+"px",height:this.state.height+"px"}})},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.state={height:0,visible:!1,left:0,top:0},e}t.DropClue=s}],o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=10)}}}); |
{ | ||
"name": "@progress/kendo-react-data-tools", | ||
"description": "KendoReact Data Tools package", | ||
"version": "3.7.0", | ||
"version": "3.8.0-dev.201911181349", | ||
"repository": { | ||
@@ -38,2 +38,3 @@ "type": "git", | ||
"dependencies": { | ||
"@progress/kendo-react-common": "3.8.0-dev.201911181349", | ||
"prop-types": "^15.6.0" | ||
@@ -43,3 +44,3 @@ }, | ||
"@progress/kendo-data-query": "^1.0.0", | ||
"@progress/kendo-react-intl": "3.7.0" | ||
"@progress/kendo-react-intl": "3.8.0-dev.201911181349" | ||
}, | ||
@@ -46,0 +47,0 @@ "@progress": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
369983
204
4974
5
2
+ Added@progress/kendo-react-common@3.8.0-dev.201911181349(transitive)
+ Added@telerik/kendo-draggable@2.0.0(transitive)