@progress/kendo-react-barcodes 7.2.4-develop.3 → 7.2.4-develop.4

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 (45) hide show
  1. package/Barcode.js +8 -0
  2. package/Barcode.mjs +95 -0
  3. package/BarcodeContext.js +8 -0
  4. package/BarcodeContext.mjs +14 -0
  5. package/BaseBarcode.js +8 -0
  6. package/BaseBarcode.mjs +137 -0
  7. package/QRCode.js +8 -0
  8. package/QRCode.mjs +96 -0
  9. package/dist/cdn/js/kendo-react-barcodes.js +8 -5
  10. package/index.d.mts +418 -5
  11. package/index.d.ts +418 -10
  12. package/index.js +8 -5
  13. package/index.mjs +11 -333
  14. package/package-metadata.js +8 -0
  15. package/package-metadata.mjs +19 -0
  16. package/package.json +3 -3
  17. package/store/reducer.js +8 -0
  18. package/store/reducer.mjs +24 -0
  19. package/store/store.js +8 -0
  20. package/store/store.mjs +20 -0
  21. package/utils/common.js +8 -0
  22. package/utils/common.mjs +29 -0
  23. package/Barcode.d.ts +0 -53
  24. package/BarcodeContext.d.ts +0 -16
  25. package/BarcodeProps.d.ts +0 -65
  26. package/BaseBarcode.d.ts +0 -79
  27. package/BaseBarcodeProps.d.ts +0 -48
  28. package/QRCode.d.ts +0 -53
  29. package/QRCodeProps.d.ts +0 -77
  30. package/common/barcodes.d.ts +0 -8
  31. package/package-metadata.d.ts +0 -9
  32. package/store/reducer.d.ts +0 -14
  33. package/store/store.d.ts +0 -29
  34. package/types/barcode-text.d.ts +0 -36
  35. package/types/barcode-type.d.ts +0 -8
  36. package/types/border.interface.d.ts +0 -22
  37. package/types/dash-type.interface.d.ts +0 -8
  38. package/types/margin.interface.d.ts +0 -25
  39. package/types/padding.interface.d.ts +0 -25
  40. package/types/qrcode-encoding.d.ts +0 -8
  41. package/types/qrcode-error-correction.d.ts +0 -13
  42. package/types/qrcode-overlay.d.ts +0 -29
  43. package/types/render-mode.d.ts +0 -12
  44. package/types.d.ts +0 -14
  45. package/utils/common.d.ts +0 -8
package/index.mjs CHANGED
@@ -1,336 +1,14 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
5
8
  "use client";
6
- import * as n from "react";
7
- import l from "prop-types";
8
- import { canUseDOM as I, validatePackage as x, classNames as u } from "@progress/kendo-react-common";
9
- import { Barcode as _, QRCode as w } from "@progress/kendo-charts";
10
- import { exportImage as b, exportSVG as g, Group as m } from "@progress/kendo-drawing";
11
- const T = 1e3 / 60, E = (s) => {
12
- let e, t, r = [];
13
- const o = () => e, c = (a) => {
14
- e = s(e, a), I && (window.clearTimeout(t), t = window.setTimeout(() => r.forEach((i) => i()), T));
15
- }, p = (a) => (r.push(a), () => r = r.filter((i) => i !== a));
16
- return c({}), { getState: o, dispatch: c, subscribe: p };
17
- }, y = E, R = (s, e) => {
18
- if (e.type)
19
- switch (e.type) {
20
- case "add":
21
- return [...s, e.payload];
22
- case "remove":
23
- return s.filter((t) => t !== e.payload);
24
- default:
25
- return s;
26
- }
27
- else
28
- return [];
29
- }, h = (s) => typeof s == "object", f = (s, e) => {
30
- if (Object.keys(s).length !== Object.keys(e).length)
31
- return !0;
32
- for (let t in s)
33
- if (s.hasOwnProperty(t)) {
34
- const r = s[t], o = e[t];
35
- if (h(r) && h(o) ? f(r, o) : r !== o)
36
- return !0;
37
- }
38
- return !1;
39
- }, P = (s, e) => {
40
- if (!s || !e || (s = [].concat(s), e = [].concat(e), s.length !== e.length))
41
- return !0;
42
- for (let t = 0; t < s.length; t++)
43
- if (f(s[t], e[t]))
44
- return !0;
45
- return !1;
46
- }, v = n.createContext(null);
47
- v.displayName = "BarcodeContext";
48
- const N = {
49
- name: "@progress/kendo-react-barcodes",
50
- productName: "KendoReact",
51
- productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
52
- publishDate: 1709632284,
53
- version: "",
54
- licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
55
- };
56
- class d extends n.Component {
57
- constructor(e) {
58
- super(e), this.barcodeInstance = null, this.surface = null, this._element = null, this.observersStore = {}, this.onWindowResize = () => {
59
- this.barcodeInstance !== null && (this.barcodeInstance.redraw(), this.trigger("render", { sender: this }));
60
- }, x(N), this.observersStore = y(R), this.contextValue = {
61
- observersStore: this.observersStore
62
- };
63
- }
64
- /**
65
- * @hidden
66
- */
67
- get element() {
68
- return this._element;
69
- }
70
- /**
71
- * @hidden
72
- */
73
- componentDidMount() {
74
- this.instantiateCoreBarcode(), window.addEventListener("resize", this.onWindowResize), this.trigger("render", { sender: this });
75
- }
76
- /**
77
- * @hidden
78
- */
79
- componentDidUpdate(e) {
80
- const {
81
- children: t,
82
- deriveOptionsFromParent: r,
83
- getTarget: o,
84
- barcodeConstructor: c,
85
- className: p,
86
- renderAs: a,
87
- ...i
88
- } = this.props, {
89
- children: D,
90
- deriveOptionsFromParent: F,
91
- getTarget: S,
92
- barcodeConstructor: U,
93
- className: L,
94
- renderAs: O,
95
- ...B
96
- } = e;
97
- if (this.barcodeInstance !== null) {
98
- const C = P(B, i);
99
- (a || "svg") !== (O || "svg") ? (this.barcodeInstance !== null && (this.barcodeInstance.destroy(), this.barcodeInstance = null), this.instantiateCoreBarcode()) : C && this.refresh(), this.trigger("render", { sender: this });
100
- }
101
- }
102
- /**
103
- * @hidden
104
- */
105
- componentWillUnmount() {
106
- this.barcodeInstance !== null && (this.barcodeInstance.destroy(), this.barcodeInstance = null), window.removeEventListener("resize", this.onWindowResize);
107
- }
108
- /**
109
- * @hidden
110
- */
111
- render() {
112
- const { style: e = {}, className: t, children: r } = this.props;
113
- return /* @__PURE__ */ n.createElement(v.Provider, { value: this.contextValue }, /* @__PURE__ */ n.createElement(
114
- "div",
115
- {
116
- style: e,
117
- ref: (o) => this._element = o,
118
- className: t
119
- },
120
- r
121
- ));
122
- }
123
- /**
124
- * @hidden
125
- */
126
- instantiateCoreBarcode() {
127
- const { barcodeConstructor: e } = this.props, t = this.getBarcodeOptions();
128
- this.barcodeInstance = new e(
129
- this.element,
130
- t,
131
- (r) => {
132
- if (process.env.NODE_ENV !== "production")
133
- throw r;
134
- console.warn(r);
135
- }
136
- );
137
- }
138
- /**
139
- * @hidden
140
- */
141
- refresh() {
142
- if (this.barcodeInstance !== null) {
143
- const e = this.getBarcodeOptions();
144
- this.barcodeInstance.setOptions(e);
145
- }
146
- }
147
- /**
148
- * @hidden
149
- */
150
- getBarcodeOptions() {
151
- const {
152
- renderAs: e,
153
- deriveOptionsFromParent: t
154
- } = this.props;
155
- let r = { renderAs: e };
156
- return t && (r = t(r)), r;
157
- }
158
- /**
159
- * @hidden
160
- */
161
- trigger(e, t) {
162
- const r = this.observersStore.getState();
163
- for (let o = 0; o < r.length; o++)
164
- r[o].trigger(e, t);
165
- }
166
- }
167
- d.propTypes = {
168
- dir: l.string,
169
- renderAs: l.oneOf(["svg", "canvas"])
170
- };
171
- d.defaultProps = {
172
- renderAs: "svg"
173
- };
174
- class K extends n.Component {
175
- constructor() {
176
- super(...arguments), this._baseBarcode = null, this.getTarget = () => this, this.deriveOptionsFromParent = (e) => Object.assign({}, e, {
177
- background: this.props.background,
178
- border: this.props.border,
179
- checksum: this.props.checksum,
180
- color: this.props.color,
181
- height: this.props.height,
182
- padding: this.props.padding,
183
- text: this.props.text,
184
- type: this.props.type,
185
- value: this.props.value,
186
- width: this.props.width
187
- });
188
- }
189
- /**
190
- * @hidden
191
- */
192
- get barcodeInstance() {
193
- return this._baseBarcode !== null ? this._baseBarcode.barcodeInstance : null;
194
- }
195
- /**
196
- * The Drawing `Surface` of the Barcode.
197
- */
198
- get surface() {
199
- return this._baseBarcode !== null ? this._baseBarcode.surface : null;
200
- }
201
- /**
202
- * The DOM element of the Barcode.
203
- */
204
- get element() {
205
- return this._baseBarcode !== null ? this._baseBarcode.element : null;
206
- }
207
- /**
208
- * @hidden
209
- */
210
- render() {
211
- const { children: e, className: t, ...r } = this.props;
212
- return /* @__PURE__ */ n.createElement(
213
- d,
214
- {
215
- ...r,
216
- deriveOptionsFromParent: this.deriveOptionsFromParent,
217
- ref: (o) => this._baseBarcode = o,
218
- barcodeConstructor: _,
219
- getTarget: this.getTarget,
220
- className: u("k-barcode", t)
221
- },
222
- e
223
- );
224
- }
225
- /**
226
- * Exports the component as an image. The export operation is asynchronous and returns a promise.
227
- *
228
- * @param {ImageExportOptions} options - The parameters for the exported image.
229
- * @returns {Promise<string>} - A promise that will be resolved with a PNG image encoded as a Data URI.
230
- */
231
- exportImage(e = {}) {
232
- return b(this.exportVisual(), e);
233
- }
234
- /**
235
- * Exports the component as an SVG document. The export operation is asynchronous and returns a promise.
236
- *
237
- * @param options - The parameters for the exported file.
238
- * @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
239
- */
240
- exportSVG(e = {}) {
241
- return g(this.exportVisual(), e);
242
- }
243
- /**
244
- * Exports a Barcode component as a Drawing `Scene`.
245
- *
246
- * @param {any} options - The parameters for the export operation.
247
- * @returns {Group} - A promise that returns the root `Group` of the scene.
248
- */
249
- exportVisual(e) {
250
- return this.barcodeInstance !== null ? this.barcodeInstance.exportVisual(e) : new m();
251
- }
252
- }
253
- const V = "#000", k = "#fff", A = "L";
254
- class W extends n.Component {
255
- constructor() {
256
- super(...arguments), this._baseBarcode = null, this.getTarget = () => this, this.deriveOptionsFromParent = (e) => Object.assign({}, e, {
257
- background: this.props.background || k,
258
- border: this.props.border,
259
- color: this.props.color || V,
260
- encoding: this.props.encoding,
261
- errorCorrection: this.props.errorCorrection || A,
262
- overlay: this.props.overlay || {},
263
- padding: this.props.padding,
264
- renderAs: this.props.renderAs,
265
- size: this.props.size,
266
- value: this.props.value
267
- });
268
- }
269
- /**
270
- * @hidden
271
- */
272
- get barcodeInstance() {
273
- return this._baseBarcode !== null ? this._baseBarcode.barcodeInstance : null;
274
- }
275
- /**
276
- * The Drawing `Surface` of the Barcode.
277
- */
278
- get surface() {
279
- return this._baseBarcode !== null ? this._baseBarcode.surface : null;
280
- }
281
- /**
282
- * The DOM element of the Barcode.
283
- */
284
- get element() {
285
- return this._baseBarcode !== null ? this._baseBarcode.element : null;
286
- }
287
- /**
288
- * @hidden
289
- */
290
- render() {
291
- const { children: e, className: t, ...r } = this.props;
292
- return /* @__PURE__ */ n.createElement(
293
- d,
294
- {
295
- ...r,
296
- deriveOptionsFromParent: this.deriveOptionsFromParent,
297
- ref: (o) => this._baseBarcode = o,
298
- barcodeConstructor: w,
299
- getTarget: this.getTarget,
300
- className: u("k-qrcode", t)
301
- },
302
- e
303
- );
304
- }
305
- /**
306
- * Exports the component as an image. The export operation is asynchronous and returns a promise.
307
- *
308
- * @param {ImageExportOptions} options - The parameters for the exported image.
309
- * @returns {Promise<string>} - A promise that will be resolved with a PNG image encoded as a Data URI.
310
- */
311
- exportImage(e = {}) {
312
- return b(this.exportVisual(), e);
313
- }
314
- /**
315
- * Exports the component as an SVG document. The export operation is asynchronous and returns a promise.
316
- *
317
- * @param options - The parameters for the exported file.
318
- * @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
319
- */
320
- exportSVG(e = {}) {
321
- return g(this.exportVisual(), e);
322
- }
323
- /**
324
- * Exports a Barcode component as a Drawing `Scene`.
325
- *
326
- * @param {any} options - The parameters for the export operation.
327
- * @returns {Group} - A promise that returns the root `Group` of the scene.
328
- */
329
- exportVisual(e) {
330
- return this.barcodeInstance !== null ? this.barcodeInstance.exportVisual(e) : new m();
331
- }
332
- }
9
+ import { Barcode as r } from "./Barcode.mjs";
10
+ import { QRCode as c } from "./QRCode.mjs";
333
11
  export {
334
- K as Barcode,
335
- W as QRCode
12
+ r as Barcode,
13
+ c as QRCode
336
14
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-barcodes",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = {
10
+ name: "@progress/kendo-react-barcodes",
11
+ productName: "KendoReact",
12
+ productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
+ publishDate: 1709714543,
14
+ version: "",
15
+ licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
+ };
17
+ export {
18
+ e as packageMetadata
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-barcodes",
3
- "version": "7.2.4-develop.3",
3
+ "version": "7.2.4-develop.4",
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",
@@ -25,8 +25,8 @@
25
25
  "@progress/kendo-charts": "2.2.0",
26
26
  "@progress/kendo-drawing": "^1.19.0",
27
27
  "@progress/kendo-licensing": "^1.3.4",
28
- "@progress/kendo-react-common": "7.2.4-develop.3",
29
- "@progress/kendo-react-intl": "7.2.4-develop.3",
28
+ "@progress/kendo-react-common": "7.2.4-develop.4",
29
+ "@progress/kendo-react-intl": "7.2.4-develop.4",
30
30
  "hammerjs": "^2.0.0",
31
31
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
32
32
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=(r,e)=>{if(e.type)switch(e.type){case"add":return[...r,e.payload];case"remove":return r.filter(s=>s!==e.payload);default:return r}else return[]};exports.observersReducer=d;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const d = (r, e) => {
10
+ if (e.type)
11
+ switch (e.type) {
12
+ case "add":
13
+ return [...r, e.payload];
14
+ case "remove":
15
+ return r.filter((s) => s !== e.payload);
16
+ default:
17
+ return r;
18
+ }
19
+ else
20
+ return [];
21
+ };
22
+ export {
23
+ d as observersReducer
24
+ };
package/store/store.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("@progress/kendo-react-common"),n=1e3/60,d=i=>{let o,r,e=[];const u=()=>o,c=t=>{o=i(o,t),l.canUseDOM&&(window.clearTimeout(r),r=window.setTimeout(()=>e.forEach(s=>s()),n))},a=t=>(e.push(t),()=>e=e.filter(s=>s!==t));return c({}),{getState:u,dispatch:c,subscribe:a}};exports.THROTTLE_MS=n;exports.default=d;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { canUseDOM as u } from "@progress/kendo-react-common";
10
+ const l = 1e3 / 60, f = (i) => {
11
+ let s, r, t = [];
12
+ const n = () => s, c = (e) => {
13
+ s = i(s, e), u && (window.clearTimeout(r), r = window.setTimeout(() => t.forEach((o) => o()), l));
14
+ }, a = (e) => (t.push(e), () => t = t.filter((o) => o !== e));
15
+ return c({}), { getState: n, dispatch: c, subscribe: a };
16
+ };
17
+ export {
18
+ l as THROTTLE_MS,
19
+ f as default
20
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=e=>typeof e=="object",r=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let n in e)if(e.hasOwnProperty(n)){const s=e[n],f=t[n];if(u(s)&&u(f)?r(s,f):s!==f)return!0}return!1},c=(e,t)=>{if(!e||!t||(e=[].concat(e),t=[].concat(t),e.length!==t.length))return!0;for(let n=0;n<e.length;n++)if(r(e[n],t[n]))return!0;return!1};exports.isOptionsChanged=c;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const u = (t) => typeof t == "object", c = (t, e) => {
10
+ if (Object.keys(t).length !== Object.keys(e).length)
11
+ return !0;
12
+ for (let f in t)
13
+ if (t.hasOwnProperty(f)) {
14
+ const n = t[f], s = e[f];
15
+ if (u(n) && u(s) ? c(n, s) : n !== s)
16
+ return !0;
17
+ }
18
+ return !1;
19
+ }, o = (t, e) => {
20
+ if (!t || !e || (t = [].concat(t), e = [].concat(e), t.length !== e.length))
21
+ return !0;
22
+ for (let f = 0; f < t.length; f++)
23
+ if (c(t[f], e[f]))
24
+ return !0;
25
+ return !1;
26
+ };
27
+ export {
28
+ o as isOptionsChanged
29
+ };
package/Barcode.d.ts DELETED
@@ -1,53 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { BarcodeProps } from './BarcodeProps';
7
- import { Surface } from '@progress/kendo-drawing';
8
- import { Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
9
- /**
10
- * Represents the KendoReact Barcode component.
11
- */
12
- export declare class Barcode extends React.Component<BarcodeProps, {}> {
13
- private _baseBarcode;
14
- /**
15
- * @hidden
16
- */
17
- get barcodeInstance(): any;
18
- /**
19
- * The Drawing `Surface` of the Barcode.
20
- */
21
- get surface(): Surface | null;
22
- /**
23
- * The DOM element of the Barcode.
24
- */
25
- get element(): HTMLDivElement | null;
26
- /**
27
- * @hidden
28
- */
29
- render(): any;
30
- /**
31
- * Exports the component as an image. The export operation is asynchronous and returns a promise.
32
- *
33
- * @param {ImageExportOptions} options - The parameters for the exported image.
34
- * @returns {Promise<string>} - A promise that will be resolved with a PNG image encoded as a Data URI.
35
- */
36
- exportImage(options?: ImageExportOptions): Promise<string>;
37
- /**
38
- * Exports the component as an SVG document. The export operation is asynchronous and returns a promise.
39
- *
40
- * @param options - The parameters for the exported file.
41
- * @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
42
- */
43
- exportSVG(options?: SVGExportOptions): Promise<string>;
44
- /**
45
- * Exports a Barcode component as a Drawing `Scene`.
46
- *
47
- * @param {any} options - The parameters for the export operation.
48
- * @returns {Group} - A promise that returns the root `Group` of the scene.
49
- */
50
- exportVisual(options?: any): Group;
51
- private getTarget;
52
- private deriveOptionsFromParent;
53
- }
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { Store } from './store/store';
7
- /**
8
- * @hidden
9
- */
10
- export interface BarcodeContextType {
11
- observersStore: Store;
12
- }
13
- /**
14
- * @hidden
15
- */
16
- export declare const BarcodeContext: React.Context<BarcodeContextType | null>;
package/BarcodeProps.d.ts DELETED
@@ -1,65 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseBarcodeProps } from './BaseBarcodeProps';
6
- import { BarcodeText, BarcodeType, Border, Padding } from './types';
7
- /**
8
- * Represents the props of the [KendoReact Barcode component]({% slug overview_barcode_barcodes %}).
9
- */
10
- export interface BarcodeProps extends BaseBarcodeProps {
11
- /**
12
- * The background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
13
- *
14
- * @default "white"
15
- */
16
- background?: string;
17
- /**
18
- * The border of the Barcode.
19
- */
20
- border?: Border;
21
- /**
22
- * If set to `true`, the Barcode will display the checksum digit next to the value in the text area.
23
- *
24
- * @default false
25
- */
26
- checksum?: boolean;
27
- /**
28
- * The color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
29
- *
30
- * @default "black"
31
- */
32
- color?: string;
33
- /**
34
- * The height of the Barcode in pixels.
35
- *
36
- * The Barcode dimensions can also be set through regular CSS styling.
37
- */
38
- height?: number;
39
- /**
40
- * The padding of the Barcode. A numeric value sets all paddings.
41
- *
42
- * @default 0
43
- */
44
- padding?: Padding | number;
45
- /**
46
- * The Barcode text label configuration.
47
- */
48
- text?: BarcodeText;
49
- /**
50
- * The symbology (encoding) the Barcode will use.
51
- *
52
- * @default "Code39"
53
- */
54
- type: BarcodeType | string;
55
- /**
56
- * The value of the Barcode.
57
- */
58
- value: number | string;
59
- /**
60
- * The width of the Barcode in pixels.
61
- *
62
- * The Barcode dimensions can also be set through regular CSS styling.
63
- */
64
- width?: number;
65
- }