@jswork/react-list
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -1,4 +0,4 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var n=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,m=(s,t)=>{for(var e in t||(t={}))R.call(t,e)&&n(s,e,t[e]);if(a)for(var e of a(t))E.call(t,e)&&n(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)R.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&E.call(s,r)&&(e[r]=s[r]);return e};var p=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);var _noop = require('@jswork/noop'); var _noop2 = _interopRequireDefault(_noop);var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _classimperativehandle = require('@jswork/class-imperative-handle'); var _classimperativehandle2 = _interopRequireDefault(_classimperativehandle);var c="react-list",i,A=(i=class extends _react.Component{constructor(){super(...arguments);p(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;_classimperativehandle2.default.call(void 0, r,e)},"handleRef"))}get children(){let{items:e,template:r,options:o}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:o}))}get emptyView(){let{items:e,templateEmpty:r,options:o}=this.props;return r({items:e,item:null,index:-1,options:o})}get properties(){let u=this.props,{className:e,as:r,items:o,template:d,sizeKey:h,forwardedRef:C,options:I}=u,_=g(u,["className","as","items","template","sizeKey","forwardedRef","options"]);return r===_react.Fragment?null:m({"data-component":c,ref:this.handleRef,className:_classnames2.default.call(void 0, c,e)},_)}render(){let{as:e,items:r,sizeKey:o}=this.props;return!r||!r[o]?this.emptyView:_react2.default.createElement(e,this.properties,this.children)}},l(i,"ReactList"),p(i,"displayName",c),p(i,"version","__VERSION__"),p(i,"defaultProps",{items:[],sizeKey:"length",as:_react.Fragment,template:_noop2.default,templateEmpty:_noop2.default,allowEmpty:!1}),i),P= exports.default =_react2.default.forwardRef((s,t)=>_react2.default.createElement(A,w(m({},s),{ref:t})));exports.default = P; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var m=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,n=(s,t)=>{for(var e in t||(t={}))E.call(t,e)&&m(s,e,t[e]);if(a)for(var e of a(t))R.call(t,e)&&m(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)E.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&R.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(m(s,typeof t!="symbol"?t+"":t,e),e);var _noop = require('@jswork/noop'); var _noop2 = _interopRequireDefault(_noop);var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _classimperativehandle = require('@jswork/class-imperative-handle'); var _classimperativehandle2 = _interopRequireDefault(_classimperativehandle);var c="react-list",p,A=(p=class extends _react.Component{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;_classimperativehandle2.default.call(void 0, r,e)},"handleRef"))}get children(){let{items:e,template:r,options:i}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:i}))}get emptyView(){let{items:e,templateEmpty:r,options:i}=this.props;return r({items:e,item:null,index:-1,options:i})}get properties(){let u=this.props,{className:e,as:r,items:i,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=g(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===_react.Fragment?null:n({"data-component":c,ref:this.handleRef,className:_classnames2.default.call(void 0, c,e)},_)}render(){let{as:e,items:r,sizeKey:i}=this.props;return!r||!r[i]?this.emptyView:_react2.default.createElement(e,this.properties,this.children)}},l(p,"ReactList"),o(p,"displayName",c),o(p,"version","__VERSION__"),o(p,"defaultProps",{items:[],sizeKey:"length",as:_react.Fragment,template:_noop2.default,templateEmpty:_noop2.default,allowEmpty:!1}),p),b= exports.default =_react2.default.forwardRef((s,t)=>_react2.default.createElement(A,w(n({},s),{ref:t})));exports.default = b; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var n=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,m=(s,t)=>{for(var e in t||(t={}))R.call(t,e)&&n(s,e,t[e]);if(a)for(var e of a(t))E.call(t,e)&&n(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)R.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&E.call(s,r)&&(e[r]=s[r]);return e};var p=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);import N from"@jswork/noop";import S from"classnames";import f,{Component as V,Fragment as x}from"react";import v from"@jswork/class-imperative-handle";var c="react-list",i,A=(i=class extends V{constructor(){super(...arguments);p(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;v(r,e)},"handleRef"))}get children(){let{items:e,template:r,options:o}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:o}))}get emptyView(){let{items:e,templateEmpty:r,options:o}=this.props;return r({items:e,item:null,index:-1,options:o})}get properties(){let u=this.props,{className:e,as:r,items:o,template:d,sizeKey:h,forwardedRef:C,options:I}=u,_=g(u,["className","as","items","template","sizeKey","forwardedRef","options"]);return r===x?null:m({"data-component":c,ref:this.handleRef,className:S(c,e)},_)}render(){let{as:e,items:r,sizeKey:o}=this.props;return!r||!r[o]?this.emptyView:f.createElement(e,this.properties,this.children)}},l(i,"ReactList"),p(i,"displayName",c),p(i,"version","__VERSION__"),p(i,"defaultProps",{items:[],sizeKey:"length",as:x,template:N,templateEmpty:N,allowEmpty:!1}),i),P=f.forwardRef((s,t)=>f.createElement(A,w(m({},s),{ref:t})));export{P as default}; | ||
var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var m=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,n=(s,t)=>{for(var e in t||(t={}))E.call(t,e)&&m(s,e,t[e]);if(a)for(var e of a(t))R.call(t,e)&&m(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)E.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&R.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(m(s,typeof t!="symbol"?t+"":t,e),e);import N from"@jswork/noop";import S from"classnames";import f,{Component as V,Fragment as x}from"react";import v from"@jswork/class-imperative-handle";var c="react-list",p,A=(p=class extends V{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;v(r,e)},"handleRef"))}get children(){let{items:e,template:r,options:i}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:i}))}get emptyView(){let{items:e,templateEmpty:r,options:i}=this.props;return r({items:e,item:null,index:-1,options:i})}get properties(){let u=this.props,{className:e,as:r,items:i,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=g(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===x?null:n({"data-component":c,ref:this.handleRef,className:S(c,e)},_)}render(){let{as:e,items:r,sizeKey:i}=this.props;return!r||!r[i]?this.emptyView:f.createElement(e,this.properties,this.children)}},l(p,"ReactList"),o(p,"displayName",c),o(p,"version","__VERSION__"),o(p,"defaultProps",{items:[],sizeKey:"length",as:x,template:N,templateEmpty:N,allowEmpty:!1}),p),b=f.forwardRef((s,t)=>f.createElement(A,w(n({},s),{ref:t})));export{b as default}; | ||
//# sourceMappingURL=index.esm.js.map |
{ | ||
"name": "@jswork/react-list", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"main": "dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.esm.js", |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19305
0