@progress/kendo-react-barcodes 14.4.1-develop.13 → 14.4.1-develop.15
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/Barcode.d.ts +1 -1
- package/BarcodeProps.d.ts +2 -2
- package/BaseBarcode.d.ts +1 -1
- package/BaseBarcodeProps.d.ts +2 -2
- package/QRCode.d.ts +1 -1
- package/QRCodeProps.d.ts +2 -2
- package/dist/cdn/js/kendo-react-barcodes.js +1 -1
- package/index.d.mts +3 -3
- package/index.d.ts +3 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +4 -4
- package/types/barcode-text.d.ts +1 -1
- package/types/border.interface.d.ts +1 -1
- package/types.d.ts +10 -10
package/Barcode.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { BarcodeProps } from './BarcodeProps
|
|
8
|
+
import { BarcodeProps } from './BarcodeProps';
|
|
9
9
|
import { Surface, Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
/**
|
package/BarcodeProps.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { BaseBarcodeProps } from './BaseBarcodeProps
|
|
9
|
-
import { BarcodeText, BarcodeType, Border, Padding } from './types
|
|
8
|
+
import { BaseBarcodeProps } from './BaseBarcodeProps';
|
|
9
|
+
import { BarcodeText, BarcodeType, Border, Padding } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the props of the [KendoReact Barcode component](https://www.telerik.com/kendo-react-ui/components/barcodes/barcode).
|
|
12
12
|
*/
|
package/BaseBarcode.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { default as PropTypes } from 'prop-types';
|
|
9
9
|
import { Surface } from '@progress/kendo-drawing';
|
|
10
|
-
import { BaseBarcodePrivateProps } from './BaseBarcodeProps
|
|
10
|
+
import { BaseBarcodePrivateProps } from './BaseBarcodeProps';
|
|
11
11
|
import { BarcodeContextType } from './BarcodeContext.js';
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
/**
|
package/BaseBarcodeProps.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { Barcodes } from './common/barcodes
|
|
9
|
-
import { RenderMode } from './types
|
|
8
|
+
import { Barcodes } from './common/barcodes';
|
|
9
|
+
import { RenderMode } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
package/QRCode.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { QRCodeProps } from './QRCodeProps
|
|
8
|
+
import { QRCodeProps } from './QRCodeProps';
|
|
9
9
|
import { Surface, Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
/**
|
package/QRCodeProps.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { BaseBarcodeProps } from './BaseBarcodeProps
|
|
9
|
-
import { Border, QRCodeEncoding, QRCodeErrorCorrection, QRCodeOverlay } from './types
|
|
8
|
+
import { BaseBarcodeProps } from './BaseBarcodeProps';
|
|
9
|
+
import { Border, QRCodeEncoding, QRCodeErrorCorrection, QRCodeOverlay } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the props of the [KendoReact QRCode component](https://www.telerik.com/kendo-react-ui/components/barcodes/qrcode).
|
|
12
12
|
*/
|
|
@@ -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,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-charts"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-charts","@progress/kendo-drawing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactBarcodes={},e.React,e.PropTypes,e.KendoReactCommon,e.KendoCharts,e.KendoDrawing)}(this,function(e,t,r,s,n,o){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var i=a(t);const c=1e3/60,d=(e,t)=>{if(!t.type)return[];switch(t.type){case"add":return[...e,t.payload];case"remove":return e.filter(e=>e!==t.payload);default:return e}},l=e=>"object"==typeof e,p=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r],n=t[r];if(l(s)&&l(n)?p(s,n):s!==n)return!0}return!1},h=(e,t)=>{if(!e||!t||(e=[].concat(e),t=[].concat(t),e.length!==t.length))return!0;for(let r=0;r<e.length;r++)if(p(e[r],t[r]))return!0;return!1},u=i.createContext(null);u.displayName="BarcodeContext";const g=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"14.4.1-develop.
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-charts"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-charts","@progress/kendo-drawing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactBarcodes={},e.React,e.PropTypes,e.KendoReactCommon,e.KendoCharts,e.KendoDrawing)}(this,function(e,t,r,s,n,o){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var i=a(t);const c=1e3/60,d=(e,t)=>{if(!t.type)return[];switch(t.type){case"add":return[...e,t.payload];case"remove":return e.filter(e=>e!==t.payload);default:return e}},l=e=>"object"==typeof e,p=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r],n=t[r];if(l(s)&&l(n)?p(s,n):s!==n)return!0}return!1},h=(e,t)=>{if(!e||!t||(e=[].concat(e),t=[].concat(t),e.length!==t.length))return!0;for(let r=0;r<e.length;r++)if(p(e[r],t[r]))return!0;return!1},u=i.createContext(null);u.displayName="BarcodeContext";const g=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"14.4.1-develop.15",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),b=class extends i.Component{constructor(e){super(e),this.barcodeInstance=null,this.surface=null,this._element=null,this.observersStore={},this.showLicenseWatermark=!1,this.onWindowResize=()=>{null!==this.barcodeInstance&&(this.barcodeInstance.redraw(),this.trigger("render",{sender:this}))},this.showLicenseWatermark=!s.validatePackage(g,{component:"Barcode"}),this.licenseMessage=s.getLicenseMessage(g),this.observersStore=(e=>{let t,r,n=[];const o=o=>{t=e(t,o),s.canUseDOM&&(window.clearTimeout(r),r=window.setTimeout(()=>n.forEach(e=>e()),c))};return o({}),{getState:()=>t,dispatch:o,subscribe:e=>(n.push(e),()=>n=n.filter(t=>t!==e))}})(d),this.contextValue={observersStore:this.observersStore}}get element(){return this._element}componentDidMount(){this.instantiateCoreBarcode(),window.addEventListener("resize",this.onWindowResize),this.trigger("render",{sender:this})}componentDidUpdate(e){const{children:t,deriveOptionsFromParent:r,getTarget:s,barcodeConstructor:n,className:o,renderAs:a,...i}=this.props,{children:c,deriveOptionsFromParent:d,getTarget:l,barcodeConstructor:p,className:u,renderAs:g,...b}=e;if(null!==this.barcodeInstance){const e=h(b,i);(a||"svg")!==(g||"svg")?(null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),this.instantiateCoreBarcode()):e&&this.refresh(),this.trigger("render",{sender:this})}}componentWillUnmount(){null!==this.barcodeInstance&&(this.barcodeInstance.destroy(),this.barcodeInstance=null),window.removeEventListener("resize",this.onWindowResize)}render(){const{style:e={},className:t,children:r}=this.props;return i.createElement(u.Provider,{value:this.contextValue},i.createElement("div",{style:e,ref:e=>{this._element=e},className:t},r,this.showLicenseWatermark&&i.createElement(s.WatermarkOverlay,{message:this.licenseMessage})))}instantiateCoreBarcode(){const{barcodeConstructor:e}=this.props,t=this.getBarcodeOptions();this.barcodeInstance=new e(this.element,t,e=>{if("production"!==process.env.NODE_ENV)throw e;console.warn(e)})}refresh(){if(null!==this.barcodeInstance){const e=this.getBarcodeOptions();this.barcodeInstance.setOptions(e)}}getBarcodeOptions(){const{renderAs:e,deriveOptionsFromParent:t}=this.props;let r={renderAs:e};return t&&(r=t(r)),r}trigger(e,t){const r=this.observersStore.getState();for(let s=0;s<r.length;s++)r[s].trigger(e,t)}};b.propTypes={dir:r.string,renderAs:r.oneOf(["svg","canvas"])},b.defaultProps={renderAs:"svg"};let m=b;class f extends i.Component{constructor(){super(...arguments),this._baseBarcode=null,this.getTarget=()=>this,this.deriveOptionsFromParent=e=>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})}get barcodeInstance(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null}get surface(){return null!==this._baseBarcode?this._baseBarcode.surface:null}get element(){return null!==this._baseBarcode?this._baseBarcode.element:null}render(){const{children:e,className:t,...r}=this.props;return i.createElement(m,{...r,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this._baseBarcode=e},barcodeConstructor:n.Barcode,getTarget:this.getTarget,className:s.classNames("k-barcode",t)},e)}exportImage(e={}){return o.exportImage(this.exportVisual(),e)}exportSVG(e={}){return o.exportSVG(this.exportVisual(),e)}exportVisual(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new o.Group}}class v extends i.Component{constructor(){super(...arguments),this._baseBarcode=null,this.getTarget=()=>this,this.deriveOptionsFromParent=e=>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})}get barcodeInstance(){return null!==this._baseBarcode?this._baseBarcode.barcodeInstance:null}get surface(){return null!==this._baseBarcode?this._baseBarcode.surface:null}get element(){return null!==this._baseBarcode?this._baseBarcode.element:null}render(){const{children:e,className:t,...r}=this.props;return i.createElement(m,{...r,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this._baseBarcode=e},barcodeConstructor:n.QRCode,getTarget:this.getTarget,className:s.classNames("k-qrcode",t)},e)}exportImage(e={}){return o.exportImage(this.exportVisual(),e)}exportSVG(e={}){return o.exportSVG(this.exportVisual(),e)}exportVisual(e){return null!==this.barcodeInstance?this.barcodeInstance.exportVisual(e):new o.Group}}e.Barcode=f,e.QRCode=v});
|
package/index.d.mts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { Barcode } from './Barcode.js';
|
|
9
|
-
import { BarcodeProps } from './BarcodeProps
|
|
9
|
+
import { BarcodeProps } from './BarcodeProps';
|
|
10
10
|
import { QRCode } from './QRCode.js';
|
|
11
|
-
import { QRCodeProps } from './QRCodeProps
|
|
12
|
-
export * from './types
|
|
11
|
+
import { QRCodeProps } from './QRCodeProps';
|
|
12
|
+
export * from './types';
|
|
13
13
|
export { Barcode, BarcodeProps, QRCode, QRCodeProps };
|
package/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { Barcode } from './Barcode.js';
|
|
9
|
-
import { BarcodeProps } from './BarcodeProps
|
|
9
|
+
import { BarcodeProps } from './BarcodeProps';
|
|
10
10
|
import { QRCode } from './QRCode.js';
|
|
11
|
-
import { QRCodeProps } from './QRCodeProps
|
|
12
|
-
export * from './types
|
|
11
|
+
import { QRCodeProps } from './QRCodeProps';
|
|
12
|
+
export * from './types';
|
|
13
13
|
export { Barcode, BarcodeProps, QRCode, QRCodeProps };
|
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=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1777447494,version:"14.4.1-develop.15",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '14.4.1-develop.
|
|
10
|
+
publishDate: 1777447494,
|
|
11
|
+
version: '14.4.1-develop.15',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-barcodes",
|
|
3
|
-
"version": "14.4.1-develop.
|
|
3
|
+
"version": "14.4.1-develop.15",
|
|
4
4
|
"description": "React Barcodes provide a set of React components to build beautiful and customizable barcodes. KendoReact Barcodes package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@progress/kendo-charts": "2.9.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.2",
|
|
31
|
-
"@progress/kendo-react-common": "14.4.1-develop.
|
|
32
|
-
"@progress/kendo-react-intl": "14.4.1-develop.
|
|
31
|
+
"@progress/kendo-react-common": "14.4.1-develop.15",
|
|
32
|
+
"@progress/kendo-react-intl": "14.4.1-develop.15",
|
|
33
33
|
"react": "^18.0.0 || ^19.0.0",
|
|
34
34
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
35
35
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"package": {
|
|
57
57
|
"productName": "KendoReact",
|
|
58
58
|
"productCode": "KENDOUIREACT",
|
|
59
|
-
"publishDate":
|
|
59
|
+
"publishDate": 1777447494,
|
|
60
60
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
61
61
|
}
|
|
62
62
|
},
|
package/types/barcode-text.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { Margin } from './margin.interface
|
|
8
|
+
import { Margin } from './margin.interface';
|
|
9
9
|
/**
|
|
10
10
|
* The Barcode text label configuration.
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DashType } from './dash-type.interface
|
|
8
|
+
import { DashType } from './dash-type.interface';
|
|
9
9
|
/**
|
|
10
10
|
* The appearance settings for the border lines.
|
|
11
11
|
*/
|
package/types.d.ts
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
export type { Margin } from './types/margin.interface
|
|
9
|
-
export type { Padding } from './types/padding.interface
|
|
10
|
-
export type { Border } from './types/border.interface
|
|
11
|
-
export type { DashType } from './types/dash-type.interface
|
|
12
|
-
export type { BarcodeText } from './types/barcode-text
|
|
13
|
-
export type { BarcodeType } from './types/barcode-type
|
|
14
|
-
export type { QRCodeEncoding } from './types/qrcode-encoding
|
|
15
|
-
export type { QRCodeErrorCorrection } from './types/qrcode-error-correction
|
|
16
|
-
export type { QRCodeOverlay } from './types/qrcode-overlay
|
|
17
|
-
export type { RenderMode } from './types/render-mode
|
|
8
|
+
export type { Margin } from './types/margin.interface';
|
|
9
|
+
export type { Padding } from './types/padding.interface';
|
|
10
|
+
export type { Border } from './types/border.interface';
|
|
11
|
+
export type { DashType } from './types/dash-type.interface';
|
|
12
|
+
export type { BarcodeText } from './types/barcode-text';
|
|
13
|
+
export type { BarcodeType } from './types/barcode-type';
|
|
14
|
+
export type { QRCodeEncoding } from './types/qrcode-encoding';
|
|
15
|
+
export type { QRCodeErrorCorrection } from './types/qrcode-error-correction';
|
|
16
|
+
export type { QRCodeOverlay } from './types/qrcode-overlay';
|
|
17
|
+
export type { RenderMode } from './types/render-mode';
|