@jswork/react-list
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -5,7 +5,7 @@ /** | ||
* homepage: | ||
* version: 1.1.5 | ||
* date: 2022-11-14T08:03:14.799Z | ||
* version: 1.1.6 | ||
* date: 2022-11-25T12:36:11.388Z | ||
* license: MIT | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@jswork/noop"),require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["exports","@jswork/noop","classnames","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactList={},e.noop,e.classNames,e.React)}(this,(function(e,t,r,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(t),i=o(r),l=o(n),p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},p(e,t)};var s=function(){return s=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},s.apply(this,arguments)};var f="react-list",u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),Object.defineProperty(t.prototype,"children",{get:function(){var e=this.props,t=e.items,r=e.template;return t.map((function(e,n){return r({items:t,item:e,index:n})}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){var e=this.props,t=e.className,r=e.nodeName;e.items,e.template,e.children,e.sizeKey,e.allowEmpty;var n=e.forwardedRef,o=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&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","nodeName","items","template","children","sizeKey","allowEmpty","forwardedRef"]);return r===l.default.Fragment?null:s({"data-component":f,ref:n,className:i.default(f,t)},o)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.nodeName,r=e.items,n=e.sizeKey;return e.allowEmpty||r&&r[n]?l.default.createElement(t,this.properties,this.children):null},t.displayName=f,t.version="1.1.5",t.defaultProps={items:[],sizeKey:"length",nodeName:l.default.Fragment,template:a.default,allowEmpty:!1},t}(n.Component),c=l.default.forwardRef((function(e,t){return l.default.createElement(u,s({},e,{ref:t}))}));e.default=c,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@jswork/noop"),require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["exports","@jswork/noop","classnames","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactList={},e.noop,e.classNames,e.React)}(this,(function(e,t,r,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(t),i=o(r),l=o(n),p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},p(e,t)};var s=function(){return s=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},s.apply(this,arguments)};var f="react-list",u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),Object.defineProperty(t.prototype,"children",{get:function(){var e=this.props,t=e.items,r=e.template;return t.map((function(e,n){return r({items:t,item:e,index:n})}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){var e=this.props,t=e.className,r=e.nodeName;e.items,e.template,e.children,e.sizeKey,e.allowEmpty;var n=e.forwardedRef,o=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&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","nodeName","items","template","children","sizeKey","allowEmpty","forwardedRef"]);return r===l.default.Fragment?null:s({"data-component":f,ref:n,className:i.default(f,t)},o)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.nodeName,r=e.items,n=e.sizeKey;return e.allowEmpty||r&&r[n]?l.default.createElement(t,this.properties,this.children):null},t.displayName=f,t.version="1.1.6",t.defaultProps={items:[],sizeKey:"length",nodeName:l.default.Fragment,template:a.default,allowEmpty:!1},t}(n.Component),c=l.default.forwardRef((function(e,t){return l.default.createElement(u,s({},e,{ref:t}))}));e.default=c,Object.defineProperty(e,"__esModule",{value:!0})})); |
import Component from './components'; | ||
import type { TemplateArgs, ReactListProps } from './components'; | ||
export default Component; | ||
export { TemplateArgs, ReactListProps }; |
{ | ||
"name": "@jswork/react-list", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A list component for react.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
8633
61