@progress/kendo-vue-barcodes 9.2.0-develop.5 → 9.2.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.
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-charts"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-charts","@progress/kendo-drawing"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueBarcodes={},e.Vue,e.KendoVueCommon,e.KendoCharts,e.KendoDrawing)}(this,function(e,r,t,s,n){"use strict";const o=1e3/60,i=(e,r)=>{if(!r.type)return[];switch(r.type){case"add":return[...e,r.payload];case"remove":return e.filter(e=>e!==r.payload);default:return e}},a=e=>null!==e&&"object"==typeof e,d=(e,r)=>{if(Object.keys(e).length!==Object.keys(r).length)return!0;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const s=e[t],n=r[t];if(a(s)&&a(n)?d(s,n):s!==n)return!0}return!1},c={name:"@progress/kendo-vue-barcodes",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1639640368,version:"9.2.0
|
|
15
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-charts"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-charts","@progress/kendo-drawing"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueBarcodes={},e.Vue,e.KendoVueCommon,e.KendoCharts,e.KendoDrawing)}(this,function(e,r,t,s,n){"use strict";const o=1e3/60,i=(e,r)=>{if(!r.type)return[];switch(r.type){case"add":return[...e,r.payload];case"remove":return e.filter(e=>e!==r.payload);default:return e}},a=e=>null!==e&&"object"==typeof e,d=(e,r)=>{if(Object.keys(e).length!==Object.keys(r).length)return!0;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const s=e[t],n=r[t];if(a(s)&&a(n)?d(s,n):s!==n)return!0}return!1},c={name:"@progress/kendo-vue-barcodes",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1639640368,version:"9.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},p=r.defineComponent({name:"KendoBaseBarcode",props:{renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},barcodeConstructor:[Object,Function],deriveOptionsFromParent:Function,getTarget:Function},created(){t.validatePackage(c),this.barcodeInstance=null,this._prevRenderAs=this.renderAs,this.observersStore=(e=>{let r,s,n=[];const i=i=>{r=e(r,i),t.canUseDOM&&(window.clearTimeout(s),s=window.setTimeout(()=>n.forEach(e=>e()),o))};return i({}),{getState:()=>r,dispatch:i,subscribe:e=>(n.push(e),()=>n=n.filter(r=>r!==e))}})(i)},mounted(){this.instantiateCoreBarcode(),"undefined"!=typeof window&&window.addEventListener("resize",this.onWindowResize)},watch:{renderAs:function(e,r){this._prevRenderAs=r}},updated(){const{renderAs:e}=this.$props;if(null!==this.barcodeInstance)if((e||"svg")!==(this._prevRenderAs||"svg"))this.barcodeInstance.destroy(),this.barcodeInstance=null,this.instantiateCoreBarcode();else{const e=this.getBarcodeOptions();((e,r)=>{if(!e||!r||(e=[].concat(e),r=[].concat(r),e.length!==r.length))return!0;for(let t=0;t<e.length;t++)if(d(e[t],r[t]))return!0;return!1})(this._prevOptions,e)&&this.refresh(),this._prevOptions=e}this._prevRenderAs=e},beforeUnmount(){null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),"undefined"!=typeof window&&window.removeEventListener("resize",this.onWindowResize)},render(){const e=t.getDefaultSlots(this);return r.createVNode("div",null,[e])},methods:{instantiateCoreBarcode(){const{barcodeConstructor:e}=this.$props,r=this.getBarcodeOptions();this.barcodeInstance=new e(this.$el,r,e=>{if("undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV)throw e;console.warn(e)}),this._prevOptions=r},refresh(){if(null!==this.barcodeInstance){const e=this.getBarcodeOptions();this.barcodeInstance.setOptions(e)}},getBarcodeOptions(){const{renderAs:e,deriveOptionsFromParent:r}=this.$props;let t={renderAs:e};return r&&(t=r(t)),t},onWindowResize(){null!==this.barcodeInstance&&this.barcodeInstance.redraw()}}}),u=r.defineComponent({name:"KendoBarcode",props:{renderAs:{type:String,default:"svg"},background:String,border:Object,checksum:Boolean,color:String,height:Number,padding:[Object,Number],text:Object,type:String,value:[String,Number],width:Number},methods:{getSurface(){var e;const r=this.$refs.baseBarcode;return r&&(null==(e=r.barcodeInstance)?void 0:e.surface)||null},getElement(){const e=this.$refs.baseBarcode;return e&&e.$el||null},exportImage(e={}){return n.exportImage(this.exportVisual(),e)},exportSVG(e={}){return n.exportSVG(this.exportVisual(),e)},exportVisual(e){const r=this.$refs.baseBarcode;return null!=r&&r.barcodeInstance?r.barcodeInstance.exportVisual(e):new n.Group},deriveOptionsFromParent(e){return Object.assign({},e,{background:this.$props.background,border:this.$props.border,checksum:this.$props.checksum,color:this.$props.color,height:this.$props.height,padding:this.$props.padding,text:this.$props.text,type:this.$props.type,value:this.$props.value,width:this.$props.width})}},computed:{barcodeInstance(){const e=this.$refs.baseBarcode;return e?e.barcodeInstance:null}},render(){return r.createVNode(p,{ref:"baseBarcode",renderAs:this.$props.renderAs,deriveOptionsFromParent:this.deriveOptionsFromParent,barcodeConstructor:s.Barcode,getTarget:()=>this,class:t.classNames("k-barcode",this.$attrs.class)},null)}}),l=r.defineComponent({name:"KendoQRCode",props:{renderAs:{type:String,default:"svg"},background:String,border:Object,color:String,encoding:String,errorCorrection:String,overlay:Object,padding:Number,size:[Number,String],value:[String,Number]},methods:{getSurface(){var e;const r=this.$refs.baseBarcode;return r&&(null==(e=r.barcodeInstance)?void 0:e.surface)||null},getElement(){const e=this.$refs.baseBarcode;return e&&e.$el||null},exportImage(e={}){return n.exportImage(this.exportVisual(),e)},exportSVG(e={}){return n.exportSVG(this.exportVisual(),e)},exportVisual(e){const r=this.$refs.baseBarcode;return null!=r&&r.barcodeInstance?r.barcodeInstance.exportVisual(e):new n.Group},deriveOptionsFromParent(e){return Object.assign({},e,{background:this.$props.background||"#fff",border:this.$props.border,color:this.$props.color||"#000",encoding:this.$props.encoding,errorCorrection:this.$props.errorCorrection||"L",overlay:this.$props.overlay||{},padding:this.$props.padding,renderAs:this.$props.renderAs,size:this.$props.size,value:this.$props.value})}},computed:{barcodeInstance(){const e=this.$refs.baseBarcode;return e?e.barcodeInstance:null}},render(){return r.createVNode(p,{ref:"baseBarcode",renderAs:this.$props.renderAs,deriveOptionsFromParent:this.deriveOptionsFromParent,barcodeConstructor:s.QRCode,getTarget:()=>this,class:t.classNames("k-qrcode",this.$attrs.class)},null)}});e.Barcode=u,e.QRCode=l});
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-barcodes",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-barcodes",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1786518860,version:"9.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "9.2.0
|
|
13
|
+
publishDate: 1786518860,
|
|
14
|
+
version: "9.2.0",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-barcodes",
|
|
3
|
-
"version": "9.2.0
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Vue Barcodes provide a set of Vue components to build beautiful and customizable barcodes. Kendo UI for Vue Barcodes package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@progress/kendo-drawing": "^1.21.2",
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-vue-common": "9.2.0
|
|
29
|
+
"@progress/kendo-vue-common": "9.2.0",
|
|
30
30
|
"vue": "^3.0.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"package": {
|
|
52
52
|
"productName": "Kendo UI for Vue",
|
|
53
53
|
"productCode": "KENDOUIVUE",
|
|
54
|
-
"publishDate":
|
|
54
|
+
"publishDate": 1786518860,
|
|
55
55
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
56
56
|
}
|
|
57
57
|
},
|