mg-ocr-invoice 0.0.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.
@@ -0,0 +1,17 @@
1
+ import 'vant/lib/index.css';
2
+ import '@/utils/disableZoom';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ listId: {
5
+ required: true;
6
+ type: StringConstructor;
7
+ };
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ok" | "edit")[], "ok" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ listId: {
10
+ required: true;
11
+ type: StringConstructor;
12
+ };
13
+ }>> & {
14
+ onOk?: ((...args: any[]) => any) | undefined;
15
+ onEdit?: ((...args: any[]) => any) | undefined;
16
+ }, {}, {}>;
17
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ token: {
3
+ required: false;
4
+ type: StringConstructor;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ token: {
8
+ required: false;
9
+ type: StringConstructor;
10
+ };
11
+ }>> & {
12
+ onSubmit?: ((...args: any[]) => any) | undefined;
13
+ }, {}, {}>;
14
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import '@/utils/disableZoom';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "uploadSuccess"[], "uploadSuccess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
3
+ onUploadSuccess?: ((...args: any[]) => any) | undefined;
4
+ }, {}, {}>;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import Invoice from './Invoice/index.vue';
2
+ import InvoiceList from './InvoiceList/index.vue';
3
+ import PaymentMode from './PaymentMode/index.vue';
4
+ import OCRInvoice from './OCRInvoice/index.vue';
5
+ export { Invoice, InvoiceList, PaymentMode, OCRInvoice };
@@ -0,0 +1,9 @@
1
+ import { App } from 'vue';
2
+ import './styles/mu-invoice.css';
3
+ declare function install(app: App): void;
4
+ declare const _default: {
5
+ install: typeof install;
6
+ };
7
+ export default _default;
8
+ export * from './components';
9
+ export * from './types';
@@ -0,0 +1 @@
1
+ import './styles/mu-invoice.css';
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function getUrlParams(url: string): any;
@@ -0,0 +1,2 @@
1
+ declare const instance: import("axios").AxiosInstance;
2
+ export default instance;
@@ -0,0 +1,3 @@
1
+ export declare const processImage: (file: any) => Promise<unknown>;
2
+ export declare const takePhoto: () => Promise<any>;
3
+ export declare const selectPhoto: () => Promise<any>;
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "mg-ocr-invoice",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "types": "dist/types/index.d.ts",
7
+ "module": "dist/index.es.js",
8
+ "main": "dist/index.umd.js",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "dev": "vite",
14
+ "build": "rimraf dist && vue-tsc && vite build --mode build",
15
+ "preview": "vite preview"
16
+ },
17
+ "dependencies": {
18
+ "axios": "^1.4.0",
19
+ "compressorjs": "^1.2.1",
20
+ "swiper": "^9.3.2",
21
+ "vant": "^4.4.1",
22
+ "vconsole": "^3.15.1",
23
+ "vue": "^3.2.47"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^20.2.5",
27
+ "@vitejs/plugin-vue": "^4.1.0",
28
+ "autoprefixer": "^10.4.14",
29
+ "postcss": "^8.4.24",
30
+ "rimraf": "^5.0.1",
31
+ "typescript": "^5.0.2",
32
+ "vite": "^4.3.9",
33
+ "vue-tsc": "^1.4.2"
34
+ },
35
+ "peerDependencies": {
36
+ "sass": "^1.63.2"
37
+ }
38
+ }