@progress/kendo-react-barcodes 6.1.1 → 7.0.0-develop.2
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/{dist/npm/Barcode.d.ts → Barcode.d.ts} +4 -0
- package/BarcodeContext.d.ts +16 -0
- package/{dist/es/BarcodeProps.d.ts → BarcodeProps.d.ts} +4 -0
- package/{dist/npm/BaseBarcode.d.ts → BaseBarcode.d.ts} +4 -0
- package/{dist/npm/BaseBarcodeProps.d.ts → BaseBarcodeProps.d.ts} +4 -1
- package/LICENSE.md +1 -1
- package/{dist/npm/QRCode.d.ts → QRCode.d.ts} +4 -0
- package/{dist/es/QRCodeProps.d.ts → QRCodeProps.d.ts} +4 -0
- package/common/barcodes.d.ts +8 -0
- package/dist/cdn/js/kendo-react-barcodes.js +5 -1
- package/index.d.ts +10 -0
- package/index.js +5 -0
- package/index.mjs +335 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +30 -45
- package/store/reducer.d.ts +14 -0
- package/{dist/es/store → store}/store.d.ts +4 -0
- package/{dist/es/types → types}/barcode-text.d.ts +4 -0
- package/types/barcode-type.d.ts +8 -0
- package/{dist/npm/types → types}/border.interface.d.ts +4 -0
- package/types/dash-type.interface.d.ts +8 -0
- package/types/margin.interface.d.ts +25 -0
- package/{dist/npm/types → types}/padding.interface.d.ts +4 -0
- package/types/qrcode-encoding.d.ts +8 -0
- package/types/qrcode-error-correction.d.ts +13 -0
- package/{dist/npm/types → types}/qrcode-overlay.d.ts +4 -0
- package/types/render-mode.d.ts +12 -0
- package/types.d.ts +14 -0
- package/utils/common.d.ts +8 -0
- package/about.md +0 -3
- package/dist/es/Barcode.d.ts +0 -49
- package/dist/es/Barcode.js +0 -151
- package/dist/es/BarcodeContext.d.ts +0 -12
- package/dist/es/BarcodeContext.js +0 -6
- package/dist/es/BarcodeProps.js +0 -1
- package/dist/es/BaseBarcode.d.ts +0 -75
- package/dist/es/BaseBarcode.js +0 -187
- package/dist/es/BaseBarcodeProps.d.ts +0 -45
- package/dist/es/BaseBarcodeProps.js +0 -1
- package/dist/es/QRCode.d.ts +0 -49
- package/dist/es/QRCode.js +0 -154
- package/dist/es/QRCodeProps.js +0 -1
- package/dist/es/common/barcodes.d.ts +0 -4
- package/dist/es/common/barcodes.js +0 -1
- package/dist/es/main.d.ts +0 -6
- package/dist/es/main.js +0 -4
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/store/reducer.d.ts +0 -10
- package/dist/es/store/reducer.js +0 -50
- package/dist/es/store/store.js +0 -28
- package/dist/es/types/barcode-text.js +0 -1
- package/dist/es/types/barcode-type.d.ts +0 -4
- package/dist/es/types/barcode-type.js +0 -1
- package/dist/es/types/border.interface.d.ts +0 -18
- package/dist/es/types/border.interface.js +0 -1
- package/dist/es/types/dash-type.interface.d.ts +0 -4
- package/dist/es/types/dash-type.interface.js +0 -1
- package/dist/es/types/margin.interface.d.ts +0 -21
- package/dist/es/types/margin.interface.js +0 -1
- package/dist/es/types/padding.interface.d.ts +0 -21
- package/dist/es/types/padding.interface.js +0 -1
- package/dist/es/types/qrcode-encoding.d.ts +0 -4
- package/dist/es/types/qrcode-encoding.js +0 -1
- package/dist/es/types/qrcode-error-correction.d.ts +0 -9
- package/dist/es/types/qrcode-error-correction.js +0 -1
- package/dist/es/types/qrcode-overlay.d.ts +0 -25
- package/dist/es/types/qrcode-overlay.js +0 -1
- package/dist/es/types/render-mode.d.ts +0 -8
- package/dist/es/types/render-mode.js +0 -1
- package/dist/es/types.d.ts +0 -10
- package/dist/es/types.js +0 -1
- package/dist/es/utils/common.d.ts +0 -4
- package/dist/es/utils/common.js +0 -39
- package/dist/npm/Barcode.js +0 -154
- package/dist/npm/BarcodeContext.d.ts +0 -12
- package/dist/npm/BarcodeContext.js +0 -9
- package/dist/npm/BarcodeProps.d.ts +0 -61
- package/dist/npm/BarcodeProps.js +0 -2
- package/dist/npm/BaseBarcode.js +0 -190
- package/dist/npm/BaseBarcodeProps.js +0 -2
- package/dist/npm/QRCode.js +0 -157
- package/dist/npm/QRCodeProps.d.ts +0 -73
- package/dist/npm/QRCodeProps.js +0 -2
- package/dist/npm/common/barcodes.d.ts +0 -4
- package/dist/npm/common/barcodes.js +0 -2
- package/dist/npm/main.d.ts +0 -6
- package/dist/npm/main.js +0 -22
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/store/reducer.d.ts +0 -10
- package/dist/npm/store/reducer.js +0 -54
- package/dist/npm/store/store.d.ts +0 -25
- package/dist/npm/store/store.js +0 -31
- package/dist/npm/types/barcode-text.d.ts +0 -32
- package/dist/npm/types/barcode-text.js +0 -2
- package/dist/npm/types/barcode-type.d.ts +0 -4
- package/dist/npm/types/barcode-type.js +0 -2
- package/dist/npm/types/border.interface.js +0 -2
- package/dist/npm/types/dash-type.interface.d.ts +0 -4
- package/dist/npm/types/dash-type.interface.js +0 -2
- package/dist/npm/types/margin.interface.d.ts +0 -21
- package/dist/npm/types/margin.interface.js +0 -2
- package/dist/npm/types/padding.interface.js +0 -2
- package/dist/npm/types/qrcode-encoding.d.ts +0 -4
- package/dist/npm/types/qrcode-encoding.js +0 -2
- package/dist/npm/types/qrcode-error-correction.d.ts +0 -9
- package/dist/npm/types/qrcode-error-correction.js +0 -2
- package/dist/npm/types/qrcode-overlay.js +0 -2
- package/dist/npm/types/render-mode.d.ts +0 -8
- package/dist/npm/types/render-mode.js +0 -2
- package/dist/npm/types.d.ts +0 -10
- package/dist/npm/types.js +0 -2
- package/dist/npm/utils/common.d.ts +0 -4
- package/dist/npm/utils/common.js +0 -43
- package/dist/systemjs/kendo-react-barcodes.js +0 -1
- package/e2e-next/barcode.basic.tests.ts +0 -24
- package/e2e-next/qrcode.basic.tests.ts +0 -24
package/dist/npm/store/store.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.THROTTLE_MS = void 0;
|
|
4
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
exports.THROTTLE_MS = 1000 / 60;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var createStore = function (reducer) {
|
|
13
|
-
var state;
|
|
14
|
-
var timerId;
|
|
15
|
-
var listeners = [];
|
|
16
|
-
var getState = function () { return state; };
|
|
17
|
-
var dispatch = function (action) {
|
|
18
|
-
state = reducer(state, action);
|
|
19
|
-
if (kendo_react_common_1.canUseDOM) {
|
|
20
|
-
window.clearTimeout(timerId);
|
|
21
|
-
timerId = window.setTimeout(function () { return listeners.forEach(function (l) { return l(); }); }, exports.THROTTLE_MS);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
var subscribe = function (listener) {
|
|
25
|
-
listeners.push(listener);
|
|
26
|
-
return function () { return listeners = listeners.filter(function (l) { return l !== listener; }); };
|
|
27
|
-
};
|
|
28
|
-
dispatch({});
|
|
29
|
-
return { getState: getState, dispatch: dispatch, subscribe: subscribe };
|
|
30
|
-
};
|
|
31
|
-
exports.default = createStore;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Margin } from './margin.interface';
|
|
2
|
-
/**
|
|
3
|
-
* The Barcode text label configuration.
|
|
4
|
-
*/
|
|
5
|
-
export interface BarcodeText {
|
|
6
|
-
/**
|
|
7
|
-
* The color of the text. Any valid CSS color string will work here, including hex and rgb.
|
|
8
|
-
*
|
|
9
|
-
* @default "black"
|
|
10
|
-
*/
|
|
11
|
-
color?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The font of the text.
|
|
14
|
-
*
|
|
15
|
-
* @default "16px Consolas, Monaco, Sans Mono, monospace, sans-serif"
|
|
16
|
-
*/
|
|
17
|
-
font?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The margin of the text. A numeric value sets all margins.
|
|
20
|
-
*
|
|
21
|
-
* @default 0
|
|
22
|
-
*/
|
|
23
|
-
margin?: Margin | number;
|
|
24
|
-
/**
|
|
25
|
-
* A flag indicating that the Barcode text label is visible.
|
|
26
|
-
*
|
|
27
|
-
* If set to `false`, the Barcode will not display the value as a text below the barcode lines.
|
|
28
|
-
*
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
visible?: boolean;
|
|
32
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported symbologies (encodings) for the Barcode component.
|
|
3
|
-
*/
|
|
4
|
-
export declare type BarcodeType = 'EAN8' | 'EAN13' | 'UPCE' | 'UPCA' | 'Code11' | 'Code39' | 'Code39Extended' | 'Code93' | 'Code93Extended' | 'Code128' | 'Code128A' | 'Code128B' | 'Code128C' | 'GS1-128' | 'MSImod10' | 'MSImod11' | 'MSImod1010' | 'MSImod1110' | 'POSTNET';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The margin size for each side.
|
|
3
|
-
*/
|
|
4
|
-
export interface Margin {
|
|
5
|
-
/**
|
|
6
|
-
* The top margin in pixels.
|
|
7
|
-
*/
|
|
8
|
-
top?: number;
|
|
9
|
-
/**
|
|
10
|
-
* The right margin in pixels.
|
|
11
|
-
*/
|
|
12
|
-
right?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The bottom margin in pixels.
|
|
15
|
-
*/
|
|
16
|
-
bottom?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The left margin in pixels.
|
|
19
|
-
*/
|
|
20
|
-
left?: number;
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The QR Code error correction levels.
|
|
3
|
-
*
|
|
4
|
-
* * `"L"`—Approximately 7% of the codewords can be restored.
|
|
5
|
-
* * `"M"`—Approximately 15% of the codewords can be restored.
|
|
6
|
-
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
|
7
|
-
* * `"H"`—Approximately 30% of the codewords can be restored.
|
|
8
|
-
*/
|
|
9
|
-
export declare type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sets the rendering mode of the component.
|
|
3
|
-
*
|
|
4
|
-
* The supported values are:
|
|
5
|
-
* * `"canvas"`—Renders the component as a Canvas element.
|
|
6
|
-
* * `"svg"`—Renders the component as an inline SVG document.
|
|
7
|
-
*/
|
|
8
|
-
export declare type RenderMode = 'svg' | 'canvas';
|
package/dist/npm/types.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { Margin } from './types/margin.interface';
|
|
2
|
-
export { Padding } from './types/padding.interface';
|
|
3
|
-
export { Border } from './types/border.interface';
|
|
4
|
-
export { DashType } from './types/dash-type.interface';
|
|
5
|
-
export { BarcodeText } from './types/barcode-text';
|
|
6
|
-
export { BarcodeType } from './types/barcode-type';
|
|
7
|
-
export { QRCodeEncoding } from './types/qrcode-encoding';
|
|
8
|
-
export { QRCodeErrorCorrection } from './types/qrcode-error-correction';
|
|
9
|
-
export { QRCodeOverlay } from './types/qrcode-overlay';
|
|
10
|
-
export { RenderMode } from './types/render-mode';
|
package/dist/npm/types.js
DELETED
package/dist/npm/utils/common.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isOptionsChanged = void 0;
|
|
4
|
-
var isObject = function (value) {
|
|
5
|
-
return typeof value === 'object';
|
|
6
|
-
};
|
|
7
|
-
var diffOptions = function (original, current) {
|
|
8
|
-
if (Object.keys(original).length !== Object.keys(current).length) {
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
for (var field in original) {
|
|
12
|
-
if (original.hasOwnProperty(field)) {
|
|
13
|
-
var originalValue = original[field];
|
|
14
|
-
var currentValue = current[field];
|
|
15
|
-
var diff = isObject(originalValue) && isObject(currentValue) ?
|
|
16
|
-
diffOptions(originalValue, currentValue) : originalValue !== currentValue;
|
|
17
|
-
if (diff) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return false;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
var isOptionsChanged = function (original, current) {
|
|
28
|
-
if (!original || !current) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
original = [].concat(original);
|
|
32
|
-
current = [].concat(current);
|
|
33
|
-
if (original.length !== current.length) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
for (var idx = 0; idx < original.length; idx++) {
|
|
37
|
-
if (diffOptions(original[idx], current[idx])) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
};
|
|
43
|
-
exports.isOptionsChanged = isOptionsChanged;
|
|
@@ -1 +0,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:1700063409,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];return void 0!==r||(r=n[t]={exports:{}},o[t].call(r.exports,r,r.exports,e)),r.exports}(468)})())}}});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Browser } from '@progress/kendo-e2e';
|
|
2
|
-
import { LOCATORS } from '../../../e2eUtils/const';
|
|
3
|
-
|
|
4
|
-
let browser: Browser;
|
|
5
|
-
|
|
6
|
-
beforeAll(() => {
|
|
7
|
-
browser = new Browser();
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await browser.navigateTo('http://localhost:3000/barcode/overview');
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
afterEach(async () => {
|
|
15
|
-
expect(await browser.getErrorLogs()).toEqual([]);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
afterAll(async () => {
|
|
19
|
-
await browser.close();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should not have errors', async () => {
|
|
23
|
-
expect(await browser.isVisible(LOCATORS.BARCODE)).toBe(true);
|
|
24
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Browser } from '@progress/kendo-e2e';
|
|
2
|
-
import { LOCATORS } from '../../../e2eUtils/const';
|
|
3
|
-
|
|
4
|
-
let browser: Browser;
|
|
5
|
-
|
|
6
|
-
beforeAll(() => {
|
|
7
|
-
browser = new Browser();
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await browser.navigateTo('http://localhost:3000/qrcode/overview');
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
afterEach(async () => {
|
|
15
|
-
expect(await browser.getErrorLogs()).toEqual([]);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
afterAll(async () => {
|
|
19
|
-
await browser.close();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should not have errors', async () => {
|
|
23
|
-
expect(await browser.isVisible(LOCATORS.QRCODE)).toBe(true);
|
|
24
|
-
});
|