@progress/kendo-vue-barcodes 9.2.0-develop.1
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 +81 -0
- package/Barcode.js +8 -0
- package/Barcode.mjs +109 -0
- package/BarcodeProps.d.ts +66 -0
- package/BaseBarcode.d.ts +38 -0
- package/BaseBarcode.js +8 -0
- package/BaseBarcode.mjs +92 -0
- package/BaseBarcodeProps.d.ts +35 -0
- package/LICENSE.md +11 -0
- package/NOTICE.txt +109 -0
- package/QRCode.d.ts +79 -0
- package/QRCode.js +8 -0
- package/QRCode.mjs +108 -0
- package/QRCodeProps.d.ts +78 -0
- package/README.md +53 -0
- package/dist/cdn/js/kendo-vue-barcodes.js +15 -0
- package/index.d.mts +14 -0
- package/index.d.ts +14 -0
- package/index.js +8 -0
- package/index.mjs +13 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +65 -0
- package/store/reducer.d.ts +13 -0
- package/store/reducer.js +8 -0
- package/store/reducer.mjs +23 -0
- package/store/store.d.ts +31 -0
- package/store/store.js +8 -0
- package/store/store.mjs +19 -0
- package/types/barcode-text.d.ts +39 -0
- package/types/barcode-type.d.ts +11 -0
- package/types/border.interface.d.ts +31 -0
- package/types/dash-type.interface.d.ts +11 -0
- package/types/margin.interface.d.ts +36 -0
- package/types/padding.interface.d.ts +36 -0
- package/types/qrcode-encoding.d.ts +11 -0
- package/types/qrcode-error-correction.d.ts +16 -0
- package/types/qrcode-overlay.d.ts +36 -0
- package/types/render-mode.d.ts +15 -0
- package/types.d.ts +17 -0
- package/utils/common.d.ts +11 -0
- package/utils/common.js +8 -0
- package/utils/common.mjs +28 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The margin size for each side.
|
|
10
|
+
*/
|
|
11
|
+
export interface Margin {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the top margin in pixels.
|
|
14
|
+
*
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
top?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the right margin in pixels.
|
|
20
|
+
*
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
right?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the bottom margin in pixels.
|
|
26
|
+
*
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
bottom?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the left margin in pixels.
|
|
32
|
+
*
|
|
33
|
+
* @default 0
|
|
34
|
+
*/
|
|
35
|
+
left?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The padding size for each side.
|
|
10
|
+
*/
|
|
11
|
+
export interface Padding {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the top padding in pixels.
|
|
14
|
+
*
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
top?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the right padding in pixels.
|
|
20
|
+
*
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
right?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the bottom padding in pixels.
|
|
26
|
+
*
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
bottom?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the left padding in pixels.
|
|
32
|
+
*
|
|
33
|
+
* @default 0
|
|
34
|
+
*/
|
|
35
|
+
left?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The QR Code encoding modes.
|
|
10
|
+
*/
|
|
11
|
+
export type QRCodeEncoding = 'ISO_8859_1' | 'UTF_8';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The QR Code error correction levels.
|
|
10
|
+
*
|
|
11
|
+
* * `"L"`—Approximately 7% of the codewords can be restored.
|
|
12
|
+
* * `"M"`—Approximately 15% of the codewords can be restored.
|
|
13
|
+
* * `"Q"`—Approximately 25% of the codewords can be restored.
|
|
14
|
+
* * `"H"`—Approximately 30% of the codewords can be restored.
|
|
15
|
+
*/
|
|
16
|
+
export type QRCodeErrorCorrection = 'L' | 'M' | 'Q' | 'H';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The image overlay configuration of the QR Code.
|
|
10
|
+
*/
|
|
11
|
+
export interface QRCodeOverlay {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the overlay height in pixels.
|
|
14
|
+
*
|
|
15
|
+
* @default undefined
|
|
16
|
+
*/
|
|
17
|
+
height?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the source image for the overlay.
|
|
20
|
+
*
|
|
21
|
+
* Required only when `type` is set to `'image'`.
|
|
22
|
+
*/
|
|
23
|
+
imageUrl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the overlay type.
|
|
26
|
+
*
|
|
27
|
+
* @default "image"
|
|
28
|
+
*/
|
|
29
|
+
type?: 'image' | 'swiss';
|
|
30
|
+
/**
|
|
31
|
+
* Sets the overlay width in pixels.
|
|
32
|
+
*
|
|
33
|
+
* @default undefined
|
|
34
|
+
*/
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Sets the rendering mode of the component.
|
|
10
|
+
*
|
|
11
|
+
* The supported values are:
|
|
12
|
+
* * `"canvas"`—Renders the component as a Canvas element.
|
|
13
|
+
* * `"svg"`—Renders the component as an inline SVG document.
|
|
14
|
+
*/
|
|
15
|
+
export type RenderMode = 'svg' | 'canvas';
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
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';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const isOptionsChanged: (original: any, current: any) => boolean;
|
package/utils/common.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=t=>t!==null&&typeof t=="object",c=(t,e)=>{if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n],f=e[n];if(o(s)&&o(f)?c(s,f):s!==f)return!0}return!1},r=(t,e)=>{if(!t||!e||(t=[].concat(t),e=[].concat(e),t.length!==e.length))return!0;for(let n=0;n<t.length;n++)if(c(t[n],e[n]))return!0;return!1};exports.isOptionsChanged=r;
|
package/utils/common.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
const c = (t) => t !== null && typeof t == "object", o = (t, e) => {
|
|
9
|
+
if (Object.keys(t).length !== Object.keys(e).length)
|
|
10
|
+
return !0;
|
|
11
|
+
for (const f in t)
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(t, f)) {
|
|
13
|
+
const n = t[f], s = e[f];
|
|
14
|
+
if (c(n) && c(s) ? o(n, s) : n !== s)
|
|
15
|
+
return !0;
|
|
16
|
+
}
|
|
17
|
+
return !1;
|
|
18
|
+
}, u = (t, e) => {
|
|
19
|
+
if (!t || !e || (t = [].concat(t), e = [].concat(e), t.length !== e.length))
|
|
20
|
+
return !0;
|
|
21
|
+
for (let f = 0; f < t.length; f++)
|
|
22
|
+
if (o(t[f], e[f]))
|
|
23
|
+
return !0;
|
|
24
|
+
return !1;
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
u as isOptionsChanged
|
|
28
|
+
};
|