Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

xiugai

tonytonychopper1237d3af1805f73
diff --git a/packages/base-ui/src/Basics/Shared/Clipboard.ts b/packages/base-ui/src/Basics/Shared/Clipboard.ts
index 979ce3fbc9..7c05429282 100644
--- a/packages/base-ui/src/Basics/Shared/Clipboard.ts
+++ b/packages/base-ui/src/Basics/Shared/Clipboard.ts
@@ -1,3 +1,98 @@
+// import { PasteType } from '../Interfaces/PasteType';
+
+// export type ClipboardType = {
+// type?: 'text/html' | 'text/plain' | 'image/png';
+// data: string;
+// };
+
+// export class Clipboard {
+// static clipboard = window.navigator.clipboard;
+
+// static textArea: HTMLTextAreaElement;
+
+// static async writeText(text: string, e?: ClipboardEvent) {
+// if (Clipboard.clipboard) {
+// return Clipboard.clipboard.writeText(text).then(
+// () => true,
+// (err) => console.dir(err)
+// );
+// }
+
+// e?.clipboardData?.setData('text/html', text);
+// }
+
+// static async write(data: ClipboardType, e?: ClipboardEvent) {
+// if (Clipboard.clipboard) {
+// const blob = new Blob([data.data], { type: data.type ?? 'text/html' });
+// const clipboardData = [new ClipboardItem({ 'text/html': blob })];
+
+// return Clipboard.clipboard.write(clipboardData).then(
+// () => true,
+// () => false
+// );
+// }
+
+// e?.clipboardData?.setData(data.type ?? 'text/html', data.data);
+// }
+
+// static async readText() {
+// if (Clipboard.clipboard) {
+// return Clipboard.clipboard.readText().then(
+// (text) => text,
+// () => null
+// );
+// }
+// if (!Clipboard.textArea) return null;
+// return new Promise((resolve, reject) => {
+// resolve(Clipboard.textArea.value);
+// })
+// .then((text) => text)
+// .then(() => null);
+// }
+
+// static async read(e?: ClipboardEvent): Promise<Array<PasteType | null> | null> {
+// if (Clipboard.clipboard) {
+// const clipboardItems = await Clipboard.clipboard.read();
+// const Promises: Array<Promise<PasteType | null>> = [];
+// for (const clipboardItem of clipboardItems) {
+// for (const type of clipboardItem.types) {
+// const blob = await clipboardItem.getType(type);
+// const reader = new FileReader();
+// if (type === 'image/png') {
+// reader.readAsDataURL(blob);
+// } else {
+// reader.readAsText(blob);
+// }
+// const promise: Promise<PasteType | null> = new Promise((resolve: (value: PasteType) => void, reject) => {
+// reader.onload = (e) => {
+// const item: PasteType = { type, result: reader.result };
+// resolve(item);
+// };
+// }).then(
+// (res) => res,
+// () => null
+// );
+// Promises.push(promise);
+// }
+// }
+// return Promise.all(Promises);
+// }
+
+// const result = [];
+// const clipboardData = e?.clipboardData;
+// const types = clipboardData?.types;
+// if (!types) return null;
+// for (let i = 0; i < types.length; i++) {
+// result.push({
+// type: types[i],
+// result: clipboardData.getData(types[i]),
+// });
+// }
+// return result;
+// }
+// }
+
+import { Nullable } from '@univerjs/core';
import { PasteType } from '../Interfaces/PasteType';
export type ClipboardType = {
@@ -10,6 +105,8 @@ export class Clipboard {
static textArea: HTMLTextAreaElement;
+ static localData: Nullable<string>;
+
static async writeText(text: string, e?: ClipboardEvent) {
if (Clipboard.clipboard) {
return Clipboard.clipboard.writeText(text).then(
@@ -19,6 +116,7 @@ export class Clipboard {
}
e?.clipboardData?.setData('text/html', text);
+ e?.preventDefault();
}
static async write(data: ClipboardType, e?: ClipboardEvent) {
@@ -26,13 +124,15 @@ export class Clipboard {
const blob = new Blob([data.data], { type: data.type ?? 'text/html' });
const clipboardData = [new ClipboardItem({ 'text/html': blob })];
- return Clipboard.clipboard.write(clipboardData).then(
- () => true,
- () => false
- );
+ // return Clipboard.clipboard.write(clipboardData).then(
+ // () => true,
+ // () => false
+ // );
+ Clipboard.clipboard.write(clipboardData);
}
-
e?.clipboardData?.setData(data.type ?? 'text/html', data.data);
+ e?.preventDefault();
+ Clipboard.localData = data.data;
}
static async readText() {
@@ -50,7 +150,21 @@ export class Clipboard {
.then(() => null);
}
- static async read(e?: ClipboardEvent): Promise<Array<PasteType | null> | null> {
+ static async read(e?: ClipboardEvent): Promise<Array<PasteType | null> | null | string> {
+ if (e) {
+ const result = [];
+ const clipboardData = e?.clipboardData;
+ const types = clipboardData?.types;
+ if (!types) return null;
+ for (let i = 0; i < types.length; i++) {
+ result.push({
+ type: types[i],
+ result: clipboardData.getData(types[i]),
+ });
+ }
+ return result;
+ }
+
if (Clipboard.clipboard) {
const clipboardItems = await Clipboard.clipboard.read();
const Promises: Array<Promise<PasteType | null>> = [];
@@ -78,16 +192,9 @@ export class Clipboard {
return Promise.all(Promises);
}
- const result = [];
- const clipboardData = e?.clipboardData;
- const types = clipboardData?.types;
- if (!types) return null;
- for (let i = 0; i < types.length; i++) {
- result.push({
- type: types[i],
- result: clipboardData.getData(types[i]),
- });
- }
+ const result = Clipboard.localData ?? null;
+ Clipboard.localData = null;
+
return result;
}
}
diff --git a/packages/base-ui/src/Components/Drag/Drag.tsx b/packages/base-ui/src/Components/Drag/Drag.tsx
index 10695b236e..23375c40dc 100644
--- a/packages/base-ui/src/Components/Drag/Drag.tsx
+++ b/packages/base-ui/src/Components/Drag/Drag.tsx
@@ -42,20 +42,28 @@ class Drag extends Component<BaseDragProps, IState> {
}
onMouseDown(e: MouseEvent) {
+ // e.stopPropagation();
// if (!((e.target as Element).className === styles.drag)) return;
- window.addEventListener('mousemove', this.onMouseMove);
let offsetX = e.offsetX;
let offsetY = e.offsetY;
- this.setState({
- offsetX,
- offsetY,
- });
+ this.setState(
+ {
+ offsetX,
+ offsetY,
+ },
+ () => {
+ window.addEventListener('mousemove', this.onMouseMove);
+ }
+ );
}
onMouseMove = (e: MouseEvent) => {
+ // e.stopPropagation();
let offsetX = this.state.offsetX;
let offsetY = this.state.offsetY;
+ // if (e.x === offsetX && e.y === offsetY) return;
+
let x = e.x;
let y = e.y;
diff --git a/packages/base-ui/src/Components/Prompt/Prompt.tsx b/packages/base-ui/src/Components/Prompt/Prompt.tsx
index 001bfe705d..dfaf66734d 100644
--- a/packages/base-ui/src/Components/Prompt/Prompt.tsx
+++ b/packages/base-ui/src/Components/Prompt/Prompt.tsx
@@ -61,8 +61,8 @@ export class Prompt extends Component<BaseConfirmProps, IState> {
const { show } = this.state;
return (
<div className={styles.confirmModal}>
- <Modal visible={show} isDrag={true} title={title} group={this.getGroup()}>
- {content}
+ <Modal visible={show} isDrag={true} title={this.getLocale(title)} group={this.getGroup()}>
+ {this.getLocale(content)}
</Modal>
</div>
);
diff --git a/packages/base-ui/src/Helpers/Cell.ts b/packages/base-ui/src/Helpers/Cell.ts
index 2858fd6456..62ec09525a 100644
--- a/packages/base-ui/src/Helpers/Cell.ts
+++ b/packages/base-ui/src/Helpers/Cell.ts
@@ -124,11 +124,13 @@ export function handleDomToJson($dom: HTMLElement): IDocumentData | string {
* @param $dom
* @returns
*/
-export function handleStringToStyle($dom: HTMLElement) {
- const cssText = $dom.style.cssText;
+export function handleStringToStyle($dom: HTMLElement, cssStyle: string = '') {
+ let cssText = $dom.style.cssText ?? '';
+ cssText += cssStyle;
if (cssText == null || cssText.length === 0) {
return {};
}
+ cssText += cssStyle;
let cssTextArray = cssText.split(';');
let styleList: IStyleData = {};
cssTextArray.forEach((s) => {
@@ -366,7 +368,7 @@ export function handleStringToStyle($dom: HTMLElement) {
styleList.bd.r!.cl.rgb = value;
}
- if (key === 'border-bottom' || key === 'border-top' || key === 'border-left' || key === 'border-right') {
+ if (key === 'border-bottom' || key === 'border-top' || key === 'border-left' || key === 'border-right' || key === 'border') {
if (!styleList.bd) {
styleList.bd = {};
}
@@ -388,6 +390,13 @@ export function handleStringToStyle($dom: HTMLElement) {
styleList.bd.l = obj;
} else if (key === 'border-right') {
styleList.bd.r = obj;
+ } else if (key === 'border') {
+ styleList.bd = {
+ r: obj,
+ t: obj,
+ b: obj,
+ l: obj,
+ };
}
}
@@ -511,16 +520,10 @@ export function handelTableToJson(table: string) {
}
if (data[r][c] == null) {
data[r][c] = cell;
- let rowSpan = Number(td.getAttribute('rowSpan'));
- let colSpan = Number(td.getAttribute('colSpan'));
- if (Number.isNaN(rowSpan)) {
- rowSpan = 1;
- }
- if (Number.isNaN(colSpan)) {
- colSpan = 1;
- }
+ let rowSpan = td.getAttribute('rowSpan') ?? 1;
+ let colSpan = td.getAttribute('colSpan') ?? 1;
if (rowSpan > 1 || colSpan > 1) {
- let first = { rs: rowSpan - 1, cs: colSpan - 1, r, c };
+ let first = { rs: +rowSpan - 1, cs: +colSpan - 1, r, c };
data[r][c].mc = first;
for (let rp = 0; rp < rowSpan; rp++) {
for (let cp = 0; cp < colSpan; cp++) {
@@ -611,3 +614,107 @@ export function handleTableMergeData(data: any[], selection?: IRangeData) {
mergeData,
};
}
+
+export function handelExcelToJson(html: string) {
+ let data: any[] = [];
+ const content = document.createElement('html');
+ content.innerHTML = html;
+ const styleText = content.querySelector('style')?.innerText;
+ if (!styleText) return;
+ const excelStyle = getStyles(styleText);
+
+ data = new Array(content.querySelectorAll('table tr').length);
+ if (!data.length) return [];
+ let colLen = 0;
+ const trs = content.querySelectorAll('table tr');
+ const firstTds = trs[0].querySelectorAll('td');
+ firstTds.forEach((item: HTMLTableCellElement) => {
+ let colSpan = 0;
+ const attr = item.getAttribute('colSpan');
+ if (attr !== null) {
+ colSpan = +attr;
+ } else {
+ colSpan = 1;
+ }
+ colLen += colSpan;
+ });
+ for (let i = 0; i < data.length; i++) {
+ data[i] = new Array(colLen);
+ }
+ let r = 0;
+ trs.forEach((item: any) => {
+ let c = 0;
+ item.querySelectorAll('td').forEach((td: HTMLTableCellElement) => {
+ let cell: ICellData = {};
+ if (td.querySelectorAll('span').length || td.querySelectorAll('font').length) {
+ const spanStyle = handleDomToJson(td);
+ if (typeof spanStyle !== 'string') {
+ cell.p = spanStyle;
+ }
+ }
+ let txt = td.innerText;
+ if (txt.trim().length === 0) {
+ cell.v = '';
+ cell.m = '';
+ } else {
+ // Todo,处理格式
+ cell.v = txt;
+ cell.m = txt;
+ }
+
+ let cssText = '';
+ for (let attr in excelStyle) {
+ if (td.classList.contains(attr)) {
+ cssText += excelStyle[attr];
+ }
+ }
+ const style = handleStringToStyle(td, cssText);
+
+ if (Tools.isPlainObject(style)) {
+ cell.s = style;
+ }
+ while (c < colLen && data[r][c] != null) {
+ c++;
+ }
+ if (c === colLen) {
+ return;
+ }
+ if (data[r][c] == null) {
+ data[r][c] = cell;
+ let rowSpan = td.getAttribute('rowSpan') ?? 1;
+ let colSpan = td.getAttribute('colSpan') ?? 1;
+
+ if (rowSpan > 1 || colSpan > 1) {
+ let first = { rs: +rowSpan - 1, cs: +colSpan - 1, r, c };
+ data[r][c].mc = first;
+ for (let rp = 0; rp < rowSpan; rp++) {
+ for (let cp = 0; cp < colSpan; cp++) {
+ if (rp === 0 && cp === 0) {
+ continue;
+ }
+ data[r + rp][c + cp] = { mc: null };
+ }
+ }
+ }
+ }
+ c++;
+ });
+ r++;
+ });
+
+ return data;
+}
+
+function getStyles(styleText: string) {
+ let output = {};
+ const string = styleText.slice(5, -4);
+ const style = string?.replaceAll('\t', '').replaceAll('\n', '').split('}');
+ for (let i = 0; i < style.length; i++) {
+ if (!style[i]) continue;
+ const attr = style[i].split('{')[0].trim().slice(1);
+ const value = style[i].split('{')[1].trim();
+ output[attr] = value;
+ }
+
+ return output;
+}
diff --git a/packages/common-plugin-data/src/Sheets/Demo/DEFAULT_WORKBOOK_DATA_DEMO.ts b/packages/common-plugin-data/src/Sheets/Demo/DEFAULT_WORKBOOK_DATA_DEMO.ts
index 0a2ae6266f..472219ee6a 100644
--- a/packages/common-plugin-data/src/Sheets/Demo/DEFAULT_WORKBOOK_DATA_DEMO.ts
+++ b/packages/common-plugin-data/src/Sheets/Demo/DEFAULT_WORKBOOK_DATA_DEMO.ts
@@ -285,7 +285,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
},
qFGJGc: {
@@ -307,7 +307,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
fs: 20,
},
@@ -330,25 +330,25 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
fs: 20,
bl: 1,
},
KT84dD: {
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
},
qDQuhZ: {
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
ht: 2,
},
'4C9ySZ': {
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
ht: 2,
vt: 2,
@@ -380,7 +380,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
fs: 20,
bl: 1,
@@ -430,7 +430,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
fs: 20,
bl: 1,
@@ -457,7 +457,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
KrPXyW: {
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
ht: 2,
vt: 2,
@@ -484,7 +484,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
f9cBiW: {
bg: {
- rgb: 'rgba(237,125,49)',
+ rgb: 'rgb(237,125,49)',
},
ht: 2,
vt: 2,
@@ -804,7 +804,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
aA37LW: {
@@ -831,7 +831,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
ht: 2,
vt: 2,
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
AeAego: {
@@ -858,7 +858,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
ht: 2,
vt: 2,
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
YYhEgD: {
@@ -879,7 +879,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
qdFDeG: {
@@ -1496,7 +1496,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
ht: 2,
vt: 2,
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
khtUqL: {
@@ -1511,7 +1511,7 @@ export const DEFAULT_WORKBOOK_DATA_DEMO: IWorkbookConfig = {
},
},
bg: {
- rgb: 'rgba(177,166,223)',
+ rgb: 'rgb(177,166,223)',
},
},
'-4GCh_': {
diff --git a/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts
index 4458280d55..e13d7a552e 100644
--- a/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts
+++ b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts
@@ -1,6 +1,7 @@
import {
BaseClipboardExtension,
BaseClipboardExtensionFactory,
+ handelExcelToJson,
handelTableToJson,
handlePlainToJson,
handleTableColgroup,
@@ -17,7 +18,11 @@ export class ClipboardExtension extends BaseClipboardExtension<ClipboardPlugin>
let colInfo;
let rowInfo;
if (content) {
- if (content.indexOf('<table') > -1 && content.indexOf('<td') > -1) {
+ if (content.indexOf('xmlns:x="urn:schemas-microsoft-com:office:excel"') > -1) {
+ data = handelExcelToJson(content);
+ colInfo = handleTableColgroup(content);
+ rowInfo = handleTableRowGroup(content);
+ } else if (content.indexOf('<table') > -1 && content.indexOf('<td') > -1) {
data = handelTableToJson(content);
colInfo = handleTableColgroup(content);
rowInfo = handleTableRowGroup(content);
diff --git a/packages/sheets-plugin-clipboard/src/Domain/Clipboard.ts b/packages/sheets-plugin-clipboard/src/Domain/Clipboard.ts
index 448f47ecb3..79c5793287 100644
--- a/packages/sheets-plugin-clipboard/src/Domain/Clipboard.ts
+++ b/packages/sheets-plugin-clipboard/src/Domain/Clipboard.ts
@@ -57,6 +57,20 @@ export class Clipboard {
}
static async read(e?: ClipboardEvent): Promise<Array<PasteType | null> | null | string> {
+ if (e) {
+ const result = [];
+ const clipboardData = e?.clipboardData;
+ const types = clipboardData?.types;
+ if (!types) return null;
+ for (let i = 0; i < types.length; i++) {
+ result.push({
+ type: types[i],
+ result: clipboardData.getData(types[i]),
+ });
+ }
+ return result;
+ }
+
if (Clipboard.clipboard) {
const clipboardItems = await Clipboard.clipboard.read();
const Promises: Array<Promise<PasteType | null>> = [];
@@ -84,20 +98,6 @@ export class Clipboard {
return Promise.all(Promises);
}
- if (e) {
- const result = [];
- const clipboardData = e?.clipboardData;
- const types = clipboardData?.types;
- if (!types) return null;
- for (let i = 0; i < types.length; i++) {
- result.push({
- type: types[i],
- result: clipboardData.getData(types[i]),
- });
- }
- return result;
- }
-
const result = Clipboard.localData ?? null;
Clipboard.localData = null;
diff --git a/packages/sheets-plugin-clipboard/src/Domain/Copy.ts b/packages/sheets-plugin-clipboard/src/Domain/Copy.ts
index 143ac69208..2aec1b60f9 100644
--- a/packages/sheets-plugin-clipboard/src/Domain/Copy.ts
+++ b/packages/sheets-plugin-clipboard/src/Domain/Copy.ts
@@ -1,7 +1,7 @@
import { SheetContext, PLUGIN_NAMES, Tools, handleJsonToDom, handleStyleToString } from '@univerjs/core';
import { SheetPlugin, SelectionModel, SelectionControl } from '@univerjs/base-sheets';
import { RightMenuProps, SheetUIPlugin, SHEET_UI_PLUGIN_NAME, RightMenuItem } from '@univerjs/ui-plugin-sheets';
-import { Clipboard } from './Clipboard';
+import { Clipboard } from '@univerjs/base-ui';
// import { ClipboardInput } from '../UI/ClipboardInput';
import { CLIPBOARD_PLUGIN } from '../Const';
diff --git a/packages/sheets-plugin-clipboard/src/Domain/Paste.ts b/packages/sheets-plugin-clipboard/src/Domain/Paste.ts
index 1a5f163a43..19afc21fa6 100644
--- a/packages/sheets-plugin-clipboard/src/Domain/Paste.ts
+++ b/packages/sheets-plugin-clipboard/src/Domain/Paste.ts
@@ -1,8 +1,8 @@
import { SelectionControl } from '@univerjs/base-sheets/src/Controller/Selection/SelectionController';
import { SheetContext, PLUGIN_NAMES, Nullable } from '@univerjs/core';
import { SelectionModel, SheetPlugin } from '@univerjs/base-sheets';
-import { handleTableMergeData } from '@univerjs/base-ui';
-import { RightMenuProps } from '@univerjs/ui-plugin-sheets';
+import { handleTableMergeData, Prompt } from '@univerjs/base-ui';
+import { RightMenuProps, SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets';
export interface PasteType {
type: string;
@@ -84,6 +84,16 @@ export class UniverPaste extends Paste {
let maxC = minC + copyC - 1;
const isMerge = sheet.getMerges().getByRowColumn(minH, maxH, minC, maxC);
if (isMerge) {
+ const prompt = this.getContext()
+ .getUniver()
+ .getGlobalContext()
+ .getPluginManager()
+ .getRequirePluginByName<SheetUIPlugin>(SHEET_UI_PLUGIN_NAME)
+ .getSlot(SHEET_UI_PLUGIN_NAME + Prompt.name);
+ prompt.props.title = 'info.tooltip';
+ prompt.props.content = 'info.notChangeMerge';
+ prompt.showModal(true);
+
return;
}
// 最终渲染数据
diff --git a/packages/ui-plugin-sheets/src/Controller/SheetContainerUIController.ts b/packages/ui-plugin-sheets/src/Controller/SheetContainerUIController.ts
index ec0214acdf..00fb6d144f 100644
--- a/packages/ui-plugin-sheets/src/Controller/SheetContainerUIController.ts
+++ b/packages/ui-plugin-sheets/src/Controller/SheetContainerUIController.ts
@@ -1,7 +1,7 @@
import { SheetPlugin } from '@univerjs/base-sheets';
-import { DragManager, EventManager, getRefElement } from '@univerjs/base-ui';
+import { DragManager, EventManager, getRefElement, Prompt } from '@univerjs/base-ui';
import { LocaleType, PLUGIN_NAMES, UniverSheet } from '@univerjs/core';
-import { ISheetUIPluginConfig } from '../Basics';
+import { ISheetUIPluginConfig, SHEET_UI_PLUGIN_NAME } from '../Basics';
import { SheetUIPlugin } from '../SheetUIPlugin';
import { SheetContainer } from '../View';
import { CellEditorUIController } from './CellEditorUIController';
@@ -55,6 +55,10 @@ export class SheetContainerUIController {
this._rightMenuController = new RightMenuUIController(this._plugin, this._config.layout?.rightMenuConfig);
this._countBarController = new CountBarUIController(this._plugin);
this._sheetBarController = new SheetBarUIController(this._plugin);
+ // 插入prompt组件
+ this._slotController.addSlot(SHEET_UI_PLUGIN_NAME + Prompt.name, {
+ component: Prompt,
+ });
}
getUIConfig() {
diff --git a/packages/ui-plugin-sheets/src/Controller/SlotController.ts b/packages/ui-plugin-sheets/src/Controller/SlotController.ts
index 626b324943..780623aebe 100644
--- a/packages/ui-plugin-sheets/src/Controller/SlotController.ts
+++ b/packages/ui-plugin-sheets/src/Controller/SlotController.ts
@@ -28,7 +28,8 @@ export class SlotController {
getSlot(name: string) {
const slotGroup = this._slot.getSlotGroup();
- return slotGroup.get(name);
+ const slot = slotGroup.get(name);
+ return slot;
}
removeSlot(name: string) {
diff --git a/packages/ui-plugin-sheets/src/Locale/en.ts b/packages/ui-plugin-sheets/src/Locale/en.ts
index 8b5d1e9acc..c9373a4983 100644
--- a/packages/ui-plugin-sheets/src/Locale/en.ts
+++ b/packages/ui-plugin-sheets/src/Locale/en.ts
@@ -497,6 +497,8 @@ export default {
generateNewMatrix: 'Generate new matrix',
},
info: {
+ tooltip: 'Tooltip',
+ notChangeMerge: 'You cannot make partial changes to the merged cells',
detailUpdate: 'New opened',
detailSave: 'Local cache restored',
row: '',
diff --git a/packages/ui-plugin-sheets/src/Locale/zh.ts b/packages/ui-plugin-sheets/src/Locale/zh.ts
index d9e3a8b42e..3dc4a5a49f 100644
--- a/packages/ui-plugin-sheets/src/Locale/zh.ts
+++ b/packages/ui-plugin-sheets/src/Locale/zh.ts
@@ -360,6 +360,8 @@ export default {
generateNewMatrix: '生成新矩阵',
},
info: {
+ tooltip: '提示',
+ notChangeMerge: '不能对合并单元格做部分更改',
detailUpdate: '新打开',
detailSave: '已恢复本地缓存',
row: '行',
diff --git a/packages/ui-plugin-sheets/src/SheetUIPlugin.ts b/packages/ui-plugin-sheets/src/SheetUIPlugin.ts
index aadc0ba608..21bc066a30 100644
--- a/packages/ui-plugin-sheets/src/SheetUIPlugin.ts
+++ b/packages/ui-plugin-sheets/src/SheetUIPlugin.ts
@@ -130,6 +130,10 @@ export class SheetUIPlugin extends Plugin<SheetUIPluginObserve, Context> {
this._appUIController.getSheetContainerController().getMainSlotController().addSlot(name, slot, cb);
}
+ getSlot(name: string) {
+ return this._appUIController.getSheetContainerController().getMainSlotController().getSlot(name);
+ }
+
addToolButton(config: IToolbarItemProps) {
this._appUIController.getSheetContainerController().getToolbarController().addToolbarConfig(config);
}
diff --git a/test.html b/test.html
index 32480da873..fbf99eed0a 100644
--- a/test.html
+++ b/test.html
@@ -1,176 +1,25 @@
-<!DOCTYPE html>
-<html lang="en">
+`<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">\r\n
-<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
-</head>
+<head>\r\n
+ <meta http-equiv=Content-Type content="text/html; charset=utf-8">\r\n
+ <meta name=Generator content="Microsoft Excel">\r\n\x3C!--[if !mso]>\r\n<style>
+ \r\nv\\:* {
+ behavior: url(#default#VML);
+ }
-<body>
- `<table data-type="universheet_copy_action_table">
- <colgroup>
- <col width="180px">
- </col>
- <col width="120px">
- </col>
- <col width="72px">
- </col>
- <col width="60px">
- </col>
- <col width="60px">
- </col>
- <col width="72px">
- </col>
- <col width="30px">
- </col>
- <col width="90px">
- </col>
- <col width="72px">
- </col>
- </colgroup>
- <tr>
- <td rowSpan="1" colSpan="7"
- style="height:50px;vertical-align: middle; text-align: center; font-size: 24pt; color: rgb(125,133,22); border-bottom: 0.5pt solid #fff; border-top: 0.5pt solid #fff; border-right: 0.5pt solid #fff; border-left: 0.5pt solid #fff; ">
- Travel Declaration Form</td>
- <td rowSpan="1" colSpan="2"
- style="height:50px;text-align: right; border-bottom: 0.5pt solid #fff; border-top: 0.5pt solid #fff; border-right: 0.5pt solid #fff; border-left: 0.5pt solid #fff; ">
- <span id='oneElement' style="display:inline-block;color: #000; font-size: 20pt; ">No.</span><span
- id='twoElement' style="display:inline-block;color: rgb(255,0,0); font-size: 20pt; ">2824163</span>
- </td>
- </tr>
- <tr>
- <td rowSpan="1" colSpan="4"
- style="height:20px;vertical-align: middle; color: rgb(125,133,22); border-bottom: 0.5pt solid #fff; border-top: 0.5pt solid #fff; border-right: 0.5pt solid #fff; border-left: 0.5pt solid #fff; ">
- Department:</td>
- <td style="height:20px;"></td>
- <td rowSpan="1" colSpan="4"
- style="height:20px;vertical-align: middle; color: rgb(125,133,22); border-bottom: 0.5pt solid #fff; border-top: 0.5pt solid #fff; border-right: 0.5pt solid #fff; border-left: 0.5pt solid #fff; ">
- Application Date:</td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Business Trip Employee</td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Position</td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Entourage</td>
- <td rowSpan="1" colSpan="3"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 1.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Business Trip Place</td>
- <td rowSpan="1" colSpan="8"
- style="height:19px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- To To To</td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Amount</td>
- <td rowSpan="1" colSpan="5"
- style="height:19px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- (Capital) 万 仟 佰 拾 元 角 分</td>
- <td rowSpan="1" colSpan="3"
- style="height:19px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- (Lower) ¥</td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Departure Time</td>
- <td
- style="height:19px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- ETR</td>
- <td rowSpan="1" colSpan="3"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Days</td>
- <td
- style="height:19px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- </tr>
- <tr>
- <td
- style="height:150px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Reasons</td>
- <td rowSpan="1" colSpan="8"
- style="height:150px;vertical-align: middle; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Applicant For Travel</td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Administrator</td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Financial Manager</td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Payee</td>
- </tr>
- <tr>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Department Head</td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Manager</td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- Cashier</td>
- <td rowSpan="1" colSpan="2"
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 0.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- <td
- style="height:19px;vertical-align: middle; text-align: center; border-bottom: 0.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 0.5pt solid rgb(125,133,22); ">
- </td>
- </tr>
- <tr>
- <td rowSpan="1" colSpan="9"
- style="height:30px;vertical-align: middle; word-wrap: break-word; word-break: normal; padding-left: 10pt; padding-right: 10pt; border-bottom: 1.5pt solid rgb(125,133,22); border-top: 0.5pt solid rgb(125,133,22); border-right: 1.5pt solid rgb(125,133,22); border-left: 1.5pt solid rgb(125,133,22); ">
- Record: The loan is used exclusively for travel expenses, and the travel expenses will not be written
- off without a business trip application.</td>
- </tr>
- </table>`
-</body>
-<script>
-</script>
+ \r\no\\:* {
+ behavior: url(#default#VML);
+ }
-</html>
\ No newline at end of file
+ \r\nx\\:* {
+ behavior: url(#default#VML);
+ }
+
+ \r\n.shape {
+ behavior: url(#default#VML);
+ }
+
+ \r\n
+ </style>
+ \r\n<![endif]-->\r\n<style>\r\n\x3C!--.font0\r\n\t{color:#000000;\r\n\tfont-size:11.0pt;\r\n\tfont-family:宋体;\r\n\tfont-weight:400;\r\n\tfont-style:normal;\r\n\ttext-decoration:none;}\r\n.font1\r\n\t{color:#FFFFFF;\r\n\tfont-size:11.0pt;\r\n\tfont-family:宋体;\r\n\tfont-weight:400;\r\n\tfont-style:normal;\r\n\ttext-decoration:none;}\r\n.font2\r\n\t{color:#FFFFFF;\r\n\tfont-size:24.0pt;\r\n\tfont-family:宋体;\r\n\tfont-weight:400;\r\n\tfont-style:normal;\r\n\ttext-decoration:none;}\r\nbr\r\n\t{mso-data-placement:same-cell;}\r\ntd\r\n\t{padding-top:1px;\r\n\tpadding-left:1px;\r\n\tpadding-right:1px;\r\n\tmso-ignore:padding;\r\n\tcolor:#000000;\r\n\tfont-size:11.0pt;\r\n\tfont-weight:400;\r\n\tfont-style:normal;\r\n\ttext-decoration:none;\r\n\tfont-family:宋体;\r\n\tmso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:General;\r\n\tborder:none;\r\n\tmso-background-source:auto;\r\n\tmso-pattern:auto;\r\n\ttext-align:general;\r\n\tvertical-align:middle;\r\n\twhite-space:nowrap;\r\n\tmso-rotate:0;\r\n\tmso-protection:locked visible;}\r\n.et2\r\n\t{color:#FFFFFF;\r\n\tfont-size:24.0pt;\r\n\tmso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tbackground:#B75377;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et3\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tbackground:#F8EDF1;\r\n\tmso-pattern:auto none;\r\n\twhite-space:normal;}\r\n.et4\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:"m\\0022月\\0022d\\0022日\\0022";\r\n\tbackground:#F4BA70;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et5\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:"m\\0022月\\0022d\\0022日\\0022";\r\n\tbackground:#F68383;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et6\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tborder-top:none;\r\n\tborder-right:none;\r\n\tborder-bottom:1.5pt solid #DAAABA;\r\n\tborder-left:none;\r\n\tbackground:#F8EDF1;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et7\r\n\t{color:#FFFFFF;\r\n\tmso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et8\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:"m\\0022月\\0022d\\0022日\\0022";\r\n\tbackground:#CF62AA;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et9\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:"m\\0022月\\0022d\\0022日\\0022";\r\n\tbackground:#AC87BC;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n.et10\r\n\t{mso-generic-font-family:auto;\r\n\tmso-font-charset:134;\r\n\tmso-number-format:"m\\0022月\\0022d\\0022日\\0022";\r\n\tbackground:#61AACE;\r\n\tmso-pattern:auto none;\r\n\ttext-align:center;\r\n\twhite-space:normal;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n\x3C!--StartFragment-->\r\n<table border=0 cellpadding=0 cellspacing=0 width=1683 height=907 style='border-collapse:collapse;width:841.52pt;'>\r\n <col width=99 style='width:49.50pt;' span=17>\r\n <tr height=62 style='height:31.00pt;'>\r\n <td colspan=17 class=et2 height=62 width=1683 x:str style='height:31.00pt;width:841.50pt;'>Annual Work Schedule</td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td rowspan=17 class=et3 height=845 width=99 style='height:422.50pt;width:49.50pt;'></td>\r\n <td colspan=15 class=et3 width=1485 style='width:742.50pt;'></td>\r\n <td rowspan=17 class=et3 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td colspan=3 class=et4 width=297 x:num="44928" style='width:148.50pt;'>1月2日</td>\r\n <td colspan=3 class=et5 width=297 x:num="44993" style='width:148.50pt;'>3月8日</td>\r\n <td colspan=3 class=et8 width=297 x:num="44930" style='width:148.50pt;'>1月4日</td>\r\n <td colspan=3 class=et9 width=297 x:num="44930" style='width:148.50pt;'>1月4日</td>\r\n <td colspan=3 class=et10 width=297 x:num="44930" style='width:148.50pt;'>1月4日</td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td colspan=15 class=et3 width=1485 style='width:742.50pt;'></td>\r\n </tr>\r\n <tr height=85 style='height:42.75pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>Go to the party</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>Purchase Products</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=62 style='height:31.00pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=31 style='height:15.50pt;'>\r\n <td colspan=15 class=et3 width=1485 style='width:742.50pt;'></td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et7 width=99 x:str style='width:49.50pt;'>January</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et7 width=99 x:str style='width:49.50pt;'>February</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et7 width=99 x:str style='width:49.50pt;'>March</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et7 width=99 x:str style='width:49.50pt;'>April</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et7 width=99 x:str style='width:49.50pt;'>May</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td colspan=15 class=et3 width=1485 style='width:742.50pt;'></td>\r\n </tr>\r\n <tr height=28 style='height:14.00pt;'>\r\n <td colspan=3 class=et4 width=297 x:num="44929" style='width:148.50pt;'>1月3日</td>\r\n <td colspan=3 class=et5 width=297 x:num="44990" style='width:148.50pt;'>3月5日</td>\r\n <td colspan=3 class=et8 width=297 x:num="44928" style='width:148.50pt;'>1月2日</td>\r\n <td colspan=3 class=et9 width=297 x:num="44989" style='width:148.50pt;'>3月4日</td>\r\n <td colspan=3 class=et10 width=297 x:num="45052" style='width:148.50pt;'>5月6日</td>\r\n </tr>\r\n <tr height=85 style='height:42.75pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>Go to the party</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>Purchase Products</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>√</td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n <tr height=59 style='height:29.50pt;'>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n <td class=et3 width=99 style='width:49.50pt;'></td>\r\n <td class=et6 width=99 x:str style='width:49.50pt;'>×××××</td>\r\n <td class=et6 width=99 style='width:49.50pt;'></td>\r\n </tr>\r\n</table>\r\n\x3C!--EndFragment-->\r\n</body>\r\n\r\n</html>\r\n`
\ No newline at end of file