@progress/kendo-react-barcodes 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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.
Files changed (43) hide show
  1. package/dist/cdn/js/kendo-react-barcodes.js +1 -1
  2. package/dist/es/Barcode.d.ts +3 -3
  3. package/dist/es/Barcode.js +11 -6
  4. package/dist/es/BarcodeContext.d.ts +1 -1
  5. package/dist/es/BarcodeProps.js +1 -0
  6. package/dist/es/BaseBarcode.d.ts +2 -2
  7. package/dist/es/BaseBarcode.js +12 -4
  8. package/dist/es/BaseBarcodeProps.d.ts +4 -0
  9. package/dist/es/BaseBarcodeProps.js +1 -0
  10. package/dist/es/QRCode.d.ts +3 -3
  11. package/dist/es/QRCode.js +11 -6
  12. package/dist/es/QRCodeProps.js +1 -0
  13. package/dist/es/common/barcodes.js +1 -0
  14. package/dist/es/main.js +1 -0
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/store/reducer.js +10 -1
  17. package/dist/es/types/barcode-text.js +1 -0
  18. package/dist/es/types/barcode-type.js +1 -0
  19. package/dist/es/types/border.interface.js +1 -0
  20. package/dist/es/types/dash-type.interface.js +1 -0
  21. package/dist/es/types/margin.interface.js +1 -0
  22. package/dist/es/types/padding.interface.js +1 -0
  23. package/dist/es/types/qrcode-encoding.js +1 -0
  24. package/dist/es/types/qrcode-error-correction.js +1 -0
  25. package/dist/es/types/qrcode-overlay.js +1 -0
  26. package/dist/es/types/render-mode.js +1 -0
  27. package/dist/es/types.js +1 -0
  28. package/dist/npm/Barcode.d.ts +3 -3
  29. package/dist/npm/Barcode.js +15 -9
  30. package/dist/npm/BarcodeContext.d.ts +1 -1
  31. package/dist/npm/BarcodeContext.js +1 -0
  32. package/dist/npm/BaseBarcode.d.ts +2 -2
  33. package/dist/npm/BaseBarcode.js +16 -7
  34. package/dist/npm/BaseBarcodeProps.d.ts +4 -0
  35. package/dist/npm/QRCode.d.ts +3 -3
  36. package/dist/npm/QRCode.js +15 -9
  37. package/dist/npm/main.js +18 -2
  38. package/dist/npm/package-metadata.js +2 -1
  39. package/dist/npm/store/reducer.js +11 -1
  40. package/dist/npm/store/store.js +1 -0
  41. package/dist/npm/utils/common.js +3 -1
  42. package/dist/systemjs/kendo-react-barcodes.js +1 -1
  43. package/package.json +8 -8
@@ -10,15 +10,15 @@ export declare class Barcode extends React.Component<BarcodeProps, {}> {
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- readonly barcodeInstance: any;
13
+ get barcodeInstance(): any;
14
14
  /**
15
15
  * The Drawing `Surface` of the Barcode.
16
16
  */
17
- readonly surface: Surface | null;
17
+ get surface(): Surface | null;
18
18
  /**
19
19
  * The DOM element of the Barcode.
20
20
  */
21
- readonly element: HTMLDivElement | null;
21
+ get element(): HTMLDivElement | null;
22
22
  /**
23
23
  * @hidden
24
24
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -43,6 +47,7 @@ var Barcode = /** @class */ (function (_super) {
43
47
  __extends(Barcode, _super);
44
48
  function Barcode() {
45
49
  var _this = _super !== null && _super.apply(this, arguments) || this;
50
+ _this._baseBarcode = null;
46
51
  _this.getTarget = function () {
47
52
  return _this;
48
53
  };
@@ -72,7 +77,7 @@ var Barcode = /** @class */ (function (_super) {
72
77
  }
73
78
  return null;
74
79
  },
75
- enumerable: true,
80
+ enumerable: false,
76
81
  configurable: true
77
82
  });
78
83
  Object.defineProperty(Barcode.prototype, "surface", {
@@ -85,7 +90,7 @@ var Barcode = /** @class */ (function (_super) {
85
90
  }
86
91
  return null;
87
92
  },
88
- enumerable: true,
93
+ enumerable: false,
89
94
  configurable: true
90
95
  });
91
96
  Object.defineProperty(Barcode.prototype, "element", {
@@ -98,7 +103,7 @@ var Barcode = /** @class */ (function (_super) {
98
103
  }
99
104
  return null;
100
105
  },
101
- enumerable: true,
106
+ enumerable: false,
102
107
  configurable: true
103
108
  });
104
109
  /**
@@ -9,4 +9,4 @@ export interface BarcodeContextType {
9
9
  /**
10
10
  * @hidden
11
11
  */
12
- export declare const BarcodeContext: React.Context<BarcodeContextType>;
12
+ export declare const BarcodeContext: React.Context<BarcodeContextType | null>;
@@ -0,0 +1 @@
1
+ export {};
@@ -27,11 +27,11 @@ export declare class BaseBarcode extends React.Component<BaseBarcodePrivateProps
27
27
  /**
28
28
  * @hidden
29
29
  */
30
- surface: Surface;
30
+ surface: Surface | null;
31
31
  /**
32
32
  * @hidden
33
33
  */
34
- readonly element: HTMLDivElement;
34
+ get element(): HTMLDivElement;
35
35
  protected _element: HTMLDivElement | null;
36
36
  protected contextValue: BarcodeContextType;
37
37
  protected observersStore: any;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -16,8 +18,10 @@ var __rest = (this && this.__rest) || function (s, e) {
16
18
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
17
19
  t[p] = s[p];
18
20
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
19
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
20
- t[p[i]] = s[p[i]];
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
21
25
  return t;
22
26
  };
23
27
  import * as React from 'react';
@@ -39,6 +43,10 @@ var BaseBarcode = /** @class */ (function (_super) {
39
43
  * @hidden
40
44
  */
41
45
  _this.barcodeInstance = null;
46
+ /**
47
+ * @hidden
48
+ */
49
+ _this.surface = null;
42
50
  _this._element = null;
43
51
  _this.observersStore = {};
44
52
  /* DOM event handlers */
@@ -65,7 +73,7 @@ var BaseBarcode = /** @class */ (function (_super) {
65
73
  get: function () {
66
74
  return this._element;
67
75
  },
68
- enumerable: true,
76
+ enumerable: false,
69
77
  configurable: true
70
78
  });
71
79
  /**
@@ -22,6 +22,10 @@ export interface BaseBarcodePrivateProps extends BaseBarcodeProps {
22
22
  * @hidden
23
23
  */
24
24
  export interface BaseBarcodeProps {
25
+ /**
26
+ * @hidden
27
+ */
28
+ children?: React.ReactNode;
25
29
  /**
26
30
  * The styles that are applied to the component.
27
31
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -10,15 +10,15 @@ export declare class QRCode extends React.Component<QRCodeProps, {}> {
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- readonly barcodeInstance: any;
13
+ get barcodeInstance(): any;
14
14
  /**
15
15
  * The Drawing `Surface` of the Barcode.
16
16
  */
17
- readonly surface: Surface | null;
17
+ get surface(): Surface | null;
18
18
  /**
19
19
  * The DOM element of the Barcode.
20
20
  */
21
- readonly element: HTMLDivElement | null;
21
+ get element(): HTMLDivElement | null;
22
22
  /**
23
23
  * @hidden
24
24
  */
package/dist/es/QRCode.js CHANGED
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -46,6 +50,7 @@ var QRCode = /** @class */ (function (_super) {
46
50
  __extends(QRCode, _super);
47
51
  function QRCode() {
48
52
  var _this = _super !== null && _super.apply(this, arguments) || this;
53
+ _this._baseBarcode = null;
49
54
  _this.getTarget = function () {
50
55
  return _this;
51
56
  };
@@ -75,7 +80,7 @@ var QRCode = /** @class */ (function (_super) {
75
80
  }
76
81
  return null;
77
82
  },
78
- enumerable: true,
83
+ enumerable: false,
79
84
  configurable: true
80
85
  });
81
86
  Object.defineProperty(QRCode.prototype, "surface", {
@@ -88,7 +93,7 @@ var QRCode = /** @class */ (function (_super) {
88
93
  }
89
94
  return null;
90
95
  },
91
- enumerable: true,
96
+ enumerable: false,
92
97
  configurable: true
93
98
  });
94
99
  Object.defineProperty(QRCode.prototype, "element", {
@@ -101,7 +106,7 @@ var QRCode = /** @class */ (function (_super) {
101
106
  }
102
107
  return null;
103
108
  },
104
- enumerable: true,
109
+ enumerable: false,
105
110
  configurable: true
106
111
  });
107
112
  /**
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.js CHANGED
@@ -1,3 +1,4 @@
1
1
  import { Barcode } from './Barcode';
2
2
  import { QRCode } from './QRCode';
3
+ export * from './types';
3
4
  export { Barcode, QRCode };
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-barcodes',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653030968,
8
+ publishDate: 1654509981,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -1,3 +1,12 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
1
10
  /**
2
11
  * @hidden
3
12
  */
@@ -16,7 +25,7 @@ var observersReducer = function (currentState, action) {
16
25
  if (action.type) {
17
26
  switch (action.type) {
18
27
  case 'add':
19
- return currentState.concat([action.payload]);
28
+ return __spreadArray(__spreadArray([], currentState, true), [action.payload], false);
20
29
  case 'remove':
21
30
  return currentState.filter(function (element) { return element !== action.payload; });
22
31
  default:
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/types.js CHANGED
@@ -0,0 +1 @@
1
+ export {};
@@ -10,15 +10,15 @@ export declare class Barcode extends React.Component<BarcodeProps, {}> {
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- readonly barcodeInstance: any;
13
+ get barcodeInstance(): any;
14
14
  /**
15
15
  * The Drawing `Surface` of the Barcode.
16
16
  */
17
- readonly surface: Surface | null;
17
+ get surface(): Surface | null;
18
18
  /**
19
19
  * The DOM element of the Barcode.
20
20
  */
21
- readonly element: HTMLDivElement | null;
21
+ get element(): HTMLDivElement | null;
22
22
  /**
23
23
  * @hidden
24
24
  */
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
28
30
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
29
31
  t[p] = s[p];
30
32
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
31
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
32
- t[p[i]] = s[p[i]];
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
33
37
  return t;
34
38
  };
35
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Barcode = void 0;
36
41
  var React = require("react");
37
42
  var BaseBarcode_1 = require("./BaseBarcode");
38
43
  var kendo_charts_1 = require("@progress/kendo-charts");
@@ -45,6 +50,7 @@ var Barcode = /** @class */ (function (_super) {
45
50
  __extends(Barcode, _super);
46
51
  function Barcode() {
47
52
  var _this = _super !== null && _super.apply(this, arguments) || this;
53
+ _this._baseBarcode = null;
48
54
  _this.getTarget = function () {
49
55
  return _this;
50
56
  };
@@ -74,7 +80,7 @@ var Barcode = /** @class */ (function (_super) {
74
80
  }
75
81
  return null;
76
82
  },
77
- enumerable: true,
83
+ enumerable: false,
78
84
  configurable: true
79
85
  });
80
86
  Object.defineProperty(Barcode.prototype, "surface", {
@@ -87,7 +93,7 @@ var Barcode = /** @class */ (function (_super) {
87
93
  }
88
94
  return null;
89
95
  },
90
- enumerable: true,
96
+ enumerable: false,
91
97
  configurable: true
92
98
  });
93
99
  Object.defineProperty(Barcode.prototype, "element", {
@@ -100,7 +106,7 @@ var Barcode = /** @class */ (function (_super) {
100
106
  }
101
107
  return null;
102
108
  },
103
- enumerable: true,
109
+ enumerable: false,
104
110
  configurable: true
105
111
  });
106
112
  /**
@@ -109,7 +115,7 @@ var Barcode = /** @class */ (function (_super) {
109
115
  Barcode.prototype.render = function () {
110
116
  var _this = this;
111
117
  var _a = this.props, children = _a.children, className = _a.className, baseBarcodeProps = __rest(_a, ["children", "className"]);
112
- return (React.createElement(BaseBarcode_1.BaseBarcode, __assign({}, baseBarcodeProps, { deriveOptionsFromParent: this.deriveOptionsFromParent, ref: function (baseBarcode) { return _this._baseBarcode = baseBarcode; }, barcodeConstructor: kendo_charts_1.Barcode, getTarget: this.getTarget, className: kendo_react_common_1.classNames('k-barcode', className) }), children));
118
+ return (React.createElement(BaseBarcode_1.BaseBarcode, __assign({}, baseBarcodeProps, { deriveOptionsFromParent: this.deriveOptionsFromParent, ref: function (baseBarcode) { return _this._baseBarcode = baseBarcode; }, barcodeConstructor: kendo_charts_1.Barcode, getTarget: this.getTarget, className: (0, kendo_react_common_1.classNames)('k-barcode', className) }), children));
113
119
  };
114
120
  /**
115
121
  * Exports the component as an image. The export operation is asynchronous and returns a promise.
@@ -119,7 +125,7 @@ var Barcode = /** @class */ (function (_super) {
119
125
  */
120
126
  Barcode.prototype.exportImage = function (options) {
121
127
  if (options === void 0) { options = {}; }
122
- return kendo_drawing_1.exportImage(this.exportVisual(), options);
128
+ return (0, kendo_drawing_1.exportImage)(this.exportVisual(), options);
123
129
  };
124
130
  /**
125
131
  * Exports the component as an SVG document. The export operation is asynchronous and returns a promise.
@@ -129,7 +135,7 @@ var Barcode = /** @class */ (function (_super) {
129
135
  */
130
136
  Barcode.prototype.exportSVG = function (options) {
131
137
  if (options === void 0) { options = {}; }
132
- return kendo_drawing_1.exportSVG(this.exportVisual(), options);
138
+ return (0, kendo_drawing_1.exportSVG)(this.exportVisual(), options);
133
139
  };
134
140
  /**
135
141
  * Exports a Barcode component as a Drawing `Scene`.
@@ -9,4 +9,4 @@ export interface BarcodeContextType {
9
9
  /**
10
10
  * @hidden
11
11
  */
12
- export declare const BarcodeContext: React.Context<BarcodeContextType>;
12
+ export declare const BarcodeContext: React.Context<BarcodeContextType | null>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BarcodeContext = void 0;
3
4
  var React = require("react");
4
5
  /**
5
6
  * @hidden
@@ -27,11 +27,11 @@ export declare class BaseBarcode extends React.Component<BaseBarcodePrivateProps
27
27
  /**
28
28
  * @hidden
29
29
  */
30
- surface: Surface;
30
+ surface: Surface | null;
31
31
  /**
32
32
  * @hidden
33
33
  */
34
- readonly element: HTMLDivElement;
34
+ get element(): HTMLDivElement;
35
35
  protected _element: HTMLDivElement | null;
36
36
  protected contextValue: BarcodeContextType;
37
37
  protected observersStore: any;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -17,11 +19,14 @@ var __rest = (this && this.__rest) || function (s, e) {
17
19
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
18
20
  t[p] = s[p];
19
21
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
20
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
21
- t[p[i]] = s[p[i]];
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
22
26
  return t;
23
27
  };
24
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BaseBarcode = void 0;
25
30
  var React = require("react");
26
31
  var PropTypes = require("prop-types");
27
32
  var store_1 = require("./store/store");
@@ -41,6 +46,10 @@ var BaseBarcode = /** @class */ (function (_super) {
41
46
  * @hidden
42
47
  */
43
48
  _this.barcodeInstance = null;
49
+ /**
50
+ * @hidden
51
+ */
52
+ _this.surface = null;
44
53
  _this._element = null;
45
54
  _this.observersStore = {};
46
55
  /* DOM event handlers */
@@ -53,8 +62,8 @@ var BaseBarcode = /** @class */ (function (_super) {
53
62
  _this.trigger('render', { sender: _this });
54
63
  }
55
64
  };
56
- kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
57
- _this.observersStore = store_1.default(reducer_1.observersReducer);
65
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
66
+ _this.observersStore = (0, store_1.default)(reducer_1.observersReducer);
58
67
  _this.contextValue = {
59
68
  observersStore: _this.observersStore
60
69
  };
@@ -67,7 +76,7 @@ var BaseBarcode = /** @class */ (function (_super) {
67
76
  get: function () {
68
77
  return this._element;
69
78
  },
70
- enumerable: true,
79
+ enumerable: false,
71
80
  configurable: true
72
81
  });
73
82
  /**
@@ -85,7 +94,7 @@ var BaseBarcode = /** @class */ (function (_super) {
85
94
  var _a = this.props, children = _a.children, deriveOptionsFromParent = _a.deriveOptionsFromParent, getTarget = _a.getTarget, barcodeConstructor = _a.barcodeConstructor, className = _a.className, renderAs = _a.renderAs, currentOthers = __rest(_a, ["children", "deriveOptionsFromParent", "getTarget", "barcodeConstructor", "className", "renderAs"]);
86
95
  var prevChildren = prevProps.children, prevDeriveOptionsFromParent = prevProps.deriveOptionsFromParent, prevGetTarget = prevProps.getTarget, prevBarcodeConstructor = prevProps.barcodeConstructor, prevClassName = prevProps.className, prevRenderAs = prevProps.renderAs, prevOthers = __rest(prevProps, ["children", "deriveOptionsFromParent", "getTarget", "barcodeConstructor", "className", "renderAs"]);
87
96
  if (this.barcodeInstance !== null) {
88
- var optionsChanged = common_1.isOptionsChanged(prevOthers, currentOthers);
97
+ var optionsChanged = (0, common_1.isOptionsChanged)(prevOthers, currentOthers);
89
98
  if ((renderAs || 'svg') !== (prevRenderAs || 'svg')) {
90
99
  if (this.barcodeInstance !== null) {
91
100
  this.barcodeInstance.destroy();
@@ -22,6 +22,10 @@ export interface BaseBarcodePrivateProps extends BaseBarcodeProps {
22
22
  * @hidden
23
23
  */
24
24
  export interface BaseBarcodeProps {
25
+ /**
26
+ * @hidden
27
+ */
28
+ children?: React.ReactNode;
25
29
  /**
26
30
  * The styles that are applied to the component.
27
31
  */
@@ -10,15 +10,15 @@ export declare class QRCode extends React.Component<QRCodeProps, {}> {
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- readonly barcodeInstance: any;
13
+ get barcodeInstance(): any;
14
14
  /**
15
15
  * The Drawing `Surface` of the Barcode.
16
16
  */
17
- readonly surface: Surface | null;
17
+ get surface(): Surface | null;
18
18
  /**
19
19
  * The DOM element of the Barcode.
20
20
  */
21
- readonly element: HTMLDivElement | null;
21
+ get element(): HTMLDivElement | null;
22
22
  /**
23
23
  * @hidden
24
24
  */