@hpcc-js/dgrid2 2.3.19 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es6.js +74 -76
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +74 -78
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +8 -8
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { format, timeParse, timeFormat, publish, HTMLWidget } from '@hpcc-js/common';
|
|
2
2
|
|
|
3
3
|
var PKG_NAME = "@hpcc-js/dgrid2";
|
|
4
|
-
var PKG_VERSION = "2.
|
|
5
|
-
var BUILD_VERSION = "2.
|
|
4
|
+
var PKG_VERSION = "2.4.0";
|
|
5
|
+
var BUILD_VERSION = "2.106.0";
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -72,15 +72,15 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
72
72
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
var n,l$1,u$2,i$1,o$1,r$2,f$2,e$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function g$1(n){return n.children}function b(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$1(n):null}function w$2(n,u,t){var i,o=n.__v,r=o.__e,f=n.__P;if(f)return (i=v$1({},o)).__v=o.__v+1,l$1.vnode&&l$1.vnode(i),M$1(f,i,o,n.__n,void 0!==f.ownerSVGElement,32&o.__u?[r]:null,u,null==r?m$1(o):r,!!(32&o.__u),t),i.__v=o.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=r&&k$1(i),i}function k$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$1(n)}}function x$2(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!C$2.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$2)(C$2);}function C$2(){var n,u,t,o=[],r=[];for(i$1.sort(f$2);n=i$1.shift();)n.__d&&(t=i$1.length,u=w$2(n,o,r)||u,0===t||i$1.length>t?(j$2(o,u,r),r.length=o.length=0,u=void 0,i$1.sort(f$2)):u&&l$1.__c&&l$1.__c(u,s$1));u&&j$2(o,u,r),C$2.__r=0;}function P$2(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,S(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,M$1(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N$1(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=$$1(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function S(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,i):h$1(i)?d$1(g$1,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=I$1(i,u,r=t+a,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:a=f<r&&f==r-1?f-r:0,f!==t+a&&(i.__u|=65536))):(o=u[t])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),O$1(o,o,!1),u[t]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),O$1(o,o));}function $$1(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=$$1(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function H$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(h$1(n)?n.some(function(n){H$1(n,l);}):l.push(n)),l}function I$1(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function T$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function A$1(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?L$1:D$1,o)):n.removeEventListener(l,o?L$1:D$1,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function D$1(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}}function L$1(n){if(this.l)return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function M$1(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,C,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,C):(u.__c=p=new b(k,C),p.constructor=A,p.render=q$2),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=C,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,C),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=C,p.props=k,p.__P=n,p.__e=!1,$=l$1.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),P$2(n,h$1(T=null!=a&&a.type===g$1&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z$2(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function j$2(n,u,t){for(var i=0;i<t.length;i++)N$1(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function z$2(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1;}if(null===x)w===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),w=t.props||c$1,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||A$1(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||A$1(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),P$2(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$1(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&A$1(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&A$1(l,a,b,w[a],!1));}return l}function N$1(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function O$1(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N$1(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&O$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function q$2(n,l,u){return this.constructor(n,u)}function B$2(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],M$1(t,u=(!o&&i||t).__k=y$1(g$1,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),u.__d=void 0,j$2(f,u,e);}function G(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,x$2(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),x$2(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),x$2(this));},b.prototype.render=g$1,i$1=[],r$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},C$2.__r=0,e$1=0;
|
|
75
|
+
var n,l$1,u$2,i$1,o$1,r$2,f$2,e$1,c$1,s$1,a$1,h$1={},p$1=[],v$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y$1=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function w$2(n){var l=n.parentNode;l&&l.removeChild(n);}function _$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g$1(l,f,i,o,null)}function g$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$2(n){return n.children}function b(n,l){this.props=n,this.context=l;}function x$2(n,l){if(null==l)return n.__?x$2(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?x$2(n):null}function C$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C$2(n)}}function M$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!P$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$2)(P$1);}function P$1(){var n,u,t,o,r,e,c,s;for(i$1.sort(f$2);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),O$1(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x$2(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j$2(c,o,s),o.__e!=e&&C$2(o)),i$1.length>u&&i$1.sort(f$2));P$1.__r=0;}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p$1,g=l.length;for(u.__d=e,$$1(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h$1:_[y.__i]||h$1,y.__i=a,O$1(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?(e&&"string"==typeof y.type&&!n.contains(e)&&(e=x$2(v)),e=I(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w;}function $$1(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g$1(null,i,null,null,null):y$1(i)?g$1(k$2,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L$1(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a=f-r:f==r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r&&a++,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$2(o)),V$1(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$2(o)),V$1(o,o));}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function H$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(y$1(n)?n.some(function(n){H$1(n,l);}):l.push(n)),l}function L$1(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function T$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v$1.test(l)?u:u+"px";}function A$2(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e$1,n.addEventListener(l,o?s$1:c$1,o)):n.removeEventListener(l,o?s$1:c$1,o);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function F$1(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O$1(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,M):(u.__c=h=new b(m,M),h.constructor=T,h.render=q$2),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,T.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(x&&null==T.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,M),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_);});}if(h.context=M,h.props=m,h.__P=n,h.__e=!1,$=l$1.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y$1(L=null!=a&&a.type===k$2&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z$2(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function j$2(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function z$2(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1;}if(null===b)m===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),m=t.props||h$1,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A$2(l,s,null,d,o);}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A$2(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y$1(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x$2(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w$2(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A$2(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A$2(l,s,g,m[s],o));}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function V$1(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w$2(n.__e),n.__c=n.__=n.__e=n.__d=void 0;}function q$2(n,l,u){return this.constructor(n,u)}function B$2(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:t.__k,f=[],e=[],O$1(t,u=(!o&&i||t).__k=_$1(k$2,null,[u]),r||h$1,h$1,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j$2(f,u,e);}function G(n,l){var u={__c:l="__cC"+a$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=p$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M$1(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M$1(this));},b.prototype.render=k$2,i$1=[],r$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},P$1.__r=0,e$1=0,c$1=F$1(!1),s$1=F$1(!0),a$1=0;
|
|
76
76
|
|
|
77
|
-
var t,r$1,u$1,i,o=0,f$1=[],c=
|
|
77
|
+
var t,r$1,u$1,i,o=0,f$1=[],c=l$1,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r$1,n,o||t),o=0;var u=r$1.__H||(r$1.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D$1,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r$1,!r$1.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r$1.u=!0;var c=r$1.shouldComponentUpdate,e=r$1.componentWillUpdate;r$1.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r$1.shouldComponentUpdate=f;}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C$1(i.__H,u)&&(i.__=n,i.i=u,r$1.__H.__h.push(i));}function _(n,u){var i=d(t++,4);!c.__s&&C$1(i.__H,u)&&(i.__=n,i.i=u,r$1.__h.push(i));}function A$1(n){return o=5,T$1(function(){return {current:n}},[])}function F(n,t,r){o=6,_(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function T$1(n,r){var u=d(t++,7);return C$1(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q$1(n,t){return o=8,T$1(function(){return n},t)}function x$1(n){var u=r$1.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r$1)),u.props.value):n.__}function j$1(){for(var n;n=f$1.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z$1),n.__H.__h.forEach(B$1),n.__H.__h=[];}catch(t){n.__H.__h=[],c.__e(t,n.__v);}}c.__b=function(n){r$1=null,e&&e(n);},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t);},c.__r=function(n){a&&a(n),t=0;var i=(r$1=n.__c).__H;i&&(u$1===r$1?(i.__h=[],r$1.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0;})):(i.__h.forEach(z$1),i.__h.forEach(B$1),i.__h=[],t=0)),u$1=r$1;},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f$1.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w$1)(j$1)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0;})),u$1=r$1=null;},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z$1),n.__h=n.__h.filter(function(n){return !n.__||B$1(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],c.__e(r,n.__v);}}),l&&l(n,t);},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z$1(n);}catch(n){t=n;}}),r.__H=void 0,t&&c.__e(t,r.__v));};var k$1="function"==typeof requestAnimationFrame;function w$1(n){var t,r=function(){clearTimeout(u),k$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);k$1&&(t=requestAnimationFrame(r));}function z$1(n){var t=r$1,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$1=t;}function B$1(n){var t=r$1;n.__c=n.__(),r$1=t;}function C$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D$1(n,t){return "function"==typeof t?t(n):t}
|
|
78
78
|
|
|
79
|
-
function g(n,t){for(var e in t)n[e]=t[e];return n}function
|
|
79
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function C(n,t){this.props=n,this.context=t;}function x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,_$1(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(C.prototype=new b).isPureReactComponent=!0,C.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var R=l$1.__b;l$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n);};var w="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=w,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var M=l$1.__e;l$1.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);M(n,t,e,r);};var T=l$1.unmount;function A(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return A(n,t,e)})),n}function D(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return D(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function L(){this.__u=0,this.t=null,this.__b=null;}function O(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function U(){this.u=null,this.o=null;}l$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),T&&T(n);},(L.prototype=new b).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=O(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c());};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=D(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=A(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&_$1(k$2,null,n.fallback);return i&&(i.__u&=-33),[_$1(k$2,null,e.__a?null:n.children),i]};var V=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function W(n){return this.getChildContext=function(){return n.context},n.children}function P(n){var e=this,r=n.i;e.componentWillUnmount=function(){B$2(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return !0},appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),B$2(_$1(W,{context:e.context},n.__v),e.l);}function j(n,e){var r=_$1(P,{__v:n,i:e});return r.containerInfo=e,r}(U.prototype=new b).__a=function(n){var t=this,e=O(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),V(t,n,r)):u();};e?e(o):o();}},U.prototype.render=function(n){this.u=null,this.o=new Map;var t=H$1(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},U.prototype.componentDidUpdate=U.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){V(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z=/[A-Z0-9]/g,Y="undefined"!=typeof document,$=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function q(n,t,e){return null==t.__k&&(t.textContent=""),B$2(n,t),"function"==typeof e&&e(),n?n.__c:null}b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(b.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var J=l$1.event;function K(){}function Q(){return this.cancelBubble}function X(){return this.defaultPrevented}l$1.event=function(n){return J&&(n=J(n)),n.persist=K,n.isPropagationStopped=Q,n.isDefaultPrevented=X,n.nativeEvent=n};var tn={enumerable:!1,configurable:!0,get:function(){return this.class}},en=l$1.vnode;l$1.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Y&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var c=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===c&&"no"===i?i=!1:"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==e&&"textarea"!==e||$(t.type)?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":H.test(o)?o=c:-1===e.indexOf("-")&&B.test(o)?o=o.replace(Z,"-$&").toLowerCase():null===i&&(i=void 0):c=o="oninput","oninput"===c&&u[o=c]&&(o="oninputCapture"),u[o]=i;}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=H$1(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==e&&null!=u.defaultValue&&(u.value=H$1(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",tn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u;}(n),n.$$typeof=z,en&&en(n);};var rn=l$1.__r;l$1.__r=function(n){rn&&rn(n),n.__c;};var un=l$1.diffed;l$1.diffed=function(n){un&&un(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value);};function vn(n){return !!n.__k&&(B$2(null,n),!0)}
|
|
80
80
|
|
|
81
81
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
82
82
|
|
|
83
|
-
var f=0;function u(e,t,n,o,i,u){var a,c,p=
|
|
83
|
+
var f=0;function u(e,t,n,o,i,u){t||(t={});var a,c,p=t;if("ref"in p)for(c in p={},t)"ref"==c?a=t[c]:p[c]=t[c];var l={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===p[c]&&(p[c]=a[c]);return l$1.vnode&&l$1.vnode(l),l}
|
|
84
84
|
|
|
85
85
|
function styleInject$1(css, ref) {
|
|
86
86
|
if ( ref === void 0 ) ref = {};
|
|
@@ -152,8 +152,8 @@ const summaryRow = "sel5gk2700-canary49";
|
|
|
152
152
|
const summaryRowClassname = `rdg-summary-row ${summaryRow}`;
|
|
153
153
|
|
|
154
154
|
function useFocusRef(isCellSelected) {
|
|
155
|
-
const ref =
|
|
156
|
-
|
|
155
|
+
const ref = A$1(null);
|
|
156
|
+
_(() => {
|
|
157
157
|
var _ref$current;
|
|
158
158
|
|
|
159
159
|
if (!isCellSelected) return;
|
|
@@ -212,7 +212,7 @@ function SelectCellFormatter({
|
|
|
212
212
|
|
|
213
213
|
function ValueFormatter(props) {
|
|
214
214
|
try {
|
|
215
|
-
return /*#__PURE__*/u(
|
|
215
|
+
return /*#__PURE__*/u(k$2, {
|
|
216
216
|
children: props.row[props.column.key]
|
|
217
217
|
});
|
|
218
218
|
} catch {
|
|
@@ -520,7 +520,7 @@ function useCalculatedColumns({
|
|
|
520
520
|
colSpanColumns,
|
|
521
521
|
lastFrozenColumnIndex,
|
|
522
522
|
groupBy
|
|
523
|
-
} =
|
|
523
|
+
} = T$1(() => {
|
|
524
524
|
const groupBy = [];
|
|
525
525
|
let lastFrozenColumnIndex = -1;
|
|
526
526
|
const columns = rawColumns.map(rawColumn => {
|
|
@@ -607,7 +607,7 @@ function useCalculatedColumns({
|
|
|
607
607
|
totalColumnWidth,
|
|
608
608
|
totalFrozenColumnWidth,
|
|
609
609
|
columnMetrics
|
|
610
|
-
} =
|
|
610
|
+
} = T$1(() => {
|
|
611
611
|
const columnMetrics = new Map();
|
|
612
612
|
let left = 0;
|
|
613
613
|
let totalColumnWidth = 0;
|
|
@@ -677,7 +677,7 @@ function useCalculatedColumns({
|
|
|
677
677
|
columnMetrics
|
|
678
678
|
};
|
|
679
679
|
}, [columnWidths, columns, viewportWidth, minColumnWidth, lastFrozenColumnIndex]);
|
|
680
|
-
const [colOverscanStartIdx, colOverscanEndIdx] =
|
|
680
|
+
const [colOverscanStartIdx, colOverscanEndIdx] = T$1(() => {
|
|
681
681
|
if (!enableVirtualization) {
|
|
682
682
|
return [0, columns.length - 1];
|
|
683
683
|
}
|
|
@@ -772,10 +772,10 @@ function clampColumnWidth(width, {
|
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
function useGridDimensions() {
|
|
775
|
-
const gridRef =
|
|
776
|
-
const [gridWidth, setGridWidth] =
|
|
777
|
-
const [gridHeight, setGridHeight] =
|
|
778
|
-
|
|
775
|
+
const gridRef = A$1(null);
|
|
776
|
+
const [gridWidth, setGridWidth] = h(1);
|
|
777
|
+
const [gridHeight, setGridHeight] = h(1);
|
|
778
|
+
_(() => {
|
|
779
779
|
const {
|
|
780
780
|
ResizeObserver
|
|
781
781
|
} = window;
|
|
@@ -797,11 +797,11 @@ function useGridDimensions() {
|
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
function useLatestFunc(fn) {
|
|
800
|
-
const ref =
|
|
801
|
-
|
|
800
|
+
const ref = A$1(fn);
|
|
801
|
+
y(() => {
|
|
802
802
|
ref.current = fn;
|
|
803
803
|
});
|
|
804
|
-
return
|
|
804
|
+
return q$1((...args) => {
|
|
805
805
|
ref.current(...args);
|
|
806
806
|
}, []);
|
|
807
807
|
}
|
|
@@ -811,8 +811,8 @@ const RowSelectionProvider = RowSelectionContext.Provider;
|
|
|
811
811
|
const RowSelectionChangeContext = /*#__PURE__*/G(undefined);
|
|
812
812
|
const RowSelectionChangeProvider = RowSelectionChangeContext.Provider;
|
|
813
813
|
function useRowSelection() {
|
|
814
|
-
const rowSelectionContext =
|
|
815
|
-
const rowSelectionChangeContext =
|
|
814
|
+
const rowSelectionContext = x$1(RowSelectionContext);
|
|
815
|
+
const rowSelectionChangeContext = x$1(RowSelectionChangeContext);
|
|
816
816
|
|
|
817
817
|
if (rowSelectionContext === undefined || rowSelectionChangeContext === undefined) {
|
|
818
818
|
throw new Error('useRowSelection must be used within DataGrid cells');
|
|
@@ -833,7 +833,7 @@ function useViewportColumns({
|
|
|
833
833
|
rowOverscanEndIdx,
|
|
834
834
|
isGroupRow
|
|
835
835
|
}) {
|
|
836
|
-
const startIdx =
|
|
836
|
+
const startIdx = T$1(() => {
|
|
837
837
|
if (colOverscanStartIdx === 0) return 0;
|
|
838
838
|
let startIdx = colOverscanStartIdx;
|
|
839
839
|
|
|
@@ -882,7 +882,7 @@ function useViewportColumns({
|
|
|
882
882
|
|
|
883
883
|
return startIdx;
|
|
884
884
|
}, [rowOverscanStartIdx, rowOverscanEndIdx, rows, summaryRows, colOverscanStartIdx, lastFrozenColumnIndex, colSpanColumns, isGroupRow]);
|
|
885
|
-
return
|
|
885
|
+
return T$1(() => {
|
|
886
886
|
const viewportColumns = [];
|
|
887
887
|
|
|
888
888
|
for (let colIdx = 0; colIdx <= colOverscanEndIdx; colIdx++) {
|
|
@@ -911,7 +911,7 @@ function useViewportRows({
|
|
|
911
911
|
expandedGroupIds,
|
|
912
912
|
enableVirtualization
|
|
913
913
|
}) {
|
|
914
|
-
const [groupedRows, rowsCount] =
|
|
914
|
+
const [groupedRows, rowsCount] = T$1(() => {
|
|
915
915
|
if (groupBy.length === 0 || rowGrouper == null) return [undefined, rawRows.length];
|
|
916
916
|
|
|
917
917
|
const groupRows = (rows, [groupByKey, ...remainingGroupByKeys], startRowIndex) => {
|
|
@@ -933,7 +933,7 @@ function useViewportRows({
|
|
|
933
933
|
|
|
934
934
|
return groupRows(rawRows, groupBy, 0);
|
|
935
935
|
}, [groupBy, rowGrouper, rawRows]);
|
|
936
|
-
const [rows, isGroupRow] =
|
|
936
|
+
const [rows, isGroupRow] = T$1(() => {
|
|
937
937
|
const allGroupRows = new Set();
|
|
938
938
|
if (!groupedRows) return [rawRows, isGroupRow];
|
|
939
939
|
const flattenedRows = [];
|
|
@@ -986,7 +986,7 @@ function useViewportRows({
|
|
|
986
986
|
getRowTop,
|
|
987
987
|
getRowHeight,
|
|
988
988
|
findRowIdx
|
|
989
|
-
} =
|
|
989
|
+
} = T$1(() => {
|
|
990
990
|
if (typeof rowHeight === 'number') {
|
|
991
991
|
return {
|
|
992
992
|
totalRowHeight: rowHeight * rows.length,
|
|
@@ -1261,7 +1261,7 @@ function HeaderRow({
|
|
|
1261
1261
|
onSortColumnsChange,
|
|
1262
1262
|
lastFrozenColumnIndex
|
|
1263
1263
|
}) {
|
|
1264
|
-
const handleAllRowsSelectionChange =
|
|
1264
|
+
const handleAllRowsSelectionChange = q$1(checked => {
|
|
1265
1265
|
if (!onSelectedRowsChange) return;
|
|
1266
1266
|
assertIsValidKeyGetter(rowKeyGetter);
|
|
1267
1267
|
const newSelectedRows = new Set(checked ? rows.map(rowKeyGetter) : undefined);
|
|
@@ -1298,7 +1298,7 @@ function HeaderRow({
|
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
const HeaderRow$1 = /*#__PURE__*/
|
|
1301
|
+
const HeaderRow$1 = /*#__PURE__*/x(HeaderRow);
|
|
1302
1302
|
|
|
1303
1303
|
var css_248z$2 = ".c1bmg16t700-canary49,.ccpfvsn700-canary49{background-color:#ccf}.c1bmg16t700-canary49.ccpfvsn700-canary49{background-color:#99f}.c12t67zz700-canary49{cursor:move;position:absolute;right:0;bottom:0;width:8px;height:8px;background-color:var(--selection-color)}.c12t67zz700-canary49:hover{width:16px;height:16px;border:2px solid var(--selection-color);background-color:var(--background-color)}";
|
|
1304
1304
|
styleInject$1(css_248z$2);
|
|
@@ -1375,7 +1375,7 @@ function Cell({
|
|
|
1375
1375
|
onDoubleClick: handleDoubleClick,
|
|
1376
1376
|
onContextMenu: handleContextMenu,
|
|
1377
1377
|
...props,
|
|
1378
|
-
children: !column.rowGroup && /*#__PURE__*/u(
|
|
1378
|
+
children: !column.rowGroup && /*#__PURE__*/u(k$2, {
|
|
1379
1379
|
children: [/*#__PURE__*/u(column.formatter, {
|
|
1380
1380
|
column: column,
|
|
1381
1381
|
rowIdx: rowIdx,
|
|
@@ -1390,7 +1390,7 @@ function Cell({
|
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
|
-
const Cell$1 = /*#__PURE__*/
|
|
1393
|
+
const Cell$1 = /*#__PURE__*/x( /*#__PURE__*/k(Cell));
|
|
1394
1394
|
|
|
1395
1395
|
var css_248z$1 = ".c1tngyp1700-canary49{padding:0}";
|
|
1396
1396
|
styleInject$1(css_248z$1);
|
|
@@ -1407,7 +1407,7 @@ function EditCell({
|
|
|
1407
1407
|
onKeyDown,
|
|
1408
1408
|
editorPortalTarget
|
|
1409
1409
|
}) {
|
|
1410
|
-
const frameRequestRef =
|
|
1410
|
+
const frameRequestRef = A$1();
|
|
1411
1411
|
const commitOnOutsideMouseDown = useLatestFunc(() => {
|
|
1412
1412
|
onRowChange(row, true);
|
|
1413
1413
|
});
|
|
@@ -1416,7 +1416,7 @@ function EditCell({
|
|
|
1416
1416
|
cancelAnimationFrame(frameRequestRef.current);
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
|
-
|
|
1419
|
+
y(() => {
|
|
1420
1420
|
function onWindowCaptureMouseDown() {
|
|
1421
1421
|
frameRequestRef.current = requestAnimationFrame(commitOnOutsideMouseDown);
|
|
1422
1422
|
}
|
|
@@ -1554,7 +1554,7 @@ function Row({
|
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
const Row$1 = /*#__PURE__*/
|
|
1557
|
+
const Row$1 = /*#__PURE__*/x( /*#__PURE__*/k(Row));
|
|
1558
1558
|
|
|
1559
1559
|
function GroupCell({
|
|
1560
1560
|
id,
|
|
@@ -1592,7 +1592,7 @@ function GroupCell({
|
|
|
1592
1592
|
}, column.key);
|
|
1593
1593
|
}
|
|
1594
1594
|
|
|
1595
|
-
const GroupCell$1 = /*#__PURE__*/
|
|
1595
|
+
const GroupCell$1 = /*#__PURE__*/x(GroupCell);
|
|
1596
1596
|
|
|
1597
1597
|
function GroupedRow({
|
|
1598
1598
|
id,
|
|
@@ -1647,7 +1647,7 @@ function GroupedRow({
|
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
|
-
const GroupRowRenderer = /*#__PURE__*/
|
|
1650
|
+
const GroupRowRenderer = /*#__PURE__*/x(GroupedRow);
|
|
1651
1651
|
|
|
1652
1652
|
function SummaryCell({
|
|
1653
1653
|
column,
|
|
@@ -1672,7 +1672,7 @@ function SummaryCell({
|
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
|
-
const SummaryCell$1 = /*#__PURE__*/
|
|
1675
|
+
const SummaryCell$1 = /*#__PURE__*/x(SummaryCell);
|
|
1676
1676
|
|
|
1677
1677
|
function SummaryRow({
|
|
1678
1678
|
rowIdx,
|
|
@@ -1713,7 +1713,7 @@ function SummaryRow({
|
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
|
-
const SummaryRow$1 = /*#__PURE__*/
|
|
1716
|
+
const SummaryRow$1 = /*#__PURE__*/x(SummaryRow);
|
|
1717
1717
|
|
|
1718
1718
|
var _globalThis$document;
|
|
1719
1719
|
const body = (_globalThis$document = globalThis.document) == null ? void 0 : _globalThis$document.body;
|
|
@@ -1768,18 +1768,18 @@ function DataGrid({
|
|
|
1768
1768
|
const cellNavigationMode = rawCellNavigationMode != null ? rawCellNavigationMode : 'NONE';
|
|
1769
1769
|
(_enableVirtualization = enableVirtualization) != null ? _enableVirtualization : enableVirtualization = true;
|
|
1770
1770
|
const editorPortalTarget = rawEditorPortalTarget != null ? rawEditorPortalTarget : body;
|
|
1771
|
-
const [scrollTop, setScrollTop] =
|
|
1772
|
-
const [scrollLeft, setScrollLeft] =
|
|
1773
|
-
const [columnWidths, setColumnWidths] =
|
|
1774
|
-
const [selectedPosition, setSelectedPosition] =
|
|
1775
|
-
const [copiedCell, setCopiedCell] =
|
|
1776
|
-
const [isDragging, setDragging] =
|
|
1777
|
-
const [draggedOverRowIdx, setOverRowIdx] =
|
|
1778
|
-
const focusSinkRef =
|
|
1779
|
-
const prevSelectedPosition =
|
|
1780
|
-
const latestDraggedOverRowIdx =
|
|
1781
|
-
const lastSelectedRowIdx =
|
|
1782
|
-
const isCellFocusable =
|
|
1771
|
+
const [scrollTop, setScrollTop] = h(0);
|
|
1772
|
+
const [scrollLeft, setScrollLeft] = h(0);
|
|
1773
|
+
const [columnWidths, setColumnWidths] = h(() => new Map());
|
|
1774
|
+
const [selectedPosition, setSelectedPosition] = h(initialPosition);
|
|
1775
|
+
const [copiedCell, setCopiedCell] = h(null);
|
|
1776
|
+
const [isDragging, setDragging] = h(false);
|
|
1777
|
+
const [draggedOverRowIdx, setOverRowIdx] = h(undefined);
|
|
1778
|
+
const focusSinkRef = A$1(null);
|
|
1779
|
+
const prevSelectedPosition = A$1(selectedPosition);
|
|
1780
|
+
const latestDraggedOverRowIdx = A$1(draggedOverRowIdx);
|
|
1781
|
+
const lastSelectedRowIdx = A$1(-1);
|
|
1782
|
+
const isCellFocusable = A$1(false);
|
|
1783
1783
|
const selectRowWrapper = useLatestFunc(selectRow);
|
|
1784
1784
|
const selectCellWrapper = useLatestFunc(selectCell);
|
|
1785
1785
|
const toggleGroupWrapper = useLatestFunc(toggleGroup);
|
|
@@ -1789,7 +1789,7 @@ function DataGrid({
|
|
|
1789
1789
|
const summaryRowsCount = (_summaryRows$length = summaryRows == null ? void 0 : summaryRows.length) != null ? _summaryRows$length : 0;
|
|
1790
1790
|
const clientHeight = gridHeight - headerRowHeight - summaryRowsCount * summaryRowHeight;
|
|
1791
1791
|
const isSelectable = selectedRows != null && onSelectedRowsChange != null;
|
|
1792
|
-
const allRowsSelected =
|
|
1792
|
+
const allRowsSelected = T$1(() => {
|
|
1793
1793
|
const {
|
|
1794
1794
|
length
|
|
1795
1795
|
} = rawRows;
|
|
@@ -1850,7 +1850,7 @@ function DataGrid({
|
|
|
1850
1850
|
const hasGroups = groupBy.length > 0 && typeof rowGrouper === 'function';
|
|
1851
1851
|
const minColIdx = hasGroups ? -1 : 0;
|
|
1852
1852
|
const enableCellDragAndDrop = hasGroups ? false : onFill != null;
|
|
1853
|
-
|
|
1853
|
+
_(() => {
|
|
1854
1854
|
if (selectedPosition === prevSelectedPosition.current || selectedPosition.mode === 'EDIT' || !isCellWithinBounds(selectedPosition)) {
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
@@ -1867,7 +1867,7 @@ function DataGrid({
|
|
|
1867
1867
|
preventScroll: true
|
|
1868
1868
|
});
|
|
1869
1869
|
});
|
|
1870
|
-
|
|
1870
|
+
F(ref, () => ({
|
|
1871
1871
|
element: gridRef.current,
|
|
1872
1872
|
|
|
1873
1873
|
scrollToColumn(idx) {
|
|
@@ -1889,7 +1889,7 @@ function DataGrid({
|
|
|
1889
1889
|
|
|
1890
1890
|
selectCell
|
|
1891
1891
|
}));
|
|
1892
|
-
const handleColumnResize =
|
|
1892
|
+
const handleColumnResize = q$1((column, width) => {
|
|
1893
1893
|
setColumnWidths(columnWidths => {
|
|
1894
1894
|
const newColumnWidths = new Map(columnWidths);
|
|
1895
1895
|
newColumnWidths.set(column.key, width);
|
|
@@ -1897,7 +1897,7 @@ function DataGrid({
|
|
|
1897
1897
|
});
|
|
1898
1898
|
onColumnResize == null ? void 0 : onColumnResize(column.idx, width);
|
|
1899
1899
|
}, [onColumnResize]);
|
|
1900
|
-
const setDraggedOverRowIdx =
|
|
1900
|
+
const setDraggedOverRowIdx = q$1(rowIdx => {
|
|
1901
1901
|
setOverRowIdx(rowIdx);
|
|
1902
1902
|
latestDraggedOverRowIdx.current = rowIdx;
|
|
1903
1903
|
}, []);
|
|
@@ -2681,7 +2681,7 @@ function DataGrid({
|
|
|
2681
2681
|
sortColumns: sortColumns,
|
|
2682
2682
|
onSortColumnsChange: onSortColumnsChange,
|
|
2683
2683
|
lastFrozenColumnIndex: lastFrozenColumnIndex
|
|
2684
|
-
}), rows.length === 0 && EmptyRowsRenderer ? /*#__PURE__*/u(EmptyRowsRenderer, {}) : /*#__PURE__*/u(
|
|
2684
|
+
}), rows.length === 0 && EmptyRowsRenderer ? /*#__PURE__*/u(EmptyRowsRenderer, {}) : /*#__PURE__*/u(k$2, {
|
|
2685
2685
|
children: [/*#__PURE__*/u("div", {
|
|
2686
2686
|
ref: focusSinkRef,
|
|
2687
2687
|
tabIndex: 0,
|
|
@@ -2707,18 +2707,16 @@ function DataGrid({
|
|
|
2707
2707
|
});
|
|
2708
2708
|
}
|
|
2709
2709
|
|
|
2710
|
-
const DataGrid$1 = /*#__PURE__*/
|
|
2710
|
+
const DataGrid$1 = /*#__PURE__*/k(DataGrid);
|
|
2711
2711
|
|
|
2712
2712
|
var css_248z$c = ".t16y9g8l700-canary49{appearance:none;box-sizing:border-box;width:100%;height:100%;padding:0 6px;border:2px solid #ccc;vertical-align:top;color:var(--color);background-color:var(--background-color);font-family:inherit;font-size:var(--font-size)}.t16y9g8l700-canary49:focus{border-color:var(--selection-color);outline:none}.t16y9g8l700-canary49::placeholder{color:#999;opacity:1}";
|
|
2713
2713
|
styleInject$1(css_248z$c);
|
|
2714
2714
|
|
|
2715
|
-
var DataGrid$2 = DataGrid$1;
|
|
2716
|
-
|
|
2717
2715
|
function useData(widget) {
|
|
2718
2716
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2719
|
-
var columns =
|
|
2717
|
+
var columns = T$1(function () { return widget.columns(); }, [widget, widget.dataChecksum()]);
|
|
2720
2718
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2721
|
-
var data =
|
|
2719
|
+
var data = T$1(function () { return widget.data(); }, [widget, widget.dataChecksum()]);
|
|
2722
2720
|
return [columns, data];
|
|
2723
2721
|
}
|
|
2724
2722
|
|
|
@@ -2736,7 +2734,7 @@ function copyAndSort(items, attribute, descending) {
|
|
|
2736
2734
|
}
|
|
2737
2735
|
var EmptyRowsRenderer = function (_a) {
|
|
2738
2736
|
var message = _a.message;
|
|
2739
|
-
return
|
|
2737
|
+
return _$1("div", { style: { textAlign: "center", gridColumn: "1/-1" } }, message);
|
|
2740
2738
|
};
|
|
2741
2739
|
var ReactTable = function (_a) {
|
|
2742
2740
|
var table = _a.table, sort = _a.sort;
|
|
@@ -2745,12 +2743,12 @@ var ReactTable = function (_a) {
|
|
|
2745
2743
|
var columnTypes = table.columnTypes();
|
|
2746
2744
|
var columnPatterns = table.columnPatterns();
|
|
2747
2745
|
var columnFormats = table.columnFormats();
|
|
2748
|
-
var _c =
|
|
2749
|
-
var _d =
|
|
2750
|
-
var _e =
|
|
2751
|
-
var _f =
|
|
2746
|
+
var _c = h([]), listColumns = _c[0], setListColumns = _c[1];
|
|
2747
|
+
var _d = h(), sortColumn = _d[0], setSortColumn = _d[1];
|
|
2748
|
+
var _e = h([]), rows = _e[0], setRows = _e[1];
|
|
2749
|
+
var _f = h(new Set()), selectedRows = _f[0], setSelectedRows = _f[1];
|
|
2752
2750
|
// Columns ---
|
|
2753
|
-
|
|
2751
|
+
y(function () {
|
|
2754
2752
|
setListColumns(__spreadArray(__spreadArray([], multiSelect ? [SelectColumn] : [], true), columns.map(function (column) {
|
|
2755
2753
|
var _a;
|
|
2756
2754
|
var type = (_a = columnTypes[column]) !== null && _a !== void 0 ? _a : "string";
|
|
@@ -2764,7 +2762,7 @@ var ReactTable = function (_a) {
|
|
|
2764
2762
|
break;
|
|
2765
2763
|
case "number":
|
|
2766
2764
|
formatter = function (props) {
|
|
2767
|
-
return
|
|
2765
|
+
return _$1("div", { style: { textAlign: "right" } }, props.row[props.column.key]);
|
|
2768
2766
|
};
|
|
2769
2767
|
// eslint-disable-next-line no-fallthrough
|
|
2770
2768
|
default:
|
|
@@ -2782,24 +2780,24 @@ var ReactTable = function (_a) {
|
|
|
2782
2780
|
};
|
|
2783
2781
|
}), true));
|
|
2784
2782
|
}, [columnFormats, columnPatterns, columnTypes, columns, multiSelect]);
|
|
2785
|
-
var onSortColumnsChange =
|
|
2783
|
+
var onSortColumnsChange = q$1(function (sortColumns) {
|
|
2786
2784
|
var futureSortColumn = sortColumns.slice(-1)[0];
|
|
2787
2785
|
var sorted = futureSortColumn !== undefined;
|
|
2788
2786
|
var isSortedDescending = (futureSortColumn === null || futureSortColumn === void 0 ? void 0 : futureSortColumn.direction) === "DESC";
|
|
2789
2787
|
setSortColumn(futureSortColumn);
|
|
2790
2788
|
setRows(copyAndSort(rows, sorted ? futureSortColumn.columnKey : "key", sorted ? isSortedDescending : false));
|
|
2791
2789
|
}, [rows]);
|
|
2792
|
-
var rowKeyGetter =
|
|
2790
|
+
var rowKeyGetter = q$1(function (row) {
|
|
2793
2791
|
return row.key;
|
|
2794
2792
|
}, []);
|
|
2795
|
-
var onSelectedRowsChange =
|
|
2793
|
+
var onSelectedRowsChange = q$1(function (selectedRows) {
|
|
2796
2794
|
setSelectedRows(selectedRows);
|
|
2797
2795
|
}, []);
|
|
2798
|
-
var onCellClick =
|
|
2796
|
+
var onCellClick = q$1(function (row, column) {
|
|
2799
2797
|
table.onRowClickCallback(row, column.key);
|
|
2800
2798
|
}, [table]);
|
|
2801
2799
|
// Rows ---
|
|
2802
|
-
|
|
2800
|
+
y(function () {
|
|
2803
2801
|
var items = data.map(function (row, index) {
|
|
2804
2802
|
var retVal = {
|
|
2805
2803
|
key: index
|
|
@@ -2824,14 +2822,14 @@ var ReactTable = function (_a) {
|
|
|
2824
2822
|
}
|
|
2825
2823
|
setRows(items);
|
|
2826
2824
|
}, [listColumns, data, sort]);
|
|
2827
|
-
return
|
|
2825
|
+
return _$1(DataGrid$1, { columns: listColumns, headerRowHeight: 24, rows: rows, rowKeyGetter: rowKeyGetter, rowHeight: 20, emptyRowsRenderer: function () { return _$1(EmptyRowsRenderer, { message: table.noDataMessage() }); }, className: table.darkMode() ? "rdg-dark" : "rdg-light", sortColumns: sortColumn ? [sortColumn] : [], onSortColumnsChange: onSortColumnsChange, selectedRows: selectedRows, onSelectedRowsChange: multiSelect ? onSelectedRowsChange : undefined, onRowClick: multiSelect ? undefined : function (rowIdx, row, column) { return onCellClick(row, column); }, "aria-describedby": "", "aria-label": "", "aria-labelledby": "", style: { height: "100%" } });
|
|
2828
2826
|
};
|
|
2829
2827
|
|
|
2830
2828
|
function styleInject(css, ref) {
|
|
2831
2829
|
if ( ref === void 0 ) ref = {};
|
|
2832
2830
|
var insertAt = ref.insertAt;
|
|
2833
2831
|
|
|
2834
|
-
if (
|
|
2832
|
+
if (typeof document === 'undefined') { return; }
|
|
2835
2833
|
|
|
2836
2834
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
2837
2835
|
var style = document.createElement('style');
|
|
@@ -2903,10 +2901,10 @@ var Table = /** @class */ (function (_super) {
|
|
|
2903
2901
|
_super.prototype.update.call(this, domNode, element);
|
|
2904
2902
|
this._div.style("width", this.width() + "px");
|
|
2905
2903
|
this._div.style("height", this.height() + "px");
|
|
2906
|
-
q(
|
|
2904
|
+
q(_$1(ReactTable, { table: this }), this._div.node());
|
|
2907
2905
|
};
|
|
2908
2906
|
Table.prototype.exit = function (domNode, element) {
|
|
2909
|
-
|
|
2907
|
+
vn(this._div.node());
|
|
2910
2908
|
this._div.remove();
|
|
2911
2909
|
_super.prototype.exit.call(this, domNode, element);
|
|
2912
2910
|
};
|