@amitkhare/capacitor-cat-printer 0.5.0 → 0.5.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/README.md +212 -229
- package/android/build.gradle +4 -0
- package/android/src/main/java/khare/catprinter/plugin/BarcodeGenerator.java +188 -0
- package/android/src/main/java/khare/catprinter/plugin/CatPrinterCore.java +697 -14
- package/android/src/main/java/khare/catprinter/plugin/CatPrinterPlugin.java +350 -4
- package/android/src/main/java/khare/catprinter/plugin/ImageProcessor.java +358 -24
- package/android/src/main/java/khare/catprinter/plugin/PrinterProtocol.java +92 -0
- package/dist/esm/definitions.d.ts +476 -1
- package/dist/esm/definitions.d.ts.map +1 -1
- package/dist/esm/definitions.js +30 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +13 -2
- package/dist/esm/web.d.ts.map +1 -1
- package/dist/esm/web.js +33 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +65 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +65 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/plugin.cjs.js
CHANGED
|
@@ -9,6 +9,36 @@ const PaperWidth = {
|
|
|
9
9
|
MM_58: 384,
|
|
10
10
|
MM_80: 576,
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Known printer models
|
|
14
|
+
*/
|
|
15
|
+
const PrinterModels = {
|
|
16
|
+
UNKNOWN: '_ZZ00',
|
|
17
|
+
GB01: 'GB01',
|
|
18
|
+
GB02: 'GB02',
|
|
19
|
+
GB03: 'GB03',
|
|
20
|
+
GT01: 'GT01',
|
|
21
|
+
MX05: 'MX05',
|
|
22
|
+
MX06: 'MX06',
|
|
23
|
+
MX08: 'MX08',
|
|
24
|
+
MX09: 'MX09',
|
|
25
|
+
MX10: 'MX10',
|
|
26
|
+
MX11: 'MX11',
|
|
27
|
+
YT01: 'YT01',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Barcode types supported
|
|
31
|
+
*/
|
|
32
|
+
const BarcodeType = {
|
|
33
|
+
CODE128: 'CODE128',
|
|
34
|
+
CODE39: 'CODE39',
|
|
35
|
+
EAN13: 'EAN13',
|
|
36
|
+
EAN8: 'EAN8',
|
|
37
|
+
UPC_A: 'UPC_A',
|
|
38
|
+
UPC_E: 'UPC_E',
|
|
39
|
+
ITF: 'ITF',
|
|
40
|
+
CODABAR: 'CODABAR',
|
|
41
|
+
};
|
|
12
42
|
|
|
13
43
|
const CatPrinter = core.registerPlugin('CatPrinter', {
|
|
14
44
|
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CatPrinterWeb()),
|
|
@@ -36,9 +66,42 @@ class CatPrinterWeb extends core.WebPlugin {
|
|
|
36
66
|
async printText(_options) {
|
|
37
67
|
throw this.unavailable('BLE printing is not available on web');
|
|
38
68
|
}
|
|
69
|
+
async printRichText(_options) {
|
|
70
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
71
|
+
}
|
|
72
|
+
async printBarcode(_options) {
|
|
73
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
74
|
+
}
|
|
75
|
+
async printQRCode(_options) {
|
|
76
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
77
|
+
}
|
|
78
|
+
async printTable(_options) {
|
|
79
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
80
|
+
}
|
|
81
|
+
async getPreview(_options) {
|
|
82
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
83
|
+
}
|
|
39
84
|
async feedPaper(_options) {
|
|
40
85
|
throw this.unavailable('BLE printing is not available on web');
|
|
41
86
|
}
|
|
87
|
+
async cancelPrint() {
|
|
88
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
89
|
+
}
|
|
90
|
+
async retractPaper(_options) {
|
|
91
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
92
|
+
}
|
|
93
|
+
async getDeviceInfo() {
|
|
94
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
95
|
+
}
|
|
96
|
+
async getPrinterModel() {
|
|
97
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
98
|
+
}
|
|
99
|
+
async getPrinterStatus() {
|
|
100
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
101
|
+
}
|
|
102
|
+
async setAutoReconnect(_options) {
|
|
103
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
104
|
+
}
|
|
42
105
|
}
|
|
43
106
|
|
|
44
107
|
var web = /*#__PURE__*/Object.freeze({
|
|
@@ -46,6 +109,8 @@ var web = /*#__PURE__*/Object.freeze({
|
|
|
46
109
|
CatPrinterWeb: CatPrinterWeb
|
|
47
110
|
});
|
|
48
111
|
|
|
112
|
+
exports.BarcodeType = BarcodeType;
|
|
49
113
|
exports.CatPrinter = CatPrinter;
|
|
50
114
|
exports.PaperWidth = PaperWidth;
|
|
115
|
+
exports.PrinterModels = PrinterModels;
|
|
51
116
|
//# sourceMappingURL=plugin.cjs.js.map
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Paper width constants\n */\nexport const PaperWidth = {\n MM_58: 384,\n MM_80: 576,\n};\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst CatPrinter = registerPlugin('CatPrinter', {\n web: () => import('./web').then(m => new m.CatPrinterWeb()),\n});\nexport * from './definitions';\nexport { CatPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CatPrinterWeb extends WebPlugin {\n async scan(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async stopScan() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async connect(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async disconnect() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async isConnected() {\n return { connected: false };\n }\n async printImage(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async feedPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACY,MAAC,UAAU,GAAG;AAC1B,IAAI,KAAK,EAAE,GAAG;AACd,IAAI,KAAK,EAAE,GAAG;AACd;;
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Paper width constants\n */\nexport const PaperWidth = {\n MM_58: 384,\n MM_80: 576,\n};\n/**\n * Known printer models\n */\nexport const PrinterModels = {\n UNKNOWN: '_ZZ00',\n GB01: 'GB01',\n GB02: 'GB02',\n GB03: 'GB03',\n GT01: 'GT01',\n MX05: 'MX05',\n MX06: 'MX06',\n MX08: 'MX08',\n MX09: 'MX09',\n MX10: 'MX10',\n MX11: 'MX11',\n YT01: 'YT01',\n};\n/**\n * Barcode types supported\n */\nexport const BarcodeType = {\n CODE128: 'CODE128',\n CODE39: 'CODE39',\n EAN13: 'EAN13',\n EAN8: 'EAN8',\n UPC_A: 'UPC_A',\n UPC_E: 'UPC_E',\n ITF: 'ITF',\n CODABAR: 'CODABAR',\n};\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst CatPrinter = registerPlugin('CatPrinter', {\n web: () => import('./web').then(m => new m.CatPrinterWeb()),\n});\nexport * from './definitions';\nexport { CatPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CatPrinterWeb extends WebPlugin {\n async scan(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async stopScan() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async connect(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async disconnect() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async isConnected() {\n return { connected: false };\n }\n async printImage(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printRichText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printBarcode(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printQRCode(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printTable(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPreview(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async feedPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async cancelPrint() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async retractPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getDeviceInfo() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPrinterModel() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPrinterStatus() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async setAutoReconnect(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACY,MAAC,UAAU,GAAG;AAC1B,IAAI,KAAK,EAAE,GAAG;AACd,IAAI,KAAK,EAAE,GAAG;AACd;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG;AAC7B,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB;AACA;AACA;AACA;AACY,MAAC,WAAW,G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AQ,MAAM,IAAI,CAAC,WAAW,CAAC,sCAAsC,CAAC;AACtE,IAAI;AACJ;;;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -8,6 +8,36 @@ var capacitorCatPrinter = (function (exports, core) {
|
|
|
8
8
|
MM_58: 384,
|
|
9
9
|
MM_80: 576,
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Known printer models
|
|
13
|
+
*/
|
|
14
|
+
const PrinterModels = {
|
|
15
|
+
UNKNOWN: '_ZZ00',
|
|
16
|
+
GB01: 'GB01',
|
|
17
|
+
GB02: 'GB02',
|
|
18
|
+
GB03: 'GB03',
|
|
19
|
+
GT01: 'GT01',
|
|
20
|
+
MX05: 'MX05',
|
|
21
|
+
MX06: 'MX06',
|
|
22
|
+
MX08: 'MX08',
|
|
23
|
+
MX09: 'MX09',
|
|
24
|
+
MX10: 'MX10',
|
|
25
|
+
MX11: 'MX11',
|
|
26
|
+
YT01: 'YT01',
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Barcode types supported
|
|
30
|
+
*/
|
|
31
|
+
const BarcodeType = {
|
|
32
|
+
CODE128: 'CODE128',
|
|
33
|
+
CODE39: 'CODE39',
|
|
34
|
+
EAN13: 'EAN13',
|
|
35
|
+
EAN8: 'EAN8',
|
|
36
|
+
UPC_A: 'UPC_A',
|
|
37
|
+
UPC_E: 'UPC_E',
|
|
38
|
+
ITF: 'ITF',
|
|
39
|
+
CODABAR: 'CODABAR',
|
|
40
|
+
};
|
|
11
41
|
|
|
12
42
|
const CatPrinter = core.registerPlugin('CatPrinter', {
|
|
13
43
|
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CatPrinterWeb()),
|
|
@@ -35,9 +65,42 @@ var capacitorCatPrinter = (function (exports, core) {
|
|
|
35
65
|
async printText(_options) {
|
|
36
66
|
throw this.unavailable('BLE printing is not available on web');
|
|
37
67
|
}
|
|
68
|
+
async printRichText(_options) {
|
|
69
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
70
|
+
}
|
|
71
|
+
async printBarcode(_options) {
|
|
72
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
73
|
+
}
|
|
74
|
+
async printQRCode(_options) {
|
|
75
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
76
|
+
}
|
|
77
|
+
async printTable(_options) {
|
|
78
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
79
|
+
}
|
|
80
|
+
async getPreview(_options) {
|
|
81
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
82
|
+
}
|
|
38
83
|
async feedPaper(_options) {
|
|
39
84
|
throw this.unavailable('BLE printing is not available on web');
|
|
40
85
|
}
|
|
86
|
+
async cancelPrint() {
|
|
87
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
88
|
+
}
|
|
89
|
+
async retractPaper(_options) {
|
|
90
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
91
|
+
}
|
|
92
|
+
async getDeviceInfo() {
|
|
93
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
94
|
+
}
|
|
95
|
+
async getPrinterModel() {
|
|
96
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
97
|
+
}
|
|
98
|
+
async getPrinterStatus() {
|
|
99
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
100
|
+
}
|
|
101
|
+
async setAutoReconnect(_options) {
|
|
102
|
+
throw this.unavailable('BLE printing is not available on web');
|
|
103
|
+
}
|
|
41
104
|
}
|
|
42
105
|
|
|
43
106
|
var web = /*#__PURE__*/Object.freeze({
|
|
@@ -45,8 +108,10 @@ var capacitorCatPrinter = (function (exports, core) {
|
|
|
45
108
|
CatPrinterWeb: CatPrinterWeb
|
|
46
109
|
});
|
|
47
110
|
|
|
111
|
+
exports.BarcodeType = BarcodeType;
|
|
48
112
|
exports.CatPrinter = CatPrinter;
|
|
49
113
|
exports.PaperWidth = PaperWidth;
|
|
114
|
+
exports.PrinterModels = PrinterModels;
|
|
50
115
|
|
|
51
116
|
return exports;
|
|
52
117
|
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Paper width constants\n */\nexport const PaperWidth = {\n MM_58: 384,\n MM_80: 576,\n};\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst CatPrinter = registerPlugin('CatPrinter', {\n web: () => import('./web').then(m => new m.CatPrinterWeb()),\n});\nexport * from './definitions';\nexport { CatPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CatPrinterWeb extends WebPlugin {\n async scan(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async stopScan() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async connect(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async disconnect() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async isConnected() {\n return { connected: false };\n }\n async printImage(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async feedPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;AACY,UAAC,UAAU,GAAG;IAC1B,IAAI,KAAK,EAAE,GAAG;IACd,IAAI,KAAK,EAAE,GAAG;IACd;;
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Paper width constants\n */\nexport const PaperWidth = {\n MM_58: 384,\n MM_80: 576,\n};\n/**\n * Known printer models\n */\nexport const PrinterModels = {\n UNKNOWN: '_ZZ00',\n GB01: 'GB01',\n GB02: 'GB02',\n GB03: 'GB03',\n GT01: 'GT01',\n MX05: 'MX05',\n MX06: 'MX06',\n MX08: 'MX08',\n MX09: 'MX09',\n MX10: 'MX10',\n MX11: 'MX11',\n YT01: 'YT01',\n};\n/**\n * Barcode types supported\n */\nexport const BarcodeType = {\n CODE128: 'CODE128',\n CODE39: 'CODE39',\n EAN13: 'EAN13',\n EAN8: 'EAN8',\n UPC_A: 'UPC_A',\n UPC_E: 'UPC_E',\n ITF: 'ITF',\n CODABAR: 'CODABAR',\n};\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst CatPrinter = registerPlugin('CatPrinter', {\n web: () => import('./web').then(m => new m.CatPrinterWeb()),\n});\nexport * from './definitions';\nexport { CatPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CatPrinterWeb extends WebPlugin {\n async scan(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async stopScan() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async connect(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async disconnect() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async isConnected() {\n return { connected: false };\n }\n async printImage(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printRichText(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printBarcode(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printQRCode(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async printTable(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPreview(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async feedPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async cancelPrint() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async retractPaper(_options) {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getDeviceInfo() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPrinterModel() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async getPrinterStatus() {\n throw this.unavailable('BLE printing is not available on web');\n }\n async setAutoReconnect(_options) {\n throw this.unavailable('BLE printing is not available on web');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