@univerjs-pro/sheets-print 0.4.1 → 0.4.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/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;position:relative}.univer-sheets-print-mask{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;z-index:1010;pointer-events:none}.univer-sheets-print-limit{margin:var(--margin-base) auto;text-align:center}.univer-sheets-print-header{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:64px;padding-right:var(--padding-lg);padding-left:var(--padding-lg);background:rgb(var(--color-white));border-bottom:1px solid rgb(var(--border-color))}.univer-sheets-print-header-left{margin-left:var(--margin-xs);font-size:var(--font-size-lg);font-weight:500;font-style:normal;line-height:normal;color:rgb(var(--color-black))}.univer-sheets-print-header-right{position:relative}.univer-sheets-print-header-right :first-child{margin-right:var(--margin-xs)}.univer-sheets-print-content{overflow:hidden;display:flex;flex-direction:column;flex:1 1 0;flex-direction:row;box-sizing:border-box}.univer-sheets-print-content-preview{position:relative;overflow:hidden;flex:1 1 0;box-sizing:border-box;display:flex;flex-direction:column}.univer-sheets-print-content-preview-list{flex:1 1 0;overflow:auto;scrollbar-color:#73737366 transparent;scrollbar-gutter:stable;scrollbar-width:thin}.univer-sheets-print-content-preview-page{position:relative;flex:0 0 auto;margin:28px auto 0;background-color:rgb(var(--color-white));box-shadow:var(--box-shadow-lg)}.univer-sheets-print-content-preview-control{position:absolute;right:var(--margin-base);bottom:var(--margin-base);z-index:100}.univer-sheets-print-content-preview-control-item{cursor:pointer;z-index:100;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-top:var(--margin-xs);background-color:rgb(var(--color-white));border-radius:50%;box-shadow:var(--box-shadow-base)}.univer-sheets-print-content-setting{flex:0 0 auto;box-sizing:border-box;width:312px;height:100%;background:rgb(var(--color-white))}.univer-sheets-print-content-setting-form{padding:16px}
1
+ .univer-print-headfooter-editor-row{display:flex;margin:0 -4px}.univer-print-headfooter-editor-item{flex:1;margin:0 4px}.univer-print-headfooter-editor-bottom{display:flex;flex-direction:row;justify-content:flex-end}.univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;position:relative}.univer-sheets-print-mask{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;z-index:1010;pointer-events:none}.univer-sheets-print-limit{margin:var(--margin-base) auto;text-align:center}.univer-sheets-print-header{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:64px;padding-right:var(--padding-lg);padding-left:var(--padding-lg);background:rgb(var(--color-white));border-bottom:1px solid rgb(var(--border-color))}.univer-sheets-print-header-left{margin-left:var(--margin-xs);font-size:var(--font-size-lg);font-weight:500;font-style:normal;line-height:normal;color:rgb(var(--color-black))}.univer-sheets-print-header-right{position:relative}.univer-sheets-print-header-right :first-child{margin-right:var(--margin-xs)}.univer-sheets-print-content{overflow:hidden;display:flex;flex-direction:column;flex:1 1 0;flex-direction:row;box-sizing:border-box}.univer-sheets-print-content-preview{position:relative;overflow:hidden;flex:1 1 0;box-sizing:border-box;display:flex;flex-direction:column}.univer-sheets-print-content-preview-list{flex:1 1 0;overflow:auto;scrollbar-color:#73737366 transparent;scrollbar-gutter:stable;scrollbar-width:thin}.univer-sheets-print-content-preview-page{position:relative;flex:0 0 auto;margin:28px auto 0;background-color:rgb(var(--color-white));box-shadow:var(--box-shadow-lg)}.univer-sheets-print-content-preview-control{position:absolute;right:var(--margin-base);bottom:var(--margin-base);z-index:100}.univer-sheets-print-content-preview-control-item{cursor:pointer;z-index:100;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-top:var(--margin-xs);background-color:rgb(var(--color-white));border-radius:50%;box-shadow:var(--box-shadow-base)}.univer-sheets-print-content-setting{flex:0 0 auto;box-sizing:border-box;width:312px;height:100%;background:rgb(var(--color-white))}.univer-sheets-print-content-setting-form{padding:16px}
@@ -11,12 +11,12 @@
11
11
  "title": "Print",
12
12
  "screenshot": {
13
13
  "title": "Copy as picture",
14
- "success": "Picture successful saved to clipboard!",
15
- "fail": "Picture failed save to clipboard!"
14
+ "success": "Picture successfully saved to clipboard!",
15
+ "fail": "Picture failed to save to clipboard!"
16
16
  },
17
17
  "size": {
18
18
  "title": "Paper Size",
19
- "letter": "Letter (8.5\" x11\")",
19
+ "letter": "Letter (8.5\" x 11\")",
20
20
  "tabloid": "Tabloid (11\" x 17\")",
21
21
  "legal": "Legal (8.5\" x 14\")",
22
22
  "statement": "Statement (5.5\" x 8.5\")",
@@ -38,7 +38,10 @@
38
38
  "title": "Print",
39
39
  "currentSheet": "Current sheet",
40
40
  "workbook": "Workbook",
41
- "currentSelection": "Selected cells"
41
+ "currentSelection": "Selected cells",
42
+ "maxRowsEachPage": "Max rows per page",
43
+ "maxColumnsEachPage": "Max columns per page",
44
+ "limit": "Row & Column limit"
42
45
  },
43
46
  "selection": {
44
47
  "title": "Selection",
@@ -79,14 +82,46 @@
79
82
  },
80
83
  "headerFooter": {
81
84
  "title": "Headers & footers",
82
- "page": " Page numbers",
85
+ "page": "Page numbers",
83
86
  "workbook": "Workbook title",
84
87
  "sheet": "Sheet name",
85
88
  "date": "Current date",
86
- "time": "Current time"
89
+ "time": "Current time",
90
+ "customHeadFooter": "Custom header/footer",
91
+ "editCustomHeadFooter": "Edit custom header/footer",
92
+ "header": "Header",
93
+ "footer": "Footer",
94
+ "left": "Left",
95
+ "right": "Right",
96
+ "center": "Center",
97
+ "dateFormat": "Date format",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM/DD",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "hh:mm:ss",
105
+ "timeD": "hh:mm",
106
+ "display": {
107
+ "page": "PageBumber",
108
+ "title": "WorkbookTitle",
109
+ "sheet": "SheetName",
110
+ "dateA": "DateA",
111
+ "dateB": "DateB",
112
+ "dateC": "DateC",
113
+ "dateD": "DateD",
114
+ "dateE": "DateE",
115
+ "dateF": "DateF",
116
+ "timeA": "TimeA",
117
+ "timeB": "TimeB",
118
+ "timeC": "TimeC",
119
+ "timeD": "TimeD"
120
+ },
121
+ "placeholder": "Enter @ symbol, select built-in variables"
87
122
  },
88
123
  "freeze": {
89
- "title": " Row & column headers",
124
+ "title": "Row & column headers",
90
125
  "desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
91
126
  "row": "Repeat frozen rows",
92
127
  "column": "Repeat frozen columns"
@@ -38,7 +38,10 @@
38
38
  "title": "چاپ",
39
39
  "currentSheet": "برگه فعلی",
40
40
  "workbook": "کتاب کار",
41
- "currentSelection": "سلول های انتخاب شده"
41
+ "currentSelection": "سلول های انتخاب شده",
42
+ "maxRowsEachPage": "حداکثر سطر در هر صفحه",
43
+ "maxColumnsEachPage": "حداکثر ستون در هر صفحه",
44
+ "limit": "حداکثر سطر و ستون در هر صفحه"
42
45
  },
43
46
  "selection": {
44
47
  "title": "انتخاب",
@@ -83,7 +86,39 @@
83
86
  "workbook": "عنوان کتاب کار",
84
87
  "sheet": "عنوان برگه",
85
88
  "date": "تاریخ فعلی",
86
- "time": "زمان فعلی"
89
+ "time": "زمان فعلی",
90
+ "customHeadFooter": "سربرگ و پاورقی سفارشی",
91
+ "editCustomHeadFooter": "ویرایش سربرگ و پاورقی سفارشی",
92
+ "header": "سربرگ",
93
+ "footer": "پاورقی",
94
+ "left": "چپ",
95
+ "right": "راست",
96
+ "center": "مرکز",
97
+ "dateFormat": "فرمت تاریخ",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM/DD",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "hh:mm:ss",
105
+ "timeD": "hh:mm",
106
+ "display": {
107
+ "page": "شماره صفحه",
108
+ "title": "عنوان کتاب کار",
109
+ "sheet": "عنوان برگه",
110
+ "dateA": "MM/DD/YYYY",
111
+ "dateB": "MM/DD/YY",
112
+ "dateC": "DD/MM/YYYY",
113
+ "dateD": "DD/MM/YY",
114
+ "dateE": "YYYY-MM-DD",
115
+ "dateF": "MMM D, YYYY",
116
+ "timeA": "HH:mm:ss",
117
+ "timeB": "HH:mm",
118
+ "timeC": "hh:mm:ss",
119
+ "timeD": "hh:mm"
120
+ },
121
+ "placeholder": ""
87
122
  },
88
123
  "freeze": {
89
124
  "title": "سربرگ و پاورقی",
@@ -11,12 +11,12 @@
11
11
  "title": "Print",
12
12
  "screenshot": {
13
13
  "title": "Copy as picture",
14
- "success": "Picture successful saved to clipboard!",
15
- "fail": "Picture failed save to clipboard!"
14
+ "success": "Picture successfully saved to clipboard!",
15
+ "fail": "Picture failed to save to clipboard!"
16
16
  },
17
17
  "size": {
18
18
  "title": "Paper Size",
19
- "letter": "Letter (8.5\" x11\")",
19
+ "letter": "Letter (8.5\" x 11\")",
20
20
  "tabloid": "Tabloid (11\" x 17\")",
21
21
  "legal": "Legal (8.5\" x 14\")",
22
22
  "statement": "Statement (5.5\" x 8.5\")",
@@ -38,7 +38,10 @@
38
38
  "title": "Print",
39
39
  "currentSheet": "Current sheet",
40
40
  "workbook": "Workbook",
41
- "currentSelection": "Selected cells"
41
+ "currentSelection": "Selected cells",
42
+ "maxRowsEachPage": "Max rows per page",
43
+ "maxColumnsEachPage": "Max columns per page",
44
+ "limit": "Row & Column limit"
42
45
  },
43
46
  "selection": {
44
47
  "title": "Selection",
@@ -79,14 +82,46 @@
79
82
  },
80
83
  "headerFooter": {
81
84
  "title": "Headers & footers",
82
- "page": " Page numbers",
85
+ "page": "Page numbers",
83
86
  "workbook": "Workbook title",
84
87
  "sheet": "Sheet name",
85
88
  "date": "Current date",
86
- "time": "Current time"
89
+ "time": "Current time",
90
+ "customHeadFooter": "Custom header/footer",
91
+ "editCustomHeadFooter": "Edit custom header/footer",
92
+ "header": "Header",
93
+ "footer": "Footer",
94
+ "left": "Left",
95
+ "right": "Right",
96
+ "center": "Center",
97
+ "dateFormat": "Date format",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM/DD",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "hh:mm:ss",
105
+ "timeD": "hh:mm",
106
+ "display": {
107
+ "page": "PageBumber",
108
+ "title": "WorkbookTitle",
109
+ "sheet": "SheetName",
110
+ "dateA": "DateA",
111
+ "dateB": "DateB",
112
+ "dateC": "DateC",
113
+ "dateD": "DateD",
114
+ "dateE": "DateE",
115
+ "dateF": "DateF",
116
+ "timeA": "TimeA",
117
+ "timeB": "TimeB",
118
+ "timeC": "TimeC",
119
+ "timeD": "TimeD"
120
+ },
121
+ "placeholder": "Enter @ symbol, select built-in variables"
87
122
  },
88
123
  "freeze": {
89
- "title": " Row & column headers",
124
+ "title": "Row & column headers",
90
125
  "desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
91
126
  "row": "Repeat frozen rows",
92
127
  "column": "Repeat frozen columns"
@@ -11,12 +11,12 @@
11
11
  "title": "Print",
12
12
  "screenshot": {
13
13
  "title": "Copy as picture",
14
- "success": "Picture successful saved to clipboard!",
15
- "fail": "Picture failed save to clipboard!"
14
+ "success": "Picture successfully saved to clipboard!",
15
+ "fail": "Picture failed to save to clipboard!"
16
16
  },
17
17
  "size": {
18
18
  "title": "Paper Size",
19
- "letter": "Letter (8.5\" x11\")",
19
+ "letter": "Letter (8.5\" x 11\")",
20
20
  "tabloid": "Tabloid (11\" x 17\")",
21
21
  "legal": "Legal (8.5\" x 14\")",
22
22
  "statement": "Statement (5.5\" x 8.5\")",
@@ -38,7 +38,10 @@
38
38
  "title": "Print",
39
39
  "currentSheet": "Current sheet",
40
40
  "workbook": "Workbook",
41
- "currentSelection": "Selected cells"
41
+ "currentSelection": "Selected cells",
42
+ "maxRowsEachPage": "Max rows per page",
43
+ "maxColumnsEachPage": "Max columns per page",
44
+ "limit": "Row & Column limit"
42
45
  },
43
46
  "selection": {
44
47
  "title": "Selection",
@@ -79,14 +82,46 @@
79
82
  },
80
83
  "headerFooter": {
81
84
  "title": "Headers & footers",
82
- "page": " Page numbers",
85
+ "page": "Page numbers",
83
86
  "workbook": "Workbook title",
84
87
  "sheet": "Sheet name",
85
88
  "date": "Current date",
86
- "time": "Current time"
89
+ "time": "Current time",
90
+ "customHeadFooter": "Custom header/footer",
91
+ "editCustomHeadFooter": "Edit custom header/footer",
92
+ "header": "Header",
93
+ "footer": "Footer",
94
+ "left": "Left",
95
+ "right": "Right",
96
+ "center": "Center",
97
+ "dateFormat": "Date format",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM/DD",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "hh:mm:ss",
105
+ "timeD": "hh:mm",
106
+ "display": {
107
+ "page": "PageBumber",
108
+ "title": "WorkbookTitle",
109
+ "sheet": "SheetName",
110
+ "dateA": "DateA",
111
+ "dateB": "DateB",
112
+ "dateC": "DateC",
113
+ "dateD": "DateD",
114
+ "dateE": "DateE",
115
+ "dateF": "DateF",
116
+ "timeA": "TimeA",
117
+ "timeB": "TimeB",
118
+ "timeC": "TimeC",
119
+ "timeD": "TimeD"
120
+ },
121
+ "placeholder": "Enter @ symbol, select built-in variables"
87
122
  },
88
123
  "freeze": {
89
- "title": " Row & column headers",
124
+ "title": "Row & column headers",
90
125
  "desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
91
126
  "row": "Repeat frozen rows",
92
127
  "column": "Repeat frozen columns"
@@ -38,7 +38,10 @@
38
38
  "title": "打印范围",
39
39
  "currentSheet": "当前工作表",
40
40
  "workbook": "工作簿",
41
- "currentSelection": "已选范围"
41
+ "currentSelection": "已选范围",
42
+ "maxRowsEachPage": "每页最大行数",
43
+ "maxColumnsEachPage": "每页最大列数",
44
+ "limit": "行和列限制"
42
45
  },
43
46
  "selection": {
44
47
  "title": "选择",
@@ -83,7 +86,39 @@
83
86
  "workbook": "工作簿标题",
84
87
  "sheet": "工作簿名称",
85
88
  "date": "当前日期",
86
- "time": "当前时间"
89
+ "time": "当前时间",
90
+ "customHeadFooter": "自定义页眉页脚",
91
+ "editCustomHeadFooter": "编辑自定义页眉页脚",
92
+ "header": "页眉",
93
+ "footer": "页脚",
94
+ "left": "左",
95
+ "right": "中",
96
+ "center": "右",
97
+ "dateFormat": "日期格式",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM月DD日",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "LTS",
105
+ "timeD": "LT",
106
+ "display": {
107
+ "page": "页码",
108
+ "title": "工作簿标题",
109
+ "sheet": "工作簿名称",
110
+ "dateA": "日期1",
111
+ "dateB": "日期2",
112
+ "dateC": "日期3",
113
+ "dateD": "日期4",
114
+ "dateE": "日期5",
115
+ "dateF": "日期6",
116
+ "timeA": "时间1",
117
+ "timeB": "时间2",
118
+ "timeC": "时间3",
119
+ "timeD": "时间4"
120
+ },
121
+ "placeholder": "输入@符号,选择内置变量"
87
122
  },
88
123
  "freeze": {
89
124
  "title": "行标题与列标题",
@@ -11,12 +11,12 @@
11
11
  "title": "Print",
12
12
  "screenshot": {
13
13
  "title": "Copy as picture",
14
- "success": "Picture successful saved to clipboard!",
15
- "fail": "Picture failed save to clipboard!"
14
+ "success": "Picture successfully saved to clipboard!",
15
+ "fail": "Picture failed to save to clipboard!"
16
16
  },
17
17
  "size": {
18
18
  "title": "Paper Size",
19
- "letter": "Letter (8.5\" x11\")",
19
+ "letter": "Letter (8.5\" x 11\")",
20
20
  "tabloid": "Tabloid (11\" x 17\")",
21
21
  "legal": "Legal (8.5\" x 14\")",
22
22
  "statement": "Statement (5.5\" x 8.5\")",
@@ -38,7 +38,10 @@
38
38
  "title": "Print",
39
39
  "currentSheet": "Current sheet",
40
40
  "workbook": "Workbook",
41
- "currentSelection": "Selected cells"
41
+ "currentSelection": "Selected cells",
42
+ "maxRowsEachPage": "Max rows per page",
43
+ "maxColumnsEachPage": "Max columns per page",
44
+ "limit": "Row & Column limit"
42
45
  },
43
46
  "selection": {
44
47
  "title": "Selection",
@@ -79,14 +82,46 @@
79
82
  },
80
83
  "headerFooter": {
81
84
  "title": "Headers & footers",
82
- "page": " Page numbers",
85
+ "page": "Page numbers",
83
86
  "workbook": "Workbook title",
84
87
  "sheet": "Sheet name",
85
88
  "date": "Current date",
86
- "time": "Current time"
89
+ "time": "Current time",
90
+ "customHeadFooter": "Custom header/footer",
91
+ "editCustomHeadFooter": "Edit custom header/footer",
92
+ "header": "Header",
93
+ "footer": "Footer",
94
+ "left": "Left",
95
+ "right": "Right",
96
+ "center": "Center",
97
+ "dateFormat": "Date format",
98
+ "dateA": "YYYY-MM-DD",
99
+ "dateB": "MM-DD",
100
+ "dateC": "L",
101
+ "dateD": "MM/DD",
102
+ "timeA": "HH:mm:ss",
103
+ "timeB": "HH:mm",
104
+ "timeC": "hh:mm:ss",
105
+ "timeD": "hh:mm",
106
+ "display": {
107
+ "page": "PageBumber",
108
+ "title": "WorkbookTitle",
109
+ "sheet": "SheetName",
110
+ "dateA": "DateA",
111
+ "dateB": "DateB",
112
+ "dateC": "DateC",
113
+ "dateD": "DateD",
114
+ "dateE": "DateE",
115
+ "dateF": "DateF",
116
+ "timeA": "TimeA",
117
+ "timeB": "TimeB",
118
+ "timeC": "TimeC",
119
+ "timeD": "TimeD"
120
+ },
121
+ "placeholder": "Enter @ symbol, select built-in variables"
87
122
  },
88
123
  "freeze": {
89
- "title": " Row & column headers",
124
+ "title": "Row & column headers",
90
125
  "desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
91
126
  "row": "Repeat frozen rows",
92
127
  "column": "Repeat frozen columns"
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
9
9
  "7": string;
10
10
  "8": string;
11
11
  "9": string;
12
- Y: string;
13
- l: string;
14
- D: string;
15
- W: string;
16
- m: string;
17
- F: string;
18
- q: string;
19
- h: string;
20
- L: string;
21
- s: string;
22
12
  v: string;
23
- M: string;
24
- P: string;
25
- J: string;
26
- r: string;
27
- w: string;
28
- C: string;
13
+ F: string;
14
+ n: string;
29
15
  x: string;
30
- H: string;
31
- X: string;
32
- b: string;
33
- c: string;
34
- U: string;
16
+ p: string;
17
+ z: string;
18
+ O: string;
19
+ g: string;
20
+ W: string;
35
21
  A: string;
36
- d: string;
37
- E: string;
38
- V: string;
39
- i: string;
40
22
  f: string;
41
23
  e: string;
42
- N: string;
43
- B: string;
44
- T: string;
24
+ U: string;
25
+ i: string;
45
26
  S: string;
27
+ h: string;
28
+ D: string;
29
+ Z: string;
30
+ L: string;
31
+ H: string;
32
+ J: string;
33
+ d: string;
34
+ c: string;
35
+ r: string;
36
+ q: string;
37
+ j: string;
46
38
  Q: string;
39
+ s: string;
40
+ B: string;
41
+ M: string;
42
+ b: string;
43
+ I: string;
44
+ R: string;
45
+ Y: string;
46
+ m: string;
47
+ C: string;
48
+ T: string;
49
+ E: string;
50
+ k: string;
47
51
  K: string;
48
- O: string;
49
- G: string;
50
- u: string;
51
- p: string;
52
- z: string;
53
- n: string;
54
52
  o: string;
55
- g: string;
56
- j: string;
57
- a: string;
58
- I: string;
59
- t: string;
53
+ N: string;
54
+ u: string;
55
+ P: string;
60
56
  y: string;
61
- Z: string;
62
- k: string;
63
- R: string;
57
+ V: string;
58
+ l: string;
59
+ t: string;
60
+ w: string;
61
+ G: string;
62
+ a: string;
63
+ X: string;
64
64
  };
@@ -12,6 +12,14 @@ export declare enum PrintHeaderFooter {
12
12
  Date = "Date",
13
13
  Time = "Time"
14
14
  }
15
+ export interface IPrintHeaderFooter {
16
+ topLeft: string;
17
+ topCenter: string;
18
+ topRight: string;
19
+ bottomLeft: string;
20
+ bottomCenter: string;
21
+ bottomRight: string;
22
+ }
15
23
  export declare enum PrintFreeze {
16
24
  Row = "Row",
17
25
  Column = "Column"
@@ -32,10 +40,29 @@ export interface ISheetPrintLayoutConfig {
32
40
  w: number;
33
41
  h: number;
34
42
  };
43
+ maxRowsEachPage: number;
44
+ maxColumnsEachPage: number;
35
45
  }
36
46
  export interface ISheetPrintRenderConfig {
37
47
  gridlines: boolean;
38
48
  hAlign: PrintAlign;
39
49
  vAlign: PrintAlign;
40
50
  headerFooter: PrintHeaderFooter[];
51
+ headerFooterSetting: IPrintHeaderFooter;
52
+ isCustomHeaderFooter?: boolean;
53
+ }
54
+ export declare enum PrintHeaderFooterSymbol {
55
+ WorkbookTitle = "@WorkbookTitle",
56
+ WorksheetTitle = "@WorksheetTitle",
57
+ DateA = "@DateA",
58
+ DateB = "@DateB",
59
+ DateC = "@DateC",
60
+ DateD = "@DateD",
61
+ DateE = "@DateE",
62
+ TimeA = "@TimeA",
63
+ TimeB = "@TimeB",
64
+ TimeC = "@TimeC",
65
+ TimeD = "@TimeD",
66
+ Page = "@Page"
41
67
  }
68
+ export declare const defaultHeaderFooter: IPrintHeaderFooter;
@@ -1 +1 @@
1
- export declare const getLsInfoFuncStr = "vAx1UPHx 3s1ciXUPHx(wP1sx6s, XALwP1usi) { 1Hx6U wP1sx6sOxvHohcUecchi = wP1sx6s.6XwPU('-'); 1Hx6U HcP7Pxps66h7s = Ganz.Xhc6s(hUHL(wP1sx6sOxvHohcUecchi[D])); Pv (!HcP7Pxps66h7s.A3) { HcP7Pxps66h7s.A3 = zACLsc(wP1sx6sOxvHohcUecchi[W]); } 1Hx6U P6ZHcrsc = UiXsHv ZHcrscQwHLhwa1HXs !== 'Ax3svPxs3' && 6swv Px6Uhx1sHv ZHcrscQwHLhwa1HXs; 1Hx6U 1HxUsVU = P6ZHcrsc ? 6swv : EPx3HE; 1Hx6U Cs66h7sZHc3 = 1HxUsVU.__Nh6s4W__.Xhc6s(wP1sx6sOxvHohcUecchi[D]); 1Hx6U Cs66h7s = 1HxUsVU.__KsV__.6UcPx7Pvi(Cs66h7sZHc3); 1Hx6U 6P7xhUAcsZHc3 = 1HxUsVU.__Nh6s4W__.Xhc6s(wP1sx6sOxvHohcUecchi[2]); 1Hx6U 6P7xhUAcs = 1HxUsVU.__KsV__.6UcPx7Pvi(6P7xhUAcsZHc3); 1Hx6U 6P7xyhwP3 = 1HxUsVU.__dscPvi__(6P7xhUAcs, Cs66h7s, XALwP1usi); 1Hx6U 3HChPx = HcP7Pxps66h7s.3C; vAx1UPHx P6THChPxphU1MPx7(HohUUscx, HKH6U) { 1Hx6U XhUUscx = HohUUscx.csXwh1s(/^.+/, ''); 1Hx6U MH6U = HKH6U.csXwh1s(/^.+/, ''); 1Hx6U XhUUscxohcU6 = XhUUscx.6XwPU('.'); 1Hx6U MH6UohcU6 = MH6U.6XwPU('.'); Pv (!XhUUscx.Px1wA3s6('*')) { csUAcx XhUUscx === MH6U; } Pv (XhUUscxohcU6.wsx7UM < D || XhUUscxohcU6[Y] !== '*') { csUAcx vhw6s; } 1Hx6U XhUUscxaAvvPV = XhUUscxohcU6.6wP1s(l).JHPx('.'); 1Hx6U MH6UaAvvPV = MH6UohcU6.6wP1s(-XhUUscxohcU6.wsx7UM + l).JHPx('.'); csUAcx XhUUscxaAvvPV === MH6UaAvvPV; } wsU 3HChPxyhwP3 = 3HChPx?.wsx7UM ? 3HChPx.6HCs((3COUsC) => P6THChPxphU1MPx7(3COUsC, wH1hUPHx.MH6UxhCs)) : UcAs; Pv (wH1hUPHx.MH6UxhCs === 'wH1hwMH6U') { 3HChPxyhwP3 = UcAs; } 1Hx6U dhwP3 = 6P7xyhwP3 && 3HChPxyhwP3; csUAcx { dhwP3, Cs66h7s: HcP7Pxps66h7s, };}";
1
+ export declare const getLsInfoFuncStr = "eq7Wr6L7 AfWdsHr6L7(D6Wf7cf, HqgD6Wkfs) { WL7cr D6Wf7cfT7eLuOdrMddOs = D6Wf7cf.cHD6r('-'); WL7cr Ld6U67KfccOUf = EVNo.HOdcf(OrLg(D6Wf7cfT7eLuOdrMddOs[n])); 6e (!Ld6U67KfccOUf.qA) { Ld6U67KfccOUf.qA = oqZgfd(D6Wf7cfT7eLuOdrMddOs[9]); } WL7cr 6cwLdhfd = rsHfLe wLdhfd4DLgODVWLHf !== 'q7Afe67fA' && cfDe 67crO7WfLe wLdhfd4DLgODVWLHf; WL7cr WL7rfQr = 6cwLdhfd ? cfDe : 167AL1; WL7cr ZfccOUfwLdA = WL7rfQr.__bOcf89__.HOdcf(D6Wf7cfT7eLuOdrMddOs[n]); WL7cr ZfccOUf = WL7rfQr.__CfQ__.crd67U6es(ZfccOUfwLdA); WL7cr c6U7OrqdfwLdA = WL7rfQr.__bOcf89__.HOdcf(D6Wf7cfT7eLuOdrMddOs[5]); WL7cr c6U7Orqdf = WL7rfQr.__CfQ__.crd67U6es(c6U7OrqdfwLdA); WL7cr c6U7tOD6A = WL7rfQr.__jfd6es__(c6U7Orqdf, ZfccOUf, HqgD6Wkfs); WL7cr ALZO67 = Ld6U67KfccOUf.AZ; eq7Wr6L7 6cRLZO67KOrWi67U(LuOrrfd7, LCLcr) { WL7cr HOrrfd7 = LuOrrfd7.dfHDOWf(/^.+/, ''); WL7cr iLcr = LCLcr.dfHDOWf(/^.+/, ''); WL7cr HOrrfd7uOdrc = HOrrfd7.cHD6r('.'); WL7cr iLcruOdrc = iLcr.cHD6r('.'); 6e (!HOrrfd7.67WDqAfc('*')) { dfrqd7 HOrrfd7 === iLcr; } 6e (HOrrfd7uOdrc.Df7Uri < n || HOrrfd7uOdrc[v] !== '*') { dfrqd7 eODcf; } WL7cr HOrrfd7Vqee6Q = HOrrfd7uOdrc.cD6Wf(F).SL67('.'); WL7cr iLcrVqee6Q = iLcruOdrc.cD6Wf(-HOrrfd7uOdrc.Df7Uri + F).SL67('.'); dfrqd7 HOrrfd7Vqee6Q === iLcrVqee6Q; } Dfr ALZO67tOD6A = ALZO67?.Df7Uri ? ALZO67.cLZf((AZTrfZ) => 6cRLZO67KOrWi67U(AZTrfZ, DLWOr6L7.iLcr7OZf)) : rdqf; 6e (DLWOr6L7.iLcr7OZf === 'DLWODiLcr') { ALZO67tOD6A = rdqf; } WL7cr jOD6A = c6U7tOD6A && ALZO67tOD6A; dfrqd7 { jOD6A, ZfccOUf: Ld6U67KfccOUf, };}";
@@ -1,5 +1,5 @@
1
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
- import { ComponentManager, IGlobalZoneService, IMenuManagerService } from '@univerjs/ui';
2
+ import { ComponentManager, IGlobalZoneService, IMenuManagerService, IShortcutService } from '@univerjs/ui';
3
3
  import { SheetPrintClientService } from '../services/sheet-print.service';
4
4
  import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
5
5
  export declare class SheetPrintController extends Disposable {
@@ -9,9 +9,12 @@ export declare class SheetPrintController extends Disposable {
9
9
  private readonly _sheetPrintClientService;
10
10
  private readonly _componentManager;
11
11
  protected readonly _menuManagerService: IMenuManagerService;
12
- constructor(_printService: IGlobalZoneService, _commandService: ICommandService, _sheetPrintManagerService: ISheetPrintManagerService, _sheetPrintClientService: SheetPrintClientService, _componentManager: ComponentManager, _menuManagerService: IMenuManagerService);
12
+ private readonly _shortcutService;
13
+ constructor(_printService: IGlobalZoneService, _commandService: ICommandService, _sheetPrintManagerService: ISheetPrintManagerService, _sheetPrintClientService: SheetPrintClientService, _componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService);
13
14
  private _initialize;
15
+ private _initCommands;
14
16
  private _initComponents;
17
+ private _initShortcuts;
15
18
  private _initMenus;
16
19
  private _initConfigChangeListener;
17
20
  private _print;
@@ -39,6 +39,9 @@ declare const locales: {
39
39
  currentSheet: string;
40
40
  workbook: string;
41
41
  currentSelection: string;
42
+ maxRowsEachPage: string;
43
+ maxColumnsEachPage: string;
44
+ limit: string;
42
45
  };
43
46
  selection: {
44
47
  title: string;
@@ -84,6 +87,38 @@ declare const locales: {
84
87
  sheet: string;
85
88
  date: string;
86
89
  time: string;
90
+ customHeadFooter: string;
91
+ editCustomHeadFooter: string;
92
+ header: string;
93
+ footer: string;
94
+ left: string;
95
+ right: string;
96
+ center: string;
97
+ dateFormat: string;
98
+ dateA: string;
99
+ dateB: string;
100
+ dateC: string;
101
+ dateD: string;
102
+ timeA: string;
103
+ timeB: string;
104
+ timeC: string;
105
+ timeD: string;
106
+ display: {
107
+ page: string;
108
+ title: string;
109
+ sheet: string;
110
+ dateA: string;
111
+ dateB: string;
112
+ dateC: string;
113
+ dateD: string;
114
+ dateE: string;
115
+ dateF: string;
116
+ timeA: string;
117
+ timeB: string;
118
+ timeC: string;
119
+ timeD: string;
120
+ };
121
+ placeholder: string;
87
122
  };
88
123
  freeze: {
89
124
  title: string;