@aitmed/aitmed-document-template 1.4.0

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,9 @@
1
+ declare const encode: (origin: any) => string;
2
+ declare const decode: (str: string) => string | Record<string, any>;
3
+ declare const getBase64ByBaseData: ({ type, data }: {
4
+ type: string;
5
+ data: string;
6
+ }) => string;
7
+ declare const base64ToUint8Array: (data: string) => Uint8Array;
8
+ declare const base64ToBlob: (data: string, type?: string | undefined) => Blob;
9
+ export { encode, decode, getBase64ByBaseData, base64ToUint8Array, base64ToBlob };
@@ -0,0 +1,11 @@
1
+ export declare const getBase64: (str: string) => string;
2
+ export declare const getImgTypeByBase64: (str: string) => string;
3
+ export declare const getBlob: (str: string) => string;
4
+ export declare const getContainedImageSize: (container: HTMLElement, image: HTMLImageElement) => {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare const getMaxContainSize: (width: number, height: number) => {
9
+ width: number;
10
+ height: number;
11
+ };
@@ -0,0 +1,5 @@
1
+ declare enum aitmedTemplateRole {
2
+ provider = "provider",
3
+ patient = "patient"
4
+ }
5
+ export default aitmedTemplateRole;
@@ -0,0 +1,5 @@
1
+ declare enum aitmedTemplateType {
2
+ "Provider Note" = "provider",
3
+ "Patient Form" = "patient"
4
+ }
5
+ export default aitmedTemplateType;
@@ -0,0 +1,5 @@
1
+ declare const getBase64ByBaseData: ({ type, data }: {
2
+ type: string;
3
+ data: string;
4
+ }) => string;
5
+ export { getBase64ByBaseData };
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@aitmed/aitmed-document-template",
3
+ "version": "1.4.0",
4
+ "main": "./dist/my-component-library.umd.js",
5
+ "module": "./dist/my-component-library.es.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "serve": "vue-cli-service serve",
9
+ "lint": "vue-cli-service lint",
10
+ "build": "vite build",
11
+ "dev": "vite build --watch",
12
+ "minor-version": "npm version minor -f",
13
+ "bump-version": "npm version patch -f",
14
+ "prepublish:public": "npm run build && npm run minor-version",
15
+ "publish:public": "npm publish --access public -f",
16
+ "postpublish:public": "bash scripts/pushCode.sh"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "package.json"
21
+ ],
22
+ "dependencies": {
23
+ "@aitmed/ecos-lvl1-sdk": "^1.0.25",
24
+ "@jsmanifest/utils": "^1.0.73",
25
+ "@rollup/plugin-typescript": "^11.1.6",
26
+ "@vitejs/plugin-vue": "^5.0.5",
27
+ "axios": "^1.7.2",
28
+ "base-64": "^1.0.0",
29
+ "buffer": "^6.0.3",
30
+ "core-js": "^3.8.3",
31
+ "element-plus": "^2.7.5",
32
+ "lodash": "^4.17.21",
33
+ "pinia": "^2.1.7",
34
+ "sweetalert2": "^11.11.1",
35
+ "vite": "^5.2.13",
36
+ "vue": "^3.2.13",
37
+ "vue-class-component": "^8.0.0-0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/base-64": "^1.0.2",
41
+ "@types/lodash": "^4.17.5",
42
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
43
+ "@typescript-eslint/parser": "^5.4.0",
44
+ "@vue/cli-plugin-babel": "~5.0.0",
45
+ "@vue/cli-plugin-eslint": "~5.0.0",
46
+ "@vue/cli-plugin-typescript": "~5.0.0",
47
+ "@vue/cli-service": "~5.0.0",
48
+ "@vue/eslint-config-standard": "^6.1.0",
49
+ "@vue/eslint-config-typescript": "^9.1.0",
50
+ "eslint": "^7.32.0",
51
+ "eslint-plugin-import": "^2.25.3",
52
+ "eslint-plugin-node": "^11.1.0",
53
+ "eslint-plugin-promise": "^5.1.0",
54
+ "eslint-plugin-vue": "^8.0.3",
55
+ "sass": "^1.77.5",
56
+ "sass-loader": "^12.6.0",
57
+ "typescript": "~4.5.5",
58
+ "unplugin-auto-import": "^0.17.6",
59
+ "unplugin-vue-components": "^0.27.0"
60
+ },
61
+ "eslintConfig": {
62
+ "root": true,
63
+ "env": {
64
+ "node": true
65
+ },
66
+ "extends": [
67
+ "plugin:vue/vue3-essential",
68
+ "@vue/standard",
69
+ "@vue/typescript/recommended"
70
+ ],
71
+ "parserOptions": {
72
+ "ecmaVersion": 2020
73
+ },
74
+ "rules": {}
75
+ },
76
+ "browserslist": [
77
+ "> 1%",
78
+ "last 2 versions",
79
+ "not dead",
80
+ "not ie 11"
81
+ ]
82
+ }