New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-barcodes

Package Overview
Dependencies
Maintainers
1
Versions
639
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-barcodes - npm Package Compare versions

Comparing version 5.5.1-dev.202207131015 to 5.5.1-dev.202207140841

2

dist/es/package-metadata.js

@@ -8,5 +8,5 @@ /**

productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
publishDate: 1657706019,
publishDate: 1657786610,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
};

@@ -11,5 +11,5 @@ "use strict";

productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
publishDate: 1657706019,
publishDate: 1657786610,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
};

@@ -1,1 +0,1 @@

System.register("@progress/kendo-react-barcodes",["@progress/kendo-charts","@progress/kendo-drawing","@progress/kendo-react-common","prop-types","react"],function(e,t){var r={},s={},i={},c={},a={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){s[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})}],execute:function(){e((()=>{"use strict";var o={117:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.Barcode=void 0,r(954)),u=r(787),p=r(777),l=r(100),d=r(811),r=(n=a.Component,s(f,n),Object.defineProperty(f.prototype,"barcodeInstance",{get:function(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"surface",{get:function(){return null!==this._baseBarcode?this._baseBarcode.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"element",{get:function(){return null!==this._baseBarcode?this._baseBarcode.element:null},enumerable:!1,configurable:!0}),f.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,e=c(e,["children","className"]);return a.createElement(u.BaseBarcode,i({},e,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseBarcode=e},barcodeConstructor:p.Barcode,getTarget:this.getTarget,className:(0,d.classNames)("k-barcode",o)}),r)},f.prototype.exportImage=function(e){return void 0===e&&(e={}),(0,l.exportImage)(this.exportVisual(),e)},f.prototype.exportSVG=function(e){return void 0===e&&(e={}),(0,l.exportSVG)(this.exportVisual(),e)},f.prototype.exportVisual=function(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new l.Group},f);function f(){var t=null!==n&&n.apply(this,arguments)||this;return t._baseBarcode=null,t.getTarget=function(){return t},t.deriveOptionsFromParent=function(e){return Object.assign({},e,{background:t.props.background,border:t.props.border,checksum:t.props.checksum,color:t.props.color,height:t.props.height,padding:t.props.padding,text:t.props.text,type:t.props.type,value:t.props.value,width:t.props.width})},t}t.Barcode=r},916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BarcodeContext=void 0;r=r(954);t.BarcodeContext=r.createContext(null),t.BarcodeContext.displayName="BarcodeContext"},787:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBarcode=void 0,r(954)),a=r(895),u=r(113),p=r(600),l=r(841),d=r(916),f=r(811),b=r(363),r=(n=c.Component,s(h,n),Object.defineProperty(h.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),h.prototype.componentDidMount=function(){this.instantiateCoreBarcode(),window.addEventListener("resize",this.onWindowResize),this.trigger("render",{sender:this})},h.prototype.componentDidUpdate=function(e){var t=this.props,r=(t.children,t.deriveOptionsFromParent,t.getTarget,t.barcodeConstructor,t.className,t.renderAs),t=i(t,["children","deriveOptionsFromParent","getTarget","barcodeConstructor","className","renderAs"]),o=(e.children,e.deriveOptionsFromParent,e.getTarget,e.barcodeConstructor,e.className,e.renderAs),e=i(e,["children","deriveOptionsFromParent","getTarget","barcodeConstructor","className","renderAs"]);null!==this.barcodeInstance&&(e=(0,l.isOptionsChanged)(e,t),(r||"svg")!==(o||"svg")?(null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),this.instantiateCoreBarcode()):e&&this.refresh(),this.trigger("render",{sender:this}))},h.prototype.componentWillUnmount=function(){null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),window.removeEventListener("resize",this.onWindowResize)},h.prototype.render=function(){var t=this,e=this.props,r=e.style,o=e.className,e=e.children;return c.createElement(d.BarcodeContext.Provider,{value:this.contextValue},c.createElement("div",{style:void 0===r?{}:r,ref:function(e){return t._element=e},className:o},e))},h.prototype.instantiateCoreBarcode=function(){var e=this.props.barcodeConstructor,t=this.getBarcodeOptions();this.barcodeInstance=new e(this.element,t,function(e){console.warn(e)})},h.prototype.refresh=function(){var e;null!==this.barcodeInstance&&(e=this.getBarcodeOptions(),this.barcodeInstance.setOptions(e))},h.prototype.getBarcodeOptions=function(){var e=this.props,t=e.renderAs,e=e.deriveOptionsFromParent,t={renderAs:t};return t=e?e(t):t},h.prototype.trigger=function(e,t){for(var r=this.observersStore.getState(),o=0;o<r.length;o++)r[o].trigger(e,t)},h.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},h.defaultProps={renderAs:"svg"},h);function h(e){var t=n.call(this,e)||this;return t.barcodeInstance=null,t.surface=null,t._element=null,t.observersStore={},t.onWindowResize=function(){null!==t.barcodeInstance&&(t.barcodeInstance.redraw(),t.trigger("render",{sender:t}))},(0,f.validatePackage)(b.packageMetadata),t.observersStore=(0,u.default)(p.observersReducer),t.contextValue={observersStore:t.observersStore},t}t.BaseBarcode=r},931:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0,r(954)),u=r(787),p=r(777),l=r(100),d=r(811),r=(n=a.Component,s(f,n),Object.defineProperty(f.prototype,"barcodeInstance",{get:function(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"surface",{get:function(){return null!==this._baseBarcode?this._baseBarcode.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"element",{get:function(){return null!==this._baseBarcode?this._baseBarcode.element:null},enumerable:!1,configurable:!0}),f.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,e=c(e,["children","className"]);return a.createElement(u.BaseBarcode,i({},e,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseBarcode=e},barcodeConstructor:p.QRCode,getTarget:this.getTarget,className:(0,d.classNames)("k-qrcode",o)}),r)},f.prototype.exportImage=function(e){return void 0===e&&(e={}),(0,l.exportImage)(this.exportVisual(),e)},f.prototype.exportSVG=function(e){return void 0===e&&(e={}),(0,l.exportSVG)(this.exportVisual(),e)},f.prototype.exportVisual=function(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new l.Group},f);function f(){var t=null!==n&&n.apply(this,arguments)||this;return t._baseBarcode=null,t.getTarget=function(){return t},t.deriveOptionsFromParent=function(e){return Object.assign({},e,{background:t.props.background||"#fff",border:t.props.border,color:t.props.color||"#000",encoding:t.props.encoding,errorCorrection:t.props.errorCorrection||"L",overlay:t.props.overlay||{},padding:t.props.padding,renderAs:t.props.renderAs,size:t.props.size,value:t.props.value})},t}t.QRCode=r},468:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=t.Barcode=void 0,r(117)),i=(Object.defineProperty(t,"Barcode",{enumerable:!0,get:function(){return s.Barcode}}),r(931));Object.defineProperty(t,"QRCode",{enumerable:!0,get:function(){return i.QRCode}}),n(r(881),t)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1657706019,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},600:function(e,t){var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var o,n=0,s=t.length;n<s;n++)!o&&n in t||((o=o||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.observersReducer=t.optionsReducer=void 0,t.optionsReducer=function(e,t){return t.barcodeKey?o.configurationItem(e,t):{}},t.observersReducer=function(e,t){if(!t.type)return[];switch(t.type){case"add":return r(r([],e,!0),[t.payload],!1);case"remove":return e.filter(function(e){return e!==t.payload});default:return e}},{configurationItem:function(e,t){return Object.assign(e,((e={})[t.barcodeKey]=t.payload,e))}})},113:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.THROTTLE_MS=void 0;var i=t(811);s.THROTTLE_MS=1e3/60,s.default=function(t){function e(e){r=t(r,e),i.canUseDOM&&(window.clearTimeout(o),o=window.setTimeout(function(){return n.forEach(function(e){return e()})},s.THROTTLE_MS))}var r,o,n=[];return e({}),{getState:function(){return r},dispatch:e,subscribe:function(t){return n.push(t),function(){return n=n.filter(function(e){return e!==t})}}}}},881:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isOptionsChanged=void 0;function n(e){return"object"==typeof e}function s(e,t){if(Object.keys(e).length!==Object.keys(t).length)return 1;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],r=t[r];if(n(o)&&n(r)?s(o,r):o!==r)return 1}}t.isOptionsChanged=function(e,t){if(!e||!t)return!0;if(e=[].concat(e),t=[].concat(t),e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(s(e[r],t[r]))return!0;return!1}},777:e=>{e.exports=r},100:e=>{e.exports=s},811:e=>{e.exports=i},895:e=>{e.exports=c},954:e=>{e.exports=a}},n={};return function e(t){var r=n[t];if(void 0!==r)return r.exports;r=n[t]={exports:{}};return o[t].call(r.exports,r,r.exports,e),r.exports}(468)})())}}});
System.register("@progress/kendo-react-barcodes",["@progress/kendo-charts","@progress/kendo-drawing","@progress/kendo-react-common","prop-types","react"],function(e,t){var r={},s={},i={},c={},a={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){s[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})}],execute:function(){e((()=>{"use strict";var o={117:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.Barcode=void 0,r(954)),u=r(787),p=r(777),l=r(100),d=r(811),r=(n=a.Component,s(f,n),Object.defineProperty(f.prototype,"barcodeInstance",{get:function(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"surface",{get:function(){return null!==this._baseBarcode?this._baseBarcode.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"element",{get:function(){return null!==this._baseBarcode?this._baseBarcode.element:null},enumerable:!1,configurable:!0}),f.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,e=c(e,["children","className"]);return a.createElement(u.BaseBarcode,i({},e,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseBarcode=e},barcodeConstructor:p.Barcode,getTarget:this.getTarget,className:(0,d.classNames)("k-barcode",o)}),r)},f.prototype.exportImage=function(e){return void 0===e&&(e={}),(0,l.exportImage)(this.exportVisual(),e)},f.prototype.exportSVG=function(e){return void 0===e&&(e={}),(0,l.exportSVG)(this.exportVisual(),e)},f.prototype.exportVisual=function(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new l.Group},f);function f(){var t=null!==n&&n.apply(this,arguments)||this;return t._baseBarcode=null,t.getTarget=function(){return t},t.deriveOptionsFromParent=function(e){return Object.assign({},e,{background:t.props.background,border:t.props.border,checksum:t.props.checksum,color:t.props.color,height:t.props.height,padding:t.props.padding,text:t.props.text,type:t.props.type,value:t.props.value,width:t.props.width})},t}t.Barcode=r},916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BarcodeContext=void 0;r=r(954);t.BarcodeContext=r.createContext(null),t.BarcodeContext.displayName="BarcodeContext"},787:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBarcode=void 0,r(954)),a=r(895),u=r(113),p=r(600),l=r(841),d=r(916),f=r(811),b=r(363),r=(n=c.Component,s(h,n),Object.defineProperty(h.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),h.prototype.componentDidMount=function(){this.instantiateCoreBarcode(),window.addEventListener("resize",this.onWindowResize),this.trigger("render",{sender:this})},h.prototype.componentDidUpdate=function(e){var t=this.props,r=(t.children,t.deriveOptionsFromParent,t.getTarget,t.barcodeConstructor,t.className,t.renderAs),t=i(t,["children","deriveOptionsFromParent","getTarget","barcodeConstructor","className","renderAs"]),o=(e.children,e.deriveOptionsFromParent,e.getTarget,e.barcodeConstructor,e.className,e.renderAs),e=i(e,["children","deriveOptionsFromParent","getTarget","barcodeConstructor","className","renderAs"]);null!==this.barcodeInstance&&(e=(0,l.isOptionsChanged)(e,t),(r||"svg")!==(o||"svg")?(null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),this.instantiateCoreBarcode()):e&&this.refresh(),this.trigger("render",{sender:this}))},h.prototype.componentWillUnmount=function(){null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),window.removeEventListener("resize",this.onWindowResize)},h.prototype.render=function(){var t=this,e=this.props,r=e.style,o=e.className,e=e.children;return c.createElement(d.BarcodeContext.Provider,{value:this.contextValue},c.createElement("div",{style:void 0===r?{}:r,ref:function(e){return t._element=e},className:o},e))},h.prototype.instantiateCoreBarcode=function(){var e=this.props.barcodeConstructor,t=this.getBarcodeOptions();this.barcodeInstance=new e(this.element,t,function(e){console.warn(e)})},h.prototype.refresh=function(){var e;null!==this.barcodeInstance&&(e=this.getBarcodeOptions(),this.barcodeInstance.setOptions(e))},h.prototype.getBarcodeOptions=function(){var e=this.props,t=e.renderAs,e=e.deriveOptionsFromParent,t={renderAs:t};return t=e?e(t):t},h.prototype.trigger=function(e,t){for(var r=this.observersStore.getState(),o=0;o<r.length;o++)r[o].trigger(e,t)},h.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},h.defaultProps={renderAs:"svg"},h);function h(e){var t=n.call(this,e)||this;return t.barcodeInstance=null,t.surface=null,t._element=null,t.observersStore={},t.onWindowResize=function(){null!==t.barcodeInstance&&(t.barcodeInstance.redraw(),t.trigger("render",{sender:t}))},(0,f.validatePackage)(b.packageMetadata),t.observersStore=(0,u.default)(p.observersReducer),t.contextValue={observersStore:t.observersStore},t}t.BaseBarcode=r},931:function(e,t,r){var o,n,s=this&&this.__extends||(o=function(e,t){return(o=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])})(e,t)},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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,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},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0,r(954)),u=r(787),p=r(777),l=r(100),d=r(811),r=(n=a.Component,s(f,n),Object.defineProperty(f.prototype,"barcodeInstance",{get:function(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"surface",{get:function(){return null!==this._baseBarcode?this._baseBarcode.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"element",{get:function(){return null!==this._baseBarcode?this._baseBarcode.element:null},enumerable:!1,configurable:!0}),f.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,e=c(e,["children","className"]);return a.createElement(u.BaseBarcode,i({},e,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseBarcode=e},barcodeConstructor:p.QRCode,getTarget:this.getTarget,className:(0,d.classNames)("k-qrcode",o)}),r)},f.prototype.exportImage=function(e){return void 0===e&&(e={}),(0,l.exportImage)(this.exportVisual(),e)},f.prototype.exportSVG=function(e){return void 0===e&&(e={}),(0,l.exportSVG)(this.exportVisual(),e)},f.prototype.exportVisual=function(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new l.Group},f);function f(){var t=null!==n&&n.apply(this,arguments)||this;return t._baseBarcode=null,t.getTarget=function(){return t},t.deriveOptionsFromParent=function(e){return Object.assign({},e,{background:t.props.background||"#fff",border:t.props.border,color:t.props.color||"#000",encoding:t.props.encoding,errorCorrection:t.props.errorCorrection||"L",overlay:t.props.overlay||{},padding:t.props.padding,renderAs:t.props.renderAs,size:t.props.size,value:t.props.value})},t}t.QRCode=r},468:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=t.Barcode=void 0,r(117)),i=(Object.defineProperty(t,"Barcode",{enumerable:!0,get:function(){return s.Barcode}}),r(931));Object.defineProperty(t,"QRCode",{enumerable:!0,get:function(){return i.QRCode}}),n(r(881),t)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1657786610,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},600:function(e,t){var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var o,n=0,s=t.length;n<s;n++)!o&&n in t||((o=o||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.observersReducer=t.optionsReducer=void 0,t.optionsReducer=function(e,t){return t.barcodeKey?o.configurationItem(e,t):{}},t.observersReducer=function(e,t){if(!t.type)return[];switch(t.type){case"add":return r(r([],e,!0),[t.payload],!1);case"remove":return e.filter(function(e){return e!==t.payload});default:return e}},{configurationItem:function(e,t){return Object.assign(e,((e={})[t.barcodeKey]=t.payload,e))}})},113:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.THROTTLE_MS=void 0;var i=t(811);s.THROTTLE_MS=1e3/60,s.default=function(t){function e(e){r=t(r,e),i.canUseDOM&&(window.clearTimeout(o),o=window.setTimeout(function(){return n.forEach(function(e){return e()})},s.THROTTLE_MS))}var r,o,n=[];return e({}),{getState:function(){return r},dispatch:e,subscribe:function(t){return n.push(t),function(){return n=n.filter(function(e){return e!==t})}}}}},881:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isOptionsChanged=void 0;function n(e){return"object"==typeof e}function s(e,t){if(Object.keys(e).length!==Object.keys(t).length)return 1;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],r=t[r];if(n(o)&&n(r)?s(o,r):o!==r)return 1}}t.isOptionsChanged=function(e,t){if(!e||!t)return!0;if(e=[].concat(e),t=[].concat(t),e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(s(e[r],t[r]))return!0;return!1}},777:e=>{e.exports=r},100:e=>{e.exports=s},811:e=>{e.exports=i},895:e=>{e.exports=c},954:e=>{e.exports=a}},n={};return function e(t){var r=n[t];if(void 0!==r)return r.exports;r=n[t]={exports:{}};return o[t].call(r.exports,r,r.exports,e),r.exports}(468)})())}}});
{
"name": "@progress/kendo-react-barcodes",
"description": "KendoReact Barcodes package",
"version": "5.5.1-dev.202207131015",
"version": "5.5.1-dev.202207140841",
"repository": {

@@ -44,3 +44,3 @@ "type": "git",

"@progress/kendo-charts": "^1.24.0",
"@progress/kendo-react-common": "5.5.1-dev.202207131015",
"@progress/kendo-react-common": "5.5.1-dev.202207140841",
"prop-types": "^15.6.0"

@@ -53,10 +53,10 @@ },

"@progress/kendo-licensing": "^1.0.1",
"@progress/kendo-react-buttons": "5.5.1-dev.202207131015",
"@progress/kendo-react-dropdowns": "5.5.1-dev.202207131015",
"@progress/kendo-react-inputs": "5.5.1-dev.202207131015",
"@progress/kendo-react-intl": "5.5.1-dev.202207131015",
"@progress/kendo-react-pdf": "5.5.1-dev.202207131015",
"cldr-core": "^36.0.0",
"cldr-dates-full": "^36.0.0",
"cldr-numbers-full": "^36.0.0",
"@progress/kendo-react-buttons": "5.5.1-dev.202207140841",
"@progress/kendo-react-dropdowns": "5.5.1-dev.202207140841",
"@progress/kendo-react-inputs": "5.5.1-dev.202207140841",
"@progress/kendo-react-intl": "5.5.1-dev.202207140841",
"@progress/kendo-react-pdf": "5.5.1-dev.202207140841",
"cldr-core": "^41.0.0",
"cldr-dates-full": "^41.0.0",
"cldr-numbers-full": "^41.0.0",
"hammerjs": "^2.0.0"

@@ -63,0 +63,0 @@ },

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc