@aitmed/aitmed-document-template 1.71.0 → 1.74.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.
@@ -1,10 +1,10 @@
1
- interface ICON {
2
- clearIcon: string;
3
- clearDisableIcon: string;
4
- undoIcon: string;
5
- undoDisableIcon: string;
6
- redoIcon: string;
7
- redoDisableIcon: string;
8
- }
9
- declare const getIcon: (type: keyof ICON) => string;
10
- export default getIcon;
1
+ interface ICON {
2
+ clearIcon: string;
3
+ clearDisableIcon: string;
4
+ undoIcon: string;
5
+ undoDisableIcon: string;
6
+ redoIcon: string;
7
+ redoDisableIcon: string;
8
+ }
9
+ declare const getIcon: (type: keyof ICON) => string;
10
+ export default getIcon;
@@ -1,73 +1,73 @@
1
- declare const templateMobile: {
2
- alignItems: string;
3
- lineHeight: string;
4
- doubleLineHeight: string;
5
- blankHeight: string;
6
- atBlockWidth: string;
7
- fullWidth: string;
8
- tableMinWidth: string;
9
- imageMaxWidth: string;
10
- choice: {
11
- radio: {
12
- width: string;
13
- marginLeft: string;
14
- on: string;
15
- off: string;
16
- default: string;
17
- };
18
- checkbox: {
19
- width: string;
20
- marginLeft: string;
21
- on: string;
22
- off: string;
23
- default: string;
24
- };
25
- dropDown: {
26
- width: string;
27
- down: string;
28
- up: string;
29
- };
30
- };
31
- DateAndTime: {
32
- width: string;
33
- inputWidth: string;
34
- imgWidth: string;
35
- calendar: string;
36
- clock: string;
37
- };
38
- text: string;
39
- h1: string;
40
- h2: string;
41
- h3: string;
42
- h4: string;
43
- h5: string;
44
- signature: {
45
- width: string;
46
- height: string;
47
- ratio: string;
48
- label: {
49
- top: string;
50
- left: string;
51
- width: string;
52
- height: string;
53
- };
54
- };
55
- defaultStyle: {
56
- marginTop: string;
57
- marginTop2: string;
58
- marginLeft: string;
59
- paddingTop: string;
60
- paddingLeft: string;
61
- };
62
- diagnosis: {
63
- titleFontSize: string;
64
- buttonFontSize: string;
65
- };
66
- vitalSign: {
67
- blockWidth: string;
68
- titleFontSize: string;
69
- title2FontSize: string;
70
- unitFontSize: string;
71
- };
72
- };
73
- export default templateMobile;
1
+ declare const templateMobile: {
2
+ alignItems: string;
3
+ lineHeight: string;
4
+ doubleLineHeight: string;
5
+ blankHeight: string;
6
+ atBlockWidth: string;
7
+ fullWidth: string;
8
+ tableMinWidth: string;
9
+ imageMaxWidth: string;
10
+ choice: {
11
+ radio: {
12
+ width: string;
13
+ marginLeft: string;
14
+ on: string;
15
+ off: string;
16
+ default: string;
17
+ };
18
+ checkbox: {
19
+ width: string;
20
+ marginLeft: string;
21
+ on: string;
22
+ off: string;
23
+ default: string;
24
+ };
25
+ dropDown: {
26
+ width: string;
27
+ down: string;
28
+ up: string;
29
+ };
30
+ };
31
+ DateAndTime: {
32
+ width: string;
33
+ inputWidth: string;
34
+ imgWidth: string;
35
+ calendar: string;
36
+ clock: string;
37
+ };
38
+ text: string;
39
+ h1: string;
40
+ h2: string;
41
+ h3: string;
42
+ h4: string;
43
+ h5: string;
44
+ signature: {
45
+ width: string;
46
+ height: string;
47
+ ratio: string;
48
+ label: {
49
+ top: string;
50
+ left: string;
51
+ width: string;
52
+ height: string;
53
+ };
54
+ };
55
+ defaultStyle: {
56
+ marginTop: string;
57
+ marginTop2: string;
58
+ marginLeft: string;
59
+ paddingTop: string;
60
+ paddingLeft: string;
61
+ };
62
+ diagnosis: {
63
+ titleFontSize: string;
64
+ buttonFontSize: string;
65
+ };
66
+ vitalSign: {
67
+ blockWidth: string;
68
+ titleFontSize: string;
69
+ title2FontSize: string;
70
+ unitFontSize: string;
71
+ };
72
+ };
73
+ export default templateMobile;
@@ -1,73 +1,73 @@
1
- declare const templatePS: {
2
- alignItems: string;
3
- lineHeight: string;
4
- doubleLineHeight: string;
5
- blankHeight: string;
6
- atBlockWidth: string;
7
- fullWidth: string;
8
- tableMinWidth: string;
9
- imageMaxWidth: string;
10
- choice: {
11
- radio: {
12
- width: string;
13
- marginLeft: string;
14
- on: string;
15
- off: string;
16
- default: string;
17
- };
18
- checkbox: {
19
- width: string;
20
- marginLeft: string;
21
- on: string;
22
- off: string;
23
- default: string;
24
- };
25
- dropDown: {
26
- width: string;
27
- down: string;
28
- up: string;
29
- };
30
- };
31
- DateAndTime: {
32
- width: string;
33
- inputWidth: string;
34
- imgWidth: string;
35
- calendar: string;
36
- clock: string;
37
- };
38
- text: string;
39
- h1: string;
40
- h2: string;
41
- h3: string;
42
- h4: string;
43
- h5: string;
44
- signature: {
45
- width: string;
46
- height: string;
47
- ratio: string;
48
- label: {
49
- top: string;
50
- left: string;
51
- width: string;
52
- height: string;
53
- };
54
- };
55
- defaultStyle: {
56
- marginTop: string;
57
- marginTop2: string;
58
- marginLeft: string;
59
- paddingTop: string;
60
- paddingLeft: string;
61
- };
62
- diagnosis: {
63
- titleFontSize: string;
64
- buttonFontSize: string;
65
- };
66
- vitalSign: {
67
- blockWidth: string;
68
- titleFontSize: string;
69
- title2FontSize: string;
70
- unitFontSize: string;
71
- };
72
- };
73
- export default templatePS;
1
+ declare const templatePS: {
2
+ alignItems: string;
3
+ lineHeight: string;
4
+ doubleLineHeight: string;
5
+ blankHeight: string;
6
+ atBlockWidth: string;
7
+ fullWidth: string;
8
+ tableMinWidth: string;
9
+ imageMaxWidth: string;
10
+ choice: {
11
+ radio: {
12
+ width: string;
13
+ marginLeft: string;
14
+ on: string;
15
+ off: string;
16
+ default: string;
17
+ };
18
+ checkbox: {
19
+ width: string;
20
+ marginLeft: string;
21
+ on: string;
22
+ off: string;
23
+ default: string;
24
+ };
25
+ dropDown: {
26
+ width: string;
27
+ down: string;
28
+ up: string;
29
+ };
30
+ };
31
+ DateAndTime: {
32
+ width: string;
33
+ inputWidth: string;
34
+ imgWidth: string;
35
+ calendar: string;
36
+ clock: string;
37
+ };
38
+ text: string;
39
+ h1: string;
40
+ h2: string;
41
+ h3: string;
42
+ h4: string;
43
+ h5: string;
44
+ signature: {
45
+ width: string;
46
+ height: string;
47
+ ratio: string;
48
+ label: {
49
+ top: string;
50
+ left: string;
51
+ width: string;
52
+ height: string;
53
+ };
54
+ };
55
+ defaultStyle: {
56
+ marginTop: string;
57
+ marginTop2: string;
58
+ marginLeft: string;
59
+ paddingTop: string;
60
+ paddingLeft: string;
61
+ };
62
+ diagnosis: {
63
+ titleFontSize: string;
64
+ buttonFontSize: string;
65
+ };
66
+ vitalSign: {
67
+ blockWidth: string;
68
+ titleFontSize: string;
69
+ title2FontSize: string;
70
+ unitFontSize: string;
71
+ };
72
+ };
73
+ export default templatePS;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { App } from 'vue';
2
- import type EditorJSON from './interface';
3
- import { useDocumentTemplateStore } from './store/index';
4
- import DocumentTemplate from './components/DocumentTemplate.vue';
5
- import 'element-plus/theme-chalk/index.css';
6
- import aitmedTemplateRole from './utils/role.config';
7
- import aitmedTemplateType from './utils/type.config';
8
- declare const install: (app: App) => void;
9
- export type { EditorJSON };
10
- export { DocumentTemplate, useDocumentTemplateStore, aitmedTemplateRole, aitmedTemplateType, install };
11
- declare const _default: {
12
- install: (app: App<any>) => void;
13
- };
14
- export default _default;
1
+ import { App } from 'vue';
2
+ import type EditorJSON from './interface';
3
+ import { useDocumentTemplateStore } from './store/index';
4
+ import DocumentTemplate from './components/DocumentTemplate.vue';
5
+ import 'element-plus/theme-chalk/index.css';
6
+ import aitmedTemplateRole from './utils/role.config';
7
+ import aitmedTemplateType from './utils/type.config';
8
+ declare const install: (app: App) => void;
9
+ export type { EditorJSON };
10
+ export { DocumentTemplate, useDocumentTemplateStore, aitmedTemplateRole, aitmedTemplateType, install };
11
+ declare const _default: {
12
+ install: (app: App<any>) => void;
13
+ };
14
+ export default _default;
@@ -1,64 +1,64 @@
1
- declare type HeaderType = "header1" | "header2" | "header3" | "header4" | "header5";
2
- declare type BaseType = HeaderType | "paragraph" | "divider";
3
- declare type SapcialType = "atblock" | "sharpblock" | "image" | "table" | "table-row" | "table-cell";
4
- declare type TextAlign = "left" | "right" | "center" | "justify";
5
- declare type EditorType = BaseType | SapcialType;
6
- interface EditorItemBase {
7
- style?: {
8
- width: string;
9
- height: string;
10
- [key: string]: any;
11
- };
12
- textAlign?: TextAlign;
13
- }
14
- interface CommonEditorItemBase<T extends EditorType> extends EditorItemBase {
15
- type: T;
16
- }
17
- interface AtblockEditorItem extends EditorItemBase {
18
- type: "atblock";
19
- value: string;
20
- key: string;
21
- }
22
- interface SharpblockEditorItem extends EditorItemBase {
23
- type: "sharpblock";
24
- value: string;
25
- key: string;
26
- choiceStr: string;
27
- }
28
- interface ImageEditorItem extends EditorItemBase {
29
- type: "image";
30
- src: string;
31
- alt: string;
32
- href?: "markable";
33
- }
34
- interface TableRowEditorItem extends EditorItemBase {
35
- type: "table-row";
36
- children: Array<TableCellEditorItem>;
37
- }
38
- interface TableEditorItem extends EditorItemBase {
39
- type: "table";
40
- width: string;
41
- key: string;
42
- children: Array<TableRowEditorItem>;
43
- }
44
- interface TableCellEditorItem extends EditorItemBase {
45
- type: "table-cell";
46
- isHeader: boolean;
47
- colSpan: number;
48
- rowSpan: number;
49
- width: string;
50
- children: Array<Text>;
51
- }
52
- declare type EditorItem<T extends EditorType> = T extends "atblock" ? AtblockEditorItem : T extends "sharpblock" ? SharpblockEditorItem : T extends "image" ? ImageEditorItem : T extends "table" ? TableEditorItem : T extends "table-row" ? TableRowEditorItem : T extends "table-cell" ? TableCellEditorItem : CommonEditorItemBase<T>;
53
- interface Text {
54
- text: string;
55
- }
56
- declare type EditorChildren = Array<{
57
- children: Text;
58
- } | Text>;
59
- declare type EditorJSONItem = EditorItem<EditorType> & {
60
- children: EditorChildren;
61
- };
62
- declare type EditorJSON = Array<EditorJSONItem>;
63
- export default EditorJSON;
64
- export { EditorItem, EditorJSONItem, EditorType, Text, EditorChildren };
1
+ declare type HeaderType = "header1" | "header2" | "header3" | "header4" | "header5";
2
+ declare type BaseType = HeaderType | "paragraph" | "divider";
3
+ declare type SapcialType = "atblock" | "sharpblock" | "image" | "table" | "table-row" | "table-cell";
4
+ declare type TextAlign = "left" | "right" | "center" | "justify";
5
+ declare type EditorType = BaseType | SapcialType;
6
+ interface EditorItemBase {
7
+ style?: {
8
+ width: string;
9
+ height: string;
10
+ [key: string]: any;
11
+ };
12
+ textAlign?: TextAlign;
13
+ }
14
+ interface CommonEditorItemBase<T extends EditorType> extends EditorItemBase {
15
+ type: T;
16
+ }
17
+ interface AtblockEditorItem extends EditorItemBase {
18
+ type: "atblock";
19
+ value: string;
20
+ key: string;
21
+ }
22
+ interface SharpblockEditorItem extends EditorItemBase {
23
+ type: "sharpblock";
24
+ value: string;
25
+ key: string;
26
+ choiceStr: string;
27
+ }
28
+ interface ImageEditorItem extends EditorItemBase {
29
+ type: "image";
30
+ src: string;
31
+ alt: string;
32
+ href?: "markable";
33
+ }
34
+ interface TableRowEditorItem extends EditorItemBase {
35
+ type: "table-row";
36
+ children: Array<TableCellEditorItem>;
37
+ }
38
+ interface TableEditorItem extends EditorItemBase {
39
+ type: "table";
40
+ width: string;
41
+ key: string;
42
+ children: Array<TableRowEditorItem>;
43
+ }
44
+ interface TableCellEditorItem extends EditorItemBase {
45
+ type: "table-cell";
46
+ isHeader: boolean;
47
+ colSpan: number;
48
+ rowSpan: number;
49
+ width: string;
50
+ children: Array<Text>;
51
+ }
52
+ declare type EditorItem<T extends EditorType> = T extends "atblock" ? AtblockEditorItem : T extends "sharpblock" ? SharpblockEditorItem : T extends "image" ? ImageEditorItem : T extends "table" ? TableEditorItem : T extends "table-row" ? TableRowEditorItem : T extends "table-cell" ? TableCellEditorItem : CommonEditorItemBase<T>;
53
+ interface Text {
54
+ text: string;
55
+ }
56
+ declare type EditorChildren = Array<{
57
+ children: Text;
58
+ } | Text>;
59
+ declare type EditorJSONItem = EditorItem<EditorType> & {
60
+ children: EditorChildren;
61
+ };
62
+ declare type EditorJSON = Array<EditorJSONItem>;
63
+ export default EditorJSON;
64
+ export { EditorItem, EditorJSONItem, EditorType, Text, EditorChildren };
package/dist/main.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};