@progress/kendo-react-dropdowns 9.0.0-develop.17 → 9.0.0-develop.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";const v=require("react"),n=require("prop-types"),y=require("./VirtualScrollStatic.js"),S=require("./Navigation.js"),c=require("./utils.js");function b(l){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const e in l)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(l,e);Object.defineProperty(s,e,t.get?t:{enumerable:!0,get:()=>l[e]})}}return s.default=l,Object.freeze(s)}const P=b(v),a=class a{constructor(s){this.wrapper=null,this.list=null,this.vs=new y.VirtualScroll,this.navigation=new S.Navigation,this.handleItemClick=(e,t)=>{const i=this.initState();i.syntheticEvent=t,t.stopPropagation(),this.component.handleItemSelect(e,i),this.togglePopup(i),this.applyState(i)},this.handleFocus=e=>{if(!this.component.state.focused){const t=this.initState();t.data.focused=!0,t.events.push({type:"onFocus"}),t.syntheticEvent=e,this.applyState(t)}},this.filterChanged=(e,t)=>{const{textField:i,filterable:o}=this.component.props;o&&t.events.push({type:"onFilterChange",filter:{field:i,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=e=>{const t=this.component.props,i=t.opened!==void 0?t.opened:this.component.state.opened;t.opened===void 0&&(e.data.opened=!i),i?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),this.calculatePopupWidth())},this.pageChange=(e,t)=>{const i=this.initState();i.syntheticEvent=t,this.triggerOnPageChange(i,e.skip,e.take),this.applyState(i)},this.scrollToVirtualItem=(e,t)=>{const i=this.vs;if(e.skip===0)i.reset();else{let o=i.translate;o===0&&(i.calcScrollElementHeight(),o=i.itemHeight*e.skip,i.translateTo(o,!0)),t<0&&o>0&&(o+=i.itemHeight*(e.pageSize/4)),i.container&&(i.container.scrollTop=o),this.scrollToItem(t,!0)}},this.scrollPopupByPageSize=e=>{var p,u,d,g,f,m;const t=this.vs,i=(u=(p=this.list)==null?void 0:p.parentElement)==null?void 0:u.scrollTop,o=t.enabled&&t.itemHeight?t.itemHeight:this.list?this.list.children[0].offsetHeight:0,r=(g=(d=this.list)==null?void 0:d.parentElement)==null?void 0:g.offsetHeight;i!==void 0&&r!==void 0&&((m=(f=this.list)==null?void 0:f.parentElement)==null||m.scroll({top:i+e*Math.floor(r/o)*o}))},this.renderScrollElement=()=>{const e=this.vs;return e.enabled&&P.createElement("div",{ref:t=>e.scrollElement=t,key:"scrollElementKey"})},this.resetGroupStickyHeader=(e,t)=>{e!==t.state.group&&t.setState({...t.state,group:e})},this.listBoxId=s.props.id+"list",this.guid=s.props.id,this.component=s,this.vs.PageChange=this.pageChange}didUpdate(){this.vs.listTransform&&this.vs.list&&(this.vs.list.style.transform=this.vs.listTransform,this.vs.listTransform="")}didMount(){const s=this.component.props,e=s.popupSettings||{},t=s.style||{},i=e.width;let o=s.opened===!0;i===void 0&&this.calculatePopupWidth(),s.dir===void 0&&t.direction===void 0&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()}calculateDir(){const s=this.component.element;s&&s.ownerDocument&&s.ownerDocument.defaultView&&(this.dirCalculated=s.ownerDocument.defaultView.getComputedStyle(s).direction||void 0)}calculatePopupWidth(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")}scrollToItem(s,e,t){const i=this.list||this.vs.list;if(!i&&!t&&setTimeout(()=>{this.scrollToItem(s,e,!0)},10),s===0&&e&&this.vs.skip===0){this.vs.reset();return}if(i&&s>=0){const o=this.vs,r=o.container||i.parentNode,p=e!==void 0?e:o.enabled;c.scrollToItem(r,i,s,o.translate,p)}}initState(){return{data:{},events:[],syntheticEvent:void 0}}applyState(s){Object.keys(s.data).length>0&&this.component.setState(s.data);const e={syntheticEvent:s.syntheticEvent,nativeEvent:s.syntheticEvent?s.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};s.events.forEach(t=>{const i=t.type;delete t.type;const o=i&&this.component.props[i];o&&o.call(void 0,{...e,...t})})}triggerOnPageChange(s,e,t){const i=this.component.props.virtual;if(i){const o=Math.min(Math.max(0,e),Math.max(0,i.total-t));o!==i.skip&&s.events.push({type:"onPageChange",page:{skip:o,take:t}})}}triggerPageChangeCornerItems(s,e){const t=this.component.props,{data:i=[],dataItemKey:o,virtual:r}=t,p=t.opened!==void 0?t.opened:this.component.state.opened;s&&r&&this.vs.enabled&&(r.skip>0&&c.areSame(s,i[0],o)?this.triggerOnPageChange(e,r.skip-1,r.pageSize):!p&&r.skip+r.pageSize<r.total&&c.areSame(s,i[i.length-1],o)&&this.triggerOnPageChange(e,r.skip+1,r.pageSize))}getPopupSettings(){return Object.assign({},a.defaultProps.popupSettings,this.component.props.popupSettings)}getAdaptiveAnimation(){const s=this.getPopupSettings();return s.animate!==void 0?s.animate:!0}getGroupedDataModernMode(s,e){const t=[];return s.forEach((i,o)=>{s[o-1]&&i[e]!==s[o-1][e]&&t.push({[e]:i[e]}),t.push(s[o])}),t}};a.basicPropTypes={opened:n.bool,disabled:n.bool,dir:n.string,tabIndex:n.number,accessKey:n.string,data:n.array,textField:n.string,className:n.string,label:n.string,loading:n.bool,popupSettings:n.shape({animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),popupClass:n.string,className:n.string,appendTo:n.any,width:n.oneOfType([n.string,n.number]),height:n.oneOfType([n.string,n.number])}),onOpen:n.func,onClose:n.func,onFocus:n.func,onBlur:n.func,onChange:n.func,itemRender:n.func,listNoDataRender:n.func,focusedItemIndex:n.func,header:n.node,footer:n.node},a.propTypes={...a.basicPropTypes,value:n.any,defaultValue:n.any,filterable:n.bool,filter:n.string,virtual:n.shape({pageSize:n.number.isRequired,skip:n.number.isRequired,total:n.number.isRequired}),onFilterChange:n.func,onPageChange:n.func},a.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0};let h=a;module.exports=h;
8
+ "use client";"use strict";const v=require("react"),n=require("prop-types"),y=require("./VirtualScrollStatic.js"),S=require("./Navigation.js"),c=require("./utils.js");function b(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const t in l)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(l,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>l[t]})}}return e.default=l,Object.freeze(e)}const P=b(v),a=class a{constructor(e){this.wrapper=null,this.list=null,this.vs=new y.VirtualScroll,this.navigation=new S.Navigation,this.handleItemClick=(t,s)=>{const i=this.initState();i.syntheticEvent=s,s.stopPropagation(),this.component.handleItemSelect(t,i),this.togglePopup(i),this.applyState(i)},this.handleFocus=t=>{if(!this.component.state.focused){const s=this.initState();s.data.focused=!0,s.events.push({type:"onFocus"}),s.syntheticEvent=t,this.applyState(s)}},this.filterChanged=(t,s)=>{const{textField:i,filterable:o}=this.component.props;o&&s.events.push({type:"onFilterChange",filter:{field:i,operator:"contains",ignoreCase:!0,value:t}})},this.togglePopup=t=>{const s=this.component.props,i=s.opened!==void 0?s.opened:this.component.state.opened;s.opened===void 0&&(t.data.opened=!i),i?t.events.push({type:"onClose"}):(t.events.push({type:"onOpen"}),this.calculatePopupWidth())},this.pageChange=(t,s)=>{const i=this.initState();i.syntheticEvent=s,this.triggerOnPageChange(i,t.skip,t.take),this.applyState(i)},this.scrollToVirtualItem=(t,s)=>{const i=this.vs;if(t.skip===0)i.reset();else{let o=i.translate;o===0&&(i.calcScrollElementHeight(),o=i.itemHeight*t.skip,i.translateTo(o,!0)),s<0&&o>0&&(o+=i.itemHeight*(t.pageSize/4)),i.container&&(i.container.scrollTop=o),this.scrollToItem(s,!0)}},this.scrollPopupByPageSize=t=>{var p,u,d,g,f,m;const s=this.vs,i=(u=(p=this.list)==null?void 0:p.parentElement)==null?void 0:u.scrollTop,o=s.enabled&&s.itemHeight?s.itemHeight:this.list?this.list.children[0].offsetHeight:0,r=(g=(d=this.list)==null?void 0:d.parentElement)==null?void 0:g.offsetHeight;i!==void 0&&r!==void 0&&((m=(f=this.list)==null?void 0:f.parentElement)==null||m.scroll({top:i+t*Math.floor(r/o)*o}))},this.renderScrollElement=()=>{const t=this.vs;return t.enabled&&P.createElement("div",{ref:s=>t.scrollElement=s,key:"scrollElementKey"})},this.resetGroupStickyHeader=(t,s)=>{t!==s.state.group&&s.setState({group:t})},this.listBoxId=e.props.id+"list",this.guid=e.props.id,this.component=e,this.vs.PageChange=this.pageChange}didUpdate(){this.vs.listTransform&&this.vs.list&&(this.vs.list.style.transform=this.vs.listTransform,this.vs.listTransform="")}didMount(){const e=this.component.props,t=e.popupSettings||{},s=e.style||{},i=t.width;let o=e.opened===!0;i===void 0&&this.calculatePopupWidth(),e.dir===void 0&&s.direction===void 0&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()}calculateDir(){const e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)}calculatePopupWidth(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")}scrollToItem(e,t,s){const i=this.list||this.vs.list;if(!i&&!s&&setTimeout(()=>{this.scrollToItem(e,t,!0)},10),e===0&&t&&this.vs.skip===0){this.vs.reset();return}if(i&&e>=0){const o=this.vs,r=o.container||i.parentNode,p=t!==void 0?t:o.enabled;c.scrollToItem(r,i,e,o.translate,p)}}updateComponentArgs(e){for(let t in e)Object.hasOwnProperty.call(e,t)&&(this.component[t]=e[t])}initState(){return{data:{},events:[],syntheticEvent:void 0}}applyState(e){Object.keys(e.data).length>0&&this.component.setState(e.data);const t={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach(s=>{const i=s.type;delete s.type;const o=i&&this.component.props[i];o&&o.call(void 0,{...t,...s})})}triggerOnPageChange(e,t,s){const i=this.component.props.virtual;if(i){const o=Math.min(Math.max(0,t),Math.max(0,i.total-s));o!==i.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:s}})}}triggerPageChangeCornerItems(e,t){const s=this.component.props,{data:i=[],dataItemKey:o,virtual:r}=s,p=s.opened!==void 0?s.opened:this.component.state.opened;e&&r&&this.vs.enabled&&(r.skip>0&&c.areSame(e,i[0],o)?this.triggerOnPageChange(t,r.skip-1,r.pageSize):!p&&r.skip+r.pageSize<r.total&&c.areSame(e,i[i.length-1],o)&&this.triggerOnPageChange(t,r.skip+1,r.pageSize))}getPopupSettings(){return Object.assign({},a.defaultProps.popupSettings,this.component.props.popupSettings)}getAdaptiveAnimation(){const e=this.getPopupSettings();return e.animate!==void 0?e.animate:!0}getGroupedDataModernMode(e,t){const s=[];return e.forEach((i,o)=>{e[o-1]&&i[t]!==e[o-1][t]&&s.push({[t]:i[t]}),s.push(e[o])}),s}};a.basicPropTypes={opened:n.bool,disabled:n.bool,dir:n.string,tabIndex:n.number,accessKey:n.string,data:n.array,textField:n.string,className:n.string,label:n.string,loading:n.bool,popupSettings:n.shape({animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),popupClass:n.string,className:n.string,appendTo:n.any,width:n.oneOfType([n.string,n.number]),height:n.oneOfType([n.string,n.number])}),onOpen:n.func,onClose:n.func,onFocus:n.func,onBlur:n.func,onChange:n.func,itemRender:n.func,listNoDataRender:n.func,focusedItemIndex:n.func,header:n.node,footer:n.node},a.propTypes={...a.basicPropTypes,value:n.any,defaultValue:n.any,filterable:n.bool,filter:n.string,virtual:n.shape({pageSize:n.number.isRequired,skip:n.number.isRequired,total:n.number.isRequired}),onFilterChange:n.func,onPageChange:n.func},a.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0};let h=a;module.exports=h;
@@ -7,86 +7,90 @@
7
7
  */
8
8
  "use client";
9
9
  import * as m from "react";
10
- import s from "prop-types";
10
+ import n from "prop-types";
11
11
  import { VirtualScroll as v } from "./VirtualScrollStatic.mjs";
12
12
  import { Navigation as y } from "./Navigation.mjs";
13
13
  import { scrollToItem as S, areSame as g } from "./utils.mjs";
14
14
  const a = class a {
15
- constructor(n) {
16
- this.wrapper = null, this.list = null, this.vs = new v(), this.navigation = new y(), this.handleItemClick = (i, t) => {
17
- const e = this.initState();
18
- e.syntheticEvent = t, t.stopPropagation(), this.component.handleItemSelect(i, e), this.togglePopup(e), this.applyState(e);
19
- }, this.handleFocus = (i) => {
15
+ constructor(s) {
16
+ this.wrapper = null, this.list = null, this.vs = new v(), this.navigation = new y(), this.handleItemClick = (t, e) => {
17
+ const i = this.initState();
18
+ i.syntheticEvent = e, e.stopPropagation(), this.component.handleItemSelect(t, i), this.togglePopup(i), this.applyState(i);
19
+ }, this.handleFocus = (t) => {
20
20
  if (!this.component.state.focused) {
21
- const t = this.initState();
22
- t.data.focused = !0, t.events.push({ type: "onFocus" }), t.syntheticEvent = i, this.applyState(t);
21
+ const e = this.initState();
22
+ e.data.focused = !0, e.events.push({ type: "onFocus" }), e.syntheticEvent = t, this.applyState(e);
23
23
  }
24
- }, this.filterChanged = (i, t) => {
25
- const { textField: e, filterable: o } = this.component.props;
26
- o && t.events.push({
24
+ }, this.filterChanged = (t, e) => {
25
+ const { textField: i, filterable: o } = this.component.props;
26
+ o && e.events.push({
27
27
  type: "onFilterChange",
28
28
  filter: {
29
- field: e,
29
+ field: i,
30
30
  operator: "contains",
31
31
  ignoreCase: !0,
32
- value: i
32
+ value: t
33
33
  }
34
34
  });
35
- }, this.togglePopup = (i) => {
36
- const t = this.component.props, e = t.opened !== void 0 ? t.opened : this.component.state.opened;
37
- t.opened === void 0 && (i.data.opened = !e), e ? i.events.push({ type: "onClose" }) : (i.events.push({ type: "onOpen" }), this.calculatePopupWidth());
38
- }, this.pageChange = (i, t) => {
39
- const e = this.initState();
40
- e.syntheticEvent = t, this.triggerOnPageChange(e, i.skip, i.take), this.applyState(e);
41
- }, this.scrollToVirtualItem = (i, t) => {
42
- const e = this.vs;
43
- if (i.skip === 0)
44
- e.reset();
35
+ }, this.togglePopup = (t) => {
36
+ const e = this.component.props, i = e.opened !== void 0 ? e.opened : this.component.state.opened;
37
+ e.opened === void 0 && (t.data.opened = !i), i ? t.events.push({ type: "onClose" }) : (t.events.push({ type: "onOpen" }), this.calculatePopupWidth());
38
+ }, this.pageChange = (t, e) => {
39
+ const i = this.initState();
40
+ i.syntheticEvent = e, this.triggerOnPageChange(i, t.skip, t.take), this.applyState(i);
41
+ }, this.scrollToVirtualItem = (t, e) => {
42
+ const i = this.vs;
43
+ if (t.skip === 0)
44
+ i.reset();
45
45
  else {
46
- let o = e.translate;
47
- o === 0 && (e.calcScrollElementHeight(), o = e.itemHeight * i.skip, e.translateTo(o, !0)), t < 0 && o > 0 && (o += e.itemHeight * (i.pageSize / 4)), e.container && (e.container.scrollTop = o), this.scrollToItem(t, !0);
46
+ let o = i.translate;
47
+ o === 0 && (i.calcScrollElementHeight(), o = i.itemHeight * t.skip, i.translateTo(o, !0)), e < 0 && o > 0 && (o += i.itemHeight * (t.pageSize / 4)), i.container && (i.container.scrollTop = o), this.scrollToItem(e, !0);
48
48
  }
49
- }, this.scrollPopupByPageSize = (i) => {
49
+ }, this.scrollPopupByPageSize = (t) => {
50
50
  var r, l, h, c, u, d;
51
- const t = this.vs, e = (l = (r = this.list) == null ? void 0 : r.parentElement) == null ? void 0 : l.scrollTop, o = t.enabled && t.itemHeight ? t.itemHeight : this.list ? this.list.children[0].offsetHeight : 0, p = (c = (h = this.list) == null ? void 0 : h.parentElement) == null ? void 0 : c.offsetHeight;
52
- e !== void 0 && p !== void 0 && ((d = (u = this.list) == null ? void 0 : u.parentElement) == null || d.scroll({
53
- top: e + i * Math.floor(p / o) * o
51
+ const e = this.vs, i = (l = (r = this.list) == null ? void 0 : r.parentElement) == null ? void 0 : l.scrollTop, o = e.enabled && e.itemHeight ? e.itemHeight : this.list ? this.list.children[0].offsetHeight : 0, p = (c = (h = this.list) == null ? void 0 : h.parentElement) == null ? void 0 : c.offsetHeight;
52
+ i !== void 0 && p !== void 0 && ((d = (u = this.list) == null ? void 0 : u.parentElement) == null || d.scroll({
53
+ top: i + t * Math.floor(p / o) * o
54
54
  }));
55
55
  }, this.renderScrollElement = () => {
56
- const i = this.vs;
57
- return i.enabled && /* @__PURE__ */ m.createElement("div", { ref: (t) => i.scrollElement = t, key: "scrollElementKey" });
58
- }, this.resetGroupStickyHeader = (i, t) => {
59
- i !== t.state.group && t.setState({ ...t.state, group: i });
60
- }, this.listBoxId = n.props.id + "list", this.guid = n.props.id, this.component = n, this.vs.PageChange = this.pageChange;
56
+ const t = this.vs;
57
+ return t.enabled && /* @__PURE__ */ m.createElement("div", { ref: (e) => t.scrollElement = e, key: "scrollElementKey" });
58
+ }, this.resetGroupStickyHeader = (t, e) => {
59
+ t !== e.state.group && e.setState({ group: t });
60
+ }, this.listBoxId = s.props.id + "list", this.guid = s.props.id, this.component = s, this.vs.PageChange = this.pageChange;
61
61
  }
62
62
  didUpdate() {
63
63
  this.vs.listTransform && this.vs.list && (this.vs.list.style.transform = this.vs.listTransform, this.vs.listTransform = "");
64
64
  }
65
65
  didMount() {
66
- const n = this.component.props, i = n.popupSettings || {}, t = n.style || {}, e = i.width;
67
- let o = n.opened === !0;
68
- e === void 0 && this.calculatePopupWidth(), n.dir === void 0 && t.direction === void 0 && (this.calculateDir(), o = !0), o && this.component.forceUpdate();
66
+ const s = this.component.props, t = s.popupSettings || {}, e = s.style || {}, i = t.width;
67
+ let o = s.opened === !0;
68
+ i === void 0 && this.calculatePopupWidth(), s.dir === void 0 && e.direction === void 0 && (this.calculateDir(), o = !0), o && this.component.forceUpdate();
69
69
  }
70
70
  calculateDir() {
71
- const n = this.component.element;
72
- n && n.ownerDocument && n.ownerDocument.defaultView && (this.dirCalculated = n.ownerDocument.defaultView.getComputedStyle(n).direction || void 0);
71
+ const s = this.component.element;
72
+ s && s.ownerDocument && s.ownerDocument.defaultView && (this.dirCalculated = s.ownerDocument.defaultView.getComputedStyle(s).direction || void 0);
73
73
  }
74
74
  calculatePopupWidth() {
75
75
  this.wrapper && (this.popupWidth = this.wrapper.offsetWidth + "px");
76
76
  }
77
- scrollToItem(n, i, t) {
78
- const e = this.list || this.vs.list;
79
- if (!e && !t && setTimeout(() => {
80
- this.scrollToItem(n, i, !0);
81
- }, 10), n === 0 && i && this.vs.skip === 0) {
77
+ scrollToItem(s, t, e) {
78
+ const i = this.list || this.vs.list;
79
+ if (!i && !e && setTimeout(() => {
80
+ this.scrollToItem(s, t, !0);
81
+ }, 10), s === 0 && t && this.vs.skip === 0) {
82
82
  this.vs.reset();
83
83
  return;
84
84
  }
85
- if (e && n >= 0) {
86
- const o = this.vs, p = o.container || e.parentNode, r = i !== void 0 ? i : o.enabled;
87
- S(p, e, n, o.translate, r);
85
+ if (i && s >= 0) {
86
+ const o = this.vs, p = o.container || i.parentNode, r = t !== void 0 ? t : o.enabled;
87
+ S(p, i, s, o.translate, r);
88
88
  }
89
89
  }
90
+ updateComponentArgs(s) {
91
+ for (let t in s)
92
+ Object.hasOwnProperty.call(s, t) && (this.component[t] = s[t]);
93
+ }
90
94
  initState() {
91
95
  return {
92
96
  data: {},
@@ -94,100 +98,100 @@ const a = class a {
94
98
  syntheticEvent: void 0
95
99
  };
96
100
  }
97
- applyState(n) {
98
- Object.keys(n.data).length > 0 && this.component.setState(n.data);
99
- const i = {
100
- syntheticEvent: n.syntheticEvent,
101
- nativeEvent: n.syntheticEvent ? n.syntheticEvent.nativeEvent : void 0,
101
+ applyState(s) {
102
+ Object.keys(s.data).length > 0 && this.component.setState(s.data);
103
+ const t = {
104
+ syntheticEvent: s.syntheticEvent,
105
+ nativeEvent: s.syntheticEvent ? s.syntheticEvent.nativeEvent : void 0,
102
106
  target: this.component,
103
107
  value: this.component.value
104
108
  };
105
- n.events.forEach((t) => {
106
- const e = t.type;
107
- delete t.type;
108
- const o = e && this.component.props[e];
109
+ s.events.forEach((e) => {
110
+ const i = e.type;
111
+ delete e.type;
112
+ const o = i && this.component.props[i];
109
113
  o && o.call(void 0, {
110
- ...i,
111
- ...t
114
+ ...t,
115
+ ...e
112
116
  });
113
117
  });
114
118
  }
115
- triggerOnPageChange(n, i, t) {
116
- const e = this.component.props.virtual;
117
- if (e) {
118
- const o = Math.min(Math.max(0, i), Math.max(0, e.total - t));
119
- o !== e.skip && n.events.push({
119
+ triggerOnPageChange(s, t, e) {
120
+ const i = this.component.props.virtual;
121
+ if (i) {
122
+ const o = Math.min(Math.max(0, t), Math.max(0, i.total - e));
123
+ o !== i.skip && s.events.push({
120
124
  type: "onPageChange",
121
- page: { skip: o, take: t }
125
+ page: { skip: o, take: e }
122
126
  });
123
127
  }
124
128
  }
125
- triggerPageChangeCornerItems(n, i) {
126
- const t = this.component.props, { data: e = [], dataItemKey: o, virtual: p } = t, r = t.opened !== void 0 ? t.opened : this.component.state.opened;
127
- n && p && this.vs.enabled && (p.skip > 0 && g(n, e[0], o) ? this.triggerOnPageChange(i, p.skip - 1, p.pageSize) : !r && p.skip + p.pageSize < p.total && g(n, e[e.length - 1], o) && this.triggerOnPageChange(i, p.skip + 1, p.pageSize));
129
+ triggerPageChangeCornerItems(s, t) {
130
+ const e = this.component.props, { data: i = [], dataItemKey: o, virtual: p } = e, r = e.opened !== void 0 ? e.opened : this.component.state.opened;
131
+ s && p && this.vs.enabled && (p.skip > 0 && g(s, i[0], o) ? this.triggerOnPageChange(t, p.skip - 1, p.pageSize) : !r && p.skip + p.pageSize < p.total && g(s, i[i.length - 1], o) && this.triggerOnPageChange(t, p.skip + 1, p.pageSize));
128
132
  }
129
133
  getPopupSettings() {
130
134
  return Object.assign({}, a.defaultProps.popupSettings, this.component.props.popupSettings);
131
135
  }
132
136
  getAdaptiveAnimation() {
133
- const n = this.getPopupSettings();
134
- return n.animate !== void 0 ? n.animate : !0;
137
+ const s = this.getPopupSettings();
138
+ return s.animate !== void 0 ? s.animate : !0;
135
139
  }
136
- getGroupedDataModernMode(n, i) {
137
- const t = [];
138
- return n.forEach((e, o) => {
139
- n[o - 1] && e[i] !== n[o - 1][i] && t.push({ [i]: e[i] }), t.push(n[o]);
140
- }), t;
140
+ getGroupedDataModernMode(s, t) {
141
+ const e = [];
142
+ return s.forEach((i, o) => {
143
+ s[o - 1] && i[t] !== s[o - 1][t] && e.push({ [t]: i[t] }), e.push(s[o]);
144
+ }), e;
141
145
  }
142
146
  };
143
147
  a.basicPropTypes = {
144
- opened: s.bool,
145
- disabled: s.bool,
146
- dir: s.string,
147
- tabIndex: s.number,
148
- accessKey: s.string,
149
- data: s.array,
150
- textField: s.string,
151
- className: s.string,
152
- label: s.string,
153
- loading: s.bool,
154
- popupSettings: s.shape({
155
- animate: s.oneOfType([
156
- s.bool,
157
- s.shape({
158
- openDuration: s.number,
159
- closeDuration: s.number
148
+ opened: n.bool,
149
+ disabled: n.bool,
150
+ dir: n.string,
151
+ tabIndex: n.number,
152
+ accessKey: n.string,
153
+ data: n.array,
154
+ textField: n.string,
155
+ className: n.string,
156
+ label: n.string,
157
+ loading: n.bool,
158
+ popupSettings: n.shape({
159
+ animate: n.oneOfType([
160
+ n.bool,
161
+ n.shape({
162
+ openDuration: n.number,
163
+ closeDuration: n.number
160
164
  })
161
165
  ]),
162
- popupClass: s.string,
163
- className: s.string,
164
- appendTo: s.any,
165
- width: s.oneOfType([s.string, s.number]),
166
- height: s.oneOfType([s.string, s.number])
166
+ popupClass: n.string,
167
+ className: n.string,
168
+ appendTo: n.any,
169
+ width: n.oneOfType([n.string, n.number]),
170
+ height: n.oneOfType([n.string, n.number])
167
171
  }),
168
- onOpen: s.func,
169
- onClose: s.func,
170
- onFocus: s.func,
171
- onBlur: s.func,
172
- onChange: s.func,
173
- itemRender: s.func,
174
- listNoDataRender: s.func,
175
- focusedItemIndex: s.func,
176
- header: s.node,
177
- footer: s.node
172
+ onOpen: n.func,
173
+ onClose: n.func,
174
+ onFocus: n.func,
175
+ onBlur: n.func,
176
+ onChange: n.func,
177
+ itemRender: n.func,
178
+ listNoDataRender: n.func,
179
+ focusedItemIndex: n.func,
180
+ header: n.node,
181
+ footer: n.node
178
182
  }, a.propTypes = {
179
183
  ...a.basicPropTypes,
180
- value: s.any,
181
- defaultValue: s.any,
182
- filterable: s.bool,
183
- filter: s.string,
184
- virtual: s.shape({
185
- pageSize: s.number.isRequired,
186
- skip: s.number.isRequired,
187
- total: s.number.isRequired
184
+ value: n.any,
185
+ defaultValue: n.any,
186
+ filterable: n.bool,
187
+ filter: n.string,
188
+ virtual: n.shape({
189
+ pageSize: n.number.isRequired,
190
+ skip: n.number.isRequired,
191
+ total: n.number.isRequired
188
192
  }),
189
- onFilterChange: s.func,
190
- onPageChange: s.func
193
+ onFilterChange: n.func,
194
+ onPageChange: n.func
191
195
  }, a.defaultProps = {
192
196
  popupSettings: {
193
197
  height: "200px"