@mescius/wijmo.barcode 5.20232.939

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/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /*!
2
+ *
3
+ * Wijmo Library 5.20232.939
4
+ * https://developer.mescius.com/wijmo
5
+ *
6
+ * Copyright(c) MESCIUS inc. All rights reserved.
7
+ *
8
+ * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
9
+ * us.sales@mescius.com
10
+ * https://developer.mescius.com/wijmo/licensing
11
+ *
12
+ */
13
+
14
+ "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}(),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);e.default=t;return e};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("@mescius/wijmo"),selfModule=__importStar(require("@mescius/wijmo.barcode")),alignmentMap={center:"middle",left:"start",right:"end"},SVGRenderContext=function(){function SVGRenderContext(t,e,o){this.dom=t;this.style=e;this.scale=o;this.color="rgb(0,0,0)";this.addGroup()}SVGRenderContext.prototype.setColor=function(t){this.color=t};SVGRenderContext.prototype.setBackgroundColor=function(t){this.dom.style.backgroundColor=t};SVGRenderContext.prototype.addGroup=function(){var t=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g");this.g.setAttribute("shape-rendering","crispEdges");t.appendChild(this.g)};SVGRenderContext.prototype.drawRect=function(t){var e=this.g,o=this.scale,r=this.color,i=document.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("x",(t.x*o).toString());i.setAttribute("y",(t.y*o).toString());i.setAttribute("width",(t.width*o).toString());i.setAttribute("height",(t.height*o).toString());i.style.fill=r;e.appendChild(i)};SVGRenderContext.prototype.drawText=function(t){var e=this.g,o=this.scale,r=this.color,i=this.style,n=document.createElementNS("http://www.w3.org/2000/svg","text");n.style.fill=r;n.style.fontSize=i.fontSize;n.style.fontFamily=i.fontFamily;n.style.fontStyle=t.fontStyle||i.fontStyle;n.style.fontWeight=t.fontWeight||i.fontWeight;n.style.textDecoration=t.textDecoration||i.textDecoration;n.style.textAnchor=alignmentMap[t.textAlign||i.textAlign];n.textContent=t.text;n.textContent=this.clipString(t,n);var a=this._measureText(n);n.setAttribute("y",(t.y*o+Math.abs(a.y)).toString());n.setAttribute("x",(t.x*o).toString());e.appendChild(n)};SVGRenderContext.prototype.clipString=function(t,e){var o=this.scale,r=t.text,i=t.maxWidth,n=this._measureText(e);i*=o;if(n.width>i){var a=Math.floor(i/n.width*r.length);return t.text.substr(0,a)}return r};SVGRenderContext.prototype.clear=function(){this.dom.removeChild(this.g);this.addGroup()};SVGRenderContext.prototype._measureText=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.style.visibility="hidden";e.style.position="absolute";t.setAttribute("x",0);t.setAttribute("y",0);e.appendChild(t);document.body.appendChild(e);var o=t.getBBox();document.body.removeChild(e);return o};SVGRenderContext.prototype.getDataUrl=function(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)};return SVGRenderContext}();exports.SVGRenderContext=SVGRenderContext;var _errorCode,CanvasRenderContext=function(){function CanvasRenderContext(t,e,o){this.dom=t;this.style=e;this.ctx=this.dom.getContext("2d");this.scale=o}CanvasRenderContext.prototype.setColor=function(t){this.ctx.fillStyle=t};CanvasRenderContext.prototype.setBackgroundColor=function(t){var e=this.ctx,o=this.dom;e.save();e.fillStyle=t;e.fillRect(0,0,o.width,o.height);e.restore()};CanvasRenderContext.prototype.drawRect=function(t){var e=this.ctx,o=this.scale;e.fillRect(t.x*o,t.y*o,t.width*o,t.height*o)};CanvasRenderContext.prototype.drawText=function(t){var e=this.ctx,o=this.style,r=this.scale;e.save();e.font=(t.fontStyle||o.fontStyle)+" "+(t.fontWeight||o.fontWeight)+" "+o.fontSize+" "+o.fontFamily;e.textAlign=t.textAlign||o.textAlign;e.textBaseline="bottom";var i=t.x*r,n=t.y*r,a=this.clipString(t);e.fillText(a,i,n+o.fontHeight);this.drawTextDecorationLine(a,i,n,t.textDecoration||o.textDecoration);e.restore()};CanvasRenderContext.prototype.clipString=function(t){var e=this.ctx,o=this.scale,r=t.text,i=t.maxWidth,n=e.measureText(r);i*=o;if(n.width>i){var a=Math.floor(i/n.width*r.length);return t.text.substr(0,a)}return r};CanvasRenderContext.prototype.drawTextDecorationLine=function(t,e,o,r){var i;switch(r){case"underline":i=.9;break;case"overline":i=.1;break;case"line-through":i=.5;break;default:return}var n=this.ctx,a=this.style.fontHeight,s=n.measureText(t).width;switch(n.textAlign){case"center":e-=s/2;break;case"right":e-=s}n.lineWidth=1;n.beginPath();var p=a*i+o;n.moveTo(e,p);n.lineTo(e+s,p);n.stroke()};CanvasRenderContext.prototype.clear=function(){var t=this.ctx,e=this.dom;t.clearRect(0,0,e.width,e.height)};CanvasRenderContext.prototype.getImageData=function(){var t=this.ctx,e=this.dom;return t.getImageData(0,0,e.width,e.height)};CanvasRenderContext.prototype.getDataUrl=function(){return this.dom.toDataURL()};return CanvasRenderContext}();exports.CanvasRenderContext=CanvasRenderContext;!function(t){t[t.Unknown=0]="Unknown";t[t.InvalidOptions=1]="InvalidOptions";t[t.InvalidBarcodeType=2]="InvalidBarcodeType";t[t.InvalidRenderType=3]="InvalidRenderType";t[t.MethodNotImplement=4]="MethodNotImplement";t[t.InvalidText=5]="InvalidText";t[t.InvalidCharacter=6]="InvalidCharacter";t[t.TextTooLong=7]="TextTooLong";t[t.GroupSizeOverflow=8]="GroupSizeOverflow"}(_errorCode=exports._errorCode||(exports._errorCode={}));var BaseException=function(t){__extends(BaseException,t);function BaseException(e){var o=t.call(this)||this;o.code=e||_errorCode.Unknown;return o}return BaseException}(Error);exports.BaseException=BaseException;exports.ErrorCode=_errorCode;var InvalidOptionsException=function(t){__extends(InvalidOptionsException,t);function InvalidOptionsException(e,o){void 0===o&&(o="");var r=t.call(this,_errorCode.InvalidOptions)||this;r.name="InvalidOptionsException";r.message=JSON.stringify(e)+" is not valid options. "+o;r.descriptor={source:e,message:r.message};return r}return InvalidOptionsException}(BaseException);exports.InvalidOptionsException=InvalidOptionsException;var InvalidBarcodeTypeException=function(t){__extends(InvalidBarcodeTypeException,t);function InvalidBarcodeTypeException(e){var o=t.call(this,_errorCode.InvalidBarcodeType)||this;o.name="InvalidBarcodeTypeException";o.message=e+" is not support!";o.descriptor={source:e,message:o.message};return o}return InvalidBarcodeTypeException}(BaseException);exports.InvalidBarcodeTypeException=InvalidBarcodeTypeException;var InvalidRenderException=function(t){__extends(InvalidRenderException,t);function InvalidRenderException(e){var o=t.call(this,_errorCode.InvalidRenderType)||this;o.name="InvalidRenderException";o.message=e+" is not support!";o.descriptor={source:e,message:o.message};return o}return InvalidRenderException}(BaseException);exports.InvalidRenderException=InvalidRenderException;var MethodNotImplementException=function(t){__extends(MethodNotImplementException,t);function MethodNotImplementException(e,o){var r=t.call(this,_errorCode.MethodNotImplement)||this;r.name="MethodNotImplementException";r.message=e+" is not a method! "+o;r.descriptor={source:e,message:r.message};return r}return MethodNotImplementException}(BaseException);exports.MethodNotImplementException=MethodNotImplementException;var InvalidTextException=function(t){__extends(InvalidTextException,t);function InvalidTextException(e,o){void 0===o&&(o="");var r=t.call(this,_errorCode.InvalidText)||this;r.name="InvalidTextException";r.message=e?e+" is invalid. "+o:"Text is required.";r.descriptor={source:e,message:r.message};return r}return InvalidTextException}(BaseException);exports.InvalidTextException=InvalidTextException;var InvalidCharacterException=function(t){__extends(InvalidCharacterException,t);function InvalidCharacterException(e){var o=t.call(this,_errorCode.InvalidCharacter)||this;o.name="InvalidCharacterException";o.message=e+" is invalid.";o.descriptor={source:e,message:o.message};return o}return InvalidCharacterException}(BaseException);exports.InvalidCharacterException=InvalidCharacterException;var TextTooLongException=function(t){__extends(TextTooLongException,t);function TextTooLongException(){var e=t.call(this,_errorCode.TextTooLong)||this;e.name="TextTooLongException";e.message="Text is too long to encode";e.descriptor={source:null,message:e.message};return e}return TextTooLongException}(BaseException);exports.TextTooLongException=TextTooLongException;var GroupSizeOverflowException=function(t){__extends(GroupSizeOverflowException,t);function GroupSizeOverflowException(e){var o=t.call(this,_errorCode.GroupSizeOverflow)||this;o.name="GroupSizeOverflowException";o.message="Group size is "+e+". The max group size is 9.";o.descriptor={source:e,message:o.message};return o}return GroupSizeOverflowException}(BaseException);exports.GroupSizeOverflowException=GroupSizeOverflowException;function createRenderDom(t,e){var o;"svg"===t?(o=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):o=document.createElement("canvas");o.setAttribute("width",e.width);o.setAttribute("height",e.height);return o}var BarcodeRender=function(){function BarcodeRender(t,e){this.container=t;e.toSymbol();this.barcode=e;this.style=e.style;var o=this.style.unitValue;this.size={width:e.size.width*o,height:e.size.height*o};var r=createRenderDom(this.style.renderType,this.size);switch(this.style.renderType){case"svg":this.context=new SVGRenderContext(r,this.style,o);break;case"canvas":this.context=new CanvasRenderContext(r,this.style,o);break;default:throw new InvalidRenderException(this.style.renderType)}t&&t.appendChild(r);this.renderDom=r}BarcodeRender.prototype.render=function(){var t=this.style,e=this.barcode.shapes,o=this.context;o.clear();o.setColor(t.color);o.setBackgroundColor(t.backgroundColor);e.forEach((function(t){"rect"===t.type&&o.drawRect(t);"text"===t.type&&o.drawText(t)}));return this};BarcodeRender.prototype.getImageData=function(){if(!this.context.getImageData)throw new MethodNotImplementException("getImageData","You are working with svg render.");return this.context.getImageData()};BarcodeRender.prototype.getDataUrl=function(){return this.context.getDataUrl()};BarcodeRender.prototype.destroy=function(){this.container&&this.container.removeChild(this.renderDom)};BarcodeRender.prototype.getSize=function(){return this.size};return BarcodeRender}();exports.BarcodeRender=BarcodeRender;function isFunction(t){return"function"==typeof t}function isWindow(t){return!!t&&t===t.window}function isDefined(t){return void 0!==t}function isNaN(t){return isFunction(Number.isNaN)?Number.isNaN(t):t!=t}function isNumberLike(t){return!isNaN(+t)}function sliceString(t,e,o){void 0===t&&(t="");void 0===e&&(e=1);for(var r=0,i=t.length,n=0;r<i;){o(t.substring(r,r+e),n);r+=e;n++}}function sliceArray(t,e,o){void 0===t&&(t=[]);void 0===e&&(e=1);for(var r=0,i=t.length,n=0;r<i;){o(t.slice(r,r+e),n);r+=e;n++}}function str2Array(t){void 0===t&&(t="");return isFunction(Array.from)?Array.from(t):Array.prototype.slice.call(t)}function combineTruthy(t){void 0===t&&(t="");var e=str2Array(t),o=[];e.forEach((function(t){if("0"===t)o.push(0);else if(o[o.length-1]&&0!==o[o.length]){var e=o.pop();o.push(++e)}else o.push(1)}));return o}function convertRadix(t,e){void 0===e&&(e=2);return(t=+t).toString(e)}function isEven(t){return t%2==0}function isOdd(t){return t%2==1}function toNumber(t,e){void 0===t&&(t="");void 0===e&&(e=0);if("number"==typeof t)return t;var o=parseFloat(t);return isNaN(o)?e:o}function getUnit(t){void 0===t&&(t="");var e=/[a-zA-Z]+/.exec(t);return e?e[0]:"px"}function getMaxValue(t,e){void 0===e&&(e="length");var o=0;t.forEach((function(t){t[e]>o&&(o=t[e])}));return o}function assign(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(isFunction(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var n=e[i];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r}function deepMerge(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(null==t)throw new TypeError("Cannot convert undefined or null to object");e.forEach((function(e){if(e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(null!=e[o]&&"object"==typeof e[o]&&"object"==typeof t[o]?t[o]=deepMerge({},t[o]||{},e[o]):t[o]=e[o])}));return t}function deepMergeAll(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return deepMerge.apply(void 0,[{}].concat(t))}function strRepeat(t,e){if(isFunction(t.repeat))return t.repeat(e);var o=""+t;(e=+e)!=e&&(e=0);if(e<0)throw new RangeError("repeat count must be non-negative");if(e==1/0)throw new RangeError("repeat count must be less than infinity");e=Math.floor(e);if(0==o.length||0==e)return"";if(o.length*e>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var r="",i=0;i<e;i++)r+=o;return r}function isInteger(t){return isFunction(Number.isInteger)?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function fillArray(t,e){if(isFunction(t.fill))return t.fill(e);for(var o=0;o<t.length;o++)t[o]=e;return t}function strPadStart(t,e,o){if(isFunction(t.padStart))return t.padStart(e,o);e>>=0;o=String(void 0!==o?o:" ");if(t.length>e)return t;(e-=t.length)>o.length&&(o+=strRepeat(o,e/o.length));return o.slice(0,e)+String(t)}var plugins={};function registerPlugin(t,e){plugins[t]=e}function _defaultMeasureText(t,e){return 1.4*toNumber(e.fontSize,12)}function measureText(t,e){return isFunction(plugins.measureText)?plugins.measureText(t,e):_defaultMeasureText(t,e)}function _defaultConvertUnit(t){return toNumber(t,12)}function convertUnit(t){return isFunction(plugins.convertUnit)?isNumberLike(t)?toNumber(t,12):plugins.convertUnit(t):_defaultConvertUnit(t)}function fixSize2PixelDefault(t){return isNumberLike(t)?t+"px":t}function loop(t,e){var o,r;if(isFinite(e)){o=0;r=e}else{o=e.from;r=e.to+1}for(;o<r;o++)t(o)}function toZeroOnePattern(t,e){var o=e?isEven:isOdd;return t.reduce((function(t,e,r){o(r)?t+=strRepeat("1",e):t+=strRepeat("0",e);return t}),"")}function range(t,e){for(var o=[];t<e;){o.push(t);t++}o.push(e);return o}function makeEnums(t){Object.defineProperty(t,"has",{configurable:!1,enumerable:!1,writable:!1,value:function(t){return this.$br[t]}});var e=Object.keys(t).reduce((function(e,o){e[t[o]]=o;return e}),{});Object.defineProperty(t,"$br",{configurable:!1,enumerable:!1,writable:!1,value:e})}exports.Utils={isFunction:isFunction,isWindow:isWindow,isDefined:isDefined,isNaN:isNaN,isNumberLike:isNumberLike,sliceString:sliceString,sliceArray:sliceArray,str2Array:str2Array,combineTruthy:combineTruthy,convertRadix:convertRadix,isEven:isEven,isOdd:isOdd,toNumber:toNumber,getUnit:getUnit,getMaxValue:getMaxValue,assign:assign,deepMerge:deepMerge,deepMergeAll:deepMergeAll,strRepeat:strRepeat,isInteger:isInteger,fillArray:fillArray,strPadStart:strPadStart,registerPlugin:registerPlugin,measureText:measureText,convertUnit:convertUnit,fixSize2PixelDefault:fixSize2PixelDefault,loop:loop,toZeroOnePattern:toZeroOnePattern,range:range,makeEnums:makeEnums};var Option=function(){function Option(t){void 0===t&&(t={});this.originConfig=t;this.type=t.type;this.penddingMerge=[]}Option.setCustomDefaultOptions=function(t){Option.CustomDefaultOptions=t};Option.prototype.spawn=function(t){return new Option(exports.Utils.deepMergeAll(this.originConfig,t))};Option.prototype.merge=function(t){this.penddingMerge.unshift(t)};Option.prototype._getUnitValue=function(t){t=exports.Utils.fixSize2PixelDefault(t);return exports.Utils.convertUnit(t)};Option.prototype.getMergedOption=function(){return exports.Utils.deepMergeAll.apply(exports.Utils,[Option.DefaultOptions].concat(this.penddingMerge,[Option.CustomDefaultOptions,this.originConfig]))};Option.prototype.getConfig=function(t){var e=this.getMergedOption(),o=e.text,r=e.quietZone,i=e.height,n=e.labelPosition,a=e.desiredSize,s=e.showLabel,p=e.font,c=e.backgroundColor,u=e.color,h=e.renderType,l=e.unitSize,d={text:o,isLabelBottom:!1,hideExtraChecksum:e.hideExtraChecksum};if(!exports.Utils.isDefined(o))throw new InvalidTextException;d.text+="";exports.Utils.isDefined(n)&&(d.isLabelBottom="top"!==n);(p=exports.Utils.deepMergeAll(p)).fontSize=exports.Utils.fixSize2PixelDefault(p.fontSize);var f=exports.Utils.measureText(o,p);d.showLabel=s;t=t||this._getUnitValue(l);var g=s?f/t:0;d.fontSizeInUnit=g;var x={};for(var y in r)if(r.hasOwnProperty(y)){var v=r[y];if(exports.Utils.isNumberLike(v)){var m=+v;x[y]=m}else{var _=exports.Utils.convertUnit(v);x[y]=_/t}}d.quietZone=x;if(a){d.containerWidth=exports.Utils.convertUnit(exports.Utils.fixSize2PixelDefault(a.width));d.containerHeight=exports.Utils.convertUnit(exports.Utils.fixSize2PixelDefault(a.height));d.desiredSize=a}if(exports.Utils.isDefined(i))if(a){var b=s?d.containerHeight-f:d.containerHeight;d.height=b/t-x.top-x.bottom}else exports.Utils.isNumberLike(i)?d.height=+i-g-x.top-x.bottom:d.height=exports.Utils.convertUnit(i)/t-g-x.top-x.bottom;return{config:e,encodeConfig:d,style:exports.Utils.deepMergeAll({backgroundColor:c,color:u,renderType:h,unitValue:t,fontSize:p.fontSize,fontHeight:f},p)}};Option.prototype.getOriginConfig=function(){return this.originConfig};Option.prototype.getType=function(){return this.type};Option.DefaultOptions={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"},hideExtraChecksum:!1,quietZone:{top:0,right:0,bottom:0,left:0}};Option.CustomDefaultOptions={};return Option}();exports.Option=Option;function _getProtos(t){var e=[];if(t&&t instanceof Function){var o=t;e.push(o);for(;o;){var r=Object.getPrototypeOf(o);if(!r||r===Object||r===Function.prototype)break;o=r;e.push(o)}}return e}function _getDefaultConfig(t,e){var o=[{type:e}];_getProtos(t).forEach((function(t){t.DefaultConfig&&o.unshift(t.DefaultConfig)}));return exports.Utils.deepMergeAll.apply(exports.Utils,[Option.DefaultOptions].concat(o,[Option.CustomDefaultOptions]))}exports._getDefaultConfig=_getDefaultConfig;var _EnumDictionary=function(){function _EnumDictionary(t,e){this._keys={};this._values={};for(var o in t)if("string"==typeof t[o]){var r=parseInt(o),i=e(t[r]);this._keys[r]=i;this._values[i]=r}}_EnumDictionary.prototype.getEnumByString=function(t){var e=this._values[t];if(void 0===e)throw"Unknown Barcode internal value '"+t+"'";return e};_EnumDictionary.prototype.getStringByEnum=function(t){return this._keys[t]};return _EnumDictionary}();exports._EnumDictionary=_EnumDictionary;var Area=function(){function Area(t,e){void 0===t&&(t=0);void 0===e&&(e=0);this.x=0;this.y=0;this.style={padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}};this.width=t;this.height=e;this.children=[];this._updateBox()}Area.prototype.append=function(t){this.children.push(t)};Area.prototype._makeRect=function(t,e,o,r){return{x:t,y:e,height:r,width:o,type:"rect"}};Area.prototype.toShapes=function(){var t=this,e=t.x,o=t.y,r=t.width,i=t.height,n=t.style,a=n.border,s=n.margin,p=[],c=a.left+a.right+r,u=a.top+a.bottom+i,h=e+s.left,l=o+s.top;a.top&&p.push(this._makeRect(h,l,c,a.top));a.right&&p.push(this._makeRect(h+c-a.right,l,a.right,u));a.bottom&&p.push(this._makeRect(h,l+u-a.bottom,c,a.bottom));a.left&&p.push(this._makeRect(h,l,a.left,u));return p};Area.prototype.getSize=function(){var t=this.width,e=this.height,o=this.offsetBox;return{width:t+o.width,height:e+o.height}};Area.prototype.visiable=function(){return this.width>0&&this.height>0};Area.prototype.setX=function(t){this.x=t;this._updateBox()};Area.prototype.setY=function(t){this.y=t;this._updateBox()};Area.prototype.updateContentSize=function(t,e){this.width=t;this.height=e;this._updateBox()};Area.prototype._fixOpt=function(t,e){if(exports.Utils.isNumberLike(t[e])){var o=t[e];t[e]={top:o,right:o,bottom:o,left:o}}};Area.prototype.setStyle=function(t){this._fixOpt(t,"padding");this._fixOpt(t,"border");this._fixOpt(t,"margin");this.style=exports.Utils.deepMergeAll(this.style,t);this._updateBox()};Area.prototype._updateBox=function(){var t=this,e=t.x,o=t.y,r=t.width,i=t.height,n=t.style,a=n.padding,s=n.border,p=n.margin;this.offsetBox={x:e+a.left+s.left+p.left,y:o+a.top+s.top+p.top,width:p.left+s.left+s.right+p.right,height:p.top+s.top+s.bottom+p.bottom};var c=r-a.left-a.right,u=i-a.top-a.bottom;this.contentBox={width:c>=0?c:0,height:u>=0?u:0}};return Area}();exports.Area=Area;var HorizontalLayoutArea=function(t){__extends(HorizontalLayoutArea,t);function HorizontalLayoutArea(){return null!==t&&t.apply(this,arguments)||this}HorizontalLayoutArea.prototype.toShapes=function(){this._updateContentSize();var e=this.children,o=this.offsetBox,r=t.prototype.toShapes.call(this),i=o.y,n=0;e.forEach((function(t){var e=o.x+n;t.toShapes().forEach((function(t){t.x+=e;t.y+=i;r.push(t)}));var a=t.getSize();n+=a.width}));return r};HorizontalLayoutArea.prototype.getSize=function(){this._updateContentSize();return t.prototype.getSize.call(this)};HorizontalLayoutArea.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,o=t.reduce((function(t,e){var o=e.getSize();t.height=Math.max(o.height,t.height);t.width+=o.width;return t}),{width:0,height:0});this.updateContentSize(o.width+e.left+e.right,o.height+e.top+e.bottom)};return HorizontalLayoutArea}(Area);exports.HorizontalLayoutArea=HorizontalLayoutArea;var VerticalLayoutArea=function(t){__extends(VerticalLayoutArea,t);function VerticalLayoutArea(){return null!==t&&t.apply(this,arguments)||this}VerticalLayoutArea.prototype.toShapes=function(){this._updateContentSize();var e=this.children,o=this.offsetBox,r=t.prototype.toShapes.call(this),i=o.x,n=0;e.forEach((function(t){var e=o.y+n;t.toShapes().forEach((function(t){t.x+=i;t.y+=e;r.push(t)}));var a=t.getSize();n+=a.height}));return r};VerticalLayoutArea.prototype.getSize=function(){this._updateContentSize();return t.prototype.getSize.call(this)};VerticalLayoutArea.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,o=t.reduce((function(t,e){var o=e.getSize();t.width=Math.max(o.width,t.width);t.height+=o.height;return t}),{width:0,height:0});this.updateContentSize(o.width+e.left+e.right,o.height+e.top+e.bottom)};return VerticalLayoutArea}(Area);exports.VerticalLayoutArea=VerticalLayoutArea;var MatrixSymbolArea=function(t){__extends(MatrixSymbolArea,t);function MatrixSymbolArea(e,o,r){var i=t.call(this,e,o)||this;i._xPosition=0;i._yPosition=0;i._lastMaxHeight=0;i._rowHeight=0;i._rowHeight=r;return i}MatrixSymbolArea.prototype.append=function(t,e){if(t&&e){this._autoWrap(t);var o=this.children,r={width:t,height:e,x:this._xPosition,y:this._yPosition};o.push(r);this._xPosition+=t;this._rowHeight||(this._lastMaxHeight=Math.max(this._lastMaxHeight,e))}};MatrixSymbolArea.prototype._autoWrap=function(t){if(this._checkNeedWrap(t)){this._yPosition+=this._rowHeight||this._lastMaxHeight;this._xPosition=0;this._lastMaxHeight=0}};MatrixSymbolArea.prototype._checkNeedWrap=function(t){var e=this._xPosition;return this.contentBox.width-e-t<0};MatrixSymbolArea.prototype.space=function(t){void 0===t&&(t=1);this._autoWrap(t);this._xPosition+=t};MatrixSymbolArea.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,o=this.children,r=t.prototype.toShapes.call(this);o.forEach((function(t){t.x+=e.x;t.y+=e.y;t.type="rect";r.push(t)}));return r};return MatrixSymbolArea}(Area);exports.MatrixSymbolArea=MatrixSymbolArea;var SymbolArea=function(t){__extends(SymbolArea,t);function SymbolArea(e,o){var r=t.call(this,e,o)||this;r._lastIsBar=!1;r._cacheNumber=0;r._position=0;return r}SymbolArea.prototype.append=function(t,e,o){if(t){var r=this.children,i={width:t,x:this._position,barHeight:e,offsetY:o};r.push(i);this._position+=t}};SymbolArea.prototype.space=function(t){void 0===t&&(t=1);this._position+=t};SymbolArea.prototype._appendModule=function(t){var e="1"===t;if(e!==this._lastIsBar){this._flash();this._lastIsBar=e}this._cacheNumber++};SymbolArea.prototype._flash=function(){if(this._cacheNumber>0){this._lastIsBar?this.append(this._cacheNumber):this.space(this._cacheNumber);this._cacheNumber=0}};SymbolArea.prototype.fromPattern=function(t){var e=this;exports.Utils.str2Array(t).forEach((function(t){return e._appendModule(t)}));this._flash()};SymbolArea.prototype.getContentBox=function(){return this.contentBox};SymbolArea.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,o=this.children,r=this.contentBox.height,i=t.prototype.toShapes.call(this);o.forEach((function(t){i.push({type:"rect",x:t.x+e.x,y:e.y+(t.offsetY||0),width:t.width,height:t.barHeight||r})}));return i};return SymbolArea}(Area);exports.SymbolArea=SymbolArea;var LabelArea=function(t){__extends(LabelArea,t);function LabelArea(e,o,r){var i=t.call(this,e,o)||this;i._textAlign=r;return i}LabelArea.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,o=this.children,r=this._textAlign,i=this.contentBox.width,n=t.prototype.toShapes.call(this);o.forEach((function(t){var o=e.x;switch(r){case"center":o+=i/2;break;case"right":o+=i}n.push({x:o+(t.x||0),y:e.y+(t.y||0),textAlign:r,maxWidth:i,type:"text",text:t.text})}));return n};return LabelArea}(Area);exports.LabelArea=LabelArea;var MatrixBuilder=function(){function MatrixBuilder(t,e){this.data=[];this.data=[];this.row=t;this.col=e}MatrixBuilder.prototype.add=function(t,e,o){(this.data[t]||exports.Utils.fillArray(new Array(this.col),null))[e]=o;this.data[t]=[]};MatrixBuilder.prototype.toMatrix=function(){var t=this,e=[];exports.Utils.loop((function(o){e.push(t.data[o]||exports.Utils.fillArray(new Array(t.col),null))}),this.row);return e};return MatrixBuilder}();exports.MatrixBuilder=MatrixBuilder;var BitBuffer=function(){function BitBuffer(t){void 0===t&&(t=[]);this.buffer=t;this.length=8*t.length;this.index=0}BitBuffer.prototype.putBit=function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0);t&&(this.buffer[e]|=128>>>this.length%8);this.length+=1};BitBuffer.prototype.putBitAt=function(t,e){for(var o=this.length,r=new BitBuffer,i=0;i<o;i++)i===e?r.putBit(t):r.putBit(this.getAt(i));this.buffer=r.buffer;this.length=r.length};BitBuffer.prototype.put=function(t,e){for(var o=0;o<e;o+=1)this.putBit(1==(t>>>e-o-1&1))};BitBuffer.prototype.putBits=function(t){this.put(parseInt(t,2),t.length)};BitBuffer.prototype.getAt=function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)};BitBuffer.prototype.getBuffer=function(){return this.buffer};BitBuffer.prototype.getGroupedBits=function(t){for(var e=0,o=[];e<this.length;){for(var r="",i=e,n=e+t;i<n;i++)r+=this.getAt(i)?1:0;e=n;o.push(parseInt(r,2))}return o};BitBuffer.prototype.next=function(){this.index++;return this.getAt(this.index-1)};return BitBuffer}();exports.BitBuffer=BitBuffer;var BarcodeEncoder=function(){function BarcodeEncoder(t){this._option=t;this.shapes=[];this.size={width:0,height:0};this.applyDesiredSize()}BarcodeEncoder.prototype.validate=function(){};BarcodeEncoder.prototype.applyDesiredSize=function(t){var e=this._option.getConfig(t),o=e.config,r=e.encodeConfig,i=e.style;this.config=o;this.encodeConfig=r;this.style=i;this.useDesiredSize=!!r.desiredSize};BarcodeEncoder.prototype.afterApplyDesiredSize=function(){};BarcodeEncoder.prototype.toSymbol=function(){this.validate();var t=this.calculateData();if(this.useDesiredSize){this.convertToShape(t,!0);this.adjustDesiredSize();this.afterApplyDesiredSize()}this.convertToShape(t)};return BarcodeEncoder}();exports.BarcodeEncoder=BarcodeEncoder;var TwoDimensionalBarcode=function(t){__extends(TwoDimensionalBarcode,t);function TwoDimensionalBarcode(){return null!==t&&t.apply(this,arguments)||this}TwoDimensionalBarcode.prototype.adjustDesiredSize=function(){var t=this.size,e=t.width,o=t.height,r=this.encodeConfig,i=r.desiredSize,n=r.containerWidth,a=r.containerHeight,s=Math.min(n/e,a/o);i.forceRounding&&(s=(s=~~s)<1?1:s);this.applyDesiredSize(s)};TwoDimensionalBarcode.prototype.convertToShape=function(t,e){var o=this.encodeConfig.quietZone,r=t[0].length+o.right+o.left,i=t.length+o.top+o.bottom,n=new VerticalLayoutArea,a=new MatrixSymbolArea(r,i,1);a.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});n.append(a);if(!e){t.forEach((function(t){t.forEach((function(t){t?a.append(1,1):a.space()}))}));this.shapes=n.toShapes()}this.size=n.getSize()};return TwoDimensionalBarcode}(BarcodeEncoder);exports.TwoDimensionalBarcode=TwoDimensionalBarcode;var OneDimensionalBarcode=function(t){__extends(OneDimensionalBarcode,t);function OneDimensionalBarcode(e){var o=this;e.merge(OneDimensionalBarcode.DefaultConfig);(o=t.call(this,e)||this).label="";return o}OneDimensionalBarcode.prototype.adjustDesiredSize=function(){var t=this.size.width,e=this.encodeConfig,o=e.desiredSize,r=e.containerWidth/t;o.forceRounding&&(r=(r=~~r)<1?1:r);this.applyDesiredSize(r)};OneDimensionalBarcode.prototype.convertToShape=function(t,e){var o=this.label,r=this.encodeConfig,i=r.quietZone,n=r.isLabelBottom,a=r.height,s=r.showLabel,p=r.fontSizeInUnit,c=this.style.textAlign,u=0;o&&s&&(u=p);var h=t.length+i.right+i.left,l=a+i.top+i.bottom,d=new VerticalLayoutArea,f=new SymbolArea(h,l);f.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}});var g=f.getSize(),x=new LabelArea(g.width,u,c);if(n){d.append(f);d.append(x)}else{d.append(x);d.append(f)}if(!e){f.fromPattern(t);x.append({text:o});this.shapes=d.toShapes()}this.size=d.getSize()};OneDimensionalBarcode.DefaultConfig={height:60,showLabel:!0,labelPosition:"bottom"};return OneDimensionalBarcode}(BarcodeEncoder);exports.OneDimensionalBarcode=OneDimensionalBarcode;var FNC1="Ï",FNC2="Ê",FNC3="É",DataMatrixFNC1=" ",DataMatrixMacro05=" ",DataMatrixMacro06=" ";exports.Constants={FNC1:FNC1,FNC2:FNC2,FNC3:FNC3,DataMatrixFNC1:DataMatrixFNC1,DataMatrixMacro05:DataMatrixMacro05,DataMatrixMacro06:DataMatrixMacro06};exports.encoders={};var RenderType,LabelPosition,NarrowToWideRatio,Barcode=function(){function Barcode(){for(var t,e,o,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(r.length>=3)t=r[0],e=r[1],o=r[2];else if(2===r.length)exports.Utils.isFunction(r[1])?(e=r[0],o=r[1]):(t=r[0],e=r[1]);else{if(1!==r.length)throw new MethodNotImplementException("constructor","The arguments is invalid.");e=r[0]}this.dom="string"==typeof t?document.querySelector(t):t;this.callback=o&&o.bind(this);this.setOption(e)}Barcode.getImageData=function(t){void 0===t&&(t={});return new Barcode(t).getImageData()};Barcode.getDataUrl=function(t){void 0===t&&(t={});return new Barcode(t).getDataUrl()};Barcode.setDefaultOptions=function(t){void 0===t&&(t={});Option.setCustomDefaultOptions(t)};Barcode.registerEncoder=function(t,e){exports.encoders[t]=e;Barcode.supportType.push(t)};Barcode.registerPlugin=function(t,e){exports.Utils.registerPlugin(t,e)};Barcode.prototype.mergeOption=function(t){var e=this.option.spawn(t);this.update(e);return this};Barcode.prototype.setOption=function(t){this.update(new Option(t));return this};Barcode.prototype.getOption=function(){return this.option.getMergedOption()};Barcode.prototype.update=function(t){var e=t.getType(),o=exports.encoders[e];if(!o)throw new InvalidBarcodeTypeException(e);var r=new o(t);this.destroy();var i=new BarcodeRender(this.dom,r);i.render();this.render=i;this.option=t;exports.Utils.isFunction(this.callback)&&this.callback()};Barcode.prototype.refresh=function(){this.render.render();exports.Utils.isFunction(this.callback)&&this.callback()};Barcode.prototype.getImageData=function(){return this.render.getImageData()};Barcode.prototype.getDataUrl=function(){return this.render.getDataUrl()};Barcode.prototype.getSize=function(){return this.render.getSize()};Barcode.prototype.destroy=function(){if(this.render){this.render.destroy();this.render=null}};Barcode.supportType=[];Barcode.constants=exports.Constants;Barcode.ErrorCode=exports.ErrorCode;return Barcode}();exports.Barcode=Barcode;Barcode.registerPlugin("measureText",(function(t,e){var o=document.createElement("span");o.style.visibility="hidden";o.style.position="absolute";o.style.lineHeight="normal";o.textContent=t;Object.keys(e).forEach((function(t){o.style[t]=e[t]}));document.body.appendChild(o);var r=o.getBoundingClientRect();document.body.removeChild(o);return r.height}));Barcode.registerPlugin("convertUnit",(function(t){var e=document.createElement("div");e.style.visibility="hidden";e.style.position="fixed";e.style.padding="0";e.style.border="0";e.style.width=t;document.body.appendChild(e);var o=e.getBoundingClientRect();document.body.removeChild(e);return o.width}));!function(t){t[t.Canvas=0]="Canvas";t[t.Svg=1]="Svg"}(RenderType=exports.RenderType||(exports.RenderType={}));!function(t){t[t.Top=0]="Top";t[t.Bottom=1]="Bottom"}(LabelPosition=exports.LabelPosition||(exports.LabelPosition={}));!function(t){t[t.OneToTwo=0]="OneToTwo";t[t.OneToThree=1]="OneToThree"}(NarrowToWideRatio=exports.NarrowToWideRatio||(exports.NarrowToWideRatio={}));var _RenderTypeConvertor=function(){function _RenderTypeConvertor(){}_RenderTypeConvertor.stringToEnum=function(t){switch(t){case"canvas":return RenderType.Canvas;case"svg":return RenderType.Svg}throw"Unknown Barcode internal renderType '"+t+"'"};_RenderTypeConvertor.enumToString=function(t){return RenderType[wijmo_1.asEnum(t,RenderType)].toLowerCase()};return _RenderTypeConvertor}();exports._RenderTypeConvertor=_RenderTypeConvertor;var _LabelPositionConvertor=function(){function _LabelPositionConvertor(){}_LabelPositionConvertor.stringToEnum=function(t){switch(t){case"top":return LabelPosition.Top;case"bottom":return LabelPosition.Bottom}throw"Unknown Barcode internal labelPosition '"+t+"'"};_LabelPositionConvertor.enumToString=function(t){return LabelPosition[wijmo_1.asEnum(t,LabelPosition)].toLowerCase()};return _LabelPositionConvertor}();exports._LabelPositionConvertor=_LabelPositionConvertor;var _NarrowWideRatioConvertor=function(){function _NarrowWideRatioConvertor(){}_NarrowWideRatioConvertor.stringToEnum=function(t){switch(t.toString()){case"2":return NarrowToWideRatio.OneToTwo;case"3":return NarrowToWideRatio.OneToThree}throw"Unknown nwRatio internal value '"+t+"'"};_NarrowWideRatioConvertor.enumToString=function(t){var e;switch(wijmo_1.asEnum(t,NarrowToWideRatio)){case NarrowToWideRatio.OneToTwo:e="2";break;case NarrowToWideRatio.OneToThree:e="3"}return e};return _NarrowWideRatioConvertor}();exports._NarrowWideRatioConvertor=_NarrowWideRatioConvertor;var BarcodeBase=function(t){__extends(BarcodeBase,t);function BarcodeBase(e,o){var r=t.call(this,e,null,!0)||this;r._state={};r._isUpd=0;r._isValid=!0;r._aw=!1;r._wZoom=1;r.isValidChanged=new wijmo_1.Event;var i=r.getTemplate();r.applyTemplate("wj-barcode wj-control",i,{});wijmo_1.isIE()||(r.hostElement.style.lineHeight="0px");r._state=r._getDefaults();r._isUpd++;r.initialize(o);r._updateSize();r._isUpd--;r._mergeOptions({});r.invalidate();return r}BarcodeBase.prototype.initialize=function(e){this._isUpd++;try{t.prototype.initialize.call(this,e)}finally{this._isUpd--}!this._isUpd&&e&&Object.keys(e).length&&this._mergeOptions({})};BarcodeBase._getClassDefaults=function(){var t=this.type;return _getDefaultConfig(exports.encoders[t],t)};BarcodeBase.prototype._getDefaults=function(){var t=this.constructor;t._defaults||(t._defaults=t._getClassDefaults());return exports.Utils.deepMergeAll(t._defaults)};Object.defineProperty(BarcodeBase.prototype,"value",{get:function(){return this._getProp("text")},set:function(t){this._setProp("text",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"quietZone",{get:function(){return this._getProp("quietZone")},set:function(t){this._setProp("quietZone",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"renderType",{get:function(){return _RenderTypeConvertor.stringToEnum(this._getProp("renderType"))},set:function(t){this._setProp("renderType",_RenderTypeConvertor.enumToString(t))},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"color",{get:function(){return this._getProp("color")},set:function(t){this._setProp("color",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"backgroundColor",{get:function(){return this._getProp("backgroundColor")},set:function(t){this._setProp("backgroundColor",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"hideExtraChecksum",{get:function(){return this._getProp("hideExtraChecksum")},set:function(t){this._setProp("hideExtraChecksum",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"font",{get:function(){return this._getProp("font")},set:function(t){this._setProp("font",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"isValid",{get:function(){return this._isValid},enumerable:!0,configurable:!0});BarcodeBase.prototype.onIsValidChanged=function(t){this.isValidChanged.raise(this,t)};BarcodeBase.prototype.refresh=function(e){void 0===e&&(e=!0);t.prototype.refresh.call(this,e);e?this._updateSize():this._bc.refresh()};BarcodeBase.prototype.getImageData=function(){return this._bc.getImageData()};BarcodeBase.prototype.getDataUrl=function(){return this._bc.getDataUrl()};BarcodeBase.prototype.getSize=function(){var t=new wijmo_1.Size,e=this._bc.getSize();if(e){t.width=e.width;t.height=e.height}return t};BarcodeBase.prototype._mergeOptions=function(t){var e,o=this._bc,r=_copyObj(this._state,t);if(!this._isUpd){var i=r.text;if(null==i||""===i){if(o){o.destroy();this._bc=o=null}}else try{o?o.setOption(r):this._bc=o=new Barcode(this.hostElement,r)}catch(t){e=t}}var n=!0;if(e){if(o){o.destroy();this._bc=o=null}if(e.code!==_errorCode.InvalidText)throw e;n=!1}this._state=r;this._setValid(n)};BarcodeBase.prototype._setValid=function(t){if(this._isValid!==t){this._isValid=t;wijmo_1.toggleClass(this.hostElement,"wj-state-invalid",!t);this.onIsValidChanged()}};BarcodeBase.prototype._setProp=function(t,e){var o;this._mergeOptions(((o={})[t]=e,o))};BarcodeBase.prototype._getProp=function(t){var e=this._bc;return this._state[t]||e&&e.getOption()[t]};BarcodeBase.prototype._updateSize=function(){if(this.hostElement){var t=BarcodeBase._getContentSize(this.hostElement),e=this._prevSz,o=null,r=null,i=1,n=!0;if(this._getAw()){i=this._getWzoom();n=(r=t.height/i)===this._prevH;this._prevH=r;e=this._prevSz=null}else if(!e||!t.equals(e)){o={width:t.width+"px",height:t.height+"px",forceRounding:!1};n=!1;this._prevSz=t;this._prevH=null}n||this._mergeOptions({desiredSize:o,height:r,unitSize:i})}};BarcodeBase._getContentSize=function(t){var e=getComputedStyle(t);return new wijmo_1.Size(t.offsetWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderTopWidth)-parseFloat(e.borderBottomWidth))};BarcodeBase.prototype._getAw=function(){return this._aw};BarcodeBase.prototype._setAw=function(t){if(this._aw!==t){this._aw=t;this._updateSize()}};BarcodeBase.prototype._getWzoom=function(){return this._wZoom};BarcodeBase.prototype._setWzoom=function(t){wijmo_1.asNumber(t);wijmo_1.assert(t>=1,"autoWidthZoom value should be equal or greater than 1");if(this._wZoom!==t){this._wZoom=t;this._getAw()&&this._updateSize()}};BarcodeBase.controlTemplate="";return BarcodeBase}(wijmo_1.Control);exports.BarcodeBase=BarcodeBase;var _copyObj="function"==typeof Object.assign?Object.assign:function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];for(var r=0,i=e;r<i.length;r++){var n=i[r];if(null!=n)for(var a in n)t[a]=n[a]}return t};wijmo_1._registerModule("wijmo.barcode",selfModule);
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@mescius/wijmo.barcode",
3
+ "version": "5.20232.939",
4
+ "description": "UI library for pure JS, Angular, React, Vue and more...",
5
+ "author": "MESCIUS inc",
6
+ "license": "Commercial",
7
+ "main": "./index.js",
8
+ "types": "./index.d.ts",
9
+ "dependencies": {
10
+ "@mescius/wijmo": "5.20232.939"
11
+ },
12
+ "homepage": "https://developer.mescius.com/wijmo",
13
+ "bugs": {
14
+ "url": "https://developer.mescius.com/forums/wijmo"
15
+ },
16
+ "keywords": [
17
+ "control",
18
+ "component",
19
+ "ui",
20
+ "control library",
21
+ "component library",
22
+ "ui library",
23
+ "control-library",
24
+ "component-library",
25
+ "ui-library",
26
+ "grid",
27
+ "data grid",
28
+ "data-grid",
29
+ "datagrid",
30
+ "angular grid",
31
+ "react grid",
32
+ "vue grid",
33
+ "angular-grid",
34
+ "react-grid",
35
+ "vue-grid"
36
+ ],
37
+ "module": "./es5-esm.js",
38
+ "esm5": "./es5-esm.js",
39
+ "wj-esm5": "./es5-esm.js",
40
+ "es2015Cjs": "./es2015-commonjs.js",
41
+ "wj-es2015Cjs": "./es2015-commonjs.js",
42
+ "esm2015": "./es2015-esm.js",
43
+ "wj-esm2015": "./es2015-esm.js"
44
+ }