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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: change license to apache and add file headers (#710)
Wenzhao Hude2553c8e07b
diff --git a/.eslintignore b/.eslintignoreindex e49b2ad756..a62fc2aee5 100644--- a/.eslintignore+++ b/.eslintignore@@ -37,3 +37,6 @@ node_modules# yarn v2.yarn++# Vite+vite-env.d.ts\ No newline at end of filediff --git a/.eslintrc.cjs b/.eslintrc.cjsindex 0a54c879b9..0f82e985af 100644--- a/.eslintrc.cjs+++ b/.eslintrc.cjs@@ -1,5 +1,5 @@const { resolve } = require('node:path');-const tsConfig = require('./tsconfig.json')+const tsConfig = require('./tsconfig.json');/*** @type {import('eslint').Linter.Config}@@ -19,6 +19,7 @@ const config = {'unused-imports','simple-import-sort','react',+ 'header',],extends: ['airbnb-base', // https://www.npmjs.com/package/eslint-config-airbnb-base@@ -39,6 +40,28 @@ const config = {// ],// },rules: {+ 'header/header': [+ 2,+ 'block',+ [+ '*',+ ' * Copyright 2023 DreamNum Inc.',+ ' *',+ ' * Licensed under the Apache License, Version 2.0 (the "License");',+ ' * you may not use this file except in compliance with the License.',+ ' * You may obtain a copy of the License at',+ ' *',+ ' * http://www.apache.org/licenses/LICENSE-2.0',+ ' *',+ ' * Unless required by applicable law or agreed to in writing, software',+ ' * distributed under the License is distributed on an "AS IS" BASIS,',+ ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',+ ' * See the License for the specific language governing permissions and',+ ' * limitations under the License.',+ ' '+ ],+ 2,+ ],'no-cond-assign': 'off','no-restricted-globals': 'off','import/prefer-default-export': 'off',@@ -175,7 +198,7 @@ const config = {parserOptions: {project: resolve(__dirname, './tsconfig.eslint.json'),},- }+ };}),],};diff --git a/.prettierrc b/.prettierrcindex 5d43401e1f..ebfae51a91 100644--- a/.prettierrc+++ b/.prettierrc@@ -4,5 +4,5 @@"singleQuote": true,"tabWidth": 4,"trailingComma": "es5",- "endOfLine": "auto"+ "endOfLine": "lf"}diff --git a/LICENSE.txt b/LICENSE.txtindex 9c2b36ed7a..a16c46afd8 100644--- a/LICENSE.txt+++ b/LICENSE.txt@@ -1,21 +1,178 @@-The MIT License (MIT)--Copyright (c) 2020-present, DreamNum--Permission is hereby granted, free of charge, to any person obtaining a copy-of this software and associated documentation files (the "Software"), to deal-in the Software without restriction, including without limitation the rights-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell-copies of the Software, and to permit persons to whom the Software is-furnished to do so, subject to the following conditions:--The above copyright notice and this permission notice shall be included in-all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN-THE SOFTWARE.\ No newline at end of file+++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONSdiff --git a/README.md b/README.mdindex ca22553898..519f05d411 100644--- a/README.md+++ b/README.md@@ -1,3 +1,5 @@+<!-- Logo here. -->+# Univer@@ -8,17 +10,29 @@English | [简体中文](./README-zh.md)-## Introduction+<!-- A introduction photo here. -->-Univer is an open source collaborative solution that aims to empower the collaboration capability into all systems. With Univer, users can synchronously edit the file content, making files flowing smoothly within different types of systems and avoid downloading and uploading Microsoft Office files anymore.+> ⚠️ This project is still in heavy development.++## Introduction-We provide JavaScript part of code in the repository, including a canvas-based framework for building documents, spreadsheets, slides.+Univer is a set of enterprise document and data collaboration solutions, including spreadsheets, documents, and slides. The highly extensible design allows developers to customize personalized functions based on Univer.-> ⚠️ This project is still in heavy development. Use it at your own risk.+- 📈 Univer supports spreadsheets. Documents and slides will be supported in the future+- 🌌 Highly extensible architecture design+ - 🔌 Plug-in architecture, the capabilities of documents can be combined on demand, support third-party plug-ins, and facilitate customization development+ - 💄 Provide component library and icons to help developers present a consistent user experience+- ⚡ High performance+ - ✏️ Unified and efficient rendering engine and formula engine, based on Canvas+ - 🧮 High-performance formula engine, supports Web Worker+- 🌍 Internationalization support-## Demo+## Links-- [Univer Demo](https://dream-num.github.io/univer-demo/)+- [Online Playground]()+- [Documentation]()+- [Official Website]()+- [Legacy Univer Demo](https://dream-num.github.io/univer-demo/)## Packagesdiff --git a/examples/data/src/docs/default-document-data-cn.ts b/examples/data/src/docs/default-document-data-cn.tsindex 769fe9982b..3751161b80 100644--- a/examples/data/src/docs/default-document-data-cn.ts+++ b/examples/data/src/docs/default-document-data-cn.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import { BooleanNumber, TextDecoration } from '@univerjs/core';diff --git a/examples/data/src/docs/default-document-data-en.ts b/examples/data/src/docs/default-document-data-en.tsindex 34468c705d..b2f2764524 100644--- a/examples/data/src/docs/default-document-data-en.ts+++ b/examples/data/src/docs/default-document-data-en.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import {BooleanNumber,diff --git a/examples/data/src/docs/default-document-data.ts b/examples/data/src/docs/default-document-data.tsindex 58f1bc23ae..66c329bdf2 100644--- a/examples/data/src/docs/default-document-data.ts+++ b/examples/data/src/docs/default-document-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import {BaselineOffset,diff --git a/examples/data/src/docs/default-list.ts b/examples/data/src/docs/default-list.tsindex 3b0cb1add1..26ca6c589c 100644--- a/examples/data/src/docs/default-list.ts+++ b/examples/data/src/docs/default-list.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BulletAlignment, GlyphType } from '@univerjs/core';export const DEFAULT_LIST_TEST = {diff --git a/examples/data/src/docs/index.ts b/examples/data/src/docs/index.tsindex d7d8d9a2bd..66528c5b87 100644--- a/examples/data/src/docs/index.ts+++ b/examples/data/src/docs/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-document-data';export * from './default-document-data-cn';export * from './default-document-data-en';diff --git a/examples/data/src/index.ts b/examples/data/src/index.tsindex f089066954..a71f361585 100644--- a/examples/data/src/index.ts+++ b/examples/data/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './docs';export * from './sheets';export * from './slides';diff --git a/examples/data/src/sheets/default-workbook-data.ts b/examples/data/src/sheets/default-workbook-data.tsindex 1a043ee5df..41811488b0 100644--- a/examples/data/src/sheets/default-workbook-data.ts+++ b/examples/data/src/sheets/default-workbook-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData, IWorkbookData } from '@univerjs/core';import {BaselineOffset,diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo.ts b/examples/data/src/sheets/demo/default-workbook-data-demo.tsindex b9b58d0682..1911707dcf 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData, IWorkbookData } from '@univerjs/core';import { BooleanNumber, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo1.ts b/examples/data/src/sheets/demo/default-workbook-data-demo1.tsindex 26aa1564ab..fb87292a0a 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo1.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo1.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo2.ts b/examples/data/src/sheets/demo/default-workbook-data-demo2.tsindex 3212e2c0c9..a4d314bfc5 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo2.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo2.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo3.ts b/examples/data/src/sheets/demo/default-workbook-data-demo3.tsindex 5bdb66a237..f6df970f15 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo3.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo3.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData, IWorkbookData } from '@univerjs/core';import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo4.ts b/examples/data/src/sheets/demo/default-workbook-data-demo4.tsindex dafe1111ee..a789b2f5c4 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo4.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo4.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData, IWorkbookData } from '@univerjs/core';import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo5.ts b/examples/data/src/sheets/demo/default-workbook-data-demo5.tsindex a2ab1b1712..96a0c02687 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo5.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo5.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { BorderStyleTypes, LocaleType } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo6.ts b/examples/data/src/sheets/demo/default-workbook-data-demo6.tsindex 36fe416dcc..f4eb501dfb 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo6.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo6.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { BorderStyleTypes, LocaleType } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo7.ts b/examples/data/src/sheets/demo/default-workbook-data-demo7.tsindex 51f77db7c6..289320c493 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo7.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo7.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { LocaleType } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo8.ts b/examples/data/src/sheets/demo/default-workbook-data-demo8.tsindex aba325e380..09bb06efd4 100644--- a/examples/data/src/sheets/demo/default-workbook-data-demo8.ts+++ b/examples/data/src/sheets/demo/default-workbook-data-demo8.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { LocaleType } from '@univerjs/core';diff --git a/examples/data/src/sheets/demo/index.ts b/examples/data/src/sheets/demo/index.tsindex 20ae7e3e47..379e88de6b 100644--- a/examples/data/src/sheets/demo/index.ts+++ b/examples/data/src/sheets/demo/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-workbook-data-demo';export * from './default-workbook-data-demo1';export * from './default-workbook-data-demo2';diff --git a/examples/data/src/sheets/index.ts b/examples/data/src/sheets/index.tsindex 6d38108f5e..d0cf074dfd 100644--- a/examples/data/src/sheets/index.ts+++ b/examples/data/src/sheets/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-workbook-data';export * from './demo';export * from './slide-workbook-data';diff --git a/examples/data/src/sheets/slide-workbook-data.ts b/examples/data/src/sheets/slide-workbook-data.tsindex 0150047b3d..98c98763b9 100644--- a/examples/data/src/sheets/slide-workbook-data.ts+++ b/examples/data/src/sheets/slide-workbook-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';diff --git a/examples/data/src/slides/default-pages/page1.ts b/examples/data/src/slides/default-pages/page1.tsindex 83ea7c638d..d5b200c4c5 100644--- a/examples/data/src/slides/default-pages/page1.ts+++ b/examples/data/src/slides/default-pages/page1.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';export const DEFAULT_FIRST_PAGE = {diff --git a/examples/data/src/slides/default-pages/page2.ts b/examples/data/src/slides/default-pages/page2.tsindex 7b44d96b80..a08ddbcca4 100644--- a/examples/data/src/slides/default-pages/page2.ts+++ b/examples/data/src/slides/default-pages/page2.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';export const DEFAULT_SECOND_PAGE = {diff --git a/examples/data/src/slides/default-pages/page3.ts b/examples/data/src/slides/default-pages/page3.tsindex 81132b137d..44e13a92b0 100644--- a/examples/data/src/slides/default-pages/page3.ts+++ b/examples/data/src/slides/default-pages/page3.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';import { PAGE3_RICHTEXT_1 } from '../rich-text/page3-richtext1';diff --git a/examples/data/src/slides/default-pages/page4.ts b/examples/data/src/slides/default-pages/page4.tsindex 5f6bbc32c1..ad9306d707 100644--- a/examples/data/src/slides/default-pages/page4.ts+++ b/examples/data/src/slides/default-pages/page4.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorksheetData } from '@univerjs/core';import { PageElementType, PageType, ShapeType } from '@univerjs/core';diff --git a/examples/data/src/slides/default-pages/page5.ts b/examples/data/src/slides/default-pages/page5.tsindex 123fce0258..1afc94d1ee 100644--- a/examples/data/src/slides/default-pages/page5.ts+++ b/examples/data/src/slides/default-pages/page5.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';export const DEFAULT_FIFTH_PAGE = {diff --git a/examples/data/src/slides/default-pages/page6.ts b/examples/data/src/slides/default-pages/page6.tsindex 9239cf4afc..878eccf5a5 100644--- a/examples/data/src/slides/default-pages/page6.ts+++ b/examples/data/src/slides/default-pages/page6.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';import { DEFAULT_DOCUMENT_DATA_EN } from '../../docs/default-document-data-en';diff --git a/examples/data/src/slides/default-pages/page7.ts b/examples/data/src/slides/default-pages/page7.tsindex b37af8fe9c..e64a43ab8a 100644--- a/examples/data/src/slides/default-pages/page7.ts+++ b/examples/data/src/slides/default-pages/page7.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType, PageType, ShapeType } from '@univerjs/core';import { generateUnlimitedSlideData } from '../unlimited-slide-data';diff --git a/examples/data/src/slides/default-slide-data.ts b/examples/data/src/slides/default-slide-data.tsindex 8b8a374426..0d7a4f13d7 100644--- a/examples/data/src/slides/default-slide-data.ts+++ b/examples/data/src/slides/default-slide-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISlideData } from '@univerjs/core';import { DEFAULT_FIRST_PAGE } from './default-pages/page1';diff --git a/examples/data/src/slides/index.ts b/examples/data/src/slides/index.tsindex 3b14eaf208..83fdea8c40 100644--- a/examples/data/src/slides/index.ts+++ b/examples/data/src/slides/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-slide-data';diff --git a/examples/data/src/slides/rich-text/page3-richtext1.ts b/examples/data/src/slides/rich-text/page3-richtext1.tsindex 4b7c7fa7cb..92c75f4553 100644--- a/examples/data/src/slides/rich-text/page3-richtext1.ts+++ b/examples/data/src/slides/rich-text/page3-richtext1.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType } from '@univerjs/core';import { DEFAULT_LIST_TEST } from '../../docs/default-list';diff --git a/examples/data/src/slides/rich-text/page3-richtext2.ts b/examples/data/src/slides/rich-text/page3-richtext2.tsindex 2e6310852a..f09fcbe87d 100644--- a/examples/data/src/slides/rich-text/page3-richtext2.ts+++ b/examples/data/src/slides/rich-text/page3-richtext2.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType } from '@univerjs/core';import { DEFAULT_LIST_TEST } from '../../docs/default-list';diff --git a/examples/data/src/slides/rich-text/page3-richtext3.ts b/examples/data/src/slides/rich-text/page3-richtext3.tsindex 5cbacbcdc1..917b524fa6 100644--- a/examples/data/src/slides/rich-text/page3-richtext3.ts+++ b/examples/data/src/slides/rich-text/page3-richtext3.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PageElementType } from '@univerjs/core';import { DEFAULT_LIST_TEST } from '../../docs/default-list';diff --git a/examples/data/src/slides/rich-text/page5-richtext1.ts b/examples/data/src/slides/rich-text/page5-richtext1.tsindex 91bb095737..b3fd815e37 100644--- a/examples/data/src/slides/rich-text/page5-richtext1.ts+++ b/examples/data/src/slides/rich-text/page5-richtext1.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import { BooleanNumber, ColumnSeparatorType, SectionType } from '@univerjs/core';diff --git a/examples/data/src/slides/unlimited-slide-data.ts b/examples/data/src/slides/unlimited-slide-data.tsindex cba55a0eff..dfdb7a4ec0 100644--- a/examples/data/src/slides/unlimited-slide-data.ts+++ b/examples/data/src/slides/unlimited-slide-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISlideData } from '@univerjs/core';import { PageElementType, PageType, ShapeType } from '@univerjs/core';diff --git a/examples/docs/src/locales.ts b/examples/docs/src/locales.tsindex 34f92883d4..8a034e90bb 100644--- a/examples/docs/src/locales.ts+++ b/examples/docs/src/locales.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType } from '@univerjs/core';import { enUS as UniverDesignEnUS } from '@univerjs/design';import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';diff --git a/examples/docs/src/main.ts b/examples/docs/src/main.tsindex 9800a245aa..2cc49383d8 100644--- a/examples/docs/src/main.ts+++ b/examples/docs/src/main.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType, Univer } from '@univerjs/core';import { defaultTheme } from '@univerjs/design';import { UniverDocs } from '@univerjs/docs';diff --git a/examples/sheets/src/locales.ts b/examples/sheets/src/locales.tsindex 7e31602869..36e8a55052 100644--- a/examples/sheets/src/locales.ts+++ b/examples/sheets/src/locales.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType } from '@univerjs/core';import { enUS as UniverDesignEnUS } from '@univerjs/design';import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';diff --git a/examples/sheets/src/main.ts b/examples/sheets/src/main.tsindex 99ca79ca59..62a042b1ee 100644--- a/examples/sheets/src/main.ts+++ b/examples/sheets/src/main.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType, LogLevel, Univer } from '@univerjs/core';import { greenTheme } from '@univerjs/design';import { RichTextEditingMutation, UniverDocs } from '@univerjs/docs';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.tsindex c506f6727f..2711ff6928 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { IConfirmService } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.tsindex 8632e6bc59..b14d2806ef 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { IDialogService } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.tsindex b101ba110d..3569a98ebe 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, LocaleType } from '@univerjs/core';import { CommandType, LocaleService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.tsindex e4b4492635..2d3129671e 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { MessageType } from '@univerjs/design';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.tsindex 5599e6b6fc..40edf3dbf9 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { INotificationService } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.tsindex 037cdda020..814836d897 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.tsindex 27d1a9311f..e252296476 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts@@ -1,4 +1,19 @@-// eslint-disable-next-line import/no-extraneous-dependencies+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IStyleData, IWorkbookData } from '@univerjs/core';import { CommandType, ISnapshotPersistenceService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { ExportController, RecordController } from '@univerjs/local-save';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.tsindex 9ecff33ef9..885b2bc9d1 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts@@ -1,4 +1,19 @@-// eslint-disable-next-line import/no-extraneous-dependencies+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, IUniverInstanceService, UniverPermissionService } from '@univerjs/core';import { SheetPermissionService } from '@univerjs/sheets';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.tsindex 8c91b0af46..1447815c22 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { ISidebarService } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.tsindex cc6175aaee..28da5cda4f 100644--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IStyleSheet } from '@univerjs/core';import { CommandType, ThemeService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts b/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.tsindex 5af0bd123e..392f7337ff 100644--- a/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts+++ b/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, ISnapshotPersistenceService } from '@univerjs/core';import { ExportController, LocalSnapshotService, RecordController } from '@univerjs/local-save';import { IMenuService } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts b/examples/sheets/src/sheets-plugin-debugger/controllers/menu.tsindex da97be4d0f..5774f7a5a8 100644--- a/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts+++ b/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType } from '@univerjs/core';import { defaultTheme, greenTheme } from '@univerjs/design';import type { IMenuSelectorItem } from '@univerjs/ui';diff --git a/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts b/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.tsindex 1bc03b56fc..d021441170 100644--- a/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts+++ b/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService, Plugin, PluginType } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/examples/sheets/src/sheets-plugin-debugger/index.ts b/examples/sheets/src/sheets-plugin-debugger/index.tsindex ebc2bf5516..54802a08ce 100644--- a/examples/sheets/src/sheets-plugin-debugger/index.ts+++ b/examples/sheets/src/sheets-plugin-debugger/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './debugger-plugin';diff --git a/examples/sheets/src/worker.ts b/examples/sheets/src/worker.tsindex 72c6bd625e..51d05e9e89 100644--- a/examples/sheets/src/worker.ts+++ b/examples/sheets/src/worker.ts@@ -1,4 +1,18 @@-// The entry of web worker scripts+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import { LocaleType, Univer } from '@univerjs/core';import { UniverFormulaEngine } from '@univerjs/engine-formula';diff --git a/examples/slides/src/main.ts b/examples/slides/src/main.tsindex 3e8668e4d8..2d87ef8612 100644--- a/examples/slides/src/main.ts+++ b/examples/slides/src/main.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleType, Univer } from '@univerjs/core';import { greenTheme } from '@univerjs/design';import { UniverRenderEngine } from '@univerjs/engine-render';diff --git a/package.json b/package.jsonindex 114c52f483..3b199f4710 100644--- a/package.json+++ b/package.json@@ -12,6 +12,7 @@"dev:storybook": "storybook dev -p 6006 --no-open","dev:site": "turbo dev:docusaurus","lint": "TIMING=1 eslint --cache **/src/**/*.{tsx,ts}",+ "lint:fix": "TIMING=1 eslint --cache **/src/**/*.{tsx,ts} --fix","lint:style": "stylelint **/*.less","lint:types": "tsc --noEmit -p tsconfig.eslint.json","test": "turbo test -- --passWithNoTests",@@ -51,6 +52,7 @@"eslint-config-airbnb-typescript": "^17.1.0","eslint-config-prettier": "^9.1.0","eslint-import-resolver-typescript": "^3.6.1",+ "eslint-plugin-header": "~3.1.1","eslint-plugin-import-newlines": "^1.3.4","eslint-plugin-prettier": "^5.0.1","eslint-plugin-react": "^7.33.2",@@ -62,11 +64,11 @@"react": "^18.2.0","react-dom": "^18.2.0","storybook": "^7.6.4",- "stylelint": "^15.11.0","stylelint-config-clean-order": "^5.2.0","stylelint-config-prettier": "^9.0.5",- "stylelint-config-standard": "^34.0.0","stylelint-config-standard-less": "^2.0.0",+ "stylelint-config-standard": "^34.0.0",+ "stylelint": "^15.11.0","turbo": "^1.11.1","typescript": "^5.3.3"},diff --git a/packages/core/src/basics/index.ts b/packages/core/src/basics/index.tsindex 8c2f331b12..7a94c4a43f 100644--- a/packages/core/src/basics/index.ts+++ b/packages/core/src/basics/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './registry';export * from './univer';export * from './univer-doc';diff --git a/packages/core/src/basics/registry.ts b/packages/core/src/basics/registry.tsindex adf0c6d1fb..21501b1b79 100644--- a/packages/core/src/basics/registry.ts+++ b/packages/core/src/basics/registry.ts@@ -1,9 +1,19 @@/**- * Add extension modules statically when the plugin is initialized, so that the plugin can register these extension modules uniformly+ * Copyright 2023 DreamNum Inc.*- * @privateRemarks- * zh: 在插件初始化的时候静态添加扩展模块,方便插件统一注册这些扩展模块+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export class Registry {private _data: any[] = [];diff --git a/packages/core/src/basics/univer-doc.ts b/packages/core/src/basics/univer-doc.tsindex 91f615ffc8..f1aa4d96c5 100644--- a/packages/core/src/basics/univer-doc.ts+++ b/packages/core/src/basics/univer-doc.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/core/src/basics/univer-sheet.ts b/packages/core/src/basics/univer-sheet.tsindex 70b924016e..996988ea4d 100644--- a/packages/core/src/basics/univer-sheet.ts+++ b/packages/core/src/basics/univer-sheet.ts@@ -1,4 +1,19 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor, Dependency, IDisposable } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/core/src/basics/univer-slide.ts b/packages/core/src/basics/univer-slide.tsindex ae499a43d9..07af863e3f 100644--- a/packages/core/src/basics/univer-slide.ts+++ b/packages/core/src/basics/univer-slide.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/core/src/basics/univer.ts b/packages/core/src/basics/univer.tsindex b7f1be8747..8400827e85 100644--- a/packages/core/src/basics/univer.ts+++ b/packages/core/src/basics/univer.ts@@ -1,4 +1,19 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor } from '@wendellhu/redi';import { Injector } from '@wendellhu/redi';diff --git a/packages/core/src/common/array.ts b/packages/core/src/common/array.tsindex 9c1f2a3c58..d8fe85e6f2 100644--- a/packages/core/src/common/array.ts+++ b/packages/core/src/common/array.ts@@ -1,9 +1,19 @@/**- * Remove an item from an array.- * @param arr The array to remove item from.- * @param item The item to be removed.- * @returns Returns `true` if the item is removed successfully. Returns `false` if the item does not exist in the array.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export function remove<T>(arr: T[], item: T): boolean {const index = arr.indexOf(item);if (index > -1) {diff --git a/packages/core/src/common/color/color-builder.ts b/packages/core/src/common/color/color-builder.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/core/src/common/const.ts b/packages/core/src/common/const.tsindex 8ae5c887c8..f2232edcf9 100644--- a/packages/core/src/common/const.ts+++ b/packages/core/src/common/const.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DOCS_NORMAL_EDITOR_UNIT_ID_KEY = '__defaultDocumentNormalEditorSpecialUnitId_20231006__';export const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = '__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__';diff --git a/packages/core/src/common/interceptor.ts b/packages/core/src/common/interceptor.tsindex 6280b07840..26749b4312 100644--- a/packages/core/src/common/interceptor.ts+++ b/packages/core/src/common/interceptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { remove } from './array';import type { Nullable } from './type-utils';diff --git a/packages/core/src/common/memory-cursor.ts b/packages/core/src/common/memory-cursor.tsindex 5f737a62dc..f0b503d196 100644--- a/packages/core/src/common/memory-cursor.ts+++ b/packages/core/src/common/memory-cursor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class MemoryCursor {cursor: number = 0;diff --git a/packages/core/src/common/request-immediate-macro-task.ts b/packages/core/src/common/request-immediate-macro-task.tsindex 324f3d63b0..82a0cc1eb7 100644--- a/packages/core/src/common/request-immediate-macro-task.ts+++ b/packages/core/src/common/request-immediate-macro-task.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function requestImmediateMacroTask(callback: (value?: unknown) => void): () => void {const channel = new MessageChannel();let cancelled = false;diff --git a/packages/core/src/common/sequence.ts b/packages/core/src/common/sequence.tsindex 3a6cad6dc1..7285265fac 100644--- a/packages/core/src/common/sequence.ts+++ b/packages/core/src/common/sequence.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ISequenceExecuteResult {index: number;result: boolean;diff --git a/packages/core/src/common/type-utils.ts b/packages/core/src/common/type-utils.tsindex ddec5b5657..d8c55d024d 100644--- a/packages/core/src/common/type-utils.ts+++ b/packages/core/src/common/type-utils.ts@@ -1,4 +1,17 @@/**- * Alias type for value that can be null+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export type Nullable<T> = T | null | undefined | void;diff --git a/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts b/packages/core/src/docs/data-model/__tests__/apply-utils.spec.tsindex 6eacb5844a..0dc22d28fb 100644--- a/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts+++ b/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from 'vitest';import { afterEach, beforeEach, describe, expect, it } from 'vitest';diff --git a/packages/core/src/docs/data-model/apply-utils/common.ts b/packages/core/src/docs/data-model/apply-utils/common.tsindex 5163aea941..f9ba14665d 100644--- a/packages/core/src/docs/data-model/apply-utils/common.ts+++ b/packages/core/src/docs/data-model/apply-utils/common.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../../shared';import { horizontalLineSegmentsSubtraction, sortRulesFactory, Tools } from '../../../shared';import { isSameStyleTextRun } from '../../../shared/compare';diff --git a/packages/core/src/docs/data-model/apply-utils/delete-apply.ts b/packages/core/src/docs/data-model/apply-utils/delete-apply.tsindex 64c235c923..a05a1c89c5 100644--- a/packages/core/src/docs/data-model/apply-utils/delete-apply.ts+++ b/packages/core/src/docs/data-model/apply-utils/delete-apply.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { deleteContent } from '../../../shared';import type { IDocumentBody } from '../../../types/interfaces';import {diff --git a/packages/core/src/docs/data-model/apply-utils/insert-apply.ts b/packages/core/src/docs/data-model/apply-utils/insert-apply.tsindex 531db66be2..eb68ea543e 100644--- a/packages/core/src/docs/data-model/apply-utils/insert-apply.ts+++ b/packages/core/src/docs/data-model/apply-utils/insert-apply.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { insertTextToContent } from '../../../shared';import type { IDocumentBody } from '../../../types/interfaces';import {diff --git a/packages/core/src/docs/data-model/apply-utils/update-apply.ts b/packages/core/src/docs/data-model/apply-utils/update-apply.tsindex fd21e206d6..65efd64a1b 100644--- a/packages/core/src/docs/data-model/apply-utils/update-apply.ts+++ b/packages/core/src/docs/data-model/apply-utils/update-apply.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../../shared';import { Tools, UpdateDocsAttributeType } from '../../../shared';import type {diff --git a/packages/core/src/docs/data-model/document-data-model.ts b/packages/core/src/docs/data-model/document-data-model.tsindex 3a75be7081..8056d442ff 100644--- a/packages/core/src/docs/data-model/document-data-model.ts+++ b/packages/core/src/docs/data-model/document-data-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { MemoryCursor } from '../../common/memory-cursor';import type { Nullable } from '../../shared';import { getDocsUpdateBody } from '../../shared';diff --git a/packages/core/src/docs/data-model/index.ts b/packages/core/src/docs/data-model/index.tsindex 3d8d60c3e4..60e376f80a 100644--- a/packages/core/src/docs/data-model/index.ts+++ b/packages/core/src/docs/data-model/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './document-data-model';export * from './types';diff --git a/packages/core/src/docs/data-model/mutation-types.ts b/packages/core/src/docs/data-model/mutation-types.tsindex 712b900b63..c96ee92924 100644--- a/packages/core/src/docs/data-model/mutation-types.ts+++ b/packages/core/src/docs/data-model/mutation-types.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { UpdateDocsAttributeType } from '../../shared/command-enum';import type { IDocumentBody } from '../../types/interfaces/i-document-data';diff --git a/packages/core/src/docs/data-model/types.ts b/packages/core/src/docs/data-model/types.tsindex 0d39c7bc79..cdad82c048 100644--- a/packages/core/src/docs/data-model/types.ts+++ b/packages/core/src/docs/data-model/types.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum DataStreamTreeNodeType {// COLUMN_BREAK, // \v 换列// PAGE_BREAK, // \f 换页diff --git a/packages/core/src/docs/index.ts b/packages/core/src/docs/index.tsindex 044c5df924..b2b8eade86 100644--- a/packages/core/src/docs/index.ts+++ b/packages/core/src/docs/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './data-model';diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex 3b2282bcf9..cbd972016f 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './basics';export { dedupe, remove } from './common/array';export {diff --git a/packages/core/src/observer/index.ts b/packages/core/src/observer/index.tsindex b6f818eb2f..84c6ae7f99 100644--- a/packages/core/src/observer/index.ts+++ b/packages/core/src/observer/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './observable';export * from './observable-hooks';diff --git a/packages/core/src/observer/observable-hooks.ts b/packages/core/src/observer/observable-hooks.tsindex 750391e193..75ec17af05 100644--- a/packages/core/src/observer/observable-hooks.ts+++ b/packages/core/src/observer/observable-hooks.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../shared/types';import type { EventState } from './observable';import { Observable, Observer } from './observable';diff --git a/packages/core/src/observer/observable.ts b/packages/core/src/observer/observable.tsindex 3f68e7ec9b..a96326726f 100644--- a/packages/core/src/observer/observable.ts+++ b/packages/core/src/observer/observable.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../shared/types';/**diff --git a/packages/core/src/plugin/plugin.ts b/packages/core/src/plugin/plugin.tsindex a117ec77c3..0dc0d582ff 100644--- a/packages/core/src/plugin/plugin.ts+++ b/packages/core/src/plugin/plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor, Injector } from '@wendellhu/redi';export type PluginCtor<T extends Plugin> = Ctor<T> & { type: PluginType };diff --git a/packages/core/src/services/auth/auth.service.ts b/packages/core/src/services/auth/auth.service.tsindex bfa7da057b..84521870aa 100644--- a/packages/core/src/services/auth/auth.service.ts+++ b/packages/core/src/services/auth/auth.service.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface IAuthService {}diff --git a/packages/core/src/services/command/command.service.spec.ts b/packages/core/src/services/command/command.service.spec.tsindex 0e81913741..4825ac5209 100644--- a/packages/core/src/services/command/command.service.spec.ts+++ b/packages/core/src/services/command/command.service.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Injector } from '@wendellhu/redi';import { beforeEach, describe, expect, it, vi } from 'vitest';diff --git a/packages/core/src/services/command/command.service.ts b/packages/core/src/services/command/command.service.tsindex 3abd49a2f8..08a0fc6560 100644--- a/packages/core/src/services/command/command.service.ts+++ b/packages/core/src/services/command/command.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IAccessor, IDisposable } from '@wendellhu/redi';import { createIdentifier, Inject, Injector } from '@wendellhu/redi';diff --git a/packages/core/src/services/config/config.service.ts b/packages/core/src/services/config/config.service.tsindex c52995da11..bb522ba939 100644--- a/packages/core/src/services/config/config.service.ts+++ b/packages/core/src/services/config/config.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';import type { Nullable } from '../../shared/types';diff --git a/packages/core/src/services/context/context.service.ts b/packages/core/src/services/context/context.service.tsindex 98228e6d40..4e904ce01a 100644--- a/packages/core/src/services/context/context.service.ts+++ b/packages/core/src/services/context/context.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';import { Subject } from 'rxjs';diff --git a/packages/core/src/services/context/context.ts b/packages/core/src/services/context/context.tsindex 4ceb6ec289..b38cd02d4a 100644--- a/packages/core/src/services/context/context.ts+++ b/packages/core/src/services/context/context.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const FOCUSING_SHEET = 'FOCUSING_SHEET';export const FOCUSING_DOC = 'FOCUSING_DOC';export const FOCUSING_SLIDE = 'FOCUSING_SLIDE';diff --git a/packages/core/src/services/error/error.service.ts b/packages/core/src/services/error/error.service.tsindex 422dcc3a20..eed50b5a1c 100644--- a/packages/core/src/services/error/error.service.ts+++ b/packages/core/src/services/error/error.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Subject } from 'rxjs';import { Disposable } from '../../shared/lifecycle';diff --git a/packages/core/src/services/floating-object/floating-object-interfaces.ts b/packages/core/src/services/floating-object/floating-object-interfaces.tsindex 87d13a6c3c..634ae0661b 100644--- a/packages/core/src/services/floating-object/floating-object-interfaces.ts+++ b/packages/core/src/services/floating-object/floating-object-interfaces.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ISize {width?: number;height?: number;diff --git a/packages/core/src/services/floating-object/floating-object-manager.service.ts b/packages/core/src/services/floating-object/floating-object-manager.service.tsindex 5ac58dcca5..e489a0c918 100644--- a/packages/core/src/services/floating-object/floating-object-manager.service.ts+++ b/packages/core/src/services/floating-object/floating-object-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/core/src/services/instance/instance.service.ts b/packages/core/src/services/instance/instance.service.tsindex 938786c2fc..355b70d914 100644--- a/packages/core/src/services/instance/instance.service.ts+++ b/packages/core/src/services/instance/instance.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';import { BehaviorSubject, Subject } from 'rxjs';diff --git a/packages/core/src/services/lifecycle/lifecycle.service.ts b/packages/core/src/services/lifecycle/lifecycle.service.tsindex 52bf7c6d91..3cbc93301f 100644--- a/packages/core/src/services/lifecycle/lifecycle.service.ts+++ b/packages/core/src/services/lifecycle/lifecycle.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Inject, Injector } from '@wendellhu/redi';import { BehaviorSubject, Observable } from 'rxjs';diff --git a/packages/core/src/services/lifecycle/lifecycle.ts b/packages/core/src/services/lifecycle/lifecycle.tsindex f5507b2467..52411ae4d3 100644--- a/packages/core/src/services/lifecycle/lifecycle.ts+++ b/packages/core/src/services/lifecycle/lifecycle.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ctor, DependencyIdentifier } from '@wendellhu/redi';/**diff --git a/packages/core/src/services/local-storage/local-storage.service.ts b/packages/core/src/services/local-storage/local-storage.service.tsindex 09ef817e57..0b17a1d60e 100644--- a/packages/core/src/services/local-storage/local-storage.service.ts+++ b/packages/core/src/services/local-storage/local-storage.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';export const ILocalStorageService = createIdentifier<ILocalStorageService>('ILocalStorageService');diff --git a/packages/core/src/services/locale/locale.service.ts b/packages/core/src/services/locale/locale.service.tsindex df36d2c153..6fcca8a5fa 100644--- a/packages/core/src/services/locale/locale.service.ts+++ b/packages/core/src/services/locale/locale.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Subject } from 'rxjs';import type { Nullable } from '../../common/type-utils';diff --git a/packages/core/src/services/log/log.service.ts b/packages/core/src/services/log/log.service.tsindex 1c46535ada..c151ba6651 100644--- a/packages/core/src/services/log/log.service.ts+++ b/packages/core/src/services/log/log.service.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+/* eslint-disable @typescript-eslint/no-explicit-any */import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/core/src/services/permission/index.ts b/packages/core/src/services/permission/index.tsindex d72350e726..388da59cb0 100644--- a/packages/core/src/services/permission/index.ts+++ b/packages/core/src/services/permission/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { IPermissionService, PermissionService } from './permission.service';export { UniverEditablePermission, UniverEditablePermissionPoint } from './permission-point';export { UniverPermissionService } from './univer.permission.service';diff --git a/packages/core/src/services/permission/permission-point.ts b/packages/core/src/services/permission/permission-point.tsindex 2b90d7c16d..9e49798be1 100644--- a/packages/core/src/services/permission/permission-point.ts+++ b/packages/core/src/services/permission/permission-point.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PermissionPoint } from '../../shared';export const UniverEditablePermissionPoint = 'univer.editable';diff --git a/packages/core/src/services/permission/permission.service.ts b/packages/core/src/services/permission/permission.service.tsindex 033a200669..83c2abc252 100644--- a/packages/core/src/services/permission/permission.service.ts+++ b/packages/core/src/services/permission/permission.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier, Inject } from '@wendellhu/redi';import type { Observable } from 'rxjs';import { BehaviorSubject, combineLatest } from 'rxjs';diff --git a/packages/core/src/services/permission/univer.permission.service.ts b/packages/core/src/services/permission/univer.permission.service.tsindex f21a5d97e7..596321ef4f 100644--- a/packages/core/src/services/permission/univer.permission.service.ts+++ b/packages/core/src/services/permission/univer.permission.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Inject } from '@wendellhu/redi';import { Disposable } from '../../shared';diff --git a/packages/core/src/services/resource-manager/resource-manager.service.ts b/packages/core/src/services/resource-manager/resource-manager.service.tsindex 29d01d2ff7..0adbfece3c 100644--- a/packages/core/src/services/resource-manager/resource-manager.service.ts+++ b/packages/core/src/services/resource-manager/resource-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Subject } from 'rxjs';import { Disposable, toDisposable } from '../../shared/lifecycle';diff --git a/packages/core/src/services/resource-manager/type.ts b/packages/core/src/services/resource-manager/type.tsindex 51d5a2c7cb..5e545611d4 100644--- a/packages/core/src/services/resource-manager/type.ts+++ b/packages/core/src/services/resource-manager/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/core/src/services/theme/theme.service.ts b/packages/core/src/services/theme/theme.service.tsindex bb4d6c71c9..5d8e45ed8d 100644--- a/packages/core/src/services/theme/theme.service.ts+++ b/packages/core/src/services/theme/theme.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Observable } from 'rxjs';import { BehaviorSubject } from 'rxjs';diff --git a/packages/core/src/services/undoredo/undoredo.service.ts b/packages/core/src/services/undoredo/undoredo.service.tsindex 14819d81ed..90841dce5e 100644--- a/packages/core/src/services/undoredo/undoredo.service.ts+++ b/packages/core/src/services/undoredo/undoredo.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IAccessor, IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/core/src/shared/__test__/object-matrix.spec.ts b/packages/core/src/shared/__test__/object-matrix.spec.tsindex 48d3988304..edf888894d 100644--- a/packages/core/src/shared/__test__/object-matrix.spec.ts+++ b/packages/core/src/shared/__test__/object-matrix.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, expect, it } from 'vitest';import { ObjectMatrix } from '../object-matrix';diff --git a/packages/core/src/shared/__test__/ref-alias.spec.ts b/packages/core/src/shared/__test__/ref-alias.spec.tsindex 45fbd36bc6..f8af6eefdc 100644--- a/packages/core/src/shared/__test__/ref-alias.spec.ts+++ b/packages/core/src/shared/__test__/ref-alias.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, expect, it } from 'vitest';import { RefAlias } from '../ref-alias';diff --git a/packages/core/src/shared/array-search.ts b/packages/core/src/shared/array-search.tsindex 2c9397ce0c..5b7c1d78fc 100644--- a/packages/core/src/shared/array-search.ts+++ b/packages/core/src/shared/array-search.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function binarySearchArray(arr: number[], pos: number) {let low: number = 0;let high = arr.length - 1;diff --git a/packages/core/src/shared/blob.ts b/packages/core/src/shared/blob.tsindex cfe25fb0c8..16a87a18d6 100644--- a/packages/core/src/shared/blob.ts+++ b/packages/core/src/shared/blob.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function codeToBlob(code: string) {const blob = new Blob([code], { type: 'text/javascript' });const objectURL = window.URL.createObjectURL(blob);diff --git a/packages/core/src/shared/color-builder.ts b/packages/core/src/shared/color-builder.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/core/src/shared/color/color-builder.ts b/packages/core/src/shared/color/color-builder.tsindex 483d1b0dce..08707082a0 100644--- a/packages/core/src/shared/color/color-builder.ts+++ b/packages/core/src/shared/color/color-builder.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../common/type-utils';import { ColorType, ThemeColors, ThemeColorType } from '../../types/enum';import type { Color } from './color';diff --git a/packages/core/src/shared/color/color.ts b/packages/core/src/shared/color/color.tsindex 8c42a1419d..6d750027bd 100644--- a/packages/core/src/shared/color/color.ts+++ b/packages/core/src/shared/color/color.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../common/type-utils';import { THEME_COLORS } from '../../types/const/theme-color-map';import type { ThemeColors, ThemeColorType } from '../../types/enum';diff --git a/packages/core/src/shared/command-enum.ts b/packages/core/src/shared/command-enum.tsindex d69b845bdd..d1cf986d84 100644--- a/packages/core/src/shared/command-enum.ts+++ b/packages/core/src/shared/command-enum.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum UpdateDocsAttributeType {COVER, // Default, if not present, add; if present, overwrite, while retaining the original properties.REPLACE, // Replace the original properties entirely.diff --git a/packages/core/src/shared/common.ts b/packages/core/src/shared/common.tsindex afd26b2245..d2452206a9 100644--- a/packages/core/src/shared/common.ts+++ b/packages/core/src/shared/common.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {BaselineOffset,BorderStyleTypes,diff --git a/packages/core/src/shared/compare.ts b/packages/core/src/shared/compare.tsindex cc5913b320..d17fec9757 100644--- a/packages/core/src/shared/compare.ts+++ b/packages/core/src/shared/compare.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ITextRun } from '../types/interfaces/i-document-data';interface AnyObject {diff --git a/packages/core/src/shared/doc-tool.ts b/packages/core/src/shared/doc-tool.tsindex 1358cc378f..5fef834657 100644--- a/packages/core/src/shared/doc-tool.ts+++ b/packages/core/src/shared/doc-tool.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraph, IParagraphStyle } from '../types/interfaces/i-document-data';export function horizontalLineSegmentsSubtraction(A1: number, A2: number, B1: number, B2: number) {diff --git a/packages/core/src/shared/gen-name.ts b/packages/core/src/shared/gen-name.tsindex ace9a98208..4866c8fda1 100644--- a/packages/core/src/shared/gen-name.ts+++ b/packages/core/src/shared/gen-name.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class GenName {private _include: string[];diff --git a/packages/core/src/shared/generate.ts b/packages/core/src/shared/generate.tsindex a75b3dcfa7..b2a872375d 100644--- a/packages/core/src/shared/generate.ts+++ b/packages/core/src/shared/generate.ts@@ -1,342 +1,358 @@-import numeral from 'numeral';--import type { IKeyType } from './types';--export const error: IKeyType<string> = {- v: '#VALUE!', // 错误的参数或运算符- n: '#NAME?', // 公式名称错误- na: '#N/A', // 函数或公式中没有可用数值- r: '#REF!', // 删除了由其他公式引用的单元格- d: '#DIV/0!', // 除数是0或空单元格- nm: '#NUM!', // 当公式或函数中某个数字有问题时- nl: '#NULL!', // 交叉运算符(空格)使用不正确- sp: '#SPILL!', // 数组范围有其它值-};-// 是否是错误类型-function valueIsError(value: string) {- let isError = false;-- for (const x in error) {- if (value === error[x]) {- isError = true;- break;- }- }-- return isError;-}--// 是否是纯数字-export function isRealNum(val: string | number) {- if (val === null || val.toString().replace(/\s/g, '') === '') {- return false;- }-- if (typeof val === 'boolean') {- return false;- }-- if (!isNaN(val as number)) {- return true;- }- return false;-}--function isdatetime(s: string | null) {- if (s === null || s.toString().length < 5) {- return false;- }- if (checkDateTime(s)) {- return true;- }- return false;-- function checkDateTime(str: string) {- const reg1 = /^(\d{4})-(\d{1,2})-(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;- const reg2 = /^(\d{4})\/(\d{1,2})\/(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;-- if (!reg1.test(str) && !reg2.test(str)) {- return false;- }-- const year = RegExp.$1 as unknown as number;- const month = RegExp.$2 as unknown as number;- const day = RegExp.$3 as unknown as number;-- if (year < 1900) {- return false;- }-- if (month > 12) {- return false;- }-- if (day > 31) {- return false;- }-- if (month === 2) {- if (new Date(year, 1, 29).getDate() === 29 && day > 29) {- return false;- }- if (new Date(year, 1, 29).getDate() !== 29 && day > 28) {- return false;- }- }-- return true;- }-}--let good_pd_date = new Date('2017-02-19T19:06:09.000Z');-if (Number.isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17');-const good_pd = good_pd_date.getFullYear() === 2017;-function parseDate(str: string | Date, fixdate?: number) {- const d = new Date(str);- if (good_pd) {- if ((fixdate as number) > 0) {- d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000);- } else if ((fixdate as number) < 0) {- d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);- }- return d;- }- if (str instanceof Date) return str;- if (good_pd_date.getFullYear() === 1917 && !Number.isNaN(d.getFullYear())) {- const s = d.getFullYear();- if (str.indexOf(`${s}`) > -1) return d;- d.setFullYear(d.getFullYear() + 100);- return d;- }- const n = str.match(/\d+/g) || ['2017', '2', '19', '0', '0', '0'];- let out = new Date(+n[0], +n[1] - 1, +n[2], +n[3] || 0, +n[4] || 0, +n[5] || 0);- if (str.indexOf('Z') > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000);- return out;-}--const base1904 = new Date(1900, 2, 1, 0, 0, 0);-export function datenum_local(v: Date, date1904?: number) {- let epoch = Date.UTC(v.getFullYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds());- const dnthresh_utc = Date.UTC(1899, 11, 31, 0, 0, 0);-- if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;- else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;- return (epoch - dnthresh_utc) / (24 * 60 * 60 * 1000);-}--export function generate(value: string): any {- // 万 单位格式增加!!!- const ret = [];- let m = null;- let ct: any = {};- let v: any = value;-- if (value === null) {- return null;- }-- if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {- // 表述金额的字符串,如:12,000.00 或者 -12,000.00- m = value;- v = Number(value.split('.')[0].replace(',', ''));- let fa = '#,##0';- if (value.split('.')[1]) {- fa = '#,##0.';- for (let i = 0; i < value.split('.')[1].length; i++) {- fa += 0;- }- }- ct = { fa, t: 'n' };- } else if (value.toString().substr(0, 1) === "'") {- m = value.toString().substr(1);- ct = { fa: '@', t: 's' };- } else if (value.toString().toUpperCase() === 'TRUE') {- m = 'TRUE';- ct = { fa: 'General', t: 'b' };- v = true;- } else if (value.toString().toUpperCase() === 'FALSE') {- m = 'FALSE';- ct = { fa: 'General', t: 'b' };- v = false;- } else if (valueIsError(value)) {- m = value.toString();- ct = { fa: 'General', t: 'e' };- } else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(value)) {- m = value.toString();- ct = { fa: '@', t: 's' };- } else if (- isRealNum(value) &&- Math.abs(parseFloat(value)) > 0 &&- (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)- ) {- v = numeral(value).value();- const str = v.toExponential();- if (str.indexOf('.') > -1) {- let strlen = str.split('.')[1].split('e')[0].length;- if (strlen > 5) {- strlen = 5;- }-- ct = { fa: `#0.${new Array(strlen + 1).join('0')}E+00`, t: 'n' };- } else {- ct = { fa: '#0.E+00', t: 'n' };- }-- m = SSF.format(ct.fa, v);- } else if (value.toString().indexOf('%') > -1) {- const index = value.toString().indexOf('%');- const value2 = value.toString().substr(0, index);- const value3 = value2.replace(/,/g, '');-- if (index === value.toString().length - 1 && isRealNum(value3)) {- if (value2.indexOf('.') > -1) {- if (value2.indexOf('.') === value2.lastIndexOf('.')) {- const value4 = value2.split('.')[0];- const value5 = value2.split('.')[1];-- let len = value5.length;- if (len > 9) {- len = 9;- }-- if (value4.indexOf(',') > -1) {- let isThousands = true;- const ThousandsArr = value4.split(',');-- for (let i = 1; i < ThousandsArr.length; i++) {- if (ThousandsArr[i].length < 3) {- isThousands = false;- break;- }- }-- if (isThousands) {- ct = {- fa: `#,##0.${new Array(len + 1).join('0')}%`,- t: 'n',- };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else {- ct = {- fa: `0.${new Array(len + 1).join('0')}%`,- t: 'n',- };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- }- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else if (value2.indexOf(',') > -1) {- let isThousands = true;- const ThousandsArr = value2.split(',');-- for (let i = 1; i < ThousandsArr.length; i++) {- if (ThousandsArr[i].length < 3) {- isThousands = false;- break;- }- }-- if (isThousands) {- ct = { fa: '#,##0%', t: 'n' };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else {- ct = { fa: '0%', t: 'n' };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- }- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else if (value.toString().indexOf('.') > -1) {- if (value.toString().indexOf('.') === value.toString().lastIndexOf('.')) {- const value1 = value.toString().split('.')[0];- const value2 = value.toString().split('.')[1];-- let len = value2.length;- if (len > 9) {- len = 9;- }-- if (value1.indexOf(',') > -1) {- let isThousands = true;- const ThousandsArr = value1.split(',');-- for (let i = 1; i < ThousandsArr.length; i++) {- if (!isRealNum(ThousandsArr[i]) || ThousandsArr[i].length < 3) {- isThousands = false;- break;- }- }-- if (isThousands) {- ct = { fa: `#,##0.${new Array(len + 1).join('0')}`, t: 'n' };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else if (isRealNum(value1) && isRealNum(value2)) {- ct = { fa: `0.${new Array(len + 1).join('0')}`, t: 'n' };- v = numeral(value).value();- m = SSF.format(ct.fa, v);- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else {- m = value.toString();- ct = { fa: '@', t: 's' };- }- } else if (isRealNum(value)) {- m = value.toString();- ct = { fa: 'General', t: 'n' };- v = parseFloat(value);- } else if (- isdatetime(value) &&- (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)- ) {- v = datenum_local(parseDate(value.toString().replace(/-/g, '/')));-- if (v.toString().indexOf('.') > -1) {- if (value.toString().length > 18) {- ct.fa = 'yyyy-MM-dd hh:mm:ss';- } else if (value.toString().length > 11) {- ct.fa = 'yyyy-MM-dd hh:mm';- } else {- ct.fa = 'yyyy-MM-dd';- }- } else {- ct.fa = 'yyyy-MM-dd';- }-- ct.t = 'd';- m = SSF.format(ct.fa, v);- } else {- m = value;- ct.fa = 'General';- ct.t = 'g';- }-- return [m, ct, v];-}--const SSF = {- format(a: any, b: any) {},-};--export const update = (a: any, b: any): any => {};+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import numeral from 'numeral';++import type { IKeyType } from './types';++export const error: IKeyType<string> = {+ v: '#VALUE!', // 错误的参数或运算符+ n: '#NAME?', // 公式名称错误+ na: '#N/A', // 函数或公式中没有可用数值+ r: '#REF!', // 删除了由其他公式引用的单元格+ d: '#DIV/0!', // 除数是0或空单元格+ nm: '#NUM!', // 当公式或函数中某个数字有问题时+ nl: '#NULL!', // 交叉运算符(空格)使用不正确+ sp: '#SPILL!', // 数组范围有其它值+};+// 是否是错误类型+function valueIsError(value: string) {+ let isError = false;++ for (const x in error) {+ if (value === error[x]) {+ isError = true;+ break;+ }+ }++ return isError;+}++// 是否是纯数字+export function isRealNum(val: string | number) {+ if (val === null || val.toString().replace(/\s/g, '') === '') {+ return false;+ }++ if (typeof val === 'boolean') {+ return false;+ }++ if (!isNaN(val as number)) {+ return true;+ }+ return false;+}++function isdatetime(s: string | null) {+ if (s === null || s.toString().length < 5) {+ return false;+ }+ if (checkDateTime(s)) {+ return true;+ }+ return false;++ function checkDateTime(str: string) {+ const reg1 = /^(\d{4})-(\d{1,2})-(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;+ const reg2 = /^(\d{4})\/(\d{1,2})\/(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;++ if (!reg1.test(str) && !reg2.test(str)) {+ return false;+ }++ const year = RegExp.$1 as unknown as number;+ const month = RegExp.$2 as unknown as number;+ const day = RegExp.$3 as unknown as number;++ if (year < 1900) {+ return false;+ }++ if (month > 12) {+ return false;+ }++ if (day > 31) {+ return false;+ }++ if (month === 2) {+ if (new Date(year, 1, 29).getDate() === 29 && day > 29) {+ return false;+ }+ if (new Date(year, 1, 29).getDate() !== 29 && day > 28) {+ return false;+ }+ }++ return true;+ }+}++let good_pd_date = new Date('2017-02-19T19:06:09.000Z');+if (Number.isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17');+const good_pd = good_pd_date.getFullYear() === 2017;+function parseDate(str: string | Date, fixdate?: number) {+ const d = new Date(str);+ if (good_pd) {+ if ((fixdate as number) > 0) {+ d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000);+ } else if ((fixdate as number) < 0) {+ d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);+ }+ return d;+ }+ if (str instanceof Date) return str;+ if (good_pd_date.getFullYear() === 1917 && !Number.isNaN(d.getFullYear())) {+ const s = d.getFullYear();+ if (str.indexOf(`${s}`) > -1) return d;+ d.setFullYear(d.getFullYear() + 100);+ return d;+ }+ const n = str.match(/\d+/g) || ['2017', '2', '19', '0', '0', '0'];+ let out = new Date(+n[0], +n[1] - 1, +n[2], +n[3] || 0, +n[4] || 0, +n[5] || 0);+ if (str.indexOf('Z') > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000);+ return out;+}++const base1904 = new Date(1900, 2, 1, 0, 0, 0);+export function datenum_local(v: Date, date1904?: number) {+ let epoch = Date.UTC(v.getFullYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds());+ const dnthresh_utc = Date.UTC(1899, 11, 31, 0, 0, 0);++ if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;+ else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;+ return (epoch - dnthresh_utc) / (24 * 60 * 60 * 1000);+}++export function generate(value: string): any {+ // 万 单位格式增加!!!+ const ret = [];+ let m = null;+ let ct: any = {};+ let v: any = value;++ if (value === null) {+ return null;+ }++ if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {+ // 表述金额的字符串,如:12,000.00 或者 -12,000.00+ m = value;+ v = Number(value.split('.')[0].replace(',', ''));+ let fa = '#,##0';+ if (value.split('.')[1]) {+ fa = '#,##0.';+ for (let i = 0; i < value.split('.')[1].length; i++) {+ fa += 0;+ }+ }+ ct = { fa, t: 'n' };+ } else if (value.toString().substr(0, 1) === "'") {+ m = value.toString().substr(1);+ ct = { fa: '@', t: 's' };+ } else if (value.toString().toUpperCase() === 'TRUE') {+ m = 'TRUE';+ ct = { fa: 'General', t: 'b' };+ v = true;+ } else if (value.toString().toUpperCase() === 'FALSE') {+ m = 'FALSE';+ ct = { fa: 'General', t: 'b' };+ v = false;+ } else if (valueIsError(value)) {+ m = value.toString();+ ct = { fa: 'General', t: 'e' };+ } else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(value)) {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ } else if (+ isRealNum(value) &&+ Math.abs(parseFloat(value)) > 0 &&+ (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)+ ) {+ v = numeral(value).value();+ const str = v.toExponential();+ if (str.indexOf('.') > -1) {+ let strlen = str.split('.')[1].split('e')[0].length;+ if (strlen > 5) {+ strlen = 5;+ }++ ct = { fa: `#0.${new Array(strlen + 1).join('0')}E+00`, t: 'n' };+ } else {+ ct = { fa: '#0.E+00', t: 'n' };+ }++ m = SSF.format(ct.fa, v);+ } else if (value.toString().indexOf('%') > -1) {+ const index = value.toString().indexOf('%');+ const value2 = value.toString().substr(0, index);+ const value3 = value2.replace(/,/g, '');++ if (index === value.toString().length - 1 && isRealNum(value3)) {+ if (value2.indexOf('.') > -1) {+ if (value2.indexOf('.') === value2.lastIndexOf('.')) {+ const value4 = value2.split('.')[0];+ const value5 = value2.split('.')[1];++ let len = value5.length;+ if (len > 9) {+ len = 9;+ }++ if (value4.indexOf(',') > -1) {+ let isThousands = true;+ const ThousandsArr = value4.split(',');++ for (let i = 1; i < ThousandsArr.length; i++) {+ if (ThousandsArr[i].length < 3) {+ isThousands = false;+ break;+ }+ }++ if (isThousands) {+ ct = {+ fa: `#,##0.${new Array(len + 1).join('0')}%`,+ t: 'n',+ };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else {+ ct = {+ fa: `0.${new Array(len + 1).join('0')}%`,+ t: 'n',+ };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ }+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else if (value2.indexOf(',') > -1) {+ let isThousands = true;+ const ThousandsArr = value2.split(',');++ for (let i = 1; i < ThousandsArr.length; i++) {+ if (ThousandsArr[i].length < 3) {+ isThousands = false;+ break;+ }+ }++ if (isThousands) {+ ct = { fa: '#,##0%', t: 'n' };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else {+ ct = { fa: '0%', t: 'n' };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ }+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else if (value.toString().indexOf('.') > -1) {+ if (value.toString().indexOf('.') === value.toString().lastIndexOf('.')) {+ const value1 = value.toString().split('.')[0];+ const value2 = value.toString().split('.')[1];++ let len = value2.length;+ if (len > 9) {+ len = 9;+ }++ if (value1.indexOf(',') > -1) {+ let isThousands = true;+ const ThousandsArr = value1.split(',');++ for (let i = 1; i < ThousandsArr.length; i++) {+ if (!isRealNum(ThousandsArr[i]) || ThousandsArr[i].length < 3) {+ isThousands = false;+ break;+ }+ }++ if (isThousands) {+ ct = { fa: `#,##0.${new Array(len + 1).join('0')}`, t: 'n' };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else if (isRealNum(value1) && isRealNum(value2)) {+ ct = { fa: `0.${new Array(len + 1).join('0')}`, t: 'n' };+ v = numeral(value).value();+ m = SSF.format(ct.fa, v);+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else {+ m = value.toString();+ ct = { fa: '@', t: 's' };+ }+ } else if (isRealNum(value)) {+ m = value.toString();+ ct = { fa: 'General', t: 'n' };+ v = parseFloat(value);+ } else if (+ isdatetime(value) &&+ (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)+ ) {+ v = datenum_local(parseDate(value.toString().replace(/-/g, '/')));++ if (v.toString().indexOf('.') > -1) {+ if (value.toString().length > 18) {+ ct.fa = 'yyyy-MM-dd hh:mm:ss';+ } else if (value.toString().length > 11) {+ ct.fa = 'yyyy-MM-dd hh:mm';+ } else {+ ct.fa = 'yyyy-MM-dd';+ }+ } else {+ ct.fa = 'yyyy-MM-dd';+ }++ ct.t = 'd';+ m = SSF.format(ct.fa, v);+ } else {+ m = value;+ ct.fa = 'General';+ ct.t = 'g';+ }++ return [m, ct, v];+}++const SSF = {+ format(a: any, b: any) {},+};++export const update = (a: any, b: any): any => {};diff --git a/packages/core/src/shared/hash-algorithm.ts b/packages/core/src/shared/hash-algorithm.tsindex 026df55b4b..85a2049587 100644--- a/packages/core/src/shared/hash-algorithm.ts+++ b/packages/core/src/shared/hash-algorithm.ts@@ -1,4 +1,19 @@-// SDBM hash Algorithm+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function hashAlgorithm(str: string): number {let hash = 0;diff --git a/packages/core/src/shared/index.ts b/packages/core/src/shared/index.tsindex 9c51cc4b23..69dd2b605b 100644--- a/packages/core/src/shared/index.ts+++ b/packages/core/src/shared/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './array-search';export * from './blob';export * from './color/color';diff --git a/packages/core/src/shared/lifecycle.ts b/packages/core/src/shared/lifecycle.tsindex 5db90ec525..9657754321 100644--- a/packages/core/src/shared/lifecycle.ts+++ b/packages/core/src/shared/lifecycle.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import type { Subscription, SubscriptionLike } from 'rxjs';import { Subject } from 'rxjs';diff --git a/packages/core/src/shared/locale.ts b/packages/core/src/shared/locale.tsindex 56c22bb45e..93996dba7f 100644--- a/packages/core/src/shared/locale.ts+++ b/packages/core/src/shared/locale.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ILanguagePack {[key: string]: string | Array<{ name: string; value: string }> | ILanguagePack;}diff --git a/packages/core/src/shared/lru/index.ts b/packages/core/src/shared/lru/index.tsindex 749be8df25..d325a08e48 100644--- a/packages/core/src/shared/lru/index.ts+++ b/packages/core/src/shared/lru/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './lru-helper';export * from './lru-map';diff --git a/packages/core/src/shared/lru/lru-helper.ts b/packages/core/src/shared/lru/lru-helper.tsindex 0d3892a4fb..9076629c8b 100644--- a/packages/core/src/shared/lru/lru-helper.ts+++ b/packages/core/src/shared/lru/lru-helper.ts@@ -1,21 +1,37 @@-export class LRUHelper {- static hasLength(array: unknown[], size: number) {- return array.length === size;- }-- static getValueType(value: any): string {- return Object.prototype.toString.apply(value);- }-- static isObject<T = object>(value?: any): value is T {- return this.getValueType(value) === '[object Object]';- }-- static isIterable<T>(value?: any): value is Iterable<T> {- return value[Symbol.iterator] != null;- }-- static isNumber(value?: any): value is number {- return this.getValueType(value) === '[object Number]';- }-}+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export class LRUHelper {+ static hasLength(array: unknown[], size: number) {+ return array.length === size;+ }++ static getValueType(value: any): string {+ return Object.prototype.toString.apply(value);+ }++ static isObject<T = object>(value?: any): value is T {+ return this.getValueType(value) === '[object Object]';+ }++ static isIterable<T>(value?: any): value is Iterable<T> {+ return value[Symbol.iterator] != null;+ }++ static isNumber(value?: any): value is number {+ return this.getValueType(value) === '[object Number]';+ }+}diff --git a/packages/core/src/shared/lru/lru-map.ts b/packages/core/src/shared/lru/lru-map.tsindex 250f4b2fd1..e39ea62cc6 100644--- a/packages/core/src/shared/lru/lru-map.ts+++ b/packages/core/src/shared/lru/lru-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { remove } from '../../common/array';diff --git a/packages/core/src/shared/object-array.ts b/packages/core/src/shared/object-array.tsindex f1da919492..5c5b9b3538 100644--- a/packages/core/src/shared/object-array.ts+++ b/packages/core/src/shared/object-array.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, Nullable } from './types';/**diff --git a/packages/core/src/shared/object-matrix.ts b/packages/core/src/shared/object-matrix.tsindex f6c7f49c26..e87fa41dc7 100644--- a/packages/core/src/shared/object-matrix.ts+++ b/packages/core/src/shared/object-matrix.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '../types/interfaces/i-range';import type { ObjectArrayPrimitiveType, PredicateFunction } from './object-array';import { ObjectArray } from './object-array';diff --git a/packages/core/src/shared/permission/index.ts b/packages/core/src/shared/permission/index.tsindex 33dbe4d36f..693b686761 100644--- a/packages/core/src/shared/permission/index.ts+++ b/packages/core/src/shared/permission/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum PermissionStatus {INIT = 'init',FETCHING = 'fetching',diff --git a/packages/core/src/shared/props-from.ts b/packages/core/src/shared/props-from.tsindex 96278d9fae..e72775062b 100644--- a/packages/core/src/shared/props-from.ts+++ b/packages/core/src/shared/props-from.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Observable } from '../observer';/**diff --git a/packages/core/src/shared/rectangle.ts b/packages/core/src/shared/rectangle.tsindex 1776cf9b03..712b4ad155 100644--- a/packages/core/src/shared/rectangle.ts+++ b/packages/core/src/shared/rectangle.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '../types/interfaces/i-range';import { RANGE_TYPE } from '../types/interfaces/i-range';import type { Nullable } from './types';diff --git a/packages/core/src/shared/ref-alias.ts b/packages/core/src/shared/ref-alias.tsindex 4a5ac8723f..ee68d40eb1 100644--- a/packages/core/src/shared/ref-alias.ts+++ b/packages/core/src/shared/ref-alias.ts@@ -1,13 +1,19 @@/**- * Enter an object, indexed by the keys in the object- * example:- * object a is {a:'a',b:'b',c:'c'}- * object b is {a:'aa',b:'bb',c:'cc'}- * object b is {a:'aaa',b:'bbb',c:'ccc'}- * const model = new RefAlias([a,b,c],['a','b']) // the index is 'a' and 'b'.- * we can use model.getValue('aa') or model.getValue('bb') get the object b- * but can't use model.getValue('cc') to get the object b ,because model([a,b,c],['a','b']) is not set 'c' in the second parameter array+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export class RefAlias<T extends Record<string, unknown>, K extends keyof T = keyof T> {private _values: T[] = [];private _keys: K[] = [];diff --git a/packages/core/src/shared/row-col-iter.ts b/packages/core/src/shared/row-col-iter.tsindex eeaa404025..e947ebe642 100644--- a/packages/core/src/shared/row-col-iter.ts+++ b/packages/core/src/shared/row-col-iter.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface IRowColIter {forEach(cb: (row: number, col: number) => void): void;}diff --git a/packages/core/src/shared/sequence.ts b/packages/core/src/shared/sequence.tsindex f1324fde9f..fa34a879b7 100644--- a/packages/core/src/shared/sequence.ts+++ b/packages/core/src/shared/sequence.ts@@ -1,8 +1,19 @@/**- * column subscript letter to number- * @param a letter- * @returns+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export function ABCToNumber(a: string) {if (a == null || a.length === 0) {return NaN;diff --git a/packages/core/src/shared/sort-rules.ts b/packages/core/src/shared/sort-rules.tsindex afc30e82b6..74aab494f8 100644--- a/packages/core/src/shared/sort-rules.ts+++ b/packages/core/src/shared/sort-rules.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function sortRules(oa: any, ob: any) {if (oa.zIndex > ob.zIndex) {return 1;diff --git a/packages/core/src/shared/tools.ts b/packages/core/src/shared/tools.tsindex 24fe64d2e5..3a989dc335 100644--- a/packages/core/src/shared/tools.ts+++ b/packages/core/src/shared/tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { nanoid } from 'nanoid';import type { ObjectArrayPrimitiveType } from './object-array';diff --git a/packages/core/src/shared/types.ts b/packages/core/src/shared/types.tsindex 45c7b9dfa2..04a1028be4 100644--- a/packages/core/src/shared/types.ts+++ b/packages/core/src/shared/types.ts@@ -1,6 +1,19 @@/**- * Alias type for value that can be null+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export type Nullable<T> = T | null | undefined | void;/**diff --git a/packages/core/src/sheets/__tests__/create-core-test-bed.ts b/packages/core/src/sheets/__tests__/create-core-test-bed.tsindex f8f71e0c3c..2a469ef98d 100644--- a/packages/core/src/sheets/__tests__/create-core-test-bed.ts+++ b/packages/core/src/sheets/__tests__/create-core-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/core/src/sheets/__tests__/styles.spec.ts b/packages/core/src/sheets/__tests__/styles.spec.tsindex cb2bb8bcda..1a1dcff68c 100644--- a/packages/core/src/sheets/__tests__/styles.spec.ts+++ b/packages/core/src/sheets/__tests__/styles.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, expect, it } from 'vitest';import { Styles } from '../styles';diff --git a/packages/core/src/sheets/column-manager.ts b/packages/core/src/sheets/column-manager.tsindex 87d8183375..c6904601d9 100644--- a/packages/core/src/sheets/column-manager.ts+++ b/packages/core/src/sheets/column-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../shared';import { Tools } from '../shared';import type { ObjectArrayType } from '../shared/object-array';diff --git a/packages/core/src/sheets/range.ts b/packages/core/src/sheets/range.tsindex 4ae59981bc..863c1443a6 100644--- a/packages/core/src/sheets/range.ts+++ b/packages/core/src/sheets/range.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, ObjectMatrixPrimitiveType } from '../shared';import { ObjectMatrix, Tools } from '../shared';import { DEFAULT_STYLES } from '../types/const';diff --git a/packages/core/src/sheets/reference.ts b/packages/core/src/sheets/reference.tsindex 2dabc5eccc..95f1e37989 100644--- a/packages/core/src/sheets/reference.ts+++ b/packages/core/src/sheets/reference.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Tools } from '../shared/tools';import type { IRange } from '../types/interfaces/i-range';import { AbsoluteRefType } from '../types/interfaces/i-range';diff --git a/packages/core/src/sheets/row-manager.ts b/packages/core/src/sheets/row-manager.tsindex d3da60b8b7..4180003d7c 100644--- a/packages/core/src/sheets/row-manager.ts+++ b/packages/core/src/sheets/row-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, ObjectArrayType } from '../shared';import { ObjectArray, Tools } from '../shared';import { BooleanNumber } from '../types/enum';diff --git a/packages/core/src/sheets/styles.ts b/packages/core/src/sheets/styles.tsindex a7c36f9813..1fb8a4d14c 100644--- a/packages/core/src/sheets/styles.ts+++ b/packages/core/src/sheets/styles.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyType, Nullable } from '../shared';import { Tools } from '../shared';import type { ICellDataForSheetInterceptor, IStyleData } from '../types/interfaces';diff --git a/packages/core/src/sheets/view-model.ts b/packages/core/src/sheets/view-model.tsindex ff2bb8d677..0f43b47b28 100644--- a/packages/core/src/sheets/view-model.ts+++ b/packages/core/src/sheets/view-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { remove } from '../common/array';diff --git a/packages/core/src/sheets/workbook.ts b/packages/core/src/sheets/workbook.tsindex 4e4f59e085..653eaaad2a 100644--- a/packages/core/src/sheets/workbook.ts+++ b/packages/core/src/sheets/workbook.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { forwardRef, Inject, Injector } from '@wendellhu/redi';import { Subject } from 'rxjs';diff --git a/packages/core/src/sheets/worksheet.ts b/packages/core/src/sheets/worksheet.tsindex 31e5eda29c..c49de9b01a 100644--- a/packages/core/src/sheets/worksheet.ts+++ b/packages/core/src/sheets/worksheet.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../shared';import { ObjectMatrix, Rectangle, Tools } from '../shared';import { createRowColIter } from '../shared/row-col-iter';diff --git a/packages/core/src/slides/domain/index.ts b/packages/core/src/slides/domain/index.tsindex 9f0106e5ef..86c1650004 100644--- a/packages/core/src/slides/domain/index.ts+++ b/packages/core/src/slides/domain/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './slide-model';diff --git a/packages/core/src/slides/domain/slide-model.ts b/packages/core/src/slides/domain/slide-model.tsindex e434b6e422..b475ed784e 100644--- a/packages/core/src/slides/domain/slide-model.ts+++ b/packages/core/src/slides/domain/slide-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Tools } from '../../shared';import { DEFAULT_SLIDE } from '../../types/const';import type { ISlideData, ISlidePage } from '../../types/interfaces';diff --git a/packages/core/src/types/const/action-names.ts b/packages/core/src/types/const/action-names.tsindex 33bade9cc2..7f2372800a 100644--- a/packages/core/src/types/const/action-names.ts+++ b/packages/core/src/types/const/action-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+/*** Name set of all action*/diff --git a/packages/core/src/types/const/const.ts b/packages/core/src/types/const/const.tsindex e5e62490eb..fffb86ab1b 100644--- a/packages/core/src/types/const/const.ts+++ b/packages/core/src/types/const/const.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {BooleanNumber,HorizontalAlign,diff --git a/packages/core/src/types/const/doc-action-names.ts b/packages/core/src/types/const/doc-action-names.tsindex b17b9f3d06..68d0950fbf 100644--- a/packages/core/src/types/const/doc-action-names.ts+++ b/packages/core/src/types/const/doc-action-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum DOC_ACTION_NAMES {INSERT_ACTION_NAME = 'InsertAction',DELETE_ACTION_NAME = 'DeleteAction',diff --git a/packages/core/src/types/const/extension-names.ts b/packages/core/src/types/const/extension-names.tsindex ed5d6c508b..10c9770a06 100644--- a/packages/core/src/types/const/extension-names.ts+++ b/packages/core/src/types/const/extension-names.ts@@ -1,6 +1,19 @@/**- * Set of extension names+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum EXTENSION_NAMES {ARRAY_CONVERTOR = 'ARRAY_CONVERTOR',MATRIX_CONVERTOR = 'MATRIX_CONVERTOR',diff --git a/packages/core/src/types/const/index.ts b/packages/core/src/types/const/index.tsindex af2e92dba1..bfc107289b 100644--- a/packages/core/src/types/const/index.ts+++ b/packages/core/src/types/const/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './action-names';export * from './const';export * from './extension-names';diff --git a/packages/core/src/types/const/theme-color-map.ts b/packages/core/src/types/const/theme-color-map.tsindex 65b5ee2516..9e3bdf37b7 100644--- a/packages/core/src/types/const/theme-color-map.ts+++ b/packages/core/src/types/const/theme-color-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ThemeColors, ThemeColorType } from '../enum';interface IThemeColors {diff --git a/packages/core/src/types/enum/auto-fill-series.ts b/packages/core/src/types/enum/auto-fill-series.tsindex 4a4e46f47e..d7cf8394a0 100644--- a/packages/core/src/types/enum/auto-fill-series.ts+++ b/packages/core/src/types/enum/auto-fill-series.ts@@ -1,11 +1,19 @@/**- * Auto-fill series+ * Copyright 2023 DreamNum Inc.*- * @remarks- * An enumeration of the types of series used to calculate auto-filled values. The manner in which these series affect calculated values differs depending on the type and amount of source data.+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at*- * Reference: {@link https://developers.google.com/apps-script/reference/spreadsheet/auto-fill-series | Google Sheets Enum AutoFillSeries}+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum AutoFillSeries {/*** Default. Auto-filling with this setting results in the empty cells in the expanded range being filled with increments of the existing values.diff --git a/packages/core/src/types/enum/border-style-types.ts b/packages/core/src/types/enum/border-style-types.tsindex 7b2b702e18..bbc7fc97a3 100644--- a/packages/core/src/types/enum/border-style-types.ts+++ b/packages/core/src/types/enum/border-style-types.ts@@ -1,6 +1,19 @@/**- * Type set of border style+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum BorderStyleTypes {NONE,THIN,diff --git a/packages/core/src/types/enum/color-type.ts b/packages/core/src/types/enum/color-type.tsindex 03526921ad..45414cd27e 100644--- a/packages/core/src/types/enum/color-type.ts+++ b/packages/core/src/types/enum/color-type.ts@@ -1,6 +1,19 @@/**- * Set of color types+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum ColorType {UNSUPPORTED,RGB,diff --git a/packages/core/src/types/enum/common-hide-types.ts b/packages/core/src/types/enum/common-hide-types.tsindex 853029bb9d..912a432aa0 100644--- a/packages/core/src/types/enum/common-hide-types.ts+++ b/packages/core/src/types/enum/common-hide-types.ts@@ -1,6 +1,19 @@/**- * Hide type+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum CommonHideTypes {ON,OFF,diff --git a/packages/core/src/types/enum/condition-type.ts b/packages/core/src/types/enum/condition-type.tsindex 687e631b59..d53796d13a 100644--- a/packages/core/src/types/enum/condition-type.ts+++ b/packages/core/src/types/enum/condition-type.ts@@ -1,6 +1,19 @@/**- * The type of condition.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum ConditionType {CONDITION_TYPE_UNSPECIFIED, // The default value, do not use.NUMNUMBER_BETWEENR_GREATER, // The cell's value must be greater than the condition's value. Supported by data validation, conditional formatting and filters. Requires a single ConditionValuediff --git a/packages/core/src/types/enum/copy-paste-type.ts b/packages/core/src/types/enum/copy-paste-type.tsindex 31a4c701dc..6bca2d66b0 100644--- a/packages/core/src/types/enum/copy-paste-type.ts+++ b/packages/core/src/types/enum/copy-paste-type.ts@@ -1,9 +1,19 @@/**- * An enumeration of possible special paste types.+ * Copyright 2023 DreamNum Inc.*- * @remarks- * Reference: https://developers.google.com/apps-script/reference/spreadsheet/copy-paste-type+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum CopyPasteType {PASTE_NORMAL, // Paste values, formulas, formats and merges.PASTE_NO_BORDERS, // Paste values, formulas, formats and merges but without borders.diff --git a/packages/core/src/types/enum/developer-metadata-visibility.ts b/packages/core/src/types/enum/developer-metadata-visibility.tsindex 2033999cfa..e1b0d6dbdd 100644--- a/packages/core/src/types/enum/developer-metadata-visibility.ts+++ b/packages/core/src/types/enum/developer-metadata-visibility.ts@@ -1,6 +1,19 @@/**- * An enumeration of the types of developer metadata visibility.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum DeveloperMetadataVisibility {DOCUMENT, // Document-visible metadata is accessible from any developer project with access to the document.PROJECT, // Project-visible metadata is only visible to and accessible by the developer project that created the metadata. Do not use project-visible developer metadata as a security mechanism or to store secrets. It can be exposed to users with view access to the document.diff --git a/packages/core/src/types/enum/dimension.ts b/packages/core/src/types/enum/dimension.tsindex 911a87097e..1fe1d32fed 100644--- a/packages/core/src/types/enum/dimension.ts+++ b/packages/core/src/types/enum/dimension.ts@@ -1,8 +1,19 @@/**- * COLUMNS 0+ * Copyright 2023 DreamNum Inc.*- * ROWS 1+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum Dimension {/*** The column (vertical) dimension. move left or rightdiff --git a/packages/core/src/types/enum/direction.ts b/packages/core/src/types/enum/direction.tsindex 6bd96e32d3..692270acf5 100644--- a/packages/core/src/types/enum/direction.ts+++ b/packages/core/src/types/enum/direction.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum Direction {UP,RIGHT,diff --git a/packages/core/src/types/enum/format-type.ts b/packages/core/src/types/enum/format-type.tsindex 717cec641e..4a87fb2573 100644--- a/packages/core/src/types/enum/format-type.ts+++ b/packages/core/src/types/enum/format-type.ts@@ -1,6 +1,19 @@/**- * The number format of the cell.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum FormatType {// The number format is not specified and is based on the contents of the cell. Do not explicitly use this.NUMBER_FORMAT_TYPE_UNSPECIFIED,diff --git a/packages/core/src/types/enum/group-control-toggle-position.ts b/packages/core/src/types/enum/group-control-toggle-position.tsindex 60776cbd2d..20993a4d6e 100644--- a/packages/core/src/types/enum/group-control-toggle-position.ts+++ b/packages/core/src/types/enum/group-control-toggle-position.ts@@ -1,6 +1,19 @@/**- * An enumeration representing the possible positions that a group control toggle can have.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum GroupControlTogglePosition {BEFORE,AFTER,diff --git a/packages/core/src/types/enum/index.ts b/packages/core/src/types/enum/index.tsindex d21fcd7f28..bc6718cb91 100644--- a/packages/core/src/types/enum/index.ts+++ b/packages/core/src/types/enum/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './auto-fill-series';export * from './border-style-types';export * from './color-type';diff --git a/packages/core/src/types/enum/interpolation-point-type.ts b/packages/core/src/types/enum/interpolation-point-type.tsindex 20f4a33dcb..c1815489e3 100644--- a/packages/core/src/types/enum/interpolation-point-type.ts+++ b/packages/core/src/types/enum/interpolation-point-type.ts@@ -1,6 +1,19 @@/**- * An enumeration representing the interpolation options for calculating a value to be used in a GradientCondition in a ConditionalFormatRule.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum InterpolationPointType {INTERPOLATION_POINT_TYPE_UNSPECIFIED, // The default value, do not use.MIN, // The interpolation point uses the minimum value in the cells over the range of the conditional format.diff --git a/packages/core/src/types/enum/locale-type.ts b/packages/core/src/types/enum/locale-type.tsindex c8a96b445d..af30e10def 100644--- a/packages/core/src/types/enum/locale-type.ts+++ b/packages/core/src/types/enum/locale-type.ts@@ -1,8 +1,19 @@/**- * Internationalized enumeration information.+ * Copyright 2023 DreamNum Inc.*- * Refer to {@link https://github.com/ladjs/i18n-locales | i18n-locales}+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum LocaleType {EN_US = 'enUS',ZH_CN = 'zhCN',diff --git a/packages/core/src/types/enum/place-holder-type.ts b/packages/core/src/types/enum/place-holder-type.tsindex 0651b3bb44..e3b49dcf74 100644--- a/packages/core/src/types/enum/place-holder-type.ts+++ b/packages/core/src/types/enum/place-holder-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum PlaceholderType {NONE, //Default value, signifies it is not a placeholder.BODY, //Body text.diff --git a/packages/core/src/types/enum/protection-type.ts b/packages/core/src/types/enum/protection-type.tsindex 9279a87482..59c5245c64 100644--- a/packages/core/src/types/enum/protection-type.ts+++ b/packages/core/src/types/enum/protection-type.ts@@ -1,6 +1,19 @@/**- * Type of sheet protection+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum ProtectionType {RANGE,SHEET,diff --git a/packages/core/src/types/enum/relative-date.ts b/packages/core/src/types/enum/relative-date.tsindex 6efb811108..0776fb116d 100644--- a/packages/core/src/types/enum/relative-date.ts+++ b/packages/core/src/types/enum/relative-date.ts@@ -1,6 +1,19 @@/**- * An enumeration representing the relative date options for calculating a value to be used in date-based BooleanCriteria.+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum RelativeDate {RELATIVE_DATE_UNSPECIFIED, // Default value, do not use.PAST_YEAR,diff --git a/packages/core/src/types/enum/shape-type.ts b/packages/core/src/types/enum/shape-type.tsindex 3d802cb578..0e78c3464f 100644--- a/packages/core/src/types/enum/shape-type.ts+++ b/packages/core/src/types/enum/shape-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum ShapeType {TYPE_UNSPECIFIED, //The shape type that is not predefined.TEXT_BOX, //Text box shape.diff --git a/packages/core/src/types/enum/sheet-types.ts b/packages/core/src/types/enum/sheet-types.tsindex 9098802b65..b3938049a9 100644--- a/packages/core/src/types/enum/sheet-types.ts+++ b/packages/core/src/types/enum/sheet-types.ts@@ -1,6 +1,19 @@/**- * Types of sheet+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum SheetTypes {GRID,KANBAN,diff --git a/packages/core/src/types/enum/text-style.ts b/packages/core/src/types/enum/text-style.tsindex 6006631158..9e179aca01 100644--- a/packages/core/src/types/enum/text-style.ts+++ b/packages/core/src/types/enum/text-style.ts@@ -1,6 +1,19 @@/**- * Direction of text+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum TextDirection {UNSPECIFIED,LEFT_TO_RIGHT,diff --git a/packages/core/src/types/enum/theme-color-type.ts b/packages/core/src/types/enum/theme-color-type.tsindex d39d5b493c..1ab8105849 100644--- a/packages/core/src/types/enum/theme-color-type.ts+++ b/packages/core/src/types/enum/theme-color-type.ts@@ -1,26 +1,19 @@/**- * Theme color types.+ * Copyright 2023 DreamNum Inc.*- * @remarks- * SpreadsheetProperties contain a SpreadsheetTheme that defines a mapping of these theme color types to concrete colors.+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at*- * Reference: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/other#ThemeColor+ * http://www.apache.org/licenses/LICENSE-2.0*- * 17.18.97 ST_ThemeColor (Theme Color)- *- * <xsd:enumeration value="dark1"/>- 2703 <xsd:enumeration value="light1"/>- 2704 <xsd:enumeration value="dark2"/>- 2705 <xsd:enumeration value="light2"/>- 2706 <xsd:enumeration value="accent1"/>- 2707 <xsd:enumeration value="accent2"/>- 2708 <xsd:enumeration value="accent3"/>- 2709 <xsd:enumeration value="accent4"/>- 2710 <xsd:enumeration value="accent5"/>- 2711 <xsd:enumeration value="accent6"/>- 2712 <xsd:enumeration value="hyperlink"/>- 2713 <xsd:enumeration value="followedHyperlink"/>+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum ThemeColorType {/*** TEXTdiff --git a/packages/core/src/types/interfaces/i-cell-data.ts b/packages/core/src/types/interfaces/i-cell-data.tsindex 35e95cbbd5..63c109e892 100644--- a/packages/core/src/types/interfaces/i-cell-data.ts+++ b/packages/core/src/types/interfaces/i-cell-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../shared/types';import { CellValueType } from '../enum/text-style';import type { IDocumentData } from './i-document-data';diff --git a/packages/core/src/types/interfaces/i-column-data.ts b/packages/core/src/types/interfaces/i-column-data.tsindex 963e0d3af5..d8b13eeeb1 100644--- a/packages/core/src/types/interfaces/i-column-data.ts+++ b/packages/core/src/types/interfaces/i-column-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber } from '../enum';/**diff --git a/packages/core/src/types/interfaces/i-document-data.ts b/packages/core/src/types/interfaces/i-document-data.tsindex 33f698ed8d..2913f46791 100644--- a/packages/core/src/types/interfaces/i-document-data.ts+++ b/packages/core/src/types/interfaces/i-document-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISize } from '../../services/floating-object/floating-object-interfaces';import type { BooleanNumber, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';import type { IExtraModelData } from './i-extra-model-data';diff --git a/packages/core/src/types/interfaces/i-extra-model-data.ts b/packages/core/src/types/interfaces/i-extra-model-data.tsindex d92d238cad..568e3e0384 100644--- a/packages/core/src/types/interfaces/i-extra-model-data.ts+++ b/packages/core/src/types/interfaces/i-extra-model-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface IExtraModelData {/*** should start renderLoop Immediatelydiff --git a/packages/core/src/types/interfaces/i-freeze.ts b/packages/core/src/types/interfaces/i-freeze.tsindex ee668e8967..fe36b7d8c7 100644--- a/packages/core/src/types/interfaces/i-freeze.ts+++ b/packages/core/src/types/interfaces/i-freeze.ts@@ -1,7 +1,19 @@/**- * Ecma Office Open XML Part 1 - Fundamentals And Markup Language Reference- * 18.3.1.66 pane (View Pane)+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export interface IFreeze {xSplit: number;ySplit: number;diff --git a/packages/core/src/types/interfaces/i-image-properties.ts b/packages/core/src/types/interfaces/i-image-properties.tsindex 65cb8b525f..1e2a5bcc80 100644--- a/packages/core/src/types/interfaces/i-image-properties.ts+++ b/packages/core/src/types/interfaces/i-image-properties.ts@@ -1,6 +1,19 @@/**- * Properties of Image+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export interface IImageProperties {contentUrl: string;sourceUrl?: string;diff --git a/packages/core/src/types/interfaces/i-placeholder.ts b/packages/core/src/types/interfaces/i-placeholder.tsindex 152f075a85..d7d8927544 100644--- a/packages/core/src/types/interfaces/i-placeholder.ts+++ b/packages/core/src/types/interfaces/i-placeholder.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { PlaceholderType } from '../enum/place-holder-type';export interface IPlaceholder {diff --git a/packages/core/src/types/interfaces/i-range.ts b/packages/core/src/types/interfaces/i-range.tsindex 321945ca00..92c4e9a632 100644--- a/packages/core/src/types/interfaces/i-range.ts+++ b/packages/core/src/types/interfaces/i-range.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum RANGE_TYPE {NORMAL,ROW,diff --git a/packages/core/src/types/interfaces/i-row-data.ts b/packages/core/src/types/interfaces/i-row-data.tsindex f9eb733acc..3875f331ef 100644--- a/packages/core/src/types/interfaces/i-row-data.ts+++ b/packages/core/src/types/interfaces/i-row-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber } from '../enum';/**diff --git a/packages/core/src/types/interfaces/i-selection-data.ts b/packages/core/src/types/interfaces/i-selection-data.tsindex 40fccf8989..cc0547b52b 100644--- a/packages/core/src/types/interfaces/i-selection-data.ts+++ b/packages/core/src/types/interfaces/i-selection-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../shared/types';import type { IRange } from './i-range';diff --git a/packages/core/src/types/interfaces/i-service-data.ts b/packages/core/src/types/interfaces/i-service-data.tsindex 2aba8887d2..bdc31c0c30 100644--- a/packages/core/src/types/interfaces/i-service-data.ts+++ b/packages/core/src/types/interfaces/i-service-data.ts@@ -1,4 +1,17 @@/**- * Properties of service+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export interface IServiceData {}diff --git a/packages/core/src/types/interfaces/i-shape-properties.ts b/packages/core/src/types/interfaces/i-shape-properties.tsindex 1a503911c7..a96d8c3f18 100644--- a/packages/core/src/types/interfaces/i-shape-properties.ts+++ b/packages/core/src/types/interfaces/i-shape-properties.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BorderStyleTypes } from '../enum/border-style-types';import type { IColorStyle } from './i-style-data';diff --git a/packages/core/src/types/interfaces/i-slide-data.ts b/packages/core/src/types/interfaces/i-slide-data.tsindex 46e80c8a49..db8de4ef8b 100644--- a/packages/core/src/types/interfaces/i-slide-data.ts+++ b/packages/core/src/types/interfaces/i-slide-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISize, ITransformState } from '../../services/floating-object/floating-object-interfaces';import type { IKeyType, Nullable } from '../../shared/types';import type { LocaleType, ThemeColorType } from '../enum';diff --git a/packages/core/src/types/interfaces/i-style-data.ts b/packages/core/src/types/interfaces/i-style-data.tsindex 49a2d9033a..7b85ed3f79 100644--- a/packages/core/src/types/interfaces/i-style-data.ts+++ b/packages/core/src/types/interfaces/i-style-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '../../shared/types';import type { BorderStyleTypes } from '../enum/border-style-types';import type {diff --git a/packages/core/src/types/interfaces/i-univer-data.ts b/packages/core/src/types/interfaces/i-univer-data.tsindex e5eeed2cc0..82b796e0eb 100644--- a/packages/core/src/types/interfaces/i-univer-data.ts+++ b/packages/core/src/types/interfaces/i-univer-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LogLevel } from '../../services/log/log.service';import type { IStyleSheet } from '../../services/theme/theme.service';import type { ILocales } from '../../shared/locale';diff --git a/packages/core/src/types/interfaces/i-workbook-data.ts b/packages/core/src/types/interfaces/i-workbook-data.tsindex a8f57885f9..2916b36b8c 100644--- a/packages/core/src/types/interfaces/i-workbook-data.ts+++ b/packages/core/src/types/interfaces/i-workbook-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyType, Nullable } from '../../shared/types';import type { LocaleType } from '../enum';import type { IExtraModelData } from './i-extra-model-data';diff --git a/packages/core/src/types/interfaces/i-worksheet-data.ts b/packages/core/src/types/interfaces/i-worksheet-data.tsindex b92f01b1c6..2439c17620 100644--- a/packages/core/src/types/interfaces/i-worksheet-data.ts+++ b/packages/core/src/types/interfaces/i-worksheet-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ObjectArrayType } from '../../shared/object-array';import type { ObjectMatrixPrimitiveType } from '../../shared/object-matrix';import type { IKeyValue } from '../../shared/types';diff --git a/packages/core/src/types/interfaces/i-worksheet-order-data.ts b/packages/core/src/types/interfaces/i-worksheet-order-data.tsindex 1a3f5a97bb..d5087d092c 100644--- a/packages/core/src/types/interfaces/i-worksheet-order-data.ts+++ b/packages/core/src/types/interfaces/i-worksheet-order-data.ts@@ -1,4 +1,17 @@/**- * Properties of WorksheetOrderData+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export interface IWorksheetOrderData {}diff --git a/packages/core/src/types/interfaces/index.ts b/packages/core/src/types/interfaces/index.tsindex 3ac9c88cc3..f684f2fecf 100644--- a/packages/core/src/types/interfaces/index.ts+++ b/packages/core/src/types/interfaces/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './i-cell-data';export * from './i-column-data';export * from './i-document-data';diff --git a/packages/design/src/components/avatar/Avatar.stories.tsx b/packages/design/src/components/avatar/Avatar.stories.tsxindex f39ed188cc..c3d9237c26 100644--- a/packages/design/src/components/avatar/Avatar.stories.tsx+++ b/packages/design/src/components/avatar/Avatar.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/avatar/Avatar.tsx b/packages/design/src/components/avatar/Avatar.tsxindex a6001289ad..61ab31d25f 100644--- a/packages/design/src/components/avatar/Avatar.tsx+++ b/packages/design/src/components/avatar/Avatar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import clsx from 'clsx';import React from 'react';diff --git a/packages/design/src/components/avatar/__tests__/index.spec.tsx b/packages/design/src/components/avatar/__tests__/index.spec.tsxindex 17c102f817..868ec2ec2a 100644--- a/packages/design/src/components/avatar/__tests__/index.spec.tsx+++ b/packages/design/src/components/avatar/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/avatar/index.ts b/packages/design/src/components/avatar/index.tsindex abd050f373..163a92abab 100644--- a/packages/design/src/components/avatar/index.ts+++ b/packages/design/src/components/avatar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Avatar, type IAvatarProps } from './Avatar';diff --git a/packages/design/src/components/button/Button.stories.tsx b/packages/design/src/components/button/Button.stories.tsxindex 20476b4f17..565a20588f 100644--- a/packages/design/src/components/button/Button.stories.tsx+++ b/packages/design/src/components/button/Button.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/button/Button.tsx b/packages/design/src/components/button/Button.tsxindex f28f9b3594..817ccec08d 100644--- a/packages/design/src/components/button/Button.tsx+++ b/packages/design/src/components/button/Button.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import clsx from 'clsx';import React from 'react';diff --git a/packages/design/src/components/button/__tests__/index.spec.tsx b/packages/design/src/components/button/__tests__/index.spec.tsxindex 5e60896135..605971466e 100644--- a/packages/design/src/components/button/__tests__/index.spec.tsx+++ b/packages/design/src/components/button/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/button/index.ts b/packages/design/src/components/button/index.tsindex 7927cad3ae..eb34c4d70f 100644--- a/packages/design/src/components/button/index.ts+++ b/packages/design/src/components/button/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Button, type ButtonSize, type ButtonType, type IButtonProps } from './Button';diff --git a/packages/design/src/components/cascader-list/CascaderList.stories.tsx b/packages/design/src/components/cascader-list/CascaderList.stories.tsxindex 02c11ec817..aacd0cd029 100644--- a/packages/design/src/components/cascader-list/CascaderList.stories.tsx+++ b/packages/design/src/components/cascader-list/CascaderList.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/cascader-list/CascaderList.tsx b/packages/design/src/components/cascader-list/CascaderList.tsxindex 2a2ea6013d..8fb6143f03 100644--- a/packages/design/src/components/cascader-list/CascaderList.tsx+++ b/packages/design/src/components/cascader-list/CascaderList.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { CheckMarkSingle } from '@univerjs/icons';import clsx from 'clsx';import React, { useMemo } from 'react';diff --git a/packages/design/src/components/cascader-list/index.ts b/packages/design/src/components/cascader-list/index.tsindex f72cfca466..49a13fca6b 100644--- a/packages/design/src/components/cascader-list/index.ts+++ b/packages/design/src/components/cascader-list/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { CascaderList, type ICascaderListProps } from './CascaderList';diff --git a/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx b/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsxindex 2a124b2fd8..b43cedd08a 100644--- a/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx+++ b/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/checkbox-group/CheckboxGroup.tsx b/packages/design/src/components/checkbox-group/CheckboxGroup.tsxindex 8929fc56f7..199d1bf576 100644--- a/packages/design/src/components/checkbox-group/CheckboxGroup.tsx+++ b/packages/design/src/components/checkbox-group/CheckboxGroup.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import type { ICheckboxProps } from '../checkbox/Checkbox';diff --git a/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx b/packages/design/src/components/checkbox-group/__tests__/index.spec.tsxindex 793bf093b2..29420dc9df 100644--- a/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx+++ b/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render } from '@testing-library/react';import React, { useState } from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/checkbox-group/index.ts b/packages/design/src/components/checkbox-group/index.tsindex b3ca47c880..d6f08bbbec 100644--- a/packages/design/src/components/checkbox-group/index.ts+++ b/packages/design/src/components/checkbox-group/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { CheckboxGroup, type ICheckboxGroupProps } from './CheckboxGroup';diff --git a/packages/design/src/components/checkbox/Checkbox.stories.tsx b/packages/design/src/components/checkbox/Checkbox.stories.tsxindex 16edb57c6b..fd620e3831 100644--- a/packages/design/src/components/checkbox/Checkbox.stories.tsx+++ b/packages/design/src/components/checkbox/Checkbox.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/checkbox/Checkbox.tsx b/packages/design/src/components/checkbox/Checkbox.tsxindex 718200aa6c..3c1d5cefc7 100644--- a/packages/design/src/components/checkbox/Checkbox.tsx+++ b/packages/design/src/components/checkbox/Checkbox.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import clsx from 'clsx';import React, { useRef } from 'react';diff --git a/packages/design/src/components/checkbox/__tests__/index.spec.tsx b/packages/design/src/components/checkbox/__tests__/index.spec.tsxindex ca658f7860..4b23d8c09d 100644--- a/packages/design/src/components/checkbox/__tests__/index.spec.tsx+++ b/packages/design/src/components/checkbox/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/checkbox/index.ts b/packages/design/src/components/checkbox/index.tsindex 75869e31a1..52ae2c7a19 100644--- a/packages/design/src/components/checkbox/index.ts+++ b/packages/design/src/components/checkbox/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Checkbox, type ICheckboxProps } from './Checkbox';diff --git a/packages/design/src/components/color-picker/ColorPicker.stories.tsx b/packages/design/src/components/color-picker/ColorPicker.stories.tsxindex d3c63ab7db..ad899e0384 100644--- a/packages/design/src/components/color-picker/ColorPicker.stories.tsx+++ b/packages/design/src/components/color-picker/ColorPicker.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/color-picker/ColorPicker.tsx b/packages/design/src/components/color-picker/ColorPicker.tsxindex b3ab7f88fa..235fbc59fc 100644--- a/packages/design/src/components/color-picker/ColorPicker.tsx+++ b/packages/design/src/components/color-picker/ColorPicker.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Color } from '@rc-component/color-picker';import RcColorPicker, { ColorBlock } from '@rc-component/color-picker';import React from 'react';diff --git a/packages/design/src/components/color-picker/index.ts b/packages/design/src/components/color-picker/index.tsindex d02029a1e2..8ec7c5ed76 100644--- a/packages/design/src/components/color-picker/index.ts+++ b/packages/design/src/components/color-picker/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { ColorPicker, type IColorPickerProps } from './ColorPicker';diff --git a/packages/design/src/components/color-picker/presets.ts b/packages/design/src/components/color-picker/presets.tsindex d87ae915df..111441111f 100644--- a/packages/design/src/components/color-picker/presets.ts+++ b/packages/design/src/components/color-picker/presets.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const colorPresets = ['#35322B','#505050',diff --git a/packages/design/src/components/config-provider/ConfigProvider.stories.tsx b/packages/design/src/components/config-provider/ConfigProvider.stories.tsxindex 94baf8665e..fe0a86dd41 100644--- a/packages/design/src/components/config-provider/ConfigProvider.stories.tsx+++ b/packages/design/src/components/config-provider/ConfigProvider.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/config-provider/ConfigProvider.tsx b/packages/design/src/components/config-provider/ConfigProvider.tsxindex eb829fce6e..89701eb1ff 100644--- a/packages/design/src/components/config-provider/ConfigProvider.tsx+++ b/packages/design/src/components/config-provider/ConfigProvider.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React, { createContext } from 'react';import type { ILocale } from '../../locale';diff --git a/packages/design/src/components/config-provider/__tests__/index.spec.tsx b/packages/design/src/components/config-provider/__tests__/index.spec.tsxindex 85cc6fdd39..0b1e9fd10c 100644--- a/packages/design/src/components/config-provider/__tests__/index.spec.tsx+++ b/packages/design/src/components/config-provider/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { render } from '@testing-library/react';import React, { useContext } from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/config-provider/index.ts b/packages/design/src/components/config-provider/index.tsindex c7e8183ec7..ab4ac0edf0 100644--- a/packages/design/src/components/config-provider/index.ts+++ b/packages/design/src/components/config-provider/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { ConfigContext, ConfigProvider, type IConfigProviderProps } from './ConfigProvider';diff --git a/packages/design/src/components/confirm/Confirm.stories.tsx b/packages/design/src/components/confirm/Confirm.stories.tsxindex 9263c4d44c..4703943c40 100644--- a/packages/design/src/components/confirm/Confirm.stories.tsx+++ b/packages/design/src/components/confirm/Confirm.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/confirm/Confirm.tsx b/packages/design/src/components/confirm/Confirm.tsxindex 9246817f7b..ba5da4cf13 100644--- a/packages/design/src/components/confirm/Confirm.tsx+++ b/packages/design/src/components/confirm/Confirm.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React, { useContext } from 'react';import { Button } from '../button/Button';diff --git a/packages/design/src/components/confirm/index.ts b/packages/design/src/components/confirm/index.tsindex 5f1dc8fb98..0dc3ed76a3 100644--- a/packages/design/src/components/confirm/index.ts+++ b/packages/design/src/components/confirm/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Confirm, type IConfirmProps } from './Confirm';diff --git a/packages/design/src/components/container/Container.stories.tsx b/packages/design/src/components/container/Container.stories.tsxindex ee53952156..b20ddf664a 100644--- a/packages/design/src/components/container/Container.stories.tsx+++ b/packages/design/src/components/container/Container.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/container/Container.tsx b/packages/design/src/components/container/Container.tsxindex ae5e1b3091..4cd21e714e 100644--- a/packages/design/src/components/container/Container.tsx+++ b/packages/design/src/components/container/Container.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Ref } from 'react';import React, { forwardRef } from 'react';diff --git a/packages/design/src/components/container/__tests__/index.spec.tsx b/packages/design/src/components/container/__tests__/index.spec.tsxindex bc0fe2fe88..4cfcc80415 100644--- a/packages/design/src/components/container/__tests__/index.spec.tsx+++ b/packages/design/src/components/container/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/container/index.ts b/packages/design/src/components/container/index.tsindex 7260f401c4..5572cbfd8c 100644--- a/packages/design/src/components/container/index.ts+++ b/packages/design/src/components/container/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Container, type IContainerProps } from './Container';diff --git a/packages/design/src/components/design-token/Palette.stories.tsx b/packages/design/src/components/design-token/Palette.stories.tsxindex 931a86804a..d0d1096753 100644--- a/packages/design/src/components/design-token/Palette.stories.tsx+++ b/packages/design/src/components/design-token/Palette.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta, StoryObj } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/design-token/Palette.tsx b/packages/design/src/components/design-token/Palette.tsxindex 0c5060a59a..d331c235cc 100644--- a/packages/design/src/components/design-token/Palette.tsx+++ b/packages/design/src/components/design-token/Palette.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import styles from './index.module.less';diff --git a/packages/design/src/components/dialog/Dialog.stories.tsx b/packages/design/src/components/dialog/Dialog.stories.tsxindex 5692667a88..b0c67e6718 100644--- a/packages/design/src/components/dialog/Dialog.stories.tsx+++ b/packages/design/src/components/dialog/Dialog.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import { CloseSingle } from '@univerjs/icons';import React, { useState } from 'react';diff --git a/packages/design/src/components/dialog/Dialog.tsx b/packages/design/src/components/dialog/Dialog.tsxindex 11ff7dab71..a050033249 100644--- a/packages/design/src/components/dialog/Dialog.tsx+++ b/packages/design/src/components/dialog/Dialog.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import RcDialog from 'rc-dialog';import React, { useContext, useState } from 'react';import Draggable from 'react-draggable';diff --git a/packages/design/src/components/dialog/index.ts b/packages/design/src/components/dialog/index.tsindex 3961f88700..43e47752bf 100644--- a/packages/design/src/components/dialog/index.ts+++ b/packages/design/src/components/dialog/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Dialog, type IDialogProps } from './Dialog';diff --git a/packages/design/src/components/dropdown/Dropdown.stories.tsx b/packages/design/src/components/dropdown/Dropdown.stories.tsxindex e5431603b7..39cc129c56 100644--- a/packages/design/src/components/dropdown/Dropdown.stories.tsx+++ b/packages/design/src/components/dropdown/Dropdown.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/dropdown/Dropdown.tsx b/packages/design/src/components/dropdown/Dropdown.tsxindex 79c5dd4bb2..696d4ab650 100644--- a/packages/design/src/components/dropdown/Dropdown.tsx+++ b/packages/design/src/components/dropdown/Dropdown.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ActionType, AlignType } from '@rc-component/trigger';import RcDropdown from 'rc-dropdown';import type Placements from 'rc-dropdown/lib/placements';diff --git a/packages/design/src/components/dropdown/index.ts b/packages/design/src/components/dropdown/index.tsindex cc7572d90a..28005a3518 100644--- a/packages/design/src/components/dropdown/index.ts+++ b/packages/design/src/components/dropdown/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Dropdown, type IDropdownProps } from './Dropdown';diff --git a/packages/design/src/components/icon/Icon.stories.tsx b/packages/design/src/components/icon/Icon.stories.tsxindex ab1e0ffbfa..cadfa35eab 100644--- a/packages/design/src/components/icon/Icon.stories.tsx+++ b/packages/design/src/components/icon/Icon.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/input-number/InputNumber.stories.tsx b/packages/design/src/components/input-number/InputNumber.stories.tsxindex 413213e065..659a7ff9e5 100644--- a/packages/design/src/components/input-number/InputNumber.stories.tsx+++ b/packages/design/src/components/input-number/InputNumber.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/input-number/InputNumber.tsx b/packages/design/src/components/input-number/InputNumber.tsxindex fe3cfba29b..62f27c253e 100644--- a/packages/design/src/components/input-number/InputNumber.tsx+++ b/packages/design/src/components/input-number/InputNumber.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import RcInputNumber from 'rc-input-number';import React from 'react';diff --git a/packages/design/src/components/input-number/index.ts b/packages/design/src/components/input-number/index.tsindex 1b47c651c8..2092a3cc09 100644--- a/packages/design/src/components/input-number/index.ts+++ b/packages/design/src/components/input-number/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IInputNumberProps, InputNumber } from './InputNumber';diff --git a/packages/design/src/components/input/Input.stories.tsx b/packages/design/src/components/input/Input.stories.tsxindex 360b448618..54bd8fdbba 100644--- a/packages/design/src/components/input/Input.stories.tsx+++ b/packages/design/src/components/input/Input.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/input/Input.tsx b/packages/design/src/components/input/Input.tsxindex 52a1752a58..52f3d212ca 100644--- a/packages/design/src/components/input/Input.tsx+++ b/packages/design/src/components/input/Input.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { CloseSingle } from '@univerjs/icons';import clsx from 'clsx';import RcInput from 'rc-input';diff --git a/packages/design/src/components/input/index.ts b/packages/design/src/components/input/index.tsindex 2dfe07dbd7..05e9f8b83f 100644--- a/packages/design/src/components/input/index.ts+++ b/packages/design/src/components/input/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IInputProps, Input } from './Input';diff --git a/packages/design/src/components/menu/Menu.tsx b/packages/design/src/components/menu/Menu.tsxindex 7e89fb1010..5c2e67b21d 100644--- a/packages/design/src/components/menu/Menu.tsx+++ b/packages/design/src/components/menu/Menu.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { MenuItemGroupProps, MenuItemProps, MenuProps, SubMenuProps } from 'rc-menu';import RcMenu, { MenuItem as RcMenuItem, MenuItemGroup as RcMenuItemGroup, SubMenu as RcSubMenu } from 'rc-menu';import React, { useContext } from 'react';diff --git a/packages/design/src/components/menu/index.ts b/packages/design/src/components/menu/index.tsindex e2e6e9c79e..e6c31ea916 100644--- a/packages/design/src/components/menu/index.ts+++ b/packages/design/src/components/menu/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Menu, MenuItem, MenuItemGroup, SubMenu } from './Menu';diff --git a/packages/design/src/components/message/Message.stories.tsx b/packages/design/src/components/message/Message.stories.tsxindex cc9f99a9e8..48026f2747 100644--- a/packages/design/src/components/message/Message.stories.tsx+++ b/packages/design/src/components/message/Message.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/message/Message.tsx b/packages/design/src/components/message/Message.tsxindex 246740d7b6..a20a3be835 100644--- a/packages/design/src/components/message/Message.tsx+++ b/packages/design/src/components/message/Message.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorSingle, SuccessSingle, WarningSingle } from '@univerjs/icons';import { render } from 'rc-util/lib/React/render';import React from 'react';diff --git a/packages/design/src/components/message/__tests__/index.spec.tsx b/packages/design/src/components/message/__tests__/index.spec.tsxindex e8cfac923c..3ec30ee131 100644--- a/packages/design/src/components/message/__tests__/index.spec.tsx+++ b/packages/design/src/components/message/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render, screen } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/message/index.ts b/packages/design/src/components/message/index.tsindex 7cf89fb793..f7c8caaa0e 100644--- a/packages/design/src/components/message/index.ts+++ b/packages/design/src/components/message/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IMessageMethodOptions, type IMessageProps, Message, MessageType } from './Message';diff --git a/packages/design/src/components/popup/Popup.stories.tsx b/packages/design/src/components/popup/Popup.stories.tsxindex 84fad2e35f..a65e007162 100644--- a/packages/design/src/components/popup/Popup.stories.tsx+++ b/packages/design/src/components/popup/Popup.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/popup/Popup.tsx b/packages/design/src/components/popup/Popup.tsxindex cd82863713..d878efd16e 100644--- a/packages/design/src/components/popup/Popup.tsx+++ b/packages/design/src/components/popup/Popup.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React, { useEffect, useRef, useState } from 'react';import { CSSTransition } from 'react-transition-group';diff --git a/packages/design/src/components/popup/index.ts b/packages/design/src/components/popup/index.tsindex 0a9139539e..9b1a5e74de 100644--- a/packages/design/src/components/popup/index.ts+++ b/packages/design/src/components/popup/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IPopupProps, Popup } from './Popup';diff --git a/packages/design/src/components/radio-group/RadioGroup.stories.tsx b/packages/design/src/components/radio-group/RadioGroup.stories.tsxindex c484a2c386..1e43410cd7 100644--- a/packages/design/src/components/radio-group/RadioGroup.stories.tsx+++ b/packages/design/src/components/radio-group/RadioGroup.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/radio-group/RadioGroup.tsx b/packages/design/src/components/radio-group/RadioGroup.tsxindex b57d661ce8..7dd80cee39 100644--- a/packages/design/src/components/radio-group/RadioGroup.tsx+++ b/packages/design/src/components/radio-group/RadioGroup.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import type { IRadioProps } from '../radio/Radio';diff --git a/packages/design/src/components/radio-group/__tests__/index.spec.tsx b/packages/design/src/components/radio-group/__tests__/index.spec.tsxindex c340417411..8496495604 100644--- a/packages/design/src/components/radio-group/__tests__/index.spec.tsx+++ b/packages/design/src/components/radio-group/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render, screen } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/radio-group/index.ts b/packages/design/src/components/radio-group/index.tsindex 93c3f8eff7..8c565f5ec0 100644--- a/packages/design/src/components/radio-group/index.ts+++ b/packages/design/src/components/radio-group/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IRadioGroupProps, RadioGroup } from './RadioGroup';diff --git a/packages/design/src/components/radio/Radio.stories.tsx b/packages/design/src/components/radio/Radio.stories.tsxindex aa87badc0b..51cdb86e82 100644--- a/packages/design/src/components/radio/Radio.stories.tsx+++ b/packages/design/src/components/radio/Radio.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/radio/Radio.tsx b/packages/design/src/components/radio/Radio.tsxindex c501b8305d..d039999aca 100644--- a/packages/design/src/components/radio/Radio.tsx+++ b/packages/design/src/components/radio/Radio.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import clsx from 'clsx';import React, { useRef } from 'react';diff --git a/packages/design/src/components/radio/__tests__/index.spec.tsx b/packages/design/src/components/radio/__tests__/index.spec.tsxindex c4c6c7cc35..c178bc958d 100644--- a/packages/design/src/components/radio/__tests__/index.spec.tsx+++ b/packages/design/src/components/radio/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/radio/index.ts b/packages/design/src/components/radio/index.tsindex 36f83cc7fc..525217bb23 100644--- a/packages/design/src/components/radio/index.ts+++ b/packages/design/src/components/radio/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IRadioProps, Radio } from './Radio';diff --git a/packages/design/src/components/scrollbar/Scrollbar.stories.tsx b/packages/design/src/components/scrollbar/Scrollbar.stories.tsxindex c1f7d9df5c..1fc26bd537 100644--- a/packages/design/src/components/scrollbar/Scrollbar.stories.tsx+++ b/packages/design/src/components/scrollbar/Scrollbar.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta, StoryObj } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/scrollbar/Scrollbar.tsx b/packages/design/src/components/scrollbar/Scrollbar.tsxindex 211a48301b..4fb9fb5e21 100644--- a/packages/design/src/components/scrollbar/Scrollbar.tsx+++ b/packages/design/src/components/scrollbar/Scrollbar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React, { useCallback, useEffect, useRef, useState } from 'react';import styles from './index.module.less';diff --git a/packages/design/src/components/scrollbar/__tests__/index.spec.tsx b/packages/design/src/components/scrollbar/__tests__/index.spec.tsxindex 3cfcc4ece6..5f22cfefb0 100644--- a/packages/design/src/components/scrollbar/__tests__/index.spec.tsx+++ b/packages/design/src/components/scrollbar/__tests__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { render } from '@testing-library/react';import React from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/scrollbar/index.ts b/packages/design/src/components/scrollbar/index.tsindex 69c1b41f5d..a61ead3a97 100644--- a/packages/design/src/components/scrollbar/index.ts+++ b/packages/design/src/components/scrollbar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IScrollbarProps, Scrollbar } from './Scrollbar';diff --git a/packages/design/src/components/select-list/SelectList.stories.tsx b/packages/design/src/components/select-list/SelectList.stories.tsxindex 7519133315..714f594d11 100644--- a/packages/design/src/components/select-list/SelectList.stories.tsx+++ b/packages/design/src/components/select-list/SelectList.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/select-list/SelectList.tsx b/packages/design/src/components/select-list/SelectList.tsxindex ac130f9bc2..9d0064df42 100644--- a/packages/design/src/components/select-list/SelectList.tsx+++ b/packages/design/src/components/select-list/SelectList.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { CheckMarkSingle } from '@univerjs/icons';import clsx from 'clsx';import React from 'react';diff --git a/packages/design/src/components/select-list/index.ts b/packages/design/src/components/select-list/index.tsindex e68e845315..75dd55e888 100644--- a/packages/design/src/components/select-list/index.ts+++ b/packages/design/src/components/select-list/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type ISelectListProps, SelectList } from './SelectList';diff --git a/packages/design/src/components/select/Select.stories.tsx b/packages/design/src/components/select/Select.stories.tsxindex c057681e64..a34c630cf2 100644--- a/packages/design/src/components/select/Select.stories.tsx+++ b/packages/design/src/components/select/Select.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/select/Select.tsx b/packages/design/src/components/select/Select.tsxindex 88b0046067..e179c6724d 100644--- a/packages/design/src/components/select/Select.tsx+++ b/packages/design/src/components/select/Select.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { MoreDownSingle } from '@univerjs/icons';import RcSelect from 'rc-select';import React, { useContext } from 'react';diff --git a/packages/design/src/components/select/index.ts b/packages/design/src/components/select/index.tsindex 7639739e75..efd9d83889 100644--- a/packages/design/src/components/select/index.ts+++ b/packages/design/src/components/select/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type ISelectProps, Select } from './Select';diff --git a/packages/design/src/components/slider/Slider.stories.tsx b/packages/design/src/components/slider/Slider.stories.tsxindex a9a1e8da77..d9093214a3 100644--- a/packages/design/src/components/slider/Slider.stories.tsx+++ b/packages/design/src/components/slider/Slider.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React, { useState } from 'react';diff --git a/packages/design/src/components/slider/Slider.tsx b/packages/design/src/components/slider/Slider.tsxindex 43b9145960..b0f1acd1a6 100644--- a/packages/design/src/components/slider/Slider.tsx+++ b/packages/design/src/components/slider/Slider.tsx@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IncreaseSingle, ReduceSingle } from '@univerjs/icons';import clsx from 'clsx';import React, { useContext, useMemo, useRef } from 'react';diff --git a/packages/design/src/components/slider/__test__/index.spec.tsx b/packages/design/src/components/slider/__test__/index.spec.tsxindex 669500ae93..4089b0caf7 100644--- a/packages/design/src/components/slider/__test__/index.spec.tsx+++ b/packages/design/src/components/slider/__test__/index.spec.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { fireEvent, render, screen } from '@testing-library/react';import React, { useState } from 'react';import { describe, expect, test } from 'vitest';diff --git a/packages/design/src/components/slider/index.ts b/packages/design/src/components/slider/index.tsindex df8f95d723..7dbba938e9 100644--- a/packages/design/src/components/slider/index.ts+++ b/packages/design/src/components/slider/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type ISliderProps, Slider } from './Slider';diff --git a/packages/design/src/components/tooltip/Tooltip.stories.tsx b/packages/design/src/components/tooltip/Tooltip.stories.tsxindex 71501580d6..615d10fa74 100644--- a/packages/design/src/components/tooltip/Tooltip.stories.tsx+++ b/packages/design/src/components/tooltip/Tooltip.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import React from 'react';diff --git a/packages/design/src/components/tooltip/Tooltip.tsx b/packages/design/src/components/tooltip/Tooltip.tsxindex a468bcb6c0..2e89fe3878 100644--- a/packages/design/src/components/tooltip/Tooltip.tsx+++ b/packages/design/src/components/tooltip/Tooltip.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import RcTooltip from 'rc-tooltip';import React, { useContext } from 'react';diff --git a/packages/design/src/components/tooltip/index.ts b/packages/design/src/components/tooltip/index.tsindex e2695d16c5..c21d6cfaaf 100644--- a/packages/design/src/components/tooltip/index.ts+++ b/packages/design/src/components/tooltip/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type ITooltipProps, Tooltip } from './Tooltip';diff --git a/packages/design/src/components/tooltip/placements.tsx b/packages/design/src/components/tooltip/placements.tsxindex dc4f2e7891..d354aa8d44 100644--- a/packages/design/src/components/tooltip/placements.tsx+++ b/packages/design/src/components/tooltip/placements.tsx@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BuildInPlacements } from '@rc-component/trigger';const autoAdjustOverflowTopBottom = {diff --git a/packages/design/src/index.ts b/packages/design/src/index.tsindex 9f1e9ccdfb..2829ae5098 100644--- a/packages/design/src/index.ts+++ b/packages/design/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { Avatar, type IAvatarProps } from './components/avatar';export { Button, type ButtonSize, type ButtonType, type IButtonProps } from './components/button';export { CascaderList, type ICascaderListProps } from './components/cascader-list';diff --git a/packages/design/src/locale/en-US.ts b/packages/design/src/locale/en-US.tsindex cb0733baa8..6cb060a142 100644--- a/packages/design/src/locale/en-US.ts+++ b/packages/design/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ILocale } from './interface';const locale: ILocale = {diff --git a/packages/design/src/locale/index.ts b/packages/design/src/locale/index.tsindex c370faeafb..d4d2325fb5 100644--- a/packages/design/src/locale/index.ts+++ b/packages/design/src/locale/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { type ILocale } from './interface';export { default as zhCN } from './zh-CN';diff --git a/packages/design/src/locale/interface.ts b/packages/design/src/locale/interface.tsindex 1b2cbb8d51..b2f9b245a5 100644--- a/packages/design/src/locale/interface.ts+++ b/packages/design/src/locale/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ILocale {design: {Confirm: Record<string, any>;diff --git a/packages/design/src/locale/zh-CN.ts b/packages/design/src/locale/zh-CN.tsindex b413b37308..fc08e1bf81 100644--- a/packages/design/src/locale/zh-CN.ts+++ b/packages/design/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ILocale } from './interface';const locale: ILocale = {diff --git a/packages/design/src/themes/index.ts b/packages/design/src/themes/index.tsindex 245b0705b6..c025ba6ec3 100644--- a/packages/design/src/themes/index.ts+++ b/packages/design/src/themes/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as defaultTheme } from './default.module.less';export { default as greenTheme } from './green.module.less';export { themeInstance } from './theme';diff --git a/packages/design/src/themes/theme.ts b/packages/design/src/themes/theme.tsindex 546a52242d..69cff8280b 100644--- a/packages/design/src/themes/theme.ts+++ b/packages/design/src/themes/theme.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import styles from './theme-root.module.less';function convertToDashCase(input: string): string {diff --git a/packages/docs-ui/src/basics/const/default-univer-doc-config.ts b/packages/docs-ui/src/basics/const/default-univer-doc-config.tsindex 25f8ec018d..5c81d5edaa 100644--- a/packages/docs-ui/src/basics/const/default-univer-doc-config.ts+++ b/packages/docs-ui/src/basics/const/default-univer-doc-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DefaultToolbarConfig = {undo: true,redo: true, // Undo redodiff --git a/packages/docs-ui/src/basics/const/index.ts b/packages/docs-ui/src/basics/const/index.tsindex a46d945f20..9180d1e921 100644--- a/packages/docs-ui/src/basics/const/index.ts+++ b/packages/docs-ui/src/basics/const/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-univer-doc-config';export * from './plugin-name';diff --git a/packages/docs-ui/src/basics/const/plugin-name.ts b/packages/docs-ui/src/basics/const/plugin-name.tsindex 858c78a746..36a18f7911 100644--- a/packages/docs-ui/src/basics/const/plugin-name.ts+++ b/packages/docs-ui/src/basics/const/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DOC_UI_PLUGIN_NAME = 'DocUI';diff --git a/packages/docs-ui/src/basics/index.ts b/packages/docs-ui/src/basics/index.tsindex c6f20c3e48..9c53c04e2b 100644--- a/packages/docs-ui/src/basics/index.ts+++ b/packages/docs-ui/src/basics/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './const';export * from './interfaces';diff --git a/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts b/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.tsindex 091200b71f..19f15c8890 100644--- a/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts+++ b/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ILayout {docContainerConfig?: DocContainerConfig;toolbarConfig?: DocToolbarConfig;diff --git a/packages/docs-ui/src/basics/interfaces/component-config/index.ts b/packages/docs-ui/src/basics/interfaces/component-config/index.tsindex 975042bb23..85aa9f789c 100644--- a/packages/docs-ui/src/basics/interfaces/component-config/index.ts+++ b/packages/docs-ui/src/basics/interfaces/component-config/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './i-doc-ui-plugin-config';diff --git a/packages/docs-ui/src/basics/interfaces/index.ts b/packages/docs-ui/src/basics/interfaces/index.tsindex 79ccf90bfd..c1acc2d0d6 100644--- a/packages/docs-ui/src/basics/interfaces/index.ts+++ b/packages/docs-ui/src/basics/interfaces/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './component-config';diff --git a/packages/docs-ui/src/controllers/app-ui-controller.ts b/packages/docs-ui/src/controllers/app-ui-controller.tsindex b704ce8ca5..b54dcf32fd 100644--- a/packages/docs-ui/src/controllers/app-ui-controller.ts+++ b/packages/docs-ui/src/controllers/app-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import { LocaleService } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts b/packages/docs-ui/src/controllers/doc-container-ui-controller.tsindex bde7a87483..1cbbe6510d 100644--- a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts+++ b/packages/docs-ui/src/controllers/doc-container-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import { LocaleService } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/docs-ui/src/controllers/doc-ui.controller.ts b/packages/docs-ui/src/controllers/doc-ui.controller.tsindex b3c59944c3..facd9c27b2 100644--- a/packages/docs-ui/src/controllers/doc-ui.controller.ts+++ b/packages/docs-ui/src/controllers/doc-ui.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IDesktopUIController, IMenuItemFactory } from '@univerjs/ui';import { ComponentManager, IMenuService, IShortcutService, IUIController } from '@univerjs/ui';diff --git a/packages/docs-ui/src/controllers/index.ts b/packages/docs-ui/src/controllers/index.tsindex 03f063cecd..8e00c7cba3 100644--- a/packages/docs-ui/src/controllers/index.ts+++ b/packages/docs-ui/src/controllers/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './app-ui-controller';export * from './doc-container-ui-controller';diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.tsindex f066dc465c..b47c456608 100644--- a/packages/docs-ui/src/controllers/menu/menu.ts+++ b/packages/docs-ui/src/controllers/menu/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {SetInlineFormatBoldCommand,SetInlineFormatItalicCommand,diff --git a/packages/docs-ui/src/docs-ui-plugin.ts b/packages/docs-ui/src/docs-ui-plugin.tsindex 45474efca5..13c26ee699 100644--- a/packages/docs-ui/src/docs-ui-plugin.ts+++ b/packages/docs-ui/src/docs-ui-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,DOCS_NORMAL_EDITOR_UNIT_ID_KEY,diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.tsindex bfa1dd2dd2..55dad332da 100644--- a/packages/docs-ui/src/index.ts+++ b/packages/docs-ui/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './basics';export * from './docs-ui-plugin';export { enUS, zhCN } from './locale';diff --git a/packages/docs-ui/src/locale/en-US.ts b/packages/docs-ui/src/locale/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/docs-ui/src/locale/en-US.ts+++ b/packages/docs-ui/src/locale/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/docs-ui/src/locale/index.ts b/packages/docs-ui/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/docs-ui/src/locale/index.ts+++ b/packages/docs-ui/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/docs-ui/src/locale/zh-CN.ts b/packages/docs-ui/src/locale/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/docs-ui/src/locale/zh-CN.ts+++ b/packages/docs-ui/src/locale/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/docs-ui/src/types/index.d.ts b/packages/docs-ui/src/types/index.d.tsindex 39f7ce12ac..7e60b541d1 100644--- a/packages/docs-ui/src/types/index.d.ts+++ b/packages/docs-ui/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/docs-ui' {}diff --git a/packages/docs-ui/src/views/doc-container/DocContainer.tsx b/packages/docs-ui/src/views/doc-container/DocContainer.tsxindex 4e1d9293eb..16c3e02e22 100644--- a/packages/docs-ui/src/views/doc-container/DocContainer.tsx+++ b/packages/docs-ui/src/views/doc-container/DocContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BaseComponentProps } from '@univerjs/ui';import React, { Component, createRef } from 'react';diff --git a/packages/docs-ui/src/views/doc-container/index.ts b/packages/docs-ui/src/views/doc-container/index.tsindex 2876a0a179..5861916e31 100644--- a/packages/docs-ui/src/views/doc-container/index.ts+++ b/packages/docs-ui/src/views/doc-container/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './DocContainer';diff --git a/packages/docs/src/basics/component-tools.ts b/packages/docs/src/basics/component-tools.tsindex 596f28e174..718421587c 100644--- a/packages/docs/src/basics/component-tools.ts+++ b/packages/docs/src/basics/component-tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUniverInstanceService, Nullable } from '@univerjs/core';import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';diff --git a/packages/docs/src/basics/demo-data.ts b/packages/docs/src/basics/demo-data.tsindex 4cdf56ceaf..f684e9295f 100644--- a/packages/docs/src/basics/demo-data.ts+++ b/packages/docs/src/basics/demo-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import {BaselineOffset,diff --git a/packages/docs/src/basics/docs-view-key.ts b/packages/docs/src/basics/docs-view-key.tsindex 6ed6b981c1..09906f8c2e 100644--- a/packages/docs/src/basics/docs-view-key.ts+++ b/packages/docs/src/basics/docs-view-key.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum DOCS_VIEW_KEY {MAIN = '__Document_Render_Main__',}diff --git a/packages/docs/src/basics/retain-delete-params.ts b/packages/docs/src/basics/retain-delete-params.tsindex 683f100c42..f4910b8a51 100644--- a/packages/docs/src/basics/retain-delete-params.ts+++ b/packages/docs/src/basics/retain-delete-params.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDeleteMutationParams, IRetainMutationParams, ITextRange } from '@univerjs/core';export function getRetainAndDeleteFromReplace(diff --git a/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts b/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.tsindex e738111819..f4df7cf9ae 100644--- a/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts+++ b/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { ICommand, IDocumentData, IStyleBase, Univer } from '@univerjs/core';import { BooleanNumber, ICommandService, IUniverInstanceService, UndoCommand } from '@univerjs/core';diff --git a/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts b/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.tsindex 7bd4f77435..a46a600cb6 100644--- a/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts+++ b/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { Univer } from '@univerjs/core';import { ICommandService } from '@univerjs/core';diff --git a/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts b/packages/docs/src/commands/commands/__tests__/create-command-test-bed.tsindex 765a58d28e..c7ab67f011 100644--- a/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts+++ b/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts b/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.tsindex ef067daade..55d00ba38d 100644--- a/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts+++ b/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { ICommand, IStyleBase, Univer } from '@univerjs/core';import { BooleanNumber, ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';diff --git a/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts b/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.tsindex db9e026d68..714285dc67 100644--- a/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts+++ b/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { ICommand, IDocumentData, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';diff --git a/packages/docs/src/commands/commands/clipboard.command.ts b/packages/docs/src/commands/commands/clipboard.command.tsindex 39bb922b0d..0f744b3e1a 100644--- a/packages/docs/src/commands/commands/clipboard.command.ts+++ b/packages/docs/src/commands/commands/clipboard.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMultiCommand } from '@univerjs/core';import { CommandType, FOCUSING_DOC, FOCUSING_EDITOR } from '@univerjs/core';import { CopyCommand, CutCommand, PasteCommand } from '@univerjs/ui';diff --git a/packages/docs/src/commands/commands/clipboard.inner.command.ts b/packages/docs/src/commands/commands/clipboard.inner.command.tsindex 991e0097ea..b63ad2163d 100644--- a/packages/docs/src/commands/commands/clipboard.inner.command.ts+++ b/packages/docs/src/commands/commands/clipboard.inner.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {ICommand,IDeleteMutationParams,diff --git a/packages/docs/src/commands/commands/core-editing.command.ts b/packages/docs/src/commands/commands/core-editing.command.tsindex 1272350d9d..26391b1e14 100644--- a/packages/docs/src/commands/commands/core-editing.command.ts+++ b/packages/docs/src/commands/commands/core-editing.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {ICommand,IDocumentBody,diff --git a/packages/docs/src/commands/commands/ime-input.command.ts b/packages/docs/src/commands/commands/ime-input.command.tsindex 30f6115af0..c992fcac6a 100644--- a/packages/docs/src/commands/commands/ime-input.command.ts+++ b/packages/docs/src/commands/commands/ime-input.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, ICommandInfo, ITextRange } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService } from '@univerjs/core';import type { ITextRangeWithStyle } from '@univerjs/engine-render';diff --git a/packages/docs/src/commands/commands/inline-format.command.ts b/packages/docs/src/commands/commands/inline-format.command.tsindex b59108fb0b..5bdfe99628 100644--- a/packages/docs/src/commands/commands/inline-format.command.ts+++ b/packages/docs/src/commands/commands/inline-format.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IDocumentBody, IMutationInfo, IStyleBase, ITextDecoration, ITextRun } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/docs/src/commands/commands/insert-floating-object.command.ts b/packages/docs/src/commands/commands/insert-floating-object.command.tsindex cbeb81605f..f177f53f59 100644--- a/packages/docs/src/commands/commands/insert-floating-object.command.ts+++ b/packages/docs/src/commands/commands/insert-floating-object.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/docs/src/commands/commands/remove-floating-object.command.ts b/packages/docs/src/commands/commands/remove-floating-object.command.tsindex e2417fdeae..92d1c75196 100644--- a/packages/docs/src/commands/commands/remove-floating-object.command.ts+++ b/packages/docs/src/commands/commands/remove-floating-object.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/docs/src/commands/commands/replace-content.command.ts b/packages/docs/src/commands/commands/replace-content.command.tsindex 7431fdacc2..f440ac3084 100644--- a/packages/docs/src/commands/commands/replace-content.command.ts+++ b/packages/docs/src/commands/commands/replace-content.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IDocumentBody, IMutationInfo } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { ITextRangeWithStyle } from '@univerjs/engine-render';diff --git a/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts b/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.tsindex f198be7107..851245036b 100644--- a/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts+++ b/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/docs/src/commands/commands/set-floating-object-transform.command.ts b/packages/docs/src/commands/commands/set-floating-object-transform.command.tsindex d88bbd0936..dc46b162c0 100644--- a/packages/docs/src/commands/commands/set-floating-object-transform.command.ts+++ b/packages/docs/src/commands/commands/set-floating-object-transform.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, ISize, ObjectPositionH, ObjectPositionV } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/docs/src/commands/mutations/core-editing.mutation.ts b/packages/docs/src/commands/mutations/core-editing.mutation.tsindex 729ffbd800..61a7d6443e 100644--- a/packages/docs/src/commands/mutations/core-editing.mutation.ts+++ b/packages/docs/src/commands/mutations/core-editing.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {CommandType,type DocMutationParams,diff --git a/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts b/packages/docs/src/commands/mutations/insert-floating-object.mutation.tsindex 6305ea96b6..de343a2492 100644--- a/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts+++ b/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDrawing, IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts b/packages/docs/src/commands/mutations/remove-floating-object.mutation.tsindex d95a5d4551..0e6823a8c5 100644--- a/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts+++ b/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/docs/src/commands/mutations/set-floating-object.mutation.ts b/packages/docs/src/commands/mutations/set-floating-object.mutation.tsindex abcb17d807..fefedbc26c 100644--- a/packages/docs/src/commands/mutations/set-floating-object.mutation.ts+++ b/packages/docs/src/commands/mutations/set-floating-object.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BooleanNumber,IMutation,diff --git a/packages/docs/src/commands/operations/cursor.operation.ts b/packages/docs/src/commands/operations/cursor.operation.tsindex 2cf742d4ff..90435ef5ea 100644--- a/packages/docs/src/commands/operations/cursor.operation.ts+++ b/packages/docs/src/commands/operations/cursor.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Direction, IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/docs/src/commands/operations/select-all.operation.ts b/packages/docs/src/commands/operations/select-all.operation.tsindex dcf4f20831..28df37a097 100644--- a/packages/docs/src/commands/operations/select-all.operation.ts+++ b/packages/docs/src/commands/operations/select-all.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { ITextRangeWithStyle } from '@univerjs/engine-render';diff --git a/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts b/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.tsindex 51516cd528..1c51f502e7 100644--- a/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts+++ b/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/docs/src/commands/operations/text-selection.operation.ts b/packages/docs/src/commands/operations/text-selection.operation.tsindex d2d0c5f4da..e293539b5e 100644--- a/packages/docs/src/commands/operations/text-selection.operation.ts+++ b/packages/docs/src/commands/operations/text-selection.operation.ts@@ -1,4 +1,18 @@-// This file provide operations to change selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/docs/src/controllers/clipboard.controller.ts b/packages/docs/src/controllers/clipboard.controller.tsindex 512f41ec37..06391a6ca0 100644--- a/packages/docs/src/controllers/clipboard.controller.ts+++ b/packages/docs/src/controllers/clipboard.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IDocumentBody, IParagraph, ITextRun } from '@univerjs/core';import {Disposable,diff --git a/packages/docs/src/controllers/delete.controller.ts b/packages/docs/src/controllers/delete.controller.tsindex 2df5634001..97b08196f4 100644--- a/packages/docs/src/controllers/delete.controller.ts+++ b/packages/docs/src/controllers/delete.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IParagraph } from '@univerjs/core';import {Disposable,diff --git a/packages/docs/src/controllers/doc-render.controller.ts b/packages/docs/src/controllers/doc-render.controller.tsindex fd5ded2210..0ac339dfab 100644--- a/packages/docs/src/controllers/doc-render.controller.ts+++ b/packages/docs/src/controllers/doc-render.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {Disposable,diff --git a/packages/docs/src/controllers/floating-object.controller.ts b/packages/docs/src/controllers/floating-object.controller.tsindex 7d7e157b36..d21b030c42 100644--- a/packages/docs/src/controllers/floating-object.controller.ts+++ b/packages/docs/src/controllers/floating-object.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IFloatingObjectManagerParam } from '@univerjs/core';import {DEFAULT_DOCUMENT_SUB_COMPONENT_ID,diff --git a/packages/docs/src/controllers/ime-input.controller.ts b/packages/docs/src/controllers/ime-input.controller.tsindex ea04f822fc..3f09431292 100644--- a/packages/docs/src/controllers/ime-input.controller.ts+++ b/packages/docs/src/controllers/ime-input.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import {Disposable,diff --git a/packages/docs/src/controllers/inline-format.controller.ts b/packages/docs/src/controllers/inline-format.controller.tsindex 103ce45204..9cb36d44ae 100644--- a/packages/docs/src/controllers/inline-format.controller.ts+++ b/packages/docs/src/controllers/inline-format.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { ITextSelectionRenderManager } from '@univerjs/engine-render';diff --git a/packages/docs/src/controllers/line-break-input.controller.ts b/packages/docs/src/controllers/line-break-input.controller.tsindex ea86499177..06d05e10e8 100644--- a/packages/docs/src/controllers/line-break-input.controller.ts+++ b/packages/docs/src/controllers/line-break-input.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IParagraph, Nullable } from '@univerjs/core';import {DataStreamTreeTokenType,diff --git a/packages/docs/src/controllers/move-cursor.controller.ts b/packages/docs/src/controllers/move-cursor.controller.tsindex f0c3b631eb..810d1e3e2f 100644--- a/packages/docs/src/controllers/move-cursor.controller.ts+++ b/packages/docs/src/controllers/move-cursor.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, Nullable } from '@univerjs/core';import {Direction,diff --git a/packages/docs/src/controllers/normal-input.controller.ts b/packages/docs/src/controllers/normal-input.controller.tsindex 1298bf1158..053dd2b970 100644--- a/packages/docs/src/controllers/normal-input.controller.ts+++ b/packages/docs/src/controllers/normal-input.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';diff --git a/packages/docs/src/controllers/page-render.controller.ts b/packages/docs/src/controllers/page-render.controller.tsindex 6579be2a3f..5f5c3b2211 100644--- a/packages/docs/src/controllers/page-render.controller.ts+++ b/packages/docs/src/controllers/page-render.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {Disposable,DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,diff --git a/packages/docs/src/controllers/text-selection.controller.ts b/packages/docs/src/controllers/text-selection.controller.tsindex 9b69902a45..4eb08bd9ea 100644--- a/packages/docs/src/controllers/text-selection.controller.ts+++ b/packages/docs/src/controllers/text-selection.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, Nullable, Observer } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { Documents, IMouseEvent, IPointerEvent } from '@univerjs/engine-render';diff --git a/packages/docs/src/controllers/zoom.controller.ts b/packages/docs/src/controllers/zoom.controller.tsindex dc454f7d22..0348f235d7 100644--- a/packages/docs/src/controllers/zoom.controller.ts+++ b/packages/docs/src/controllers/zoom.controller.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {Disposable,diff --git a/packages/docs/src/doc-plugin.ts b/packages/docs/src/doc-plugin.tsindex 84b36052d9..6f41cb938b 100644--- a/packages/docs/src/doc-plugin.ts+++ b/packages/docs/src/doc-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {ICommandService,diff --git a/packages/docs/src/index.ts b/packages/docs/src/index.tsindex 6521b3662a..df81830699 100644--- a/packages/docs/src/index.ts+++ b/packages/docs/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { getDocObject } from './basics/component-tools';export * from './basics/docs-view-key';export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';diff --git a/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts b/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.tsindex da4213776a..1f97f97806 100644--- a/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts+++ b/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, Nullable } from '@univerjs/core';import { BooleanNumber } from '@univerjs/core';import { afterEach, beforeEach, describe, expect, it } from 'vitest';diff --git a/packages/docs/src/services/clipboard/clipboard.service.ts b/packages/docs/src/services/clipboard/clipboard.service.tsindex bb1cc65273..5a754268f6 100644--- a/packages/docs/src/services/clipboard/clipboard.service.ts+++ b/packages/docs/src/services/clipboard/clipboard.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody } from '@univerjs/core';import { Disposable, IUniverInstanceService, toDisposable } from '@univerjs/core';import { HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, PLAIN_TEXT_CLIPBOARD_MIME_TYPE } from '@univerjs/ui';diff --git a/packages/docs/src/services/clipboard/copy-content-cache.ts b/packages/docs/src/services/clipboard/copy-content-cache.tsindex 75e76cd5b3..c9089604f1 100644--- a/packages/docs/src/services/clipboard/copy-content-cache.ts+++ b/packages/docs/src/services/clipboard/copy-content-cache.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody } from '@univerjs/core';import { LRUMap, Tools } from '@univerjs/core';diff --git a/packages/docs/src/services/clipboard/html-to-udm/converter.ts b/packages/docs/src/services/clipboard/html-to-udm/converter.tsindex 52fa1131b7..48f5ae4c25 100644--- a/packages/docs/src/services/clipboard/html-to-udm/converter.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/converter.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, ITextStyle, Nullable } from '@univerjs/core';import { extractNodeStyle } from './parse-node-style';diff --git a/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts b/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.tsindex a05ebf7d92..f28eccb6a2 100644--- a/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { ITextStyle } from '@univerjs/core';import { BaselineOffset, BooleanNumber } from '@univerjs/core';diff --git a/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts b/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.tsindex efdba9bc0d..e4e265d0ed 100644--- a/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default function parseToDom(rawHtml: string) {const parser = new DOMParser();const html = `<x-univer id="univer-root">${rawHtml}</x-univer>`;diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.tsindex 59f228d627..df98c00848 100644--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BooleanNumber } from '@univerjs/core';import { extractNodeStyle as getInlineStyle } from '../parse-node-style';diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.tsindex adf3dcca6a..a6dcbd1223 100644--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraph } from '@univerjs/core';import { BooleanNumber } from '@univerjs/core';diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.tsindex 6f21a92da1..b7edb7edcc 100644--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, ITextStyle } from '@univerjs/core';export interface IStyleRule {diff --git a/packages/docs/src/services/clipboard/html-to-udm/utils.ts b/packages/docs/src/services/clipboard/html-to-udm/utils.tsindex a778ff1413..1670d6b53f 100644--- a/packages/docs/src/services/clipboard/html-to-udm/utils.ts+++ b/packages/docs/src/services/clipboard/html-to-udm/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraphStyle, Nullable } from '@univerjs/core';// TODO: @JOCS, Complete other missing attributes that exist in IParagraphStylediff --git a/packages/docs/src/services/clipboard/udm-to-html/convertor.ts b/packages/docs/src/services/clipboard/udm-to-html/convertor.tsindex a98a2dc124..b195edab99 100644--- a/packages/docs/src/services/clipboard/udm-to-html/convertor.ts+++ b/packages/docs/src/services/clipboard/udm-to-html/convertor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, ITextRun } from '@univerjs/core';import { BaselineOffset, BooleanNumber } from '@univerjs/core';diff --git a/packages/docs/src/services/doc-skeleton-manager.service.ts b/packages/docs/src/services/doc-skeleton-manager.service.tsindex 8c4c048ade..dac6852267 100644--- a/packages/docs/src/services/doc-skeleton-manager.service.ts+++ b/packages/docs/src/services/doc-skeleton-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { LocaleService } from '@univerjs/core';import type { DocumentViewModel } from '@univerjs/engine-render';diff --git a/packages/docs/src/services/doc-view-model-manager.service.ts b/packages/docs/src/services/doc-view-model-manager.service.tsindex 40691614ba..cf95257c0a 100644--- a/packages/docs/src/services/doc-view-model-manager.service.ts+++ b/packages/docs/src/services/doc-view-model-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { DocumentDataModel, Nullable } from '@univerjs/core';import { DOCS_NORMAL_EDITOR_UNIT_ID_KEY, IUniverInstanceService } from '@univerjs/core';import { DocumentViewModel } from '@univerjs/engine-render';diff --git a/packages/docs/src/services/ime-input-manager.service.ts b/packages/docs/src/services/ime-input-manager.service.tsindex d7d55d7ad2..7c18d59872 100644--- a/packages/docs/src/services/ime-input-manager.service.ts+++ b/packages/docs/src/services/ime-input-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { ITextRangeWithStyle } from '@univerjs/engine-render';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/docs/src/services/text-selection-manager.service.ts b/packages/docs/src/services/text-selection-manager.service.tsindex 532e953c10..9ed5927b2f 100644--- a/packages/docs/src/services/text-selection-manager.service.ts+++ b/packages/docs/src/services/text-selection-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISelectionCell, Nullable } from '@univerjs/core';import type { ITextRangeWithStyle, TextRange } from '@univerjs/engine-render';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/docs/src/shortcuts/core-editing.shortcut.ts b/packages/docs/src/shortcuts/core-editing.shortcut.tsindex 0785a56fdc..d433cb603b 100644--- a/packages/docs/src/shortcuts/core-editing.shortcut.ts+++ b/packages/docs/src/shortcuts/core-editing.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FOCUSING_DOC } from '@univerjs/core';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode } from '@univerjs/ui';diff --git a/packages/docs/src/shortcuts/cursor.shortcut.ts b/packages/docs/src/shortcuts/cursor.shortcut.tsindex 5daefcad81..d346a781fd 100644--- a/packages/docs/src/shortcuts/cursor.shortcut.ts+++ b/packages/docs/src/shortcuts/cursor.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Direction, FOCUSING_DOC, FOCUSING_EDITOR } from '@univerjs/core';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode, MetaKeys } from '@univerjs/ui';diff --git a/packages/docs/src/views/doc-canvas-view.ts b/packages/docs/src/views/doc-canvas-view.tsindex 2a8ed7cf5c..0f8090a928 100644--- a/packages/docs/src/views/doc-canvas-view.ts+++ b/packages/docs/src/views/doc-canvas-view.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { DocumentDataModel, EventState, Nullable } from '@univerjs/core';import {DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,diff --git a/packages/engine-formula/src/basics/cache-lru.ts b/packages/engine-formula/src/basics/cache-lru.tsindex a670667ddb..247ebb3922 100644--- a/packages/engine-formula/src/basics/cache-lru.ts+++ b/packages/engine-formula/src/basics/cache-lru.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { hashAlgorithm, LRUMap } from '@univerjs/core';// export const CACHE_FORMULA_AST = new LRUMap<string, AstRootNode>(100000);diff --git a/packages/engine-formula/src/basics/calculate.ts b/packages/engine-formula/src/basics/calculate.tsindex 2d5b183c62..aa4a77b316 100644--- a/packages/engine-formula/src/basics/calculate.ts+++ b/packages/engine-formula/src/basics/calculate.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { compareToken } from './token';export function reverseCompareOperator(operator: compareToken): compareToken {diff --git a/packages/engine-formula/src/basics/common.ts b/packages/engine-formula/src/basics/common.tsindex e60239e1bc..a85f18caab 100644--- a/packages/engine-formula/src/basics/common.ts+++ b/packages/engine-formula/src/basics/common.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BooleanNumber,ICellData,diff --git a/packages/engine-formula/src/basics/dirty.ts b/packages/engine-formula/src/basics/dirty.tsindex 83c2e4b5ad..7da6bc9930 100644--- a/packages/engine-formula/src/basics/dirty.ts+++ b/packages/engine-formula/src/basics/dirty.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUnitRange } from '@univerjs/core';export function isInDirtyRange(diff --git a/packages/engine-formula/src/basics/error-type.ts b/packages/engine-formula/src/basics/error-type.tsindex 734bacf156..4bc93b7eeb 100644--- a/packages/engine-formula/src/basics/error-type.ts+++ b/packages/engine-formula/src/basics/error-type.ts@@ -1,7 +1,19 @@/**- * Possible errors returned by our interpreter.- * 18.17.3 Error values+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export enum ErrorType {/** Division by zero. */DIV_BY_ZERO = '#DIV/0!',diff --git a/packages/engine-formula/src/basics/function.ts b/packages/engine-formula/src/basics/function.tsindex ba583ba15a..18800f1e0f 100644--- a/packages/engine-formula/src/basics/function.ts+++ b/packages/engine-formula/src/basics/function.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber } from '@univerjs/core';import type { FUNCTION_NAMES_ARRAY } from '../functions/array/function-names';diff --git a/packages/engine-formula/src/basics/match-token.ts b/packages/engine-formula/src/basics/match-token.tsindex 0178e8eb1b..5088b3dd5e 100644--- a/packages/engine-formula/src/basics/match-token.ts+++ b/packages/engine-formula/src/basics/match-token.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { compareToken, matchToken, operatorToken, prefixToken, suffixToken } from './token';export const FORMULA_LEXER_TOKENS = [diff --git a/packages/engine-formula/src/basics/object-class-type.ts b/packages/engine-formula/src/basics/object-class-type.tsindex de836cb1a8..2be5d1724a 100644--- a/packages/engine-formula/src/basics/object-class-type.ts+++ b/packages/engine-formula/src/basics/object-class-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';export class ObjectClassType extends Disposable {diff --git a/packages/engine-formula/src/basics/regex.ts b/packages/engine-formula/src/basics/regex.tsindex 3fb798b737..824142afa3 100644--- a/packages/engine-formula/src/basics/regex.ts+++ b/packages/engine-formula/src/basics/regex.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { prefixToken, suffixToken } from './token';export const UNIT_NAME_REGEX = '\'?\\[((?![\\/?:"<>|*\\\\]).)*\\]';diff --git a/packages/engine-formula/src/basics/token-type.ts b/packages/engine-formula/src/basics/token-type.tsindex 0bf34c1ba0..7107addf6f 100644--- a/packages/engine-formula/src/basics/token-type.ts+++ b/packages/engine-formula/src/basics/token-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DEFAULT_TOKEN_TYPE_PARAMETER = 'P_1';export const DEFAULT_TOKEN_TYPE_ROOT = 'R_1';diff --git a/packages/engine-formula/src/basics/token.ts b/packages/engine-formula/src/basics/token.tsindex e0c67d34b9..b7eebe2db6 100644--- a/packages/engine-formula/src/basics/token.ts+++ b/packages/engine-formula/src/basics/token.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum operatorToken {PLUS = '+',MINUS = '-',diff --git a/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts b/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.tsindex eff6a5a6d3..63d1650f9a 100644--- a/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts b/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.tsindex 698a9fbce4..6172f5e976 100644--- a/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.tsindex 21846a6e9b..998e56cf09 100644--- a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.tsindex a31b755880..8b64e83764 100644--- a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IExecutionOptions, IMutation, IUnitRange, Nullable } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts b/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.tsindex 6939345bc4..620d01063d 100644--- a/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.tsindex 79fbdfc728..30a2f98f6e 100644--- a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts b/packages/engine-formula/src/commands/mutations/set-super-table.mutation.tsindex 755b5fd882..a13d3a7548 100644--- a/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/engine-formula/src/controller/calculate.controller.ts b/packages/engine-formula/src/controller/calculate.controller.tsindex 79277a7c0e..9ab467a95b 100644--- a/packages/engine-formula/src/controller/calculate.controller.ts+++ b/packages/engine-formula/src/controller/calculate.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IUnitRange } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/controller/formula.controller.ts b/packages/engine-formula/src/controller/formula.controller.tsindex 6c4ede27c1..3fa5175a89 100644--- a/packages/engine-formula/src/controller/formula.controller.ts+++ b/packages/engine-formula/src/controller/formula.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { Ctor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/controller/set-defined-name.controller.ts b/packages/engine-formula/src/controller/set-defined-name.controller.tsindex d79e84d2de..66a03598f4 100644--- a/packages/engine-formula/src/controller/set-defined-name.controller.ts+++ b/packages/engine-formula/src/controller/set-defined-name.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';diff --git a/packages/engine-formula/src/controller/set-feature-calculation.controller.ts b/packages/engine-formula/src/controller/set-feature-calculation.controller.tsindex 6ddbe4459b..7df199c8c6 100644--- a/packages/engine-formula/src/controller/set-feature-calculation.controller.ts+++ b/packages/engine-formula/src/controller/set-feature-calculation.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';diff --git a/packages/engine-formula/src/controller/set-other-formula.controller.ts b/packages/engine-formula/src/controller/set-other-formula.controller.tsindex bd863e67e8..ac4e01a234 100644--- a/packages/engine-formula/src/controller/set-other-formula.controller.ts+++ b/packages/engine-formula/src/controller/set-other-formula.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';diff --git a/packages/engine-formula/src/controller/set-super-table.controller.ts b/packages/engine-formula/src/controller/set-super-table.controller.tsindex 11b23e0472..6fe5274bae 100644--- a/packages/engine-formula/src/controller/set-super-table.controller.ts+++ b/packages/engine-formula/src/controller/set-super-table.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.tsindex 876d9844c1..1e6e6b6314 100644--- a/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts+++ b/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts b/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.tsindex 9537a255a2..f5344733ad 100644--- a/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts+++ b/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, expect, it } from 'vitest';import type { LexerNode } from '../lexer-node';diff --git a/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts b/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.tsindex ddd6b55ca0..faf34101a5 100644--- a/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts+++ b/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData, Univer, Workbook } from '@univerjs/core';import { LocaleType } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/analysis/lexer-node.ts b/packages/engine-formula/src/engine/analysis/lexer-node.tsindex 2e39c0ae07..04ea1175c2 100644--- a/packages/engine-formula/src/engine/analysis/lexer-node.ts+++ b/packages/engine-formula/src/engine/analysis/lexer-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observable } from '@univerjs/core';import { DEFAULT_TOKEN_TYPE_ROOT } from '../../basics/token-type';diff --git a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.tsindex 4fe42acb33..895a366aa3 100644--- a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts+++ b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { deserializeRangeWithSheet, Disposable, Rectangle, serializeRangeToRefString, Tools } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/analysis/lexer.ts b/packages/engine-formula/src/engine/analysis/lexer.tsindex b848847185..a082564167 100644--- a/packages/engine-formula/src/engine/analysis/lexer.ts+++ b/packages/engine-formula/src/engine/analysis/lexer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/analysis/parser.ts b/packages/engine-formula/src/engine/analysis/parser.tsindex b883f4f109..5297324fe9 100644--- a/packages/engine-formula/src/engine/analysis/parser.ts+++ b/packages/engine-formula/src/engine/analysis/parser.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable, sortRules } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/ast-node/ast-root-node.ts b/packages/engine-formula/src/engine/ast-node/ast-root-node.tsindex 4e0ca2e409..72dc28fe8a 100644--- a/packages/engine-formula/src/engine/ast-node/ast-root-node.ts+++ b/packages/engine-formula/src/engine/ast-node/ast-root-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DEFAULT_TOKEN_TYPE_ROOT } from '../../basics/token-type';import { LexerNode } from '../analysis/lexer-node';import { BaseAstNode } from './base-ast-node';diff --git a/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts b/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.tsindex c822ffdffc..0bdc28867d 100644--- a/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts+++ b/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/ast-node/base-ast-node.ts b/packages/engine-formula/src/engine/ast-node/base-ast-node.tsindex d3afb3c803..8f932730cc 100644--- a/packages/engine-formula/src/engine/ast-node/base-ast-node.ts+++ b/packages/engine-formula/src/engine/ast-node/base-ast-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/ast-node/function-node.ts b/packages/engine-formula/src/engine/ast-node/function-node.tsindex e947992ba8..67e92df607 100644--- a/packages/engine-formula/src/engine/ast-node/function-node.ts+++ b/packages/engine-formula/src/engine/ast-node/function-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/ast-node/index.ts b/packages/engine-formula/src/engine/ast-node/index.tsindex f3180b378a..fc3bc1a8b2 100644--- a/packages/engine-formula/src/engine/ast-node/index.ts+++ b/packages/engine-formula/src/engine/ast-node/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './ast-root-node';export * from './function-node';export * from './lambda-node';diff --git a/packages/engine-formula/src/engine/ast-node/lambda-node.ts b/packages/engine-formula/src/engine/ast-node/lambda-node.tsindex d845f516ef..4f937f4b8d 100644--- a/packages/engine-formula/src/engine/ast-node/lambda-node.ts+++ b/packages/engine-formula/src/engine/ast-node/lambda-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Tools } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts b/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.tsindex b158e85626..88ee0056f0 100644--- a/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts+++ b/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { ErrorType } from '../../basics/error-type';diff --git a/packages/engine-formula/src/engine/ast-node/node-type.ts b/packages/engine-formula/src/engine/ast-node/node-type.tsindex 04d336b014..9f826dc65d 100644--- a/packages/engine-formula/src/engine/ast-node/node-type.ts+++ b/packages/engine-formula/src/engine/ast-node/node-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum NodeType {REFERENCE = 'ReferenceNode',VALUE = 'ValueNode',diff --git a/packages/engine-formula/src/engine/ast-node/null-node.ts b/packages/engine-formula/src/engine/ast-node/null-node.tsindex 16f7c4c47d..b7830956d0 100644--- a/packages/engine-formula/src/engine/ast-node/null-node.ts+++ b/packages/engine-formula/src/engine/ast-node/null-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { NullValueObject } from '../value-object/primitive-object';import { BaseAstNode } from './base-ast-node';import { NodeType } from './node-type';diff --git a/packages/engine-formula/src/engine/ast-node/operator-node.ts b/packages/engine-formula/src/engine/ast-node/operator-node.tsindex 0698298db7..289f9b3222 100644--- a/packages/engine-formula/src/engine/ast-node/operator-node.ts+++ b/packages/engine-formula/src/engine/ast-node/operator-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../basics/error-type';import type { compareToken } from '../../basics/token';import { OPERATOR_TOKEN_COMPARE_SET, OPERATOR_TOKEN_SET, operatorToken } from '../../basics/token';diff --git a/packages/engine-formula/src/engine/ast-node/prefix-node.ts b/packages/engine-formula/src/engine/ast-node/prefix-node.tsindex 40c3d9c072..6afe3afc1b 100644--- a/packages/engine-formula/src/engine/ast-node/prefix-node.ts+++ b/packages/engine-formula/src/engine/ast-node/prefix-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/ast-node/reference-node.ts b/packages/engine-formula/src/engine/ast-node/reference-node.tsindex b7141d38e0..3687672dd2 100644--- a/packages/engine-formula/src/engine/ast-node/reference-node.ts+++ b/packages/engine-formula/src/engine/ast-node/reference-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IAccessor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/ast-node/suffix-node.ts b/packages/engine-formula/src/engine/ast-node/suffix-node.tsindex 5a0e8b0783..41a5cf0ac8 100644--- a/packages/engine-formula/src/engine/ast-node/suffix-node.ts+++ b/packages/engine-formula/src/engine/ast-node/suffix-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IAccessor } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/ast-node/union-node.ts b/packages/engine-formula/src/engine/ast-node/union-node.tsindex 92daf299d9..c6a7e2ea40 100644--- a/packages/engine-formula/src/engine/ast-node/union-node.ts+++ b/packages/engine-formula/src/engine/ast-node/union-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../basics/error-type';import { matchToken } from '../../basics/token';import type { BaseFunction } from '../../functions/base-function';diff --git a/packages/engine-formula/src/engine/ast-node/value-node.ts b/packages/engine-formula/src/engine/ast-node/value-node.tsindex bc7fb09aba..d9f023dad0 100644--- a/packages/engine-formula/src/engine/ast-node/value-node.ts+++ b/packages/engine-formula/src/engine/ast-node/value-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BooleanValue } from '../../basics/common';import { LexerNode } from '../analysis/lexer-node';import { ValueObjectFactory } from '../value-object/array-value-object';diff --git a/packages/engine-formula/src/engine/dependency/dependency-tree.ts b/packages/engine-formula/src/engine/dependency/dependency-tree.tsindex 9bb00bcee3..bb64ecb1c7 100644--- a/packages/engine-formula/src/engine/dependency/dependency-tree.ts+++ b/packages/engine-formula/src/engine/dependency/dependency-tree.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, IUnitRange, Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/dependency/formula-dependency.ts b/packages/engine-formula/src/engine/dependency/formula-dependency.tsindex 1fd4929908..f6f4630ff3 100644--- a/packages/engine-formula/src/engine/dependency/formula-dependency.ts+++ b/packages/engine-formula/src/engine/dependency/formula-dependency.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, IUnitRange, Nullable } from '@univerjs/core';import { Disposable, LifecycleStages, ObjectMatrix, OnLifecycle } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/engine/interpreter/interpreter.ts b/packages/engine-formula/src/engine/interpreter/interpreter.tsindex 88f540c742..c6c68d2a7d 100644--- a/packages/engine-formula/src/engine/interpreter/interpreter.ts+++ b/packages/engine-formula/src/engine/interpreter/interpreter.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import { AstNodePromiseType } from '../../basics/common';diff --git a/packages/engine-formula/src/engine/other-object/error-value-object.ts b/packages/engine-formula/src/engine/other-object/error-value-object.tsindex 4a2b97968f..57b18309a6 100644--- a/packages/engine-formula/src/engine/other-object/error-value-object.ts+++ b/packages/engine-formula/src/engine/other-object/error-value-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ErrorType } from '../../basics/error-type';import { ObjectClassType } from '../../basics/object-class-type';diff --git a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts b/packages/engine-formula/src/engine/reference-object/base-reference-object.tsindex 5373244779..f481602cf4 100644--- a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/base-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, Nullable } from '@univerjs/core';import { CellValueType } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts b/packages/engine-formula/src/engine/reference-object/cell-reference-object.tsindex 746892fc30..b2dcd08e72 100644--- a/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { deserializeRangeWithSheet } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/reference-object/column-reference-object.ts b/packages/engine-formula/src/engine/reference-object/column-reference-object.tsindex 9b54a7ead2..1f31067a7d 100644--- a/packages/engine-formula/src/engine/reference-object/column-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/column-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { deserializeRangeWithSheet } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/reference-object/range-reference-object.ts b/packages/engine-formula/src/engine/reference-object/range-reference-object.tsindex 1f412a163e..7a449d0bee 100644--- a/packages/engine-formula/src/engine/reference-object/range-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/range-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { BaseReferenceObject } from './base-reference-object';diff --git a/packages/engine-formula/src/engine/reference-object/row-reference-object.ts b/packages/engine-formula/src/engine/reference-object/row-reference-object.tsindex c6eb47c3f2..eab176437c 100644--- a/packages/engine-formula/src/engine/reference-object/row-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/row-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { deserializeRangeWithSheet } from '@univerjs/core';diff --git a/packages/engine-formula/src/engine/reference-object/table-reference-object.ts b/packages/engine-formula/src/engine/reference-object/table-reference-object.tsindex ccd1866c3f..ee80a9a134 100644--- a/packages/engine-formula/src/engine/reference-object/table-reference-object.ts+++ b/packages/engine-formula/src/engine/reference-object/table-reference-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISuperTable } from '../../basics/common';import { TableOptionType } from '../../basics/common';import { $SUPER_TABLE_COLUMN_REGEX } from '../../basics/regex';diff --git a/packages/engine-formula/src/engine/utils/function-definition.ts b/packages/engine-formula/src/engine/utils/function-definition.tsindex 8ddddb7448..ad4712c120 100644--- a/packages/engine-formula/src/engine/utils/function-definition.ts+++ b/packages/engine-formula/src/engine/utils/function-definition.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DEFAULT_TOKEN_TYPE_LAMBDA_OMIT_PARAMETER, DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER } from '../../basics/token-type';import { LexerNode } from '../analysis/lexer-node';diff --git a/packages/engine-formula/src/engine/utils/node-type.ts b/packages/engine-formula/src/engine/utils/node-type.tsindex e7044a61bb..f97bf7ccb2 100644--- a/packages/engine-formula/src/engine/utils/node-type.ts+++ b/packages/engine-formula/src/engine/utils/node-type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { PrefixNode } from '../ast-node/prefix-node';import type { ReferenceNode } from '../ast-node/reference-node';import type { SuffixNode } from '../ast-node/suffix-node';diff --git a/packages/engine-formula/src/engine/utils/sequence.ts b/packages/engine-formula/src/engine/utils/sequence.tsindex d9d50046d6..ee3517080e 100644--- a/packages/engine-formula/src/engine/utils/sequence.ts+++ b/packages/engine-formula/src/engine/utils/sequence.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LexerNode } from '../analysis/lexer-node';export enum sequenceNodeType {diff --git a/packages/engine-formula/src/engine/value-object/array-value-object.ts b/packages/engine-formula/src/engine/value-object/array-value-object.tsindex c269c60470..12fe3cd6a1 100644--- a/packages/engine-formula/src/engine/value-object/array-value-object.ts+++ b/packages/engine-formula/src/engine/value-object/array-value-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { BooleanValue } from '../../basics/common';diff --git a/packages/engine-formula/src/engine/value-object/base-value-object.ts b/packages/engine-formula/src/engine/value-object/base-value-object.tsindex 057cbe7c78..5c2431d855 100644--- a/packages/engine-formula/src/engine/value-object/base-value-object.ts+++ b/packages/engine-formula/src/engine/value-object/base-value-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ConcatenateType } from '../../basics/common';import { ErrorType } from '../../basics/error-type';import { ObjectClassType } from '../../basics/object-class-type';diff --git a/packages/engine-formula/src/engine/value-object/primitive-object.ts b/packages/engine-formula/src/engine/value-object/primitive-object.tsindex a0a7a36bb3..24ae14ee95 100644--- a/packages/engine-formula/src/engine/value-object/primitive-object.ts+++ b/packages/engine-formula/src/engine/value-object/primitive-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { reverseCompareOperator } from '../../basics/calculate';import { BooleanValue, ConcatenateType } from '../../basics/common';import { ErrorType } from '../../basics/error-type';diff --git a/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/functions/__tests__/create-command-test-bed.tsindex 87be699d8d..58e823ba6f 100644--- a/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts+++ b/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import {ILogService,diff --git a/packages/engine-formula/src/functions/array/function-map.ts b/packages/engine-formula/src/functions/array/function-map.tsindex 18292fcd68..81a995270a 100644--- a/packages/engine-formula/src/functions/array/function-map.ts+++ b/packages/engine-formula/src/functions/array/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionArray = [];diff --git a/packages/engine-formula/src/functions/array/function-names.ts b/packages/engine-formula/src/functions/array/function-names.tsindex afa1209bf6..d5ba9dc8c0 100644--- a/packages/engine-formula/src/functions/array/function-names.ts+++ b/packages/engine-formula/src/functions/array/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_ARRAY {}diff --git a/packages/engine-formula/src/functions/base-function.ts b/packages/engine-formula/src/functions/base-function.tsindex 28d078e5c3..86eb6614f4 100644--- a/packages/engine-formula/src/functions/base-function.ts+++ b/packages/engine-formula/src/functions/base-function.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts b/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.tsindex 9136763724..90a390c1ef 100644--- a/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts+++ b/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/compatibility/function-map.ts b/packages/engine-formula/src/functions/compatibility/function-map.tsindex f78eaf7526..f3510922f9 100644--- a/packages/engine-formula/src/functions/compatibility/function-map.ts+++ b/packages/engine-formula/src/functions/compatibility/function-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Concatenate } from './concatenate/concatenate';import { FUNCTION_NAMES_COMPATIBILITY } from './function-names';diff --git a/packages/engine-formula/src/functions/compatibility/function-names.ts b/packages/engine-formula/src/functions/compatibility/function-names.tsindex b1f6b706fe..94d1571970 100644--- a/packages/engine-formula/src/functions/compatibility/function-names.ts+++ b/packages/engine-formula/src/functions/compatibility/function-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_COMPATIBILITY {CONCATENATE = 'CONCATENATE',}diff --git a/packages/engine-formula/src/functions/cube/function-map.ts b/packages/engine-formula/src/functions/cube/function-map.tsindex 4a61651e8b..7c2e67dbae 100644--- a/packages/engine-formula/src/functions/cube/function-map.ts+++ b/packages/engine-formula/src/functions/cube/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionCube = [];diff --git a/packages/engine-formula/src/functions/cube/function-names.ts b/packages/engine-formula/src/functions/cube/function-names.tsindex 16880e4c55..8a0fb85792 100644--- a/packages/engine-formula/src/functions/cube/function-names.ts+++ b/packages/engine-formula/src/functions/cube/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_CUBE {}diff --git a/packages/engine-formula/src/functions/database/function-map.ts b/packages/engine-formula/src/functions/database/function-map.tsindex 41c237d577..f3832cf382 100644--- a/packages/engine-formula/src/functions/database/function-map.ts+++ b/packages/engine-formula/src/functions/database/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionDatabase = [];diff --git a/packages/engine-formula/src/functions/database/function-names.ts b/packages/engine-formula/src/functions/database/function-names.tsindex 122076d0bd..f3a2601946 100644--- a/packages/engine-formula/src/functions/database/function-names.ts+++ b/packages/engine-formula/src/functions/database/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_DATABASE {}diff --git a/packages/engine-formula/src/functions/date/function-map.ts b/packages/engine-formula/src/functions/date/function-map.tsindex 7063ec7d03..c92366c262 100644--- a/packages/engine-formula/src/functions/date/function-map.ts+++ b/packages/engine-formula/src/functions/date/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionDate = [];diff --git a/packages/engine-formula/src/functions/date/function-names.ts b/packages/engine-formula/src/functions/date/function-names.tsindex efb077aae4..3fd84f8a20 100644--- a/packages/engine-formula/src/functions/date/function-names.ts+++ b/packages/engine-formula/src/functions/date/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_DATE {}diff --git a/packages/engine-formula/src/functions/engineering/function-map.ts b/packages/engine-formula/src/functions/engineering/function-map.tsindex 73a1621fe0..f82308bc93 100644--- a/packages/engine-formula/src/functions/engineering/function-map.ts+++ b/packages/engine-formula/src/functions/engineering/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionEngineering = [];diff --git a/packages/engine-formula/src/functions/engineering/function-names.ts b/packages/engine-formula/src/functions/engineering/function-names.tsindex d915b15dea..2727a4c707 100644--- a/packages/engine-formula/src/functions/engineering/function-names.ts+++ b/packages/engine-formula/src/functions/engineering/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_ENGINEERING {}diff --git a/packages/engine-formula/src/functions/financial/function-map.ts b/packages/engine-formula/src/functions/financial/function-map.tsindex 086cb65307..ff6f209682 100644--- a/packages/engine-formula/src/functions/financial/function-map.ts+++ b/packages/engine-formula/src/functions/financial/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionFinancial = [];diff --git a/packages/engine-formula/src/functions/financial/function-names.ts b/packages/engine-formula/src/functions/financial/function-names.tsindex 2174f2730d..95d63b8a72 100644--- a/packages/engine-formula/src/functions/financial/function-names.ts+++ b/packages/engine-formula/src/functions/financial/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_FINANCIAL {}diff --git a/packages/engine-formula/src/functions/information/function-map.ts b/packages/engine-formula/src/functions/information/function-map.tsindex a0da1cf0d2..25802266e5 100644--- a/packages/engine-formula/src/functions/information/function-map.ts+++ b/packages/engine-formula/src/functions/information/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionInformation = [];diff --git a/packages/engine-formula/src/functions/information/function-names.ts b/packages/engine-formula/src/functions/information/function-names.tsindex bc9b8b7f33..935cd877b5 100644--- a/packages/engine-formula/src/functions/information/function-names.ts+++ b/packages/engine-formula/src/functions/information/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_INFORMATION {}diff --git a/packages/engine-formula/src/functions/logical/function-map.ts b/packages/engine-formula/src/functions/logical/function-map.tsindex b927792855..0332f1112e 100644--- a/packages/engine-formula/src/functions/logical/function-map.ts+++ b/packages/engine-formula/src/functions/logical/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionLogical = [];diff --git a/packages/engine-formula/src/functions/logical/function-names.ts b/packages/engine-formula/src/functions/logical/function-names.tsindex 09b6b5d1a4..c7c04a61a2 100644--- a/packages/engine-formula/src/functions/logical/function-names.ts+++ b/packages/engine-formula/src/functions/logical/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_LOGICAL {}diff --git a/packages/engine-formula/src/functions/lookup/function-map.ts b/packages/engine-formula/src/functions/lookup/function-map.tsindex 9c22255c73..a1c10144ed 100644--- a/packages/engine-formula/src/functions/lookup/function-map.ts+++ b/packages/engine-formula/src/functions/lookup/function-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FUNCTION_NAMES_LOOKUP } from './function-names';import { Indirect } from './indirect/indirect';import { Offset } from './offset/offset';diff --git a/packages/engine-formula/src/functions/lookup/function-names.ts b/packages/engine-formula/src/functions/lookup/function-names.tsindex 6350cabf6e..1f0c61999d 100644--- a/packages/engine-formula/src/functions/lookup/function-names.ts+++ b/packages/engine-formula/src/functions/lookup/function-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_LOOKUP {INDIRECT = 'INDIRECT',OFFSET = 'OFFSET',diff --git a/packages/engine-formula/src/functions/lookup/indirect/indirect.ts b/packages/engine-formula/src/functions/lookup/indirect/indirect.tsindex c22817f286..c7442ecb88 100644--- a/packages/engine-formula/src/functions/lookup/indirect/indirect.ts+++ b/packages/engine-formula/src/functions/lookup/indirect/indirect.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';import { CellReferenceObject } from '../../../engine/reference-object/cell-reference-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/offset/offset.ts b/packages/engine-formula/src/functions/lookup/offset/offset.tsindex 83dcfe9cd6..6cc2a0be3b 100644--- a/packages/engine-formula/src/functions/lookup/offset/offset.ts+++ b/packages/engine-formula/src/functions/lookup/offset/offset.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';import { CellReferenceObject } from '../../../engine/reference-object/cell-reference-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/function-map.ts b/packages/engine-formula/src/functions/math/function-map.tsindex 95cfd03c06..3944782af4 100644--- a/packages/engine-formula/src/functions/math/function-map.ts+++ b/packages/engine-formula/src/functions/math/function-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FUNCTION_NAMES_MATH } from './function-names';import { Power } from './power/power';import { Sum } from './sum/sum';diff --git a/packages/engine-formula/src/functions/math/function-names.ts b/packages/engine-formula/src/functions/math/function-names.tsindex f714f295e5..b13cff550e 100644--- a/packages/engine-formula/src/functions/math/function-names.ts+++ b/packages/engine-formula/src/functions/math/function-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_MATH {SUM = 'SUM',SUMIF = 'SUMIF',diff --git a/packages/engine-formula/src/functions/math/power/power.ts b/packages/engine-formula/src/functions/math/power/power.tsindex 6994c09c82..edfe3145d4 100644--- a/packages/engine-formula/src/functions/math/power/power.ts+++ b/packages/engine-formula/src/functions/math/power/power.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/math/sum/sum.ts b/packages/engine-formula/src/functions/math/sum/sum.tsindex 533d6a98e4..2e09fd15ad 100644--- a/packages/engine-formula/src/functions/math/sum/sum.ts+++ b/packages/engine-formula/src/functions/math/sum/sum.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts b/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.tsindex 0a9c53b2fe..5c16b05efe 100644--- a/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts+++ b/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData, Univer } from '@univerjs/core';import { LocaleType } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/functions/math/sumif/sumif.ts b/packages/engine-formula/src/functions/math/sumif/sumif.tsindex d25bb0adef..be7e30fcbe 100644--- a/packages/engine-formula/src/functions/math/sumif/sumif.ts+++ b/packages/engine-formula/src/functions/math/sumif/sumif.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import type { compareToken } from '../../../basics/token';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';diff --git a/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts b/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.tsindex e7cd9cddef..dbd4e7b15e 100644--- a/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts+++ b/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, it } from 'vitest';describe('test sumifs', () => {diff --git a/packages/engine-formula/src/functions/math/sumifs/sumifs.ts b/packages/engine-formula/src/functions/math/sumifs/sumifs.tsindex 506c9f62c8..15d0dd8b3c 100644--- a/packages/engine-formula/src/functions/math/sumifs/sumifs.ts+++ b/packages/engine-formula/src/functions/math/sumifs/sumifs.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/meta/compare/compare.ts b/packages/engine-formula/src/functions/meta/compare/compare.tsindex 7a2189c433..531f56d6b2 100644--- a/packages/engine-formula/src/functions/meta/compare/compare.ts+++ b/packages/engine-formula/src/functions/meta/compare/compare.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { compareToken } from '../../../basics/token';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';diff --git a/packages/engine-formula/src/functions/meta/divided/divided.ts b/packages/engine-formula/src/functions/meta/divided/divided.tsindex 398b1a72da..0cf8820934 100644--- a/packages/engine-formula/src/functions/meta/divided/divided.ts+++ b/packages/engine-formula/src/functions/meta/divided/divided.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/meta/function-map.ts b/packages/engine-formula/src/functions/meta/function-map.tsindex 24b7874f30..75b58d8fd6 100644--- a/packages/engine-formula/src/functions/meta/function-map.ts+++ b/packages/engine-formula/src/functions/meta/function-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Compare } from './compare/compare';import { Divided } from './divided/divided';import { FUNCTION_NAMES_META } from './function-names';diff --git a/packages/engine-formula/src/functions/meta/function-names.ts b/packages/engine-formula/src/functions/meta/function-names.tsindex 219d5ada7e..ebc436d1ab 100644--- a/packages/engine-formula/src/functions/meta/function-names.ts+++ b/packages/engine-formula/src/functions/meta/function-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_META {COMPARE = 'COMPARE',DIVIDED = 'DIVIDED',diff --git a/packages/engine-formula/src/functions/meta/minus/minus.ts b/packages/engine-formula/src/functions/meta/minus/minus.tsindex 23a7f3a85b..5b961d0cce 100644--- a/packages/engine-formula/src/functions/meta/minus/minus.ts+++ b/packages/engine-formula/src/functions/meta/minus/minus.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/meta/multiply/multiply.ts b/packages/engine-formula/src/functions/meta/multiply/multiply.tsindex 62cf391cd6..ee6de5acd6 100644--- a/packages/engine-formula/src/functions/meta/multiply/multiply.ts+++ b/packages/engine-formula/src/functions/meta/multiply/multiply.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/meta/plus/plus.ts b/packages/engine-formula/src/functions/meta/plus/plus.tsindex cf4096b60e..29e34f515b 100644--- a/packages/engine-formula/src/functions/meta/plus/plus.ts+++ b/packages/engine-formula/src/functions/meta/plus/plus.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/meta/union/union.ts b/packages/engine-formula/src/functions/meta/union/union.tsindex a33e323657..4755f2df52 100644--- a/packages/engine-formula/src/functions/meta/union/union.ts+++ b/packages/engine-formula/src/functions/meta/union/union.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { compareToken } from '../../../basics/token';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';diff --git a/packages/engine-formula/src/functions/statistical/average/average.ts b/packages/engine-formula/src/functions/statistical/average/average.tsindex c8ddf89fb4..e465851a1b 100644--- a/packages/engine-formula/src/functions/statistical/average/average.ts+++ b/packages/engine-formula/src/functions/statistical/average/average.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/other-object/error-value-object';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';diff --git a/packages/engine-formula/src/functions/statistical/count/count.ts b/packages/engine-formula/src/functions/statistical/count/count.tsindex a92b85da86..fb0f583fec 100644--- a/packages/engine-formula/src/functions/statistical/count/count.ts+++ b/packages/engine-formula/src/functions/statistical/count/count.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';diff --git a/packages/engine-formula/src/functions/statistical/function-map.ts b/packages/engine-formula/src/functions/statistical/function-map.tsindex 93e866ca5d..01169316af 100644--- a/packages/engine-formula/src/functions/statistical/function-map.ts+++ b/packages/engine-formula/src/functions/statistical/function-map.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Average } from './average/average';import { Count } from './count/count';import { FUNCTION_NAMES_STATISTICAL } from './function-names';diff --git a/packages/engine-formula/src/functions/statistical/function-names.ts b/packages/engine-formula/src/functions/statistical/function-names.tsindex 33cbeea090..7f15d2432e 100644--- a/packages/engine-formula/src/functions/statistical/function-names.ts+++ b/packages/engine-formula/src/functions/statistical/function-names.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_STATISTICAL {AVERAGE = 'AVERAGE',COUNT = 'COUNT',diff --git a/packages/engine-formula/src/functions/statistical/max/max.ts b/packages/engine-formula/src/functions/statistical/max/max.tsindex f5d589afed..bd945e0ca0 100644--- a/packages/engine-formula/src/functions/statistical/max/max.ts+++ b/packages/engine-formula/src/functions/statistical/max/max.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { compareToken } from '../../../basics/token';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';diff --git a/packages/engine-formula/src/functions/statistical/min/min.ts b/packages/engine-formula/src/functions/statistical/min/min.tsindex 03b4b12c79..d5387b82b6 100644--- a/packages/engine-formula/src/functions/statistical/min/min.ts+++ b/packages/engine-formula/src/functions/statistical/min/min.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { compareToken } from '../../../basics/token';import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';diff --git a/packages/engine-formula/src/functions/text/function-map.ts b/packages/engine-formula/src/functions/text/function-map.tsindex 69518d1dfc..4be41a94b0 100644--- a/packages/engine-formula/src/functions/text/function-map.ts+++ b/packages/engine-formula/src/functions/text/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionText = [];diff --git a/packages/engine-formula/src/functions/text/function-names.ts b/packages/engine-formula/src/functions/text/function-names.tsindex 336ed24ebf..0ab1d20ed0 100644--- a/packages/engine-formula/src/functions/text/function-names.ts+++ b/packages/engine-formula/src/functions/text/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_TEXT {}diff --git a/packages/engine-formula/src/functions/univer/function-map.ts b/packages/engine-formula/src/functions/univer/function-map.tsindex 9240f214d2..9bfc657aaa 100644--- a/packages/engine-formula/src/functions/univer/function-map.ts+++ b/packages/engine-formula/src/functions/univer/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionUniver = [];diff --git a/packages/engine-formula/src/functions/univer/function-names.ts b/packages/engine-formula/src/functions/univer/function-names.tsindex 0ee1ec1cb8..104e0187cb 100644--- a/packages/engine-formula/src/functions/univer/function-names.ts+++ b/packages/engine-formula/src/functions/univer/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_UNIVER {}diff --git a/packages/engine-formula/src/functions/web/function-map.ts b/packages/engine-formula/src/functions/web/function-map.tsindex a72d344951..128fe5f89f 100644--- a/packages/engine-formula/src/functions/web/function-map.ts+++ b/packages/engine-formula/src/functions/web/function-map.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const functionWeb = [];diff --git a/packages/engine-formula/src/functions/web/function-names.ts b/packages/engine-formula/src/functions/web/function-names.tsindex 418d80c1c5..e4e4b1ed94 100644--- a/packages/engine-formula/src/functions/web/function-names.ts+++ b/packages/engine-formula/src/functions/web/function-names.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum FUNCTION_NAMES_WEB {}diff --git a/packages/engine-formula/src/index.ts b/packages/engine-formula/src/index.tsindex 1e5750f831..40925cf965 100644--- a/packages/engine-formula/src/index.ts+++ b/packages/engine-formula/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export type {IArrayFormulaRangeType,IArrayFormulaUnitCellType,diff --git a/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/models/__tests__/create-command-test-bed.tsindex a050ad7e3c..825570a927 100644--- a/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts+++ b/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts b/packages/engine-formula/src/models/__tests__/formula-data.model.spec.tsindex 4f27417aae..a809e56c7e 100644--- a/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts+++ b/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IWorkbookData, Nullable, Univer } from '@univerjs/core';import { IUniverInstanceService, LocaleType, ObjectMatrix } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/models/formula-data.model.ts b/packages/engine-formula/src/models/formula-data.model.tsindex 2a8ba16a58..9efa89119b 100644--- a/packages/engine-formula/src/models/formula-data.model.ts+++ b/packages/engine-formula/src/models/formula-data.model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';import { Disposable, isFormulaId, isFormulaString, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/plugin.ts b/packages/engine-formula/src/plugin.tsindex 1949bf78a8..0bd7ea9f3d 100644--- a/packages/engine-formula/src/plugin.ts+++ b/packages/engine-formula/src/plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Plugin } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/calculate-formula.service.ts b/packages/engine-formula/src/services/calculate-formula.service.tsindex 2ef363f40f..1e3d4c11d9 100644--- a/packages/engine-formula/src/services/calculate-formula.service.ts+++ b/packages/engine-formula/src/services/calculate-formula.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUnitRange } from '@univerjs/core';import {Disposable,diff --git a/packages/engine-formula/src/services/current-data.service.ts b/packages/engine-formula/src/services/current-data.service.tsindex 342a759856..8c1e2ae229 100644--- a/packages/engine-formula/src/services/current-data.service.ts+++ b/packages/engine-formula/src/services/current-data.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUnitRange, Nullable } from '@univerjs/core';import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/defined-names.service.ts b/packages/engine-formula/src/services/defined-names.service.tsindex 14187d7aaa..27a6baf285 100644--- a/packages/engine-formula/src/services/defined-names.service.ts+++ b/packages/engine-formula/src/services/defined-names.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/feature-calculation-manager.service.ts b/packages/engine-formula/src/services/feature-calculation-manager.service.tsindex 9d3f9eb96f..8f4d2f4f93 100644--- a/packages/engine-formula/src/services/feature-calculation-manager.service.ts+++ b/packages/engine-formula/src/services/feature-calculation-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUnitRange, Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/function.service.ts b/packages/engine-formula/src/services/function.service.tsindex c9076c0173..31b2e76485 100644--- a/packages/engine-formula/src/services/function.service.ts+++ b/packages/engine-formula/src/services/function.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/other-formula-manager.service.ts b/packages/engine-formula/src/services/other-formula-manager.service.tsindex 29e06da99e..b1d35e29b4 100644--- a/packages/engine-formula/src/services/other-formula-manager.service.ts+++ b/packages/engine-formula/src/services/other-formula-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/runtime.service.ts b/packages/engine-formula/src/services/runtime.service.tsindex 6fe53410e7..e378ded2f9 100644--- a/packages/engine-formula/src/services/runtime.service.ts+++ b/packages/engine-formula/src/services/runtime.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, Nullable } from '@univerjs/core';import { CellValueType, Disposable, isNullCell, ObjectMatrix } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-formula/src/services/super-table.service.ts b/packages/engine-formula/src/services/super-table.service.tsindex 744d504d4e..59dc4b8626 100644--- a/packages/engine-formula/src/services/super-table.service.ts+++ b/packages/engine-formula/src/services/super-table.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-numfmt/src/index.ts b/packages/engine-numfmt/src/index.tsindex f2b116bfb8..4904a2f8be 100644--- a/packages/engine-numfmt/src/index.ts+++ b/packages/engine-numfmt/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+// @ts-ignoreimport numfmt from 'numfmt';diff --git a/packages/engine-numfmt/src/type.ts b/packages/engine-numfmt/src/type.tsindex 6cc0f3962d..fcc2b40e99 100644--- a/packages/engine-numfmt/src/type.ts+++ b/packages/engine-numfmt/src/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+type FormatType =| 'currency'| 'date'diff --git a/packages/engine-numfmt/src/types/index.d.ts b/packages/engine-numfmt/src/types/index.d.tsindex f19863cb9f..444511745f 100644--- a/packages/engine-numfmt/src/types/index.d.ts+++ b/packages/engine-numfmt/src/types/index.d.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+declare module 'numfmt' {}diff --git a/packages/engine-render/src/base-object.ts b/packages/engine-render/src/base-object.tsindex bfb608365f..b9259e5cb9 100644--- a/packages/engine-render/src/base-object.ts+++ b/packages/engine-render/src/base-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';import { Observable, requestImmediateMacroTask } from '@univerjs/core';diff --git a/packages/engine-render/src/basics/cell-data.ts b/packages/engine-render/src/basics/cell-data.tsindex 61810c48b0..29c7905e46 100644--- a/packages/engine-render/src/basics/cell-data.ts+++ b/packages/engine-render/src/basics/cell-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IStyleData } from '@univerjs/core';export interface ITempCellData extends ICellData {diff --git a/packages/engine-render/src/basics/const.ts b/packages/engine-render/src/basics/const.tsindex 79600e84d4..4468f5bf23 100644--- a/packages/engine-render/src/basics/const.ts+++ b/packages/engine-render/src/basics/const.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const RGB_PAREN = 'rgb(';export const RGBA_PAREN = 'rgba(';export const COLORS = {diff --git a/packages/engine-render/src/basics/document-node-tools.ts b/packages/engine-render/src/basics/document-node-tools.tsindex 47813d1343..4242a929a1 100644--- a/packages/engine-render/src/basics/document-node-tools.ts+++ b/packages/engine-render/src/basics/document-node-tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, Nullable } from '@univerjs/core';import { checkParagraphHasIndentByStyle, DataStreamTreeTokenType } from '@univerjs/core';diff --git a/packages/engine-render/src/basics/draw.ts b/packages/engine-render/src/basics/draw.tsindex 0891b8b665..fe3bbe0eaf 100644--- a/packages/engine-render/src/basics/draw.ts+++ b/packages/engine-render/src/basics/draw.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPosition } from '@univerjs/core';import { BorderStyleTypes } from '@univerjs/core';diff --git a/packages/engine-render/src/basics/font-cache.ts b/packages/engine-render/src/basics/font-cache.tsindex b4039c3d6c..1e2cbb285b 100644--- a/packages/engine-render/src/basics/font-cache.ts+++ b/packages/engine-render/src/basics/font-cache.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { DEFAULT_MEASURE_TEXT } from './const';diff --git a/packages/engine-render/src/basics/i-document-skeleton-cached.ts b/packages/engine-render/src/basics/i-document-skeleton-cached.tsindex 475587d251..3d0c132757 100644--- a/packages/engine-render/src/basics/i-document-skeleton-cached.ts+++ b/packages/engine-render/src/basics/i-document-skeleton-cached.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BulletAlignment,ColumnSeparatorType,diff --git a/packages/engine-render/src/basics/i-events.ts b/packages/engine-render/src/basics/i-events.tsindex 11f58c559f..8799472f06 100644--- a/packages/engine-render/src/basics/i-events.ts+++ b/packages/engine-render/src/basics/i-events.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';/**diff --git a/packages/engine-render/src/basics/index.ts b/packages/engine-render/src/basics/index.tsindex 23f5819320..ada706f79b 100644--- a/packages/engine-render/src/basics/index.ts+++ b/packages/engine-render/src/basics/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './cell-data';export * from './const';export * from './document-node-tools';diff --git a/packages/engine-render/src/basics/interfaces.ts b/packages/engine-render/src/basics/interfaces.tsindex 6fa17bdb01..ae6d233e04 100644--- a/packages/engine-render/src/basics/interfaces.ts+++ b/packages/engine-render/src/basics/interfaces.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BooleanNumber,GridType,diff --git a/packages/engine-render/src/basics/path2.ts b/packages/engine-render/src/basics/path2.tsindex d32b6348fe..f3376ea94f 100644--- a/packages/engine-render/src/basics/path2.ts+++ b/packages/engine-render/src/basics/path2.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Vector2 } from './vector2';diff --git a/packages/engine-render/src/basics/performance-monitor.ts b/packages/engine-render/src/basics/performance-monitor.tsindex 6e0a30b0e7..d5c1b9f9f9 100644--- a/packages/engine-render/src/basics/performance-monitor.ts+++ b/packages/engine-render/src/basics/performance-monitor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';/**diff --git a/packages/engine-render/src/basics/position.ts b/packages/engine-render/src/basics/position.tsindex 6ec45b287d..362f9707ca 100644--- a/packages/engine-render/src/basics/position.ts+++ b/packages/engine-render/src/basics/position.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BaseObject } from '../base-object';import type { IBoundRect } from './vector2';diff --git a/packages/engine-render/src/basics/quick-event.ts b/packages/engine-render/src/basics/quick-event.tsindex 569f430831..f98f24c2af 100644--- a/packages/engine-render/src/basics/quick-event.ts+++ b/packages/engine-render/src/basics/quick-event.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BaseObject } from '../base-object';import type { IMouseEvent, IPointerEvent } from './i-events';diff --git a/packages/engine-render/src/basics/range.ts b/packages/engine-render/src/basics/range.tsindex f32acf59ee..b646b12dd0 100644--- a/packages/engine-render/src/basics/range.ts+++ b/packages/engine-render/src/basics/range.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ITextRangeParam } from '@univerjs/core';export interface ITextSelectionStyle {diff --git a/packages/engine-render/src/basics/scroll-xy.ts b/packages/engine-render/src/basics/scroll-xy.tsindex ae474df53a..d144f338ff 100644--- a/packages/engine-render/src/basics/scroll-xy.ts+++ b/packages/engine-render/src/basics/scroll-xy.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function getCurrentScrollXY(scrollTimer: any) {const scene = scrollTimer.getScene();const viewport = scrollTimer.getViewportByCoord(scene);diff --git a/packages/engine-render/src/basics/tools.ts b/packages/engine-render/src/basics/tools.tsindex c41596022c..535b471718 100644--- a/packages/engine-render/src/basics/tools.ts+++ b/packages/engine-render/src/basics/tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IRange,IRangeWithCoord,diff --git a/packages/engine-render/src/basics/transform.ts b/packages/engine-render/src/basics/transform.tsindex 3b6baa6f6f..01446ddcb0 100644--- a/packages/engine-render/src/basics/transform.ts+++ b/packages/engine-render/src/basics/transform.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ITransformState } from '@univerjs/core';import type { IRect } from './interfaces';diff --git a/packages/engine-render/src/basics/unit-convert.ts b/packages/engine-render/src/basics/unit-convert.tsindex 03fd860b20..711aea7544 100644--- a/packages/engine-render/src/basics/unit-convert.ts+++ b/packages/engine-render/src/basics/unit-convert.ts@@ -1,5 +1,18 @@-// import { IDocumentData, Tools } from '@univerjs/core';-// import { ptToPx, pxToPt } from './tools';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */const whiteListKeyForPt = new Set(['', '']);diff --git a/packages/engine-render/src/basics/vector2.ts b/packages/engine-render/src/basics/vector2.tsindex 4892c64a3d..25a90071bd 100644--- a/packages/engine-render/src/basics/vector2.ts+++ b/packages/engine-render/src/basics/vector2.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { DeepImmutable, FloatArray } from './i-events';export interface IPoint {diff --git a/packages/engine-render/src/canvas.ts b/packages/engine-render/src/canvas.tsindex 5f42d6f1c5..929c34db13 100644--- a/packages/engine-render/src/canvas.ts+++ b/packages/engine-render/src/canvas.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { getDevicePixelRatio } from './basics/draw';import { createCanvasElement } from './basics/tools';diff --git a/packages/engine-render/src/components/component.ts b/packages/engine-render/src/components/component.tsindex aaf53b4293..e41ca5f72b 100644--- a/packages/engine-render/src/components/component.ts+++ b/packages/engine-render/src/components/component.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { sortRules } from '@univerjs/core';import { BaseObject } from '../base-object';diff --git a/packages/engine-render/src/components/docs/block/block-error.ts b/packages/engine-render/src/components/docs/block/block-error.tsindex 11fcef47a2..01971694b7 100644--- a/packages/engine-render/src/components/docs/block/block-error.ts+++ b/packages/engine-render/src/components/docs/block/block-error.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function dealWithBlockError() {return [];}diff --git a/packages/engine-render/src/components/docs/block/index.ts b/packages/engine-render/src/components/docs/block/index.tsindex 8809cd9a12..58e1b2cd3a 100644--- a/packages/engine-render/src/components/docs/block/index.ts+++ b/packages/engine-render/src/components/docs/block/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './block-error';export * from './paragraph';export * from './section';diff --git a/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.tsindex cc8fef889c..9d2d9f2233 100644--- a/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { GlyphType, numberToListABC } from '@univerjs/core';export function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string) {diff --git a/packages/engine-render/src/components/docs/block/paragraph/bullet.ts b/packages/engine-render/src/components/docs/block/paragraph/bullet.tsindex b75762d0ff..b73263707f 100644--- a/packages/engine-render/src/components/docs/block/paragraph/bullet.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/bullet.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IBullet, ILists, INestingLevel, ITextStyle, LocaleService, Nullable } from '@univerjs/core';import { FontCache } from '../../../../basics/font-cache';diff --git a/packages/engine-render/src/components/docs/block/paragraph/index.ts b/packages/engine-render/src/components/docs/block/paragraph/index.tsindex 0f6ff8b460..583e7e4aec 100644--- a/packages/engine-render/src/components/docs/block/paragraph/index.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './bullet';export * from './bullet-ruler';export * from './inline-drawing';diff --git a/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts b/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.tsindex 18d7a0fa8c..079463a649 100644--- a/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDrawing, LocaleService } from '@univerjs/core';import type { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';diff --git a/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/language-ruler.tsindex 87bc5ca482..df1b809a8e 100644--- a/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraphStyle, Nullable } from '@univerjs/core';import type { IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';diff --git a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.tsindex 1494878a3e..c17ec2094e 100644--- a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { INumberUnit, IParagraphStyle } from '@univerjs/core';import { BooleanNumber, DataStreamTreeTokenType, GridType, SpacingRule } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts b/packages/engine-render/src/components/docs/block/paragraph/paragraph.tsindex b8e98032cc..2600868c71 100644--- a/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IBullet, ICustomBlock, IDrawing, IDrawings, Nullable } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/engine-render/src/components/docs/block/section.ts b/packages/engine-render/src/components/docs/block/section.tsindex 53138bba5c..167c8e6b33 100644--- a/packages/engine-render/src/components/docs/block/section.ts+++ b/packages/engine-render/src/components/docs/block/section.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DataStreamTreeNodeType } from '@univerjs/core';import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';diff --git a/packages/engine-render/src/components/docs/block/table/table-cell.ts b/packages/engine-render/src/components/docs/block/table/table-cell.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/engine-render/src/components/docs/block/table/table-row.ts b/packages/engine-render/src/components/docs/block/table/table-row.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/engine-render/src/components/docs/block/table/table.ts b/packages/engine-render/src/components/docs/block/table/table.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/engine-render/src/components/docs/common/column.ts b/packages/engine-render/src/components/docs/common/column.tsindex 79a7c4ff5c..b2731c7254 100644--- a/packages/engine-render/src/components/docs/common/column.ts+++ b/packages/engine-render/src/components/docs/common/column.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISectionColumnProperties } from '@univerjs/core';import { ColumnSeparatorType } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/convert-cursor.ts b/packages/engine-render/src/components/docs/common/convert-cursor.tsindex c7dc4ad17d..1dd8c34ee2 100644--- a/packages/engine-render/src/components/docs/common/convert-cursor.ts+++ b/packages/engine-render/src/components/docs/common/convert-cursor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPosition, ITextRange, Nullable } from '@univerjs/core';import type {diff --git a/packages/engine-render/src/components/docs/common/index.ts b/packages/engine-render/src/components/docs/common/index.tsindex a28162cf17..f741a2d8fb 100644--- a/packages/engine-render/src/components/docs/common/index.ts+++ b/packages/engine-render/src/components/docs/common/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './column';export * from './convert-cursor';export * from './line';diff --git a/packages/engine-render/src/components/docs/common/line.ts b/packages/engine-render/src/components/docs/common/line.tsindex 6e977f2cb1..322a070047 100644--- a/packages/engine-render/src/components/docs/common/line.ts+++ b/packages/engine-render/src/components/docs/common/line.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDrawing, Nullable } from '@univerjs/core';import { PositionedObjectLayoutType, WrapTextType } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/liquid.ts b/packages/engine-render/src/components/docs/common/liquid.tsindex 21c5d43680..81e19a01df 100644--- a/packages/engine-render/src/components/docs/common/liquid.ts+++ b/packages/engine-render/src/components/docs/common/liquid.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IDocumentSkeletonColumn,IDocumentSkeletonDivide,diff --git a/packages/engine-render/src/components/docs/common/page.ts b/packages/engine-render/src/components/docs/common/page.tsindex 7bd8e71bc4..970c60cd25 100644--- a/packages/engine-render/src/components/docs/common/page.ts+++ b/packages/engine-render/src/components/docs/common/page.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { PageOrientType } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/range.ts b/packages/engine-render/src/components/docs/common/range.tsindex 0402305e60..b72e83d60a 100644--- a/packages/engine-render/src/components/docs/common/range.ts+++ b/packages/engine-render/src/components/docs/common/range.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ITextRange, Nullable } from '@univerjs/core';import { Tools } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/section.ts b/packages/engine-render/src/components/docs/common/section.tsindex 403929748c..9ddb9af774 100644--- a/packages/engine-render/src/components/docs/common/section.ts+++ b/packages/engine-render/src/components/docs/common/section.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISectionColumnProperties } from '@univerjs/core';import { ColumnSeparatorType } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/span.ts b/packages/engine-render/src/components/docs/common/span.tsindex 3abdc904dc..23a5e1fbb4 100644--- a/packages/engine-render/src/components/docs/common/span.ts+++ b/packages/engine-render/src/components/docs/common/span.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { BooleanNumber, BulletAlignment, DataStreamTreeTokenType as DT, GridType } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/common/tools.ts b/packages/engine-render/src/components/docs/common/tools.tsindex 6a14b24d16..bb3916cbb5 100644--- a/packages/engine-render/src/components/docs/common/tools.ts+++ b/packages/engine-render/src/components/docs/common/tools.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {INumberUnit,IParagraphStyle,diff --git a/packages/engine-render/src/components/docs/doc-component.ts b/packages/engine-render/src/components/docs/doc-component.tsindex 3e548d8938..2f13c93a6b 100644--- a/packages/engine-render/src/components/docs/doc-component.ts+++ b/packages/engine-render/src/components/docs/doc-component.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { RENDER_CLASS_TYPE } from '../../basics/const';diff --git a/packages/engine-render/src/components/docs/doc-extension.ts b/packages/engine-render/src/components/docs/doc-extension.tsindex c50de71a81..d49a922dca 100644--- a/packages/engine-render/src/components/docs/doc-extension.ts+++ b/packages/engine-render/src/components/docs/doc-extension.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentSkeletonLine, IDocumentSkeletonSpan } from '../../basics/i-document-skeleton-cached';import { ComponentExtension } from '../extension';diff --git a/packages/engine-render/src/components/docs/doc-skeleton.ts b/packages/engine-render/src/components/docs/doc-skeleton.tsindex d79c8e1e1d..be66a80803 100644--- a/packages/engine-render/src/components/docs/doc-skeleton.ts+++ b/packages/engine-render/src/components/docs/doc-skeleton.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISectionBreak, ISectionColumnProperties, LocaleService, Nullable } from '@univerjs/core';import {ColumnSeparatorType,diff --git a/packages/engine-render/src/components/docs/document.ts b/packages/engine-render/src/components/docs/document.tsindex 227fe336e6..5f12ec62c4 100644--- a/packages/engine-render/src/components/docs/document.ts+++ b/packages/engine-render/src/components/docs/document.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import './extensions';import type { Nullable, Observer } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/extensions/background.ts b/packages/engine-render/src/components/docs/extensions/background.tsindex 33b45a7282..91137cbf90 100644--- a/packages/engine-render/src/components/docs/extensions/background.ts+++ b/packages/engine-render/src/components/docs/extensions/background.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale } from '@univerjs/core';import { getColorStyle } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/extensions/border.ts b/packages/engine-render/src/components/docs/extensions/border.tsindex ba478df8fe..bb99623891 100644--- a/packages/engine-render/src/components/docs/extensions/border.ts+++ b/packages/engine-render/src/components/docs/extensions/border.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BorderStyleTypes, IBorderData, IBorderStyleData, IScale, Nullable } from '@univerjs/core';import { getColorStyle } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts b/packages/engine-render/src/components/docs/extensions/font-and-base-line.tsindex 274a1ee66b..774049aa83 100644--- a/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts+++ b/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale } from '@univerjs/core';import { BaselineOffset, getColorStyle } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/extensions/index.ts b/packages/engine-render/src/components/docs/extensions/index.tsindex 1916bb36b3..119f756c56 100644--- a/packages/engine-render/src/components/docs/extensions/index.ts+++ b/packages/engine-render/src/components/docs/extensions/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './background';export * from './border';export * from './font-and-base-line';diff --git a/packages/engine-render/src/components/docs/extensions/line.ts b/packages/engine-render/src/components/docs/extensions/line.tsindex 1d567f83f6..92649e3131 100644--- a/packages/engine-render/src/components/docs/extensions/line.ts+++ b/packages/engine-render/src/components/docs/extensions/line.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale, ITextDecoration } from '@univerjs/core';import { BooleanNumber, getColorStyle, TextDecoration } from '@univerjs/core';diff --git a/packages/engine-render/src/components/docs/horizon-bar.ts b/packages/engine-render/src/components/docs/horizon-bar.tsindex 6f3d9772ed..03fb184543 100644--- a/packages/engine-render/src/components/docs/horizon-bar.ts+++ b/packages/engine-render/src/components/docs/horizon-bar.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class DocumentHorizonBar {}diff --git a/packages/engine-render/src/components/docs/index.ts b/packages/engine-render/src/components/docs/index.tsindex d1b2cecd0e..5e4cfe39b4 100644--- a/packages/engine-render/src/components/docs/index.ts+++ b/packages/engine-render/src/components/docs/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './block';export * from './common';export * from './doc-skeleton';diff --git a/packages/engine-render/src/components/docs/text-selection-render-manager.ts b/packages/engine-render/src/components/docs/text-selection-render-manager.tsindex bcfc3987ee..198d85192f 100644--- a/packages/engine-render/src/components/docs/text-selection-render-manager.ts+++ b/packages/engine-render/src/components/docs/text-selection-render-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observer } from '@univerjs/core';import { DataStreamTreeTokenType, RxDisposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/engine-render/src/components/docs/vertical-bar.ts b/packages/engine-render/src/components/docs/vertical-bar.tsindex f710593699..eb9a9a5e49 100644--- a/packages/engine-render/src/components/docs/vertical-bar.ts+++ b/packages/engine-render/src/components/docs/vertical-bar.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class DocumentVerticalBar {}diff --git a/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts b/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.tsindex def3c4d891..e85986217f 100644--- a/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts+++ b/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import {DataStreamTreeNodeType,diff --git a/packages/engine-render/src/components/docs/view-model/document-view-model.ts b/packages/engine-render/src/components/docs/view-model/document-view-model.tsindex 3e2b864e29..bcc2dcc359 100644--- a/packages/engine-render/src/components/docs/view-model/document-view-model.ts+++ b/packages/engine-render/src/components/docs/view-model/document-view-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, ITextRun, Nullable } from '@univerjs/core';import { DataStreamTreeNodeType, DataStreamTreeTokenType, DocumentDataModel } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/engine-render/src/components/extension.ts b/packages/engine-render/src/components/extension.tsindex f1a588daaa..6806d01247 100644--- a/packages/engine-render/src/components/extension.ts+++ b/packages/engine-render/src/components/extension.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentRenderConfig, IScale, Nullable } from '@univerjs/core';import { Registry } from '@univerjs/core';diff --git a/packages/engine-render/src/components/index.ts b/packages/engine-render/src/components/index.tsindex 0185b961ee..4def10c62b 100644--- a/packages/engine-render/src/components/index.ts+++ b/packages/engine-render/src/components/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './component';export * from './docs';export * from './extension';diff --git a/packages/engine-render/src/components/sheets/column-header.ts b/packages/engine-render/src/components/sheets/column-header.tsindex deae1b024a..403fd971a3 100644--- a/packages/engine-render/src/components/sheets/column-header.ts+++ b/packages/engine-render/src/components/sheets/column-header.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { getTranslateInSpreadContextWithPixelRatio } from '../../basics/draw';import { fixLineWidthByScale, getScale } from '../../basics/tools';import type { IBoundRect, Vector2 } from '../../basics/vector2';diff --git a/packages/engine-render/src/components/sheets/extensions/background.ts b/packages/engine-render/src/components/sheets/extensions/background.tsindex f948bf353a..35c3191958 100644--- a/packages/engine-render/src/components/sheets/extensions/background.ts+++ b/packages/engine-render/src/components/sheets/extensions/background.ts@@ -1,4 +1,19 @@-// import { fixLineWidthByScale, getColor, IScale } from '@Basics';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale } from '@univerjs/core';import { fixLineWidthByScale, getColor } from '../../../basics/tools';diff --git a/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts b/packages/engine-render/src/components/sheets/extensions/border-auxiliary.tsindex f906d372ed..5174ca45eb 100644--- a/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts+++ b/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, IScale } from '@univerjs/core';import { BooleanNumber } from '@univerjs/core';diff --git a/packages/engine-render/src/components/sheets/extensions/border.ts b/packages/engine-render/src/components/sheets/extensions/border.tsindex ead4310d06..3ebee9c0d1 100644--- a/packages/engine-render/src/components/sheets/extensions/border.ts+++ b/packages/engine-render/src/components/sheets/extensions/border.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BorderStyleTypes, IRange, IScale, ObjectMatrix } from '@univerjs/core';import { BORDER_TYPE, COLOR_BLACK_RGB } from '../../../basics/const';diff --git a/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts b/packages/engine-render/src/components/sheets/extensions/column-header-layout.tsindex 2e438c838d..4280a648ea 100644--- a/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts+++ b/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale } from '@univerjs/core';import { numberToABC } from '@univerjs/core';diff --git a/packages/engine-render/src/components/sheets/extensions/font.ts b/packages/engine-render/src/components/sheets/extensions/font.tsindex 0290a6f7f6..16de4db1e2 100644--- a/packages/engine-render/src/components/sheets/extensions/font.ts+++ b/packages/engine-render/src/components/sheets/extensions/font.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IColorStyle, IScale } from '@univerjs/core';import { HorizontalAlign, ObjectMatrix, WrapStrategy } from '@univerjs/core';diff --git a/packages/engine-render/src/components/sheets/extensions/index.ts b/packages/engine-render/src/components/sheets/extensions/index.tsindex 35db3f1ed5..b3c8096578 100644--- a/packages/engine-render/src/components/sheets/extensions/index.ts+++ b/packages/engine-render/src/components/sheets/extensions/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './background';export * from './border';export * from './border-auxiliary';diff --git a/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts b/packages/engine-render/src/components/sheets/extensions/row-header-layout.tsindex f6c1b7662e..e54e215594 100644--- a/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts+++ b/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IScale } from '@univerjs/core';import { DEFAULT_FONTFACE_PLANE, MIDDLE_CELL_POS_MAGIC_NUMBER } from '../../../basics/const';diff --git a/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts b/packages/engine-render/src/components/sheets/extensions/sheet-extension.tsindex 04501e9d54..a530c9ac1b 100644--- a/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts+++ b/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { getCellByIndex } from '../../../basics/tools';diff --git a/packages/engine-render/src/components/sheets/index.ts b/packages/engine-render/src/components/sheets/index.tsindex e1363219b6..b27cb3a5dc 100644--- a/packages/engine-render/src/components/sheets/index.ts+++ b/packages/engine-render/src/components/sheets/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './column-header';export * from './extensions';export * from './interfaces';diff --git a/packages/engine-render/src/components/sheets/interfaces.ts b/packages/engine-render/src/components/sheets/interfaces.tsindex 51556b810f..2f8c079a09 100644--- a/packages/engine-render/src/components/sheets/interfaces.ts+++ b/packages/engine-render/src/components/sheets/interfaces.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BorderStyleTypes, HorizontalAlign, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';import type { BORDER_TYPE } from '../../basics/const';diff --git a/packages/engine-render/src/components/sheets/row-header.ts b/packages/engine-render/src/components/sheets/row-header.tsindex 0c484d08a5..03e6fe75af 100644--- a/packages/engine-render/src/components/sheets/row-header.ts+++ b/packages/engine-render/src/components/sheets/row-header.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { getTranslateInSpreadContextWithPixelRatio } from '../../basics/draw';import { fixLineWidthByScale, getScale } from '../../basics/tools';import type { IBoundRect, Vector2 } from '../../basics/vector2';diff --git a/packages/engine-render/src/components/sheets/sheet-component.ts b/packages/engine-render/src/components/sheets/sheet-component.tsindex db1682fc7c..8549cff9fc 100644--- a/packages/engine-render/src/components/sheets/sheet-component.ts+++ b/packages/engine-render/src/components/sheets/sheet-component.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { RENDER_CLASS_TYPE } from '../../basics/const';diff --git a/packages/engine-render/src/components/sheets/sheet-skeleton.ts b/packages/engine-render/src/components/sheets/sheet-skeleton.tsindex 7abc2ab22e..8c204f76a4 100644--- a/packages/engine-render/src/components/sheets/sheet-skeleton.ts+++ b/packages/engine-render/src/components/sheets/sheet-skeleton.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IBorderStyleData,ICellData,diff --git a/packages/engine-render/src/components/sheets/spreadsheet.ts b/packages/engine-render/src/components/sheets/spreadsheet.tsindex 5d0aec107e..a7a88e6738 100644--- a/packages/engine-render/src/components/sheets/spreadsheet.ts+++ b/packages/engine-render/src/components/sheets/spreadsheet.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Nullable } from '@univerjs/core';import { CellValueType, HorizontalAlign, ObjectMatrix, sortRules, WrapStrategy } from '@univerjs/core';diff --git a/packages/engine-render/src/components/skeleton.ts b/packages/engine-render/src/components/skeleton.tsindex dc1df0d899..a50bdd8743 100644--- a/packages/engine-render/src/components/skeleton.ts+++ b/packages/engine-render/src/components/skeleton.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, LocaleService } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/engine-render/src/components/slides/index.ts b/packages/engine-render/src/components/slides/index.tsindex e8b68b8923..937c1afea2 100644--- a/packages/engine-render/src/components/slides/index.ts+++ b/packages/engine-render/src/components/slides/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './slide';diff --git a/packages/engine-render/src/components/slides/slide.ts b/packages/engine-render/src/components/slides/slide.tsindex 1dd23c738a..52ef53cad3 100644--- a/packages/engine-render/src/components/slides/slide.ts+++ b/packages/engine-render/src/components/slides/slide.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Observable } from '@univerjs/core';diff --git a/packages/engine-render/src/custom/custom-object.ts b/packages/engine-render/src/custom/custom-object.tsindex ce220f62ae..5e404778e6 100644--- a/packages/engine-render/src/custom/custom-object.ts+++ b/packages/engine-render/src/custom/custom-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BaseObject } from '../base-object';import { transformBoundingCoord } from '../basics/position';import type { IBoundRect, Vector2 } from '../basics/vector2';diff --git a/packages/engine-render/src/custom/index.ts b/packages/engine-render/src/custom/index.tsindex fc1134edf1..6a332efdad 100644--- a/packages/engine-render/src/custom/index.ts+++ b/packages/engine-render/src/custom/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './custom-object';diff --git a/packages/engine-render/src/engine.ts b/packages/engine-render/src/engine.tsindex 8c6dce5ef1..8c7e606387 100644--- a/packages/engine-render/src/engine.ts+++ b/packages/engine-render/src/engine.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Observable, toDisposable } from '@univerjs/core';diff --git a/packages/engine-render/src/group.ts b/packages/engine-render/src/group.tsindex 0f9dc376bc..45d09ca7cc 100644--- a/packages/engine-render/src/group.ts+++ b/packages/engine-render/src/group.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { sortRules } from '@univerjs/core';diff --git a/packages/engine-render/src/index.ts b/packages/engine-render/src/index.tsindex 712cc30ffc..be638a54b9 100644--- a/packages/engine-render/src/index.ts+++ b/packages/engine-render/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './base-object';export * from './basics';export * from './canvas';diff --git a/packages/engine-render/src/layer.ts b/packages/engine-render/src/layer.tsindex 6a387822b1..cb68affe11 100644--- a/packages/engine-render/src/layer.ts+++ b/packages/engine-render/src/layer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { sortRules } from '@univerjs/core';import { BaseObject } from './base-object';diff --git a/packages/engine-render/src/render-engine.ts b/packages/engine-render/src/render-engine.tsindex 9d4378d3d0..e053107096 100644--- a/packages/engine-render/src/render-engine.ts+++ b/packages/engine-render/src/render-engine.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Plugin, PluginType } from '@univerjs/core';import { createIdentifier, Inject, Injector } from '@wendellhu/redi';diff --git a/packages/engine-render/src/render-manager.service.ts b/packages/engine-render/src/render-manager.service.tsindex 7446e4a379..bed825a61e 100644--- a/packages/engine-render/src/render-manager.service.ts+++ b/packages/engine-render/src/render-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/engine-render/src/scene-viewer.ts b/packages/engine-render/src/scene-viewer.tsindex 8582978c97..faf725f50d 100644--- a/packages/engine-render/src/scene-viewer.ts+++ b/packages/engine-render/src/scene-viewer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, Nullable } from '@univerjs/core';import { BaseObject } from './base-object';diff --git a/packages/engine-render/src/scene.-transformer.ts b/packages/engine-render/src/scene.-transformer.tsindex d06216e56e..1ebd9eaaf5 100644--- a/packages/engine-render/src/scene.-transformer.ts+++ b/packages/engine-render/src/scene.-transformer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, Nullable, Observer } from '@univerjs/core';import { Observable } from '@univerjs/core';diff --git a/packages/engine-render/src/scene.input-manager.ts b/packages/engine-render/src/scene.input-manager.tsindex 0841612f44..8d7ee74560 100644--- a/packages/engine-render/src/scene.input-manager.ts+++ b/packages/engine-render/src/scene.input-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observer } from '@univerjs/core';import type { BaseObject } from './base-object';diff --git a/packages/engine-render/src/scene.ts b/packages/engine-render/src/scene.tsindex b6008fe244..36cb80f9cd 100644--- a/packages/engine-render/src/scene.ts+++ b/packages/engine-render/src/scene.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, Nullable } from '@univerjs/core';import { sortRules, sortRulesByDesc } from '@univerjs/core';import { BehaviorSubject } from 'rxjs';diff --git a/packages/engine-render/src/scroll-timer.ts b/packages/engine-render/src/scroll-timer.tsindex 1ee0e6f02d..c4ba71cdd7 100644--- a/packages/engine-render/src/scroll-timer.ts+++ b/packages/engine-render/src/scroll-timer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPaddingData, Nullable } from '@univerjs/core';import { RENDER_CLASS_TYPE } from './basics/const';diff --git a/packages/engine-render/src/services/object-transform-manager.service.ts b/packages/engine-render/src/services/object-transform-manager.service.tsindex d5fd7dd467..e6e0b83985 100644--- a/packages/engine-render/src/services/object-transform-manager.service.ts+++ b/packages/engine-render/src/services/object-transform-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { BehaviorSubject } from 'rxjs';diff --git a/packages/engine-render/src/shape/base-scroll-bar.ts b/packages/engine-render/src/shape/base-scroll-bar.tsindex 262ad08958..57e53ed984 100644--- a/packages/engine-render/src/shape/base-scroll-bar.ts+++ b/packages/engine-render/src/shape/base-scroll-bar.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { Vector2 } from '../basics/vector2';diff --git a/packages/engine-render/src/shape/circle.ts b/packages/engine-render/src/shape/circle.tsindex 60d0597c3b..16cde48d85 100644--- a/packages/engine-render/src/shape/circle.ts+++ b/packages/engine-render/src/shape/circle.ts@@ -1,4 +1,18 @@-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IKeyValue } from '@univerjs/core';diff --git a/packages/engine-render/src/shape/control.ts b/packages/engine-render/src/shape/control.tsindex 67eb5c6e1b..eaafa15a90 100644--- a/packages/engine-render/src/shape/control.ts+++ b/packages/engine-render/src/shape/control.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Control {}diff --git a/packages/engine-render/src/shape/drawing.ts b/packages/engine-render/src/shape/drawing.tsindex b9c910a89f..93c854e35e 100644--- a/packages/engine-render/src/shape/drawing.ts+++ b/packages/engine-render/src/shape/drawing.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Drawing {}diff --git a/packages/engine-render/src/shape/index.ts b/packages/engine-render/src/shape/index.tsindex c0d8e44489..5b120f50a3 100644--- a/packages/engine-render/src/shape/index.ts+++ b/packages/engine-render/src/shape/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './circle';export * from './control';export * from './drawing';diff --git a/packages/engine-render/src/shape/path.ts b/packages/engine-render/src/shape/path.tsindex 01eb548f34..6eaf565781 100644--- a/packages/engine-render/src/shape/path.ts+++ b/packages/engine-render/src/shape/path.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';import type { IKeyValue, Nullable } from '@univerjs/core';diff --git a/packages/engine-render/src/shape/picture.ts b/packages/engine-render/src/shape/picture.tsindex e441b5fae0..c28823bd47 100644--- a/packages/engine-render/src/shape/picture.ts+++ b/packages/engine-render/src/shape/picture.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IShapeProps } from './shape';diff --git a/packages/engine-render/src/shape/rect.ts b/packages/engine-render/src/shape/rect.tsindex 0c6c4fcf8a..7f15f539a9 100644--- a/packages/engine-render/src/shape/rect.ts+++ b/packages/engine-render/src/shape/rect.ts@@ -1,4 +1,18 @@-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IKeyValue } from '@univerjs/core';diff --git a/packages/engine-render/src/shape/regular-polygon.ts b/packages/engine-render/src/shape/regular-polygon.tsindex 09d9e01b68..ad93130681 100644--- a/packages/engine-render/src/shape/regular-polygon.ts+++ b/packages/engine-render/src/shape/regular-polygon.ts@@ -1,4 +1,18 @@-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IKeyValue } from '@univerjs/core';diff --git a/packages/engine-render/src/shape/rich-text.ts b/packages/engine-render/src/shape/rich-text.tsindex 50881606e3..59825bb5e6 100644--- a/packages/engine-render/src/shape/rich-text.ts+++ b/packages/engine-render/src/shape/rich-text.ts@@ -1,4 +1,18 @@-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type {IBorderData,diff --git a/packages/engine-render/src/shape/scroll-bar.ts b/packages/engine-render/src/shape/scroll-bar.tsindex 3e23a60103..2f1c5b2676 100644--- a/packages/engine-render/src/shape/scroll-bar.ts+++ b/packages/engine-render/src/shape/scroll-bar.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';import { EVENT_TYPE } from '../basics/const';diff --git a/packages/engine-render/src/shape/selection.ts b/packages/engine-render/src/shape/selection.tsindex 1b3575ce0a..9729d059bd 100644--- a/packages/engine-render/src/shape/selection.ts+++ b/packages/engine-render/src/shape/selection.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Selection {}diff --git a/packages/engine-render/src/shape/shape.ts b/packages/engine-render/src/shape/shape.tsindex bf63044c5f..917dea61ab 100644--- a/packages/engine-render/src/shape/shape.ts+++ b/packages/engine-render/src/shape/shape.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, IScale, Nullable } from '@univerjs/core';import { BASE_OBJECT_ARRAY, BaseObject } from '../base-object';diff --git a/packages/engine-render/src/thin-engine.ts b/packages/engine-render/src/thin-engine.tsindex bbf0ee0231..bb99535618 100644--- a/packages/engine-render/src/thin-engine.ts+++ b/packages/engine-render/src/thin-engine.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, Observable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/engine-render/src/thin-scene.ts b/packages/engine-render/src/thin-scene.tsindex b5dbb00b90..8e65a6e05b 100644--- a/packages/engine-render/src/thin-scene.ts+++ b/packages/engine-render/src/thin-scene.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';import { Observable } from '@univerjs/core';diff --git a/packages/engine-render/src/types/index.d.ts b/packages/engine-render/src/types/index.d.tsindex b043ed1885..01d2bef475 100644--- a/packages/engine-render/src/types/index.d.ts+++ b/packages/engine-render/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/engine-render' {}diff --git a/packages/engine-render/src/viewport.ts b/packages/engine-render/src/viewport.tsindex 5eeaab6a9b..a12e6dbc83 100644--- a/packages/engine-render/src/viewport.ts+++ b/packages/engine-render/src/viewport.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IPosition, Nullable } from '@univerjs/core';import { Observable } from '@univerjs/core';diff --git a/packages/image/src/controllers/image.load.controller.ts b/packages/image/src/controllers/image.load.controller.tsindex b43af690e9..17b0664014 100644--- a/packages/image/src/controllers/image.load.controller.ts+++ b/packages/image/src/controllers/image.load.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IFloatingObjectManagerParam } from '@univerjs/core';import {Disposable,diff --git a/packages/image/src/image-plugin.ts b/packages/image/src/image-plugin.tsindex 7700ee8e1a..f5062628ad 100644--- a/packages/image/src/image-plugin.ts+++ b/packages/image/src/image-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DEFAULT_DOCUMENT_SUB_COMPONENT_ID, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/image/src/index.ts b/packages/image/src/index.tsindex 3f3b33bddd..271807c3ee 100644--- a/packages/image/src/index.ts+++ b/packages/image/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { ImagePlugin } from './image-plugin';export { ImageManagerService } from './services/image-manager.service';diff --git a/packages/image/src/models/image-model.ts b/packages/image/src/models/image-model.tsindex 1c2ae1a1ae..4392255f9a 100644--- a/packages/image/src/models/image-model.ts+++ b/packages/image/src/models/image-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';export interface IImageData {diff --git a/packages/image/src/services/image-manager.service.ts b/packages/image/src/services/image-manager.service.tsindex 6ccf6ed200..f3add72ed2 100644--- a/packages/image/src/services/image-manager.service.ts+++ b/packages/image/src/services/image-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/image/src/services/image-render.service.ts b/packages/image/src/services/image-render.service.tsindex 9c198176ec..59782dfecb 100644--- a/packages/image/src/services/image-render.service.ts+++ b/packages/image/src/services/image-render.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/local-save/src/controller/export.controller.ts b/packages/local-save/src/controller/export.controller.tsindex 8a43041f56..56d10edf90 100644--- a/packages/local-save/src/controller/export.controller.ts+++ b/packages/local-save/src/controller/export.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createDownloadElement } from '../util/index';export class ExportController {diff --git a/packages/local-save/src/controller/record.controller.ts b/packages/local-save/src/controller/record.controller.tsindex fc50a7bef2..7a28a12c03 100644--- a/packages/local-save/src/controller/record.controller.ts+++ b/packages/local-save/src/controller/record.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { CommandType, ICommandService } from '@univerjs/core';import { Inject } from '@wendellhu/redi';import { Observable } from 'rxjs';diff --git a/packages/local-save/src/index.ts b/packages/local-save/src/index.tsindex ccc002f25f..5e8cc103bb 100644--- a/packages/local-save/src/index.ts+++ b/packages/local-save/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { ExportController } from './controller/export.controller';export { RecordController } from './controller/record.controller';export { LocalSnapshotService } from './services/local-snapshot.service';diff --git a/packages/local-save/src/plugin.ts b/packages/local-save/src/plugin.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/local-save/src/services/local-snapshot.service.ts b/packages/local-save/src/services/local-snapshot.service.tsindex 1caa8089cc..db546f2027 100644--- a/packages/local-save/src/services/local-snapshot.service.ts+++ b/packages/local-save/src/services/local-snapshot.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISnapshotPersistenceService, Workbook } from '@univerjs/core';import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/local-save/src/util/index.ts b/packages/local-save/src/util/index.tsindex 34411e6395..a4b97b6022 100644--- a/packages/local-save/src/util/index.ts+++ b/packages/local-save/src/util/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function createDownloadElement(fileName: string, blob: Blob) {const a = document.createElement('a');a.download = fileName;diff --git a/packages/network/src/index.ts b/packages/network/src/index.tsindex 1556c4a92d..196f2f3c4a 100644--- a/packages/network/src/index.ts+++ b/packages/network/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { HTTPHeaders } from './services/http/headers';export { HTTPService } from './services/http/http.service';export { IHTTPImplementation } from './services/http/implementations/implementation';diff --git a/packages/network/src/services/http/headers.ts b/packages/network/src/services/http/headers.tsindex e7f8e48f4c..a3aa49a8e8 100644--- a/packages/network/src/services/http/headers.ts+++ b/packages/network/src/services/http/headers.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+interface IHeadersConstructorProps {[key: string]: string | number | boolean;}diff --git a/packages/network/src/services/http/http.service.ts b/packages/network/src/services/http/http.service.tsindex 9e4ae443ca..6c6774e417 100644--- a/packages/network/src/services/http/http.service.ts+++ b/packages/network/src/services/http/http.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable, remove, toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/network/src/services/http/http.ts b/packages/network/src/services/http/http.tsindex 1fc693780c..e867136dc0 100644--- a/packages/network/src/services/http/http.ts+++ b/packages/network/src/services/http/http.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */export type HTTPResponseType = 'arraybuffer' | 'blob' | 'json' | 'text';diff --git a/packages/network/src/services/http/implementations/fetch.ts b/packages/network/src/services/http/implementations/fetch.tsdeleted file mode 100644index 70b786d12e..0000000000--- a/packages/network/src/services/http/implementations/fetch.ts+++ /dev/null@@ -1 +0,0 @@-// TODOdiff --git a/packages/network/src/services/http/implementations/implementation.ts b/packages/network/src/services/http/implementations/implementation.tsindex 6bdab89099..73ae032394 100644--- a/packages/network/src/services/http/implementations/implementation.ts+++ b/packages/network/src/services/http/implementations/implementation.ts@@ -1,4 +1,19 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/network/src/services/http/implementations/xhr.ts b/packages/network/src/services/http/implementations/xhr.tsindex 11aa1f8dbc..0887855b93 100644--- a/packages/network/src/services/http/implementations/xhr.ts+++ b/packages/network/src/services/http/implementations/xhr.ts@@ -1,4 +1,18 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { Nullable } from '@univerjs/core';import type { Observer } from 'rxjs';diff --git a/packages/network/src/services/http/params.ts b/packages/network/src/services/http/params.tsindex d09e4944bc..92b3a2b29b 100644--- a/packages/network/src/services/http/params.ts+++ b/packages/network/src/services/http/params.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class HTTPParams {constructor(readonly params?: { [key: string]: string | number | boolean }) {}diff --git a/packages/network/src/services/http/request.ts b/packages/network/src/services/http/request.tsindex de4d085fff..85b0c679eb 100644--- a/packages/network/src/services/http/request.ts+++ b/packages/network/src/services/http/request.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { HTTPHeaders } from './headers';import { ApplicationJSONType } from './headers';import type { HTTPResponseType } from './http';diff --git a/packages/network/src/services/http/response.ts b/packages/network/src/services/http/response.tsindex 34193f763e..95760ce7f7 100644--- a/packages/network/src/services/http/response.ts+++ b/packages/network/src/services/http/response.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { HTTPHeaders } from './headers';/**diff --git a/packages/network/src/services/web-socket/web-socket.service.ts b/packages/network/src/services/web-socket/web-socket.service.tsindex badf9e6136..3681d1eede 100644--- a/packages/network/src/services/web-socket/web-socket.service.ts+++ b/packages/network/src/services/web-socket/web-socket.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Disposable, DisposableCollection, toDisposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts b/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.tsindex 7a88366680..65886b9bc6 100644--- a/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts+++ b/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo } from '@univerjs/core';import {CommandType,diff --git a/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts b/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.tsindex ba3ce3a23d..7b86ac277e 100644--- a/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts+++ b/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo } from '@univerjs/core';import { CommandType, Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/rpc/src/index.ts b/packages/rpc/src/index.tsindex 290ede0e9e..a41e2cab3a 100644--- a/packages/rpc/src/index.ts+++ b/packages/rpc/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export {type IUniverRPCMainThreadConfig,type IUniverRPCWorkerThreadPluginConfig,diff --git a/packages/rpc/src/plugin.ts b/packages/rpc/src/plugin.tsindex 509bd85e41..472179cce7 100644--- a/packages/rpc/src/plugin.ts+++ b/packages/rpc/src/plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/rpc/src/services/remote-instance/remote-instance.service.ts b/packages/rpc/src/services/remote-instance/remote-instance.service.tsindex d7a5fa4f24..feefe8e0d4 100644--- a/packages/rpc/src/services/remote-instance/remote-instance.service.ts+++ b/packages/rpc/src/services/remote-instance/remote-instance.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IExecutionOptions, IMutationInfo, IWorkbookData } from '@univerjs/core';import { DocumentType, ICommandService, IUniverInstanceService } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts b/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.tsindex 221067307a..3990db8afe 100644--- a/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts+++ b/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+/* eslint-disable @typescript-eslint/no-explicit-any */import type { Observable } from 'rxjs';import { of, Subject } from 'rxjs';diff --git a/packages/rpc/src/services/rpc/channel.service.ts b/packages/rpc/src/services/rpc/channel.service.tsindex b4b3c8001a..8121ec93cf 100644--- a/packages/rpc/src/services/rpc/channel.service.ts+++ b/packages/rpc/src/services/rpc/channel.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';import type { IChannel, IMessageProtocol } from './rpc.service';diff --git a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.tsindex 05819d780c..a2c9307905 100644--- a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts+++ b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts@@ -1,4 +1,19 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Observable, shareReplay } from 'rxjs';import type { IMessageProtocol } from '../rpc.service';diff --git a/packages/rpc/src/services/rpc/rpc.service.ts b/packages/rpc/src/services/rpc/rpc.service.tsindex abf64e526a..ce335b0767 100644--- a/packages/rpc/src/services/rpc/rpc.service.ts+++ b/packages/rpc/src/services/rpc/rpc.service.ts@@ -1,4 +1,18 @@-/* eslint-disable @typescript-eslint/no-explicit-any */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import { RxDisposable } from '@univerjs/core';import type { Subscriber, Subscription } from 'rxjs';diff --git a/packages/sheets-find/src/action/action-find.ts b/packages/sheets-find/src/action/action-find.tsindex 1339407317..640dd3c8b7 100644--- a/packages/sheets-find/src/action/action-find.ts+++ b/packages/sheets-find/src/action/action-find.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class ActionFind {}diff --git a/packages/sheets-find/src/action/i-action-set.ts b/packages/sheets-find/src/action/i-action-set.tsindex f8e2a8f7e6..aef205ba19 100644--- a/packages/sheets-find/src/action/i-action-set.ts+++ b/packages/sheets-find/src/action/i-action-set.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IActionSet {}diff --git a/packages/sheets-find/src/action/i-action.ts b/packages/sheets-find/src/action/i-action.tsindex 9b031a3c3c..9658c7dcd1 100644--- a/packages/sheets-find/src/action/i-action.ts+++ b/packages/sheets-find/src/action/i-action.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IAction {}diff --git a/packages/sheets-find/src/action/index.ts b/packages/sheets-find/src/action/index.tsindex ed50b6b20c..0fb3eced77 100644--- a/packages/sheets-find/src/action/index.ts+++ b/packages/sheets-find/src/action/index.ts@@ -1,8 +1,19 @@/**- * en: Modify localData, conflict handling, generate data transfer protocol, submit for background execution+ * Copyright 2023 DreamNum Inc.*- * zh: 修改localData、冲突处理、生成数据传输协议、提交后台执行+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export * from './action-find';export * from './i-action';export * from './i-action-set';diff --git a/packages/sheets-find/src/base/cache.ts b/packages/sheets-find/src/base/cache.tsindex 002f98640e..99132cf5a3 100644--- a/packages/sheets-find/src/base/cache.ts+++ b/packages/sheets-find/src/base/cache.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Cache {}diff --git a/packages/sheets-find/src/base/index.ts b/packages/sheets-find/src/base/index.tsindex c221bf7f25..d19837d2da 100644--- a/packages/sheets-find/src/base/index.ts+++ b/packages/sheets-find/src/base/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './cache';export * from './state';diff --git a/packages/sheets-find/src/base/state.ts b/packages/sheets-find/src/base/state.tsindex f277253fef..7e3e28e720 100644--- a/packages/sheets-find/src/base/state.ts+++ b/packages/sheets-find/src/base/state.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class State {}diff --git a/packages/sheets-find/src/commands/operations/show-modal.operation.ts b/packages/sheets-find/src/commands/operations/show-modal.operation.tsindex 066430f18a..29f871dead 100644--- a/packages/sheets-find/src/commands/operations/show-modal.operation.ts+++ b/packages/sheets-find/src/commands/operations/show-modal.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-find/src/conflict/conflict-find.ts b/packages/sheets-find/src/conflict/conflict-find.tsindex 7eaeb5897d..c955bec9e5 100644--- a/packages/sheets-find/src/conflict/conflict-find.ts+++ b/packages/sheets-find/src/conflict/conflict-find.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class ConflictFind {}diff --git a/packages/sheets-find/src/conflict/i-conflict.ts b/packages/sheets-find/src/conflict/i-conflict.tsindex 02b0979966..3f21368c4c 100644--- a/packages/sheets-find/src/conflict/i-conflict.ts+++ b/packages/sheets-find/src/conflict/i-conflict.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IConflict {}diff --git a/packages/sheets-find/src/conflict/index.ts b/packages/sheets-find/src/conflict/index.tsindex 3dae643967..6638c87eab 100644--- a/packages/sheets-find/src/conflict/index.ts+++ b/packages/sheets-find/src/conflict/index.ts@@ -1,7 +1,18 @@/**- * en: Handling action conflicts+ * Copyright 2023 DreamNum Inc.*- * zh: 处理action冲突+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export * from './conflict-find';export * from './i-conflict';diff --git a/packages/sheets-find/src/const/index.ts b/packages/sheets-find/src/const/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-find/src/const/plugin-name.ts b/packages/sheets-find/src/const/plugin-name.tsindex 3e4ba61434..eb7c2ddce9 100644--- a/packages/sheets-find/src/const/plugin-name.ts+++ b/packages/sheets-find/src/const/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const FIND_PLUGIN_NAME = 'find';diff --git a/packages/sheets-find/src/controllers/find-controller.ts b/packages/sheets-find/src/controllers/find-controller.tsindex 3ac0b8770f..c1186414b0 100644--- a/packages/sheets-find/src/controllers/find-controller.ts+++ b/packages/sheets-find/src/controllers/find-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService } from '@univerjs/core';import { ComponentManager, IMenuService } from '@univerjs/ui';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/sheets-find/src/controllers/find-modal-controller.ts b/packages/sheets-find/src/controllers/find-modal-controller.tsindex 5c49b07aa2..785628cd1e 100644--- a/packages/sheets-find/src/controllers/find-modal-controller.ts+++ b/packages/sheets-find/src/controllers/find-modal-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ComponentManager } from '@univerjs/ui';import { Inject } from '@wendellhu/redi';diff --git a/packages/sheets-find/src/controllers/location-content-controller.ts b/packages/sheets-find/src/controllers/location-content-controller.tsindex 6593990315..865cf03464 100644--- a/packages/sheets-find/src/controllers/location-content-controller.ts+++ b/packages/sheets-find/src/controllers/location-content-controller.ts@@ -1,4 +1,18 @@-// import { FindPlugin } from '../find-plugin';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */// export class LocationContentController {// private _plugin: FindPlugin;diff --git a/packages/sheets-find/src/controllers/menu.ts b/packages/sheets-find/src/controllers/menu.tsindex d4faccb726..223fd53574 100644--- a/packages/sheets-find/src/controllers/menu.ts+++ b/packages/sheets-find/src/controllers/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMenuButtonItem } from '@univerjs/ui';import { MenuItemType, MenuPosition } from '@univerjs/ui';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-find/src/controllers/search-content-controller.ts b/packages/sheets-find/src/controllers/search-content-controller.tsindex 07f4d9d134..4164d3cdda 100644--- a/packages/sheets-find/src/controllers/search-content-controller.ts+++ b/packages/sheets-find/src/controllers/search-content-controller.ts@@ -1,6 +1,18 @@-// import { FIND_PLUGIN_NAME } from '../const/plugin-name';-// import { FindPlugin } from '../find-plugin';-// import { SearchContent } from '../views/ui/search-content';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */// export class SearchContentController {// private _searchData;diff --git a/packages/sheets-find/src/domain/index.ts b/packages/sheets-find/src/domain/index.tsindex 751ee29881..23dadcf841 100644--- a/packages/sheets-find/src/domain/index.ts+++ b/packages/sheets-find/src/domain/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './text-find';diff --git a/packages/sheets-find/src/domain/text-find.ts b/packages/sheets-find/src/domain/text-find.tsindex 6cfad3d32d..4047b3be89 100644--- a/packages/sheets-find/src/domain/text-find.ts+++ b/packages/sheets-find/src/domain/text-find.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IGridRange, Nullable, Range, Worksheet } from '@univerjs/core';import { FormatType, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { SelectionManagerService, transformCellDataToSelectionData } from '@univerjs/sheets';diff --git a/packages/sheets-find/src/enum/index.ts b/packages/sheets-find/src/enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-find/src/find-plugin.ts b/packages/sheets-find/src/find-plugin.tsindex a9eb89f237..0b515b53ea 100644--- a/packages/sheets-find/src/find-plugin.ts+++ b/packages/sheets-find/src/find-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';// import { TextFinder } from './domain/text-find';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets-find/src/i-data/i-find.ts b/packages/sheets-find/src/i-data/i-find.tsindex a2db712e80..810bef3d6e 100644--- a/packages/sheets-find/src/i-data/i-find.ts+++ b/packages/sheets-find/src/i-data/i-find.ts@@ -1,3 +1,19 @@-import type { FormatType } from '@univerjs/core';--export type FindType = FormatType | 'null' | 'text' | 'condition' | 'intervalRow' | 'intervalColumn';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { FormatType } from '@univerjs/core';++export type FindType = FormatType | 'null' | 'text' | 'condition' | 'intervalRow' | 'intervalColumn';diff --git a/packages/sheets-find/src/i-data/index.ts b/packages/sheets-find/src/i-data/index.tsindex 53674d977b..95876f48db 100644--- a/packages/sheets-find/src/i-data/index.ts+++ b/packages/sheets-find/src/i-data/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './i-find';diff --git a/packages/sheets-find/src/index.ts b/packages/sheets-find/src/index.tsindex 68f9beecab..a42fc2e496 100644--- a/packages/sheets-find/src/index.ts+++ b/packages/sheets-find/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { FindPlugin } from './find-plugin';export { enUS, zhCN } from './locale';diff --git a/packages/sheets-find/src/locale/en-US.ts b/packages/sheets-find/src/locale/en-US.tsindex bec17e12f4..af20f762e4 100644--- a/packages/sheets-find/src/locale/en-US.ts+++ b/packages/sheets-find/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {find: {findLabel: 'Find and replace',diff --git a/packages/sheets-find/src/locale/index.ts b/packages/sheets-find/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets-find/src/locale/index.ts+++ b/packages/sheets-find/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets-find/src/locale/zh-CN.ts b/packages/sheets-find/src/locale/zh-CN.tsindex 5802ca5e32..1e5e86994e 100644--- a/packages/sheets-find/src/locale/zh-CN.ts+++ b/packages/sheets-find/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {find: {findLabel: '查找替换',diff --git a/packages/sheets-find/src/main.tsx b/packages/sheets-find/src/main.tsxindex e2cf0a6a30..82d882b458 100644--- a/packages/sheets-find/src/main.tsx+++ b/packages/sheets-find/src/main.tsx@@ -1,10 +1,18 @@-// const uiDefaultConfigUp = {-// container: 'universheet-demo-up',-// };-// const uiDefaultConfigDown = {-// container: 'universheet-demo-down',-// layout: {-// outerLeft: false,+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */// outerRight: true,diff --git a/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts b/packages/sheets-find/src/proxy-data/i-proxy-data-set.tsindex 9bf75cd768..f94bd813be 100644--- a/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts+++ b/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IProxyDataSet {}diff --git a/packages/sheets-find/src/proxy-data/i-proxy-data.ts b/packages/sheets-find/src/proxy-data/i-proxy-data.tsindex 0bd8a3cf07..4cc4740274 100644--- a/packages/sheets-find/src/proxy-data/i-proxy-data.ts+++ b/packages/sheets-find/src/proxy-data/i-proxy-data.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IProxyData {}diff --git a/packages/sheets-find/src/proxy-data/index.ts b/packages/sheets-find/src/proxy-data/index.tsindex 513c324871..31089db884 100644--- a/packages/sheets-find/src/proxy-data/index.ts+++ b/packages/sheets-find/src/proxy-data/index.ts@@ -1,8 +1,19 @@/**- * en: Transfer to background data protocol+ * Copyright 2023 DreamNum Inc.*- * zh: 传输到后台数据协议+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export * from './i-proxy-data';export * from './i-proxy-data-set';export * from './proxy-data-find';diff --git a/packages/sheets-find/src/proxy-data/proxy-data-find.ts b/packages/sheets-find/src/proxy-data/proxy-data-find.tsindex f30007621c..81d32bdbee 100644--- a/packages/sheets-find/src/proxy-data/proxy-data-find.ts+++ b/packages/sheets-find/src/proxy-data/proxy-data-find.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class IProxyDataFind {}diff --git a/packages/sheets-find/src/services/find-service.ts b/packages/sheets-find/src/services/find-service.tsindex d381ae071d..8dfcb75562 100644--- a/packages/sheets-find/src/services/find-service.ts+++ b/packages/sheets-find/src/services/find-service.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class FindService {}diff --git a/packages/sheets-find/src/services/find.service.ts b/packages/sheets-find/src/services/find.service.tsindex d7d5f8e5ac..e3529a37cb 100644--- a/packages/sheets-find/src/services/find.service.ts+++ b/packages/sheets-find/src/services/find.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Inject } from '@wendellhu/redi';import { FindModalController } from '../controllers/find-modal-controller';diff --git a/packages/sheets-find/src/services/index.ts b/packages/sheets-find/src/services/index.tsindex 0b849e4167..701f27ff38 100644--- a/packages/sheets-find/src/services/index.ts+++ b/packages/sheets-find/src/services/index.ts@@ -1,7 +1,17 @@/**+ * Copyright 2023 DreamNum Inc.*- * en: Operate and register localData+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at*- * zh: 操作、注册localData+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export * from './find-service';diff --git a/packages/sheets-find/src/shared/index.ts b/packages/sheets-find/src/shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-find/src/types/index.d.ts b/packages/sheets-find/src/types/index.d.tsindex e99acc2516..7b8d7cfd20 100644--- a/packages/sheets-find/src/types/index.d.ts+++ b/packages/sheets-find/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/sheets-find' {}diff --git a/packages/sheets-find/src/util/util.ts b/packages/sheets-find/src/util/util.tsindex 64039173a4..78350bef30 100644--- a/packages/sheets-find/src/util/util.ts+++ b/packages/sheets-find/src/util/util.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const getRegExpStr = (str: string) =>str.replace('~*', '\\*').replace('~?', '\\?').replace('.', '\\.').replace('*', '.*').replace('?', '.');diff --git a/packages/sheets-find/src/views/event.ts b/packages/sheets-find/src/views/event.tsindex 8c34a9ab4c..d12e7075b6 100644--- a/packages/sheets-find/src/views/event.ts+++ b/packages/sheets-find/src/views/event.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Event {}diff --git a/packages/sheets-find/src/views/index.ts b/packages/sheets-find/src/views/index.tsindex 0f9494114c..e5680ad8fa 100644--- a/packages/sheets-find/src/views/index.ts+++ b/packages/sheets-find/src/views/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './event';export * from './observer-list';export * from './render';diff --git a/packages/sheets-find/src/views/observer-list.ts b/packages/sheets-find/src/views/observer-list.tsindex a1b96aa311..4036dc3a6b 100644--- a/packages/sheets-find/src/views/observer-list.ts+++ b/packages/sheets-find/src/views/observer-list.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class ObserverList {}diff --git a/packages/sheets-find/src/views/render.ts b/packages/sheets-find/src/views/render.tsindex faca95e82e..99bbe9706f 100644--- a/packages/sheets-find/src/views/render.ts+++ b/packages/sheets-find/src/views/render.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class Render {}diff --git a/packages/sheets-find/src/views/ui/FindModal.tsx b/packages/sheets-find/src/views/ui/FindModal.tsxindex 1dfa38f31a..fb878a635a 100644--- a/packages/sheets-find/src/views/ui/FindModal.tsx+++ b/packages/sheets-find/src/views/ui/FindModal.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICheckboxGroupProps } from '@univerjs/design';import type { BaseComponentProps } from '@univerjs/ui';import React, { Component } from 'react';diff --git a/packages/sheets-find/src/views/ui/LocationContent.tsx b/packages/sheets-find/src/views/ui/LocationContent.tsxindex 726ab85b6e..694efa28d9 100644--- a/packages/sheets-find/src/views/ui/LocationContent.tsx+++ b/packages/sheets-find/src/views/ui/LocationContent.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React, { Component } from 'react';interface LocationProps {diff --git a/packages/sheets-find/src/views/ui/SearchContent.tsx b/packages/sheets-find/src/views/ui/SearchContent.tsxindex 157bff8b51..67cad57014 100644--- a/packages/sheets-find/src/views/ui/SearchContent.tsx+++ b/packages/sheets-find/src/views/ui/SearchContent.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import React, { Component } from 'react';diff --git a/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts b/packages/sheets-formula/src/commands/commands/formula-clipboard.command.tsindex bb41544fbd..f457275c49 100644--- a/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts+++ b/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService } from '@univerjs/core';import { SheetPasteCommand } from '@univerjs/sheets-ui';diff --git a/packages/sheets-formula/src/commands/commands/insert-function.command.ts b/packages/sheets-formula/src/commands/commands/insert-function.command.tsindex 4c0840377f..54a75cfa2d 100644--- a/packages/sheets-formula/src/commands/commands/insert-function.command.ts+++ b/packages/sheets-formula/src/commands/commands/insert-function.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IRange } from '@univerjs/core';import { CommandType, ICommandService, ObjectMatrix, Tools } from '@univerjs/core';import type { ISetRangeValuesCommandParams } from '@univerjs/sheets';diff --git a/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts b/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.tsindex 0de9014ffc..f2d1f6386d 100644--- a/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts+++ b/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import { LexerTreeBuilder } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts b/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.tsindex e0903068c6..193d1348bb 100644--- a/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts+++ b/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';import {diff --git a/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts b/packages/sheets-formula/src/commands/operations/editor-formula.operation.tsindex 8825c618e7..74b819a759 100644--- a/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts+++ b/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts@@ -1,4 +1,18 @@-// This file provides operations to change formula selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-formula/src/commands/operations/help-function.operation.ts b/packages/sheets-formula/src/commands/operations/help-function.operation.tsindex a0ae33e4d0..e2c156490f 100644--- a/packages/sheets-formula/src/commands/operations/help-function.operation.ts+++ b/packages/sheets-formula/src/commands/operations/help-function.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/commands/operations/insert-function.operation.ts b/packages/sheets-formula/src/commands/operations/insert-function.operation.tsindex 78a843526f..95e7f89bc2 100644--- a/packages/sheets-formula/src/commands/operations/insert-function.operation.ts+++ b/packages/sheets-formula/src/commands/operations/insert-function.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IRange, Nullable, ObjectMatrix } from '@univerjs/core';import {CellValueType,diff --git a/packages/sheets-formula/src/commands/operations/more-functions.operation.ts b/packages/sheets-formula/src/commands/operations/more-functions.operation.tsindex 06de65a958..d83abcbde3 100644--- a/packages/sheets-formula/src/commands/operations/more-functions.operation.ts+++ b/packages/sheets-formula/src/commands/operations/more-functions.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { ISidebarService } from '@univerjs/ui';diff --git a/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts b/packages/sheets-formula/src/commands/operations/reference-absolute.operation.tsindex e6cf10a047..110532aac8 100644--- a/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts+++ b/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/commands/operations/search-function.operation.ts b/packages/sheets-formula/src/commands/operations/search-function.operation.tsindex 44d552a522..f762b34f4f 100644--- a/packages/sheets-formula/src/commands/operations/search-function.operation.ts+++ b/packages/sheets-formula/src/commands/operations/search-function.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/common/plugin-name.ts b/packages/sheets-formula/src/common/plugin-name.tsindex 944ac89a99..f87048aeb8 100644--- a/packages/sheets-formula/src/common/plugin-name.ts+++ b/packages/sheets-formula/src/common/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const FORMULA_UI_PLUGIN_NAME = 'formula-ui';diff --git a/packages/sheets-formula/src/common/prompt.ts b/packages/sheets-formula/src/common/prompt.tsindex 84d2e0a689..a3479f486e 100644--- a/packages/sheets-formula/src/common/prompt.ts+++ b/packages/sheets-formula/src/common/prompt.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const META_KEY_CTRL_AND_SHIFT = 'meta_key_ctrl_And_Shift';diff --git a/packages/sheets-formula/src/common/selection.ts b/packages/sheets-formula/src/common/selection.tsindex ee72497ad9..cf0523518b 100644--- a/packages/sheets-formula/src/common/selection.ts+++ b/packages/sheets-formula/src/common/selection.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { ThemeService } from '@univerjs/core';import type { ISelectionStyle } from '@univerjs/sheets';diff --git a/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts b/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.tsindex d6a9c71f04..116c51e0e3 100644--- a/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts+++ b/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData, Workbook } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import { LexerTreeBuilder } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.tsindex cb921d1c94..6a6215072a 100644--- a/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, Nullable, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.tsindex 154027b1ee..d9ae10133f 100644--- a/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { LexerTreeBuilder } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.tsindex fd997ff86a..869f69bd83 100644--- a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';import { MoveRowsCommand, NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService } from '@univerjs/sheets';diff --git a/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts b/packages/sheets-formula/src/controllers/__tests__/utils.spec.tsindex a346704c29..ac921501f1 100644--- a/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {DeleteRangeMoveLeftCommand,DeleteRangeMoveUpCommand,diff --git a/packages/sheets-formula/src/controllers/active-dirty.controller.ts b/packages/sheets-formula/src/controllers/active-dirty.controller.tsindex a4515ef554..345e8e0e95 100644--- a/packages/sheets-formula/src/controllers/active-dirty.controller.ts+++ b/packages/sheets-formula/src/controllers/active-dirty.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommandInfo, IRange, IUnitRange, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';import {Dimension,diff --git a/packages/sheets-formula/src/controllers/array-formula-display.controller.ts b/packages/sheets-formula/src/controllers/array-formula-display.controller.tsindex 4a7814147e..4d22fb5fe0 100644--- a/packages/sheets-formula/src/controllers/array-formula-display.controller.ts+++ b/packages/sheets-formula/src/controllers/array-formula-display.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { ISetArrayFormulaDataMutationParams } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts b/packages/sheets-formula/src/controllers/formula-auto-fill.controller.tsindex 44df30d030..29f9cc863b 100644--- a/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts+++ b/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, Nullable } from '@univerjs/core';import {Direction,diff --git a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts b/packages/sheets-formula/src/controllers/formula-clipboard.controller.tsindex 472fbcb52d..7672242b10 100644--- a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts+++ b/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts b/packages/sheets-formula/src/controllers/formula-editor-show.controller.tsindex 000b6605e8..5d1ebe1b5f 100644--- a/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts+++ b/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { ICellDataForSheetInterceptor, ICommandInfo, IRange, Nullable } from '@univerjs/core';import {diff --git a/packages/sheets-formula/src/controllers/formula-input.controller.ts b/packages/sheets-formula/src/controllers/formula-input.controller.tsindex e2c283a772..89516fbfb3 100644--- a/packages/sheets-formula/src/controllers/formula-input.controller.ts+++ b/packages/sheets-formula/src/controllers/formula-input.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {AbsoluteRefType,diff --git a/packages/sheets-formula/src/controllers/formula-ui.controller.ts b/packages/sheets-formula/src/controllers/formula-ui.controller.tsindex 2b7d88f72c..0f55999292 100644--- a/packages/sheets-formula/src/controllers/formula-ui.controller.ts+++ b/packages/sheets-formula/src/controllers/formula-ui.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IDesktopUIController } from '@univerjs/ui';import { ComponentManager, IMenuService, IShortcutService, IUIController } from '@univerjs/ui';diff --git a/packages/sheets-formula/src/controllers/menu.ts b/packages/sheets-formula/src/controllers/menu.tsindex df531f88f2..76eec1eef6 100644--- a/packages/sheets-formula/src/controllers/menu.ts+++ b/packages/sheets-formula/src/controllers/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PASTE_SPECIAL_MENU_ID } from '@univerjs/sheets-ui';import type { IMenuItem } from '@univerjs/ui';import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';diff --git a/packages/sheets-formula/src/controllers/prompt.controller.ts b/packages/sheets-formula/src/controllers/prompt.controller.tsindex 0413903b1b..e8a4e30060 100644--- a/packages/sheets-formula/src/controllers/prompt.controller.ts+++ b/packages/sheets-formula/src/controllers/prompt.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IRangeWithCoord, ITextRun, Nullable } from '@univerjs/core';import {deserializeRangeWithSheet,diff --git a/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts b/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.tsindex a0f14c5007..17c13af5fe 100644--- a/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts+++ b/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DeviceInputEventType } from '@univerjs/engine-render';import { whenEditorInputFormulaActivated } from '@univerjs/sheets-ui';import type { IShortcutItem } from '@univerjs/ui';diff --git a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts b/packages/sheets-formula/src/controllers/trigger-calculation.controller.tsindex d4a9020bd7..a1dad63a59 100644--- a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts+++ b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IUnitRange } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type {diff --git a/packages/sheets-formula/src/controllers/update-formula.controller.ts b/packages/sheets-formula/src/controllers/update-formula.controller.tsindex c934d247ea..6f390dcdab 100644--- a/packages/sheets-formula/src/controllers/update-formula.controller.ts+++ b/packages/sheets-formula/src/controllers/update-formula.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommandInfo, IExecutionOptions, IRange, IUnitRange, Nullable } from '@univerjs/core';import {deserializeRangeWithSheet,diff --git a/packages/sheets-formula/src/controllers/utils.ts b/packages/sheets-formula/src/controllers/utils.tsindex d8c066d491..cb627bbf5e 100644--- a/packages/sheets-formula/src/controllers/utils.ts+++ b/packages/sheets-formula/src/controllers/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';import { Dimension, ObjectMatrix, RANGE_TYPE } from '@univerjs/core';import type { IArrayFormulaRangeType } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/formula-ui-plugin.ts b/packages/sheets-formula/src/formula-ui-plugin.tsindex f3f19a2dd0..b8969aeb01 100644--- a/packages/sheets-formula/src/formula-ui-plugin.ts+++ b/packages/sheets-formula/src/formula-ui-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { IFunctionInfo } from '@univerjs/engine-formula';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.tsindex 154afbd0fe..f9a0092b39 100644--- a/packages/sheets-formula/src/index.ts+++ b/packages/sheets-formula/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { UniverSheetsFormula } from './formula-ui-plugin';export { enUS, zhCN } from './locale';diff --git a/packages/sheets-formula/src/locale/en-US.ts b/packages/sheets-formula/src/locale/en-US.tsindex 879155e0bf..63f4c0b2c0 100644--- a/packages/sheets-formula/src/locale/en-US.ts+++ b/packages/sheets-formula/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import array from './function-list/array/en-US';import compatibility from './function-list/compatibility/en-US';import cube from './function-list/cube/en-US';diff --git a/packages/sheets-formula/src/locale/function-list/array/en-US.ts b/packages/sheets-formula/src/locale/function-list/array/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/array/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/array/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/array/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts b/packages/sheets-formula/src/locale/function-list/compatibility/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/cube/en-US.ts b/packages/sheets-formula/src/locale/function-list/cube/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/cube/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/cube/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/cube/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/database/en-US.ts b/packages/sheets-formula/src/locale/function-list/database/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/database/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/database/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/database/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/date/en-US.ts b/packages/sheets-formula/src/locale/function-list/date/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/date/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/date/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/date/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts b/packages/sheets-formula/src/locale/function-list/engineering/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/financial/en-US.ts b/packages/sheets-formula/src/locale/function-list/financial/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/financial/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/financial/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/financial/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/information/en-US.ts b/packages/sheets-formula/src/locale/function-list/information/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/information/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/information/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/information/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/logical/en-US.ts b/packages/sheets-formula/src/locale/function-list/logical/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/logical/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/logical/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/logical/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts b/packages/sheets-formula/src/locale/function-list/lookup/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/math/en-US.ts b/packages/sheets-formula/src/locale/function-list/math/en-US.tsindex a88b36a788..bc80233571 100644--- a/packages/sheets-formula/src/locale/function-list/math/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/math/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {SUM: {description: 'You can add individual values, cell references or ranges or a mix of all three.',diff --git a/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/math/zh-CN.tsindex c8ed5a7989..7d6bc99cec 100644--- a/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {SUM: {description: '将单个值、单元格引用或是区域相加,或者将三者的组合相加。',diff --git a/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts b/packages/sheets-formula/src/locale/function-list/statistical/en-US.tsindex 183926d97a..56e7378f3f 100644--- a/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {AVERAGE: {description: 'Returns the average (arithmetic mean) of the arguments.',diff --git a/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.tsindex 6660f0f3bb..a4cf0bb2b9 100644--- a/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {AVERAGE: {description: '返回参数的平均值(算术平均值)。',diff --git a/packages/sheets-formula/src/locale/function-list/text/en-US.ts b/packages/sheets-formula/src/locale/function-list/text/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/text/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/text/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/text/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/univer/en-US.ts b/packages/sheets-formula/src/locale/function-list/univer/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/univer/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/univer/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/univer/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/web/en-US.ts b/packages/sheets-formula/src/locale/function-list/web/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/web/en-US.ts+++ b/packages/sheets-formula/src/locale/function-list/web/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/web/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts+++ b/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets-formula/src/locale/index.ts b/packages/sheets-formula/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets-formula/src/locale/index.ts+++ b/packages/sheets-formula/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets-formula/src/locale/zh-CN.ts b/packages/sheets-formula/src/locale/zh-CN.tsindex 6a8f59139b..d3ce43ce87 100644--- a/packages/sheets-formula/src/locale/zh-CN.ts+++ b/packages/sheets-formula/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import array from './function-list/array/zh-CN';import compatibility from './function-list/compatibility/zh-CN';import cube from './function-list/cube/zh-CN';diff --git a/packages/sheets-formula/src/services/active-dirty-manager.service.ts b/packages/sheets-formula/src/services/active-dirty-manager.service.tsindex 6780403a23..456a9d87bc 100644--- a/packages/sheets-formula/src/services/active-dirty-manager.service.ts+++ b/packages/sheets-formula/src/services/active-dirty-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IUnitRange, Nullable } from '@univerjs/core';import { Disposable } from '@univerjs/core';import type { IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/services/description.service.ts b/packages/sheets-formula/src/services/description.service.tsindex 1e59cc56bc..fd2a8cc3b3 100644--- a/packages/sheets-formula/src/services/description.service.ts+++ b/packages/sheets-formula/src/services/description.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';import { IFunctionService } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/services/formula-input.service.ts b/packages/sheets-formula/src/services/formula-input.service.tsindex 1d91b5eb53..b81712189a 100644--- a/packages/sheets-formula/src/services/formula-input.service.ts+++ b/packages/sheets-formula/src/services/formula-input.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISequenceNode } from '@univerjs/engine-formula';import { sequenceNodeType } from '@univerjs/engine-formula';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/services/function-list/array.ts b/packages/sheets-formula/src/services/function-list/array.tsindex 6527e4a087..4d9d635941 100644--- a/packages/sheets-formula/src/services/function-list/array.ts+++ b/packages/sheets-formula/src/services/function-list/array.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_ARRAY: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/compatibility.ts b/packages/sheets-formula/src/services/function-list/compatibility.tsindex 18b9e1b8b6..f9f292f01a 100644--- a/packages/sheets-formula/src/services/function-list/compatibility.ts+++ b/packages/sheets-formula/src/services/function-list/compatibility.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/cube.ts b/packages/sheets-formula/src/services/function-list/cube.tsindex afeda99662..ca0eb68d24 100644--- a/packages/sheets-formula/src/services/function-list/cube.ts+++ b/packages/sheets-formula/src/services/function-list/cube.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_CUBE: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/database.ts b/packages/sheets-formula/src/services/function-list/database.tsindex c87896fddb..436e983965 100644--- a/packages/sheets-formula/src/services/function-list/database.ts+++ b/packages/sheets-formula/src/services/function-list/database.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_DATABASE: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/date.ts b/packages/sheets-formula/src/services/function-list/date.tsindex f1f2a8acf3..a4cc9e461a 100644--- a/packages/sheets-formula/src/services/function-list/date.ts+++ b/packages/sheets-formula/src/services/function-list/date.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_DATE: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/engineering.ts b/packages/sheets-formula/src/services/function-list/engineering.tsindex e0a07a8010..bfbc565ff5 100644--- a/packages/sheets-formula/src/services/function-list/engineering.ts+++ b/packages/sheets-formula/src/services/function-list/engineering.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_ENGINEERING: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/financial.ts b/packages/sheets-formula/src/services/function-list/financial.tsindex 1c69122d7a..7aedc24b7a 100644--- a/packages/sheets-formula/src/services/function-list/financial.ts+++ b/packages/sheets-formula/src/services/function-list/financial.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_FINANCIAL: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/function-list.ts b/packages/sheets-formula/src/services/function-list/function-list.tsindex 48a5b9c1b7..853e5d385e 100644--- a/packages/sheets-formula/src/services/function-list/function-list.ts+++ b/packages/sheets-formula/src/services/function-list/function-list.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';import { FUNCTION_LIST_ARRAY } from './array';diff --git a/packages/sheets-formula/src/services/function-list/information.ts b/packages/sheets-formula/src/services/function-list/information.tsindex 0b55822d7a..b50b10a05f 100644--- a/packages/sheets-formula/src/services/function-list/information.ts+++ b/packages/sheets-formula/src/services/function-list/information.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_INFORMATION: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/logical.ts b/packages/sheets-formula/src/services/function-list/logical.tsindex be628baf5d..2caf5975d6 100644--- a/packages/sheets-formula/src/services/function-list/logical.ts+++ b/packages/sheets-formula/src/services/function-list/logical.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_LOGICAL: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/lookup.ts b/packages/sheets-formula/src/services/function-list/lookup.tsindex d5e4a97007..d2b8b88d24 100644--- a/packages/sheets-formula/src/services/function-list/lookup.ts+++ b/packages/sheets-formula/src/services/function-list/lookup.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_LOOKUP: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/math.ts b/packages/sheets-formula/src/services/function-list/math.tsindex 9c4d28a97a..84f5839b7e 100644--- a/packages/sheets-formula/src/services/function-list/math.ts+++ b/packages/sheets-formula/src/services/function-list/math.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';import { FUNCTION_NAMES_MATH, FunctionType } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/services/function-list/statistical.ts b/packages/sheets-formula/src/services/function-list/statistical.tsindex 840ec65fc2..a68875d5c7 100644--- a/packages/sheets-formula/src/services/function-list/statistical.ts+++ b/packages/sheets-formula/src/services/function-list/statistical.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';import { FUNCTION_NAMES_STATISTICAL, FunctionType } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/services/function-list/text.ts b/packages/sheets-formula/src/services/function-list/text.tsindex 068d9cfd7b..3f13844d28 100644--- a/packages/sheets-formula/src/services/function-list/text.ts+++ b/packages/sheets-formula/src/services/function-list/text.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_TEXT: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/univer.ts b/packages/sheets-formula/src/services/function-list/univer.tsindex 4e5b60e0bf..9b6c0d320a 100644--- a/packages/sheets-formula/src/services/function-list/univer.ts+++ b/packages/sheets-formula/src/services/function-list/univer.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_UNIVER: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/function-list/web.ts b/packages/sheets-formula/src/services/function-list/web.tsindex 7037ede423..83bc0a85e9 100644--- a/packages/sheets-formula/src/services/function-list/web.ts+++ b/packages/sheets-formula/src/services/function-list/web.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo } from '@univerjs/engine-formula';export const FUNCTION_LIST_WEB: IFunctionInfo[] = [];diff --git a/packages/sheets-formula/src/services/prompt.service.ts b/packages/sheets-formula/src/services/prompt.service.tsindex deda23328e..0f45361f03 100644--- a/packages/sheets-formula/src/services/prompt.service.ts+++ b/packages/sheets-formula/src/services/prompt.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Direction } from '@univerjs/core';import type { IFunctionInfo } from '@univerjs/engine-formula';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/sheets-formula/src/services/utils.ts b/packages/sheets-formula/src/services/utils.tsindex 99d3399341..08bd6a8432 100644--- a/packages/sheets-formula/src/services/utils.ts+++ b/packages/sheets-formula/src/services/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleService } from '@univerjs/core';import type { IFunctionInfo } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/views/FormulaPromptContainer.tsx b/packages/sheets-formula/src/views/FormulaPromptContainer.tsxindex 7b27f93387..166bcf9a28 100644--- a/packages/sheets-formula/src/views/FormulaPromptContainer.tsx+++ b/packages/sheets-formula/src/views/FormulaPromptContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import { ErrorFunction } from './prompt/error-function/error-function';diff --git a/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx b/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsxindex c1ecd32c46..1127cc6253 100644--- a/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx+++ b/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { Button } from '@univerjs/design';import type { IFunctionInfo } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx b/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsxindex 3292993a80..72f994bb70 100644--- a/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx+++ b/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionParam } from '@univerjs/engine-formula';import React from 'react';diff --git a/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx b/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsxindex c1e9f66fd9..627eed3a3e 100644--- a/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx+++ b/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import styles from './index.module.less';diff --git a/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx b/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsxindex f307f4b9c6..93f0f77396 100644--- a/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx+++ b/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';import { RangeSelector } from '@univerjs/sheets-ui';import React, { useState } from 'react';diff --git a/packages/sheets-formula/src/views/more-functions/interface.ts b/packages/sheets-formula/src/views/more-functions/interface.tsindex 6e7244878a..105c1c4af3 100644--- a/packages/sheets-formula/src/views/more-functions/interface.ts+++ b/packages/sheets-formula/src/views/more-functions/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FORMULA_UI_PLUGIN_NAME } from '../../common/plugin-name';export const MORE_FUNCTIONS_COMPONENT = `${FORMULA_UI_PLUGIN_NAME}_MORE_FUNCTIONS_COMPONENT`;diff --git a/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx b/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsxindex ef5d2c21cb..9a9d31edee 100644--- a/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx+++ b/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { Input, Select } from '@univerjs/design';import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx b/packages/sheets-formula/src/views/prompt/error-function/error-function.tsxindex 5cddbc50bc..65c41e2733 100644--- a/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx+++ b/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICellEditorManagerService } from '@univerjs/sheets-ui';import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';diff --git a/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx b/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsxindex 7d781a0cbe..48a542871e 100644--- a/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx+++ b/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FOCUSING_FORMULA_EDITOR, IContextService, LocaleService } from '@univerjs/core';import { Popup } from '@univerjs/design';import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx b/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsxindex 0a5ba02591..37d6ff4095 100644--- a/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx+++ b/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Direction, FOCUSING_FORMULA_EDITOR, IContextService } from '@univerjs/core';import { Popup } from '@univerjs/design';import { ICellEditorManagerService, IFormulaEditorManagerService } from '@univerjs/sheets-ui';diff --git a/packages/sheets-import-xlsx/src/basics/const/index.ts b/packages/sheets-import-xlsx/src/basics/const/index.tsdeleted file mode 100644index a37e8d7e0d..0000000000--- a/packages/sheets-import-xlsx/src/basics/const/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './plugin-name';diff --git a/packages/sheets-import-xlsx/src/basics/const/plugin-name.ts b/packages/sheets-import-xlsx/src/basics/const/plugin-name.tsdeleted file mode 100644index 4f23dac8c0..0000000000--- a/packages/sheets-import-xlsx/src/basics/const/plugin-name.ts+++ /dev/null@@ -1 +0,0 @@-export const IMPORT_XLSX_PLUGIN_NAME = 'importXlsx';diff --git a/packages/sheets-import-xlsx/src/basics/enum/index.ts b/packages/sheets-import-xlsx/src/basics/enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/basics/index.ts b/packages/sheets-import-xlsx/src/basics/index.tsdeleted file mode 100644index e47ea3a46c..0000000000--- a/packages/sheets-import-xlsx/src/basics/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './const';diff --git a/packages/sheets-import-xlsx/src/basics/shared/index.ts b/packages/sheets-import-xlsx/src/basics/shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts b/packages/sheets-import-xlsx/src/commands/operations/upload.operation.tsindex d14347a527..971adeb4a6 100644--- a/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts+++ b/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-import-xlsx/src/common/plugin-name.ts b/packages/sheets-import-xlsx/src/common/plugin-name.tsnew file mode 100644index 0000000000..35d7bcd80e--- /dev/null+++ b/packages/sheets-import-xlsx/src/common/plugin-name.ts@@ -0,0 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export const IMPORT_XLSX_PLUGIN_NAME = 'importXlsx';diff --git a/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts b/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.tsindex 04620418e9..2048ba6e74 100644--- a/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts+++ b/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService } from '@univerjs/core';import { IMenuService } from '@univerjs/ui';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/sheets-import-xlsx/src/controllers/index.ts b/packages/sheets-import-xlsx/src/controllers/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/controllers/menu.ts b/packages/sheets-import-xlsx/src/controllers/menu.tsindex f96288bf3c..beb782bc42 100644--- a/packages/sheets-import-xlsx/src/controllers/menu.ts+++ b/packages/sheets-import-xlsx/src/controllers/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMenuButtonItem } from '@univerjs/ui';import { MenuItemType, MenuPosition } from '@univerjs/ui';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx b/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsxindex a2c77edf95..c3f021ab54 100644--- a/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx+++ b/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx@@ -1,7 +1,23 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService, Plugin, PluginType } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';-import { IMPORT_XLSX_PLUGIN_NAME } from './basics';+import { IMPORT_XLSX_PLUGIN_NAME } from './common/plugin-name';import { ImportXlsxController } from './controllers/import-xlsx-controller';import { zhCN } from './locale';import { UploadService } from './services/upload.service';diff --git a/packages/sheets-import-xlsx/src/index.ts b/packages/sheets-import-xlsx/src/index.tsindex 84555dc56c..a18748b971 100644--- a/packages/sheets-import-xlsx/src/index.ts+++ b/packages/sheets-import-xlsx/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './import-xlsx-plugin';export { enUS, zhCN } from './locale';diff --git a/packages/sheets-import-xlsx/src/locale/en-US.ts b/packages/sheets-import-xlsx/src/locale/en-US.tsindex 1e5b30cb79..92f0c4b1e4 100644--- a/packages/sheets-import-xlsx/src/locale/en-US.ts+++ b/packages/sheets-import-xlsx/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {importXlsx: {tooltip: 'Import XLSX',diff --git a/packages/sheets-import-xlsx/src/locale/index.ts b/packages/sheets-import-xlsx/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets-import-xlsx/src/locale/index.ts+++ b/packages/sheets-import-xlsx/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets-import-xlsx/src/locale/zh-CN.ts b/packages/sheets-import-xlsx/src/locale/zh-CN.tsindex cbb0ca5e4c..b7965322f8 100644--- a/packages/sheets-import-xlsx/src/locale/zh-CN.ts+++ b/packages/sheets-import-xlsx/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {importXlsx: {tooltip: '导入XLSX',diff --git a/packages/sheets-import-xlsx/src/model/index.ts b/packages/sheets-import-xlsx/src/model/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/services/border.ts b/packages/sheets-import-xlsx/src/services/border.tsindex 4506b2d3c3..6b35bd0533 100644--- a/packages/sheets-import-xlsx/src/services/border.ts+++ b/packages/sheets-import-xlsx/src/services/border.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IBorderData, IStyleData, IWorksheetData } from '@univerjs/core/types/interfaces/index.js';export function border(newSheet: Partial<IWorksheetData>, sheet: any) {diff --git a/packages/sheets-import-xlsx/src/services/index.ts b/packages/sheets-import-xlsx/src/services/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/services/upload.service.ts b/packages/sheets-import-xlsx/src/services/upload.service.tsindex a8702f68f2..0f0c79c132 100644--- a/packages/sheets-import-xlsx/src/services/upload.service.ts+++ b/packages/sheets-import-xlsx/src/services/upload.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BooleanNumber,ICellData,diff --git a/packages/sheets-import-xlsx/src/types/index.d.ts b/packages/sheets-import-xlsx/src/types/index.d.tsindex 43bf3d1ca8..cc53e73c4f 100644--- a/packages/sheets-import-xlsx/src/types/index.d.ts+++ b/packages/sheets-import-xlsx/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/sheets-import-xlsx' {}diff --git a/packages/sheets-import-xlsx/src/views/render/index.ts b/packages/sheets-import-xlsx/src/views/render/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-import-xlsx/src/views/ui/index.ts b/packages/sheets-import-xlsx/src/views/ui/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-numfmt/src/__tests__/date.test.ts b/packages/sheets-numfmt/src/__tests__/date.test.tsindex d37372d8c7..7ba56c2142 100644--- a/packages/sheets-numfmt/src/__tests__/date.test.ts+++ b/packages/sheets-numfmt/src/__tests__/date.test.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import numfmt from '@univerjs/engine-numfmt';import { describe, expect, it } from 'vitest';diff --git a/packages/sheets-numfmt/src/__tests__/utils.test.ts b/packages/sheets-numfmt/src/__tests__/utils.test.tsindex 91b02822c0..f68015cfe1 100644--- a/packages/sheets-numfmt/src/__tests__/utils.test.ts+++ b/packages/sheets-numfmt/src/__tests__/utils.test.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { describe, expect, it } from 'vitest';import { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';diff --git a/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts b/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.tsindex f2403cc215..8aa135fa55 100644--- a/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts+++ b/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const currencySymbols = ['$','£',diff --git a/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts b/packages/sheets-numfmt/src/base/const/FORMATDETAIL.tsindex 529f02e89c..db5bd0c80b 100644--- a/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts+++ b/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DATEFMTLISG = [{label: '1930-08-05',diff --git a/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts b/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.tsindex 3a9872179d..9f172395f4 100644--- a/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts+++ b/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const MENU_OPTIONS: Array<{ label: string; pattern: string | null } | '|'> = [{label: 'sheet.numfmt.general',diff --git a/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts b/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.tsindex 01c76f42ef..468e989443 100644--- a/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts+++ b/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const SHEET_NUMFMT_PLUGIN = 'SHEET_NUMFMT_PLUGIN';diff --git a/packages/sheets-numfmt/src/base/types/index.ts b/packages/sheets-numfmt/src/base/types/index.tsindex 6c41d0b422..9b9705ca8b 100644--- a/packages/sheets-numfmt/src/base/types/index.ts+++ b/packages/sheets-numfmt/src/base/types/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { MutableRefObject } from 'react';export interface IBusinessComponentProps {diff --git a/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts b/packages/sheets-numfmt/src/commands/commands/add.decimal.command.tsindex df1ceedfd7..6288f20d3d 100644--- a/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts+++ b/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService, Range } from '@univerjs/core';import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts b/packages/sheets-numfmt/src/commands/commands/set.currency.command.tsindex 4d0d08a641..3c0e34fee2 100644--- a/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts+++ b/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, Range } from '@univerjs/core';import { SelectionManagerService } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts b/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.tsindex 43c757352c..28d44ac848 100644--- a/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts+++ b/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMutationInfo } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts b/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.tsindex 1843506bcf..eabc4d9b3e 100644--- a/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts+++ b/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService, Range } from '@univerjs/core';import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts b/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.tsindex bff38594f6..faa2beba7c 100644--- a/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts+++ b/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts b/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.tsindex 590fa98c3a..6b1524c470 100644--- a/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts+++ b/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-numfmt/src/components/accounting/index.tsx b/packages/sheets-numfmt/src/components/accounting/index.tsxindex b0133bc220..aa1f582547 100644--- a/packages/sheets-numfmt/src/components/accounting/index.tsx+++ b/packages/sheets-numfmt/src/components/accounting/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { InputNumber, Select } from '@univerjs/design';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/sheets-numfmt/src/components/currency/index.tsx b/packages/sheets-numfmt/src/components/currency/index.tsxindex 21737a3ed7..468166ae92 100644--- a/packages/sheets-numfmt/src/components/currency/index.tsx+++ b/packages/sheets-numfmt/src/components/currency/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import './index.less';import { LocaleService } from '@univerjs/core';diff --git a/packages/sheets-numfmt/src/components/date/index.tsx b/packages/sheets-numfmt/src/components/date/index.tsxindex a0cbd3c201..6b4e76b3ef 100644--- a/packages/sheets-numfmt/src/components/date/index.tsx+++ b/packages/sheets-numfmt/src/components/date/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { SelectList } from '@univerjs/design';import numfmt from '@univerjs/engine-numfmt';diff --git a/packages/sheets-numfmt/src/components/general/index.tsx b/packages/sheets-numfmt/src/components/general/index.tsxindex 63d339c967..f373698d1c 100644--- a/packages/sheets-numfmt/src/components/general/index.tsx+++ b/packages/sheets-numfmt/src/components/general/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import type { FC } from 'react';diff --git a/packages/sheets-numfmt/src/components/index.tsx b/packages/sheets-numfmt/src/components/index.tsxindex c6cb9c076d..3685b017a5 100644--- a/packages/sheets-numfmt/src/components/index.tsx+++ b/packages/sheets-numfmt/src/components/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import './index.less';import { LocaleService } from '@univerjs/core';diff --git a/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx b/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsxindex 416e1df931..ec0c480fd0 100644--- a/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx+++ b/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import './index.less';import { ICommandService, LocaleService, Range } from '@univerjs/core';diff --git a/packages/sheets-numfmt/src/components/stories/panel.stories.tsx b/packages/sheets-numfmt/src/components/stories/panel.stories.tsxindex 826c178deb..e141a79a7a 100644--- a/packages/sheets-numfmt/src/components/stories/panel.stories.tsx+++ b/packages/sheets-numfmt/src/components/stories/panel.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta, StoryObj } from '@storybook/react';import { LocaleService, ThemeService } from '@univerjs/core';import { Injector } from '@wendellhu/redi';diff --git a/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx b/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsxindex 5ddd9d7406..51a1c8376a 100644--- a/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx+++ b/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { InputNumber, SelectList } from '@univerjs/design';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/sheets-numfmt/src/context/user-habit.ts b/packages/sheets-numfmt/src/context/user-habit.tsindex 6b60520a3a..5caf43fa70 100644--- a/packages/sheets-numfmt/src/context/user-habit.ts+++ b/packages/sheets-numfmt/src/context/user-habit.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createContext } from 'react';export const UserHabitCurrencyContext = createContext<string[]>([]);diff --git a/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.tsindex 682129bbc6..489d2b3dc7 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo, IRange } from '@univerjs/core';import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle, Range, Rectangle } from '@univerjs/core';import type { ISetCellsNumfmt, ISetNumfmtMutationParams } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.controller.tsindex 71d15c1a6c..7333718cb2 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICellDataForSheetInterceptor, IRange } from '@univerjs/core';import {CellValueType,diff --git a/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.tsindex 3f136df9a7..0bfdfbfcd2 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Nullable } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.tsindex ac6c743800..f5fa6ce408 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Nullable } from '@univerjs/core';import {CellValueType,diff --git a/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.tsindex ab1170632a..84f9044a31 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo, IRange } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.tsindex bb467b28bc..01ee02ebdd 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IRemoveNumfmtMutationParams, IRemoveSheetCommandParams } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/controllers/type.ts b/packages/sheets-numfmt/src/controllers/type.tsindex 2880cb6277..c04f7edae2 100644--- a/packages/sheets-numfmt/src/controllers/type.ts+++ b/packages/sheets-numfmt/src/controllers/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LifecycleStages, runOnLifecycle } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/sheets-numfmt/src/controllers/user-habit.controller.ts b/packages/sheets-numfmt/src/controllers/user-habit.controller.tsindex 3252ba8130..e8ed2618c1 100644--- a/packages/sheets-numfmt/src/controllers/user-habit.controller.ts+++ b/packages/sheets-numfmt/src/controllers/user-habit.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ILocalStorageService } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts b/packages/sheets-numfmt/src/hooks/useCurrencyOptions.tsindex e1e1ba631c..7bd74f254c 100644--- a/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts+++ b/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { useDependency } from '@wendellhu/redi/react-bindings';import { useEffect, useState } from 'react';diff --git a/packages/sheets-numfmt/src/hooks/useNextTick.ts b/packages/sheets-numfmt/src/hooks/useNextTick.tsindex 7170d6ca09..10c1a9c1ca 100644--- a/packages/sheets-numfmt/src/hooks/useNextTick.ts+++ b/packages/sheets-numfmt/src/hooks/useNextTick.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { useEffect, useRef, useState } from 'react';export const useNextTick = () => {diff --git a/packages/sheets-numfmt/src/index.ts b/packages/sheets-numfmt/src/index.tsindex e9994589da..b44158e38b 100644--- a/packages/sheets-numfmt/src/index.ts+++ b/packages/sheets-numfmt/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { enUS, zhCN } from './locale';export * from './numfmt-plugin';diff --git a/packages/sheets-numfmt/src/locale/en-US.ts b/packages/sheets-numfmt/src/locale/en-US.tsindex 2e292ce4cd..a51d662fd3 100644--- a/packages/sheets-numfmt/src/locale/en-US.ts+++ b/packages/sheets-numfmt/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {sheet: {numfmt: {diff --git a/packages/sheets-numfmt/src/locale/index.ts b/packages/sheets-numfmt/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets-numfmt/src/locale/index.ts+++ b/packages/sheets-numfmt/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets-numfmt/src/locale/zh-CN.ts b/packages/sheets-numfmt/src/locale/zh-CN.tsindex 2e292ce4cd..a51d662fd3 100644--- a/packages/sheets-numfmt/src/locale/zh-CN.ts+++ b/packages/sheets-numfmt/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {sheet: {numfmt: {diff --git a/packages/sheets-numfmt/src/menu/menu.ts b/packages/sheets-numfmt/src/menu/menu.tsindex 6a5cbfa30f..6ab4f56d63 100644--- a/packages/sheets-numfmt/src/menu/menu.ts+++ b/packages/sheets-numfmt/src/menu/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';import { AddDigitsSingle, MoreDownSingle, ReduceDigitsSingle, RmbSingle } from '@univerjs/icons';import { INumfmtService, SelectionManagerService, SetNumfmtMutation } from '@univerjs/sheets';diff --git a/packages/sheets-numfmt/src/numfmt-plugin.ts b/packages/sheets-numfmt/src/numfmt-plugin.tsindex d83e70bed1..0ceff94d8f 100644--- a/packages/sheets-numfmt/src/numfmt-plugin.ts+++ b/packages/sheets-numfmt/src/numfmt-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Plugin, PluginType } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/sheets-numfmt/src/utils/currency.ts b/packages/sheets-numfmt/src/utils/currency.tsindex ff1cc94b3f..4cc28c2d98 100644--- a/packages/sheets-numfmt/src/utils/currency.ts+++ b/packages/sheets-numfmt/src/utils/currency.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';export const getCurrencyType = (pattern: string) => {diff --git a/packages/sheets-numfmt/src/utils/decimal.ts b/packages/sheets-numfmt/src/utils/decimal.tsindex eaa8ee98f7..142e682e15 100644--- a/packages/sheets-numfmt/src/utils/decimal.ts+++ b/packages/sheets-numfmt/src/utils/decimal.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import numfmt from '@univerjs/engine-numfmt';/**diff --git a/packages/sheets-numfmt/src/utils/options.ts b/packages/sheets-numfmt/src/utils/options.tsindex b8ed222881..a283844c53 100644--- a/packages/sheets-numfmt/src/utils/options.ts+++ b/packages/sheets-numfmt/src/utils/options.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';import { CURRENCYFORMAT, DATEFMTLISG, NUMBERFORMAT } from '../base/const/FORMATDETAIL';diff --git a/packages/sheets-numfmt/src/utils/pattern.ts b/packages/sheets-numfmt/src/utils/pattern.tsindex 41ae3ee313..5bb6fad3f5 100644--- a/packages/sheets-numfmt/src/utils/pattern.ts+++ b/packages/sheets-numfmt/src/utils/pattern.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import numfmt from '@univerjs/engine-numfmt';import type { FormatType } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts b/packages/sheets-ui/src/basics/const/default-univer-sheet-config.tsindex 8ca69f0390..3a8238dde2 100644--- a/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts+++ b/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DefaultRightMenuConfig = {InsertRow: true,InsertColumn: true,diff --git a/packages/sheets-ui/src/basics/const/index.ts b/packages/sheets-ui/src/basics/const/index.tsindex b8d5ece1c9..3432863746 100644--- a/packages/sheets-ui/src/basics/const/index.ts+++ b/packages/sheets-ui/src/basics/const/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-univer-sheet-config';export * from './plugin-name';diff --git a/packages/sheets-ui/src/basics/const/plugin-name.ts b/packages/sheets-ui/src/basics/const/plugin-name.tsindex 63fff17ab0..c3cca939ae 100644--- a/packages/sheets-ui/src/basics/const/plugin-name.ts+++ b/packages/sheets-ui/src/basics/const/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const SHEET_UI_PLUGIN_NAME = 'SheetUI';diff --git a/packages/sheets-ui/src/basics/editor/get-editor-object.ts b/packages/sheets-ui/src/basics/editor/get-editor-object.tsindex 9951bbf127..7bb4fb3dd7 100644--- a/packages/sheets-ui/src/basics/editor/get-editor-object.ts+++ b/packages/sheets-ui/src/basics/editor/get-editor-object.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/basics/index.ts b/packages/sheets-ui/src/basics/index.tsindex c6f20c3e48..9c53c04e2b 100644--- a/packages/sheets-ui/src/basics/index.ts+++ b/packages/sheets-ui/src/basics/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './const';export * from './interfaces';diff --git a/packages/sheets-ui/src/basics/interfaces/cell.ts b/packages/sheets-ui/src/basics/interfaces/cell.tsindex f0ec176b46..46ed3d6e48 100644--- a/packages/sheets-ui/src/basics/interfaces/cell.ts+++ b/packages/sheets-ui/src/basics/interfaces/cell.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ICell {row: number;column: number;diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.tsindex f837d8ff93..e891fb78a3 100644--- a/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts+++ b/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import type { SheetContainerConfig } from './sheet-container-config';diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/index.ts b/packages/sheets-ui/src/basics/interfaces/component-config/index.tsindex ab7a44f964..7b6071da04 100644--- a/packages/sheets-ui/src/basics/interfaces/component-config/index.ts+++ b/packages/sheets-ui/src/basics/interfaces/component-config/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './i-sheet-ui-plugin-config';export * from './toolbar-config';diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.tsindex c159d3b6c3..4ff1ec4c60 100644--- a/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts+++ b/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface SheetContainerConfig {outerLeft?: boolean;diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.tsindex b8c580576c..d1dd830e61 100644--- a/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts+++ b/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts@@ -1,4 +1,19 @@-// sheet工具栏配置+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface SheetToolbarConfig {undo?: boolean; // Undo redoredo?: boolean; // Undo redodiff --git a/packages/sheets-ui/src/basics/interfaces/index.ts b/packages/sheets-ui/src/basics/interfaces/index.tsindex e187dee03b..778a4e6364 100644--- a/packages/sheets-ui/src/basics/interfaces/index.ts+++ b/packages/sheets-ui/src/basics/interfaces/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './component-config';// @endindexdiff --git a/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.tsindex 8cb7d0901e..dc4da23115 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.tsindex 22d51059fa..3a20709d6a 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { Univer } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts b/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.tsindex a353aa1abd..4736a088f9 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ICommandService, LocaleType } from '@univerjs/core';import { SetFrozenMutation, SetSelectionsOperation } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.tsindex 748895fb09..d03a55fdd3 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { Univer } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.tsindex e1f4555411..70ff55437c 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IWorkbookData, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.tsindex 09858e5cc0..fc71ca7385 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts@@ -1,4 +1,18 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IWorkbookData, Univer } from '@univerjs/core';import { Direction, ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts b/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.tsindex 59e5e3ce14..c206793777 100644--- a/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts+++ b/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMutationInfo, IRange } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets-ui/src/commands/commands/auto-fill.command.ts b/packages/sheets-ui/src/commands/commands/auto-fill.command.tsindex fa47b3b9d6..2ef863bb9f 100644--- a/packages/sheets-ui/src/commands/commands/auto-fill.command.ts+++ b/packages/sheets-ui/src/commands/commands/auto-fill.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets-ui/src/commands/commands/clipboard.command.ts b/packages/sheets-ui/src/commands/commands/clipboard.command.tsindex 5da6c9b6d9..0177c50c56 100644--- a/packages/sheets-ui/src/commands/commands/clipboard.command.ts+++ b/packages/sheets-ui/src/commands/commands/clipboard.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMultiCommand } from '@univerjs/core';import { CommandType, ICommandService, ILogService } from '@univerjs/core';import { CopyCommand, CutCommand, IClipboardInterfaceService, PasteCommand } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/commands/commands/inline-format.command.ts b/packages/sheets-ui/src/commands/commands/inline-format.command.tsindex 2d42b82770..877edf02f6 100644--- a/packages/sheets-ui/src/commands/commands/inline-format.command.ts+++ b/packages/sheets-ui/src/commands/commands/inline-format.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, FOCUSING_EDITOR, ICommandService, IContextService } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/commands/commands/refill.command.ts b/packages/sheets-ui/src/commands/commands/refill.command.tsindex 35580b0625..8da0216238 100644--- a/packages/sheets-ui/src/commands/commands/refill.command.ts+++ b/packages/sheets-ui/src/commands/commands/refill.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/commands/commands/rename.command.ts b/packages/sheets-ui/src/commands/commands/rename.command.tsindex dee9e1a875..d79d5b1579 100644--- a/packages/sheets-ui/src/commands/commands/rename.command.ts+++ b/packages/sheets-ui/src/commands/commands/rename.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts b/packages/sheets-ui/src/commands/commands/set-format-painter.command.tsindex 39085cdfbc..9abef3ad27 100644--- a/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets-ui/src/commands/commands/set-frozen.command.ts b/packages/sheets-ui/src/commands/commands/set-frozen.command.tsindex 44aed2a15e..905b84a0a5 100644--- a/packages/sheets-ui/src/commands/commands/set-frozen.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-frozen.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';import type { ISetFrozenMutationParams } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/commands/commands/set-scroll.command.ts b/packages/sheets-ui/src/commands/commands/set-scroll.command.tsindex 818300ee85..4eef9a9c19 100644--- a/packages/sheets-ui/src/commands/commands/set-scroll.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-scroll.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts b/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.tsindex 5275cb1cad..4c13dab7ec 100644--- a/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';import type { ISetFrozenMutationParams } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/commands/commands/set-selection.command.ts b/packages/sheets-ui/src/commands/commands/set-selection.command.tsindex a639e29269..3368f39b56 100644--- a/packages/sheets-ui/src/commands/commands/set-selection.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-selection.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Direction, ICommand, IRange } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService, RANGE_TYPE, Rectangle, Tools } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts b/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.tsindex bbae9f1ce8..a2c503e3bb 100644--- a/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts+++ b/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/commands/unhide.command.ts b/packages/sheets-ui/src/commands/commands/unhide.command.tsindex 74ce37859b..0fc66e16f7 100644--- a/packages/sheets-ui/src/commands/commands/unhide.command.ts+++ b/packages/sheets-ui/src/commands/commands/unhide.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts b/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.tsindex 16a211f6d9..5d5be17719 100644--- a/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts+++ b/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts@@ -1,4 +1,18 @@-// This file provide operations to change selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts b/packages/sheets-ui/src/commands/operations/cell-edit.operation.tsindex f4b459da34..d7b90abf04 100644--- a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts+++ b/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts@@ -1,4 +1,18 @@-// This file provide operations to change selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/operations/scroll.operation.ts b/packages/sheets-ui/src/commands/operations/scroll.operation.tsindex 92bd5866ff..10280af0b2 100644--- a/packages/sheets-ui/src/commands/operations/scroll.operation.ts+++ b/packages/sheets-ui/src/commands/operations/scroll.operation.ts@@ -1,4 +1,18 @@-// This file provide operations to change selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts b/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.tsindex 573c96ad73..20a87f426d 100644--- a/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts@@ -1,4 +1,18 @@-// This file provide operations to change selection of sheets.+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.tsindex 2852624f4b..5eff4e420a 100644--- a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.tsindex 52b5d666c3..3ea73ec8ea 100644--- a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/common/keys.ts b/packages/sheets-ui/src/common/keys.tsindex 38c1a0f743..34db2c1ebe 100644--- a/packages/sheets-ui/src/common/keys.ts+++ b/packages/sheets-ui/src/common/keys.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export enum SHEET_VIEW_KEY {MAIN = '__SpreadsheetRender__',ROW = '__SpreadsheetRowHeader__',diff --git a/packages/sheets-ui/src/common/utils.ts b/packages/sheets-ui/src/common/utils.tsindex 63425183d4..b6005b6447 100644--- a/packages/sheets-ui/src/common/utils.ts+++ b/packages/sheets-ui/src/common/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange, Worksheet } from '@univerjs/core';import { ObjectMatrix } from '@univerjs/core';import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsxindex 5dfc2c1366..35697bab5a 100644--- a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx+++ b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BorderStyleTypes } from '@univerjs/core';import { ColorPicker, Dropdown, Menu, MenuItem } from '@univerjs/design';import { MoreDownSingle, PaintBucket } from '@univerjs/icons';diff --git a/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx b/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsxindex d15f456864..8d845868be 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BorderStyleTypes } from '@univerjs/core';import React from 'react';diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsxindex f27b813562..6aa24864e1 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderDashDot = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsxindex d68c3f4cf7..9e9abf401a 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderDashDotDot = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsxindex 91d263d1e0..583e540ca0 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderDashed = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsxindex 77701dc496..c87ca1c8f0 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderDotted = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsxindex f422771cdb..239cf0348e 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderHair = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsxindex ab337a524f..4bbc1ac679 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderMedium = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsxindex 7595ae915f..4732d2f9e5 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderMediumDashDot = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsxindex e26a87cbb9..80a4a98039 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderMediumDashDotDot = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsxindex e2ba28799a..37b18f69f8 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderMediumDashed = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsxindex 5b0a282c13..a4d13e170f 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderThick = () => (diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsxindex f1484f058d..9096ec25f2 100644--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';export const BorderThin = () => (diff --git a/packages/sheets-ui/src/components/border-panel/index.ts b/packages/sheets-ui/src/components/border-panel/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-ui/src/components/border-panel/interface.ts b/packages/sheets-ui/src/components/border-panel/interface.tsindex 9393d5e1b6..27c5da2f6a 100644--- a/packages/sheets-ui/src/components/border-panel/interface.ts+++ b/packages/sheets-ui/src/components/border-panel/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { type IBorderInfo } from '@univerjs/sheets';import type { ICustomComponentProps } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/components/color-picker/index.ts b/packages/sheets-ui/src/components/color-picker/index.tsindex 186e0a8ea0..802343df3f 100644--- a/packages/sheets-ui/src/components/color-picker/index.ts+++ b/packages/sheets-ui/src/components/color-picker/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { COLOR_PICKER_COMPONENT } from './interface';export { ColorPicker } from '@univerjs/design';diff --git a/packages/sheets-ui/src/components/color-picker/interface.ts b/packages/sheets-ui/src/components/color-picker/interface.tsindex eff75ea93c..9e02fa531b 100644--- a/packages/sheets-ui/src/components/color-picker/interface.ts+++ b/packages/sheets-ui/src/components/color-picker/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { COMPONENT_PREFIX } from '../const';export const COLOR_PICKER_COMPONENT = `${COMPONENT_PREFIX}_COLOR_PICKER_COMPONENT`;diff --git a/packages/sheets-ui/src/components/const.ts b/packages/sheets-ui/src/components/const.tsindex b513519789..11d342e02e 100644--- a/packages/sheets-ui/src/components/const.ts+++ b/packages/sheets-ui/src/components/const.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const COMPONENT_PREFIX = 'UI_PLUGIN_SHEETS';diff --git a/packages/sheets-ui/src/components/font-family/FontFamily.tsx b/packages/sheets-ui/src/components/font-family/FontFamily.tsxindex 52268306c4..1f04a19e3a 100644--- a/packages/sheets-ui/src/components/font-family/FontFamily.tsx+++ b/packages/sheets-ui/src/components/font-family/FontFamily.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import React from 'react';diff --git a/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx b/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsxindex 8094100140..9e8fd20daf 100644--- a/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx+++ b/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import React from 'react';diff --git a/packages/sheets-ui/src/components/font-family/index.ts b/packages/sheets-ui/src/components/font-family/index.tsindex ba5a1c82f3..f194af476c 100644--- a/packages/sheets-ui/src/components/font-family/index.ts+++ b/packages/sheets-ui/src/components/font-family/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { FontFamily } from './FontFamily';export { FontFamilyItem } from './FontFamilyItem';export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT } from './interface';diff --git a/packages/sheets-ui/src/components/font-family/interface.ts b/packages/sheets-ui/src/components/font-family/interface.tsindex 619d9701d8..289d63b09b 100644--- a/packages/sheets-ui/src/components/font-family/interface.ts+++ b/packages/sheets-ui/src/components/font-family/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICustomComponentProps } from '@univerjs/ui';import { COMPONENT_PREFIX } from '../const';diff --git a/packages/sheets-ui/src/components/font-size/FontSize.tsx b/packages/sheets-ui/src/components/font-size/FontSize.tsxindex 6fad718e3c..59a2c9ec86 100644--- a/packages/sheets-ui/src/components/font-size/FontSize.tsx+++ b/packages/sheets-ui/src/components/font-size/FontSize.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { InputNumber } from '@univerjs/design';import React, { useMemo, useState } from 'react';diff --git a/packages/sheets-ui/src/components/font-size/index.ts b/packages/sheets-ui/src/components/font-size/index.tsindex 961388f23c..3ab9c6cb68 100644--- a/packages/sheets-ui/src/components/font-size/index.ts+++ b/packages/sheets-ui/src/components/font-size/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { FontSize } from './FontSize';export { FONT_SIZE_COMPONENT } from './interface';diff --git a/packages/sheets-ui/src/components/font-size/interface.ts b/packages/sheets-ui/src/components/font-size/interface.tsindex ab534b60b9..a79d83877f 100644--- a/packages/sheets-ui/src/components/font-size/interface.ts+++ b/packages/sheets-ui/src/components/font-size/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICustomComponentProps } from '@univerjs/ui';import { COMPONENT_PREFIX } from '../const';diff --git a/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx b/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsxindex 4c75bf9d6b..30f1749113 100644--- a/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx+++ b/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { InputNumber } from '@univerjs/design';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/sheets-ui/src/components/menu-item-input/index.ts b/packages/sheets-ui/src/components/menu-item-input/index.tsindex 338e0cade0..3a84827332 100644--- a/packages/sheets-ui/src/components/menu-item-input/index.ts+++ b/packages/sheets-ui/src/components/menu-item-input/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { MENU_ITEM_INPUT_COMPONENT } from './interface';export { MenuItemInput } from './MenuItemInput';diff --git a/packages/sheets-ui/src/components/menu-item-input/interface.ts b/packages/sheets-ui/src/components/menu-item-input/interface.tsindex 9ff5fd944d..ee0945a097 100644--- a/packages/sheets-ui/src/components/menu-item-input/interface.ts+++ b/packages/sheets-ui/src/components/menu-item-input/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICustomComponentProps } from '@univerjs/ui';import { COMPONENT_PREFIX } from '../const';diff --git a/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx b/packages/sheets-ui/src/components/range-selector/RangeSelector.tsxindex 4ff5ed1f7a..d85dd18004 100644--- a/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx+++ b/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { Tooltip } from '@univerjs/design';import { SelectRangeSingle } from '@univerjs/icons';diff --git a/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts b/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.tsindex 018ae4e0f6..9d0b526db3 100644--- a/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts+++ b/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo, Workbook } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type {diff --git a/packages/sheets-ui/src/controllers/auto-fill.controller.ts b/packages/sheets-ui/src/controllers/auto-fill.controller.tsindex 8c5c7808a8..d66d9bd075 100644--- a/packages/sheets-ui/src/controllers/auto-fill.controller.ts+++ b/packages/sheets-ui/src/controllers/auto-fill.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';import {Direction,diff --git a/packages/sheets-ui/src/controllers/auto-height.controller.ts b/packages/sheets-ui/src/controllers/auto-height.controller.tsindex a900d99568..efbb6d681f 100644--- a/packages/sheets-ui/src/controllers/auto-height.controller.ts+++ b/packages/sheets-ui/src/controllers/auto-height.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type {diff --git a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.tsindex 87bdbb6414..4f96d96a4d 100644--- a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts+++ b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange, IRowData, ObjectMatrixPrimitiveType, Worksheet } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets-ui/src/controllers/clipboard/utils.ts b/packages/sheets-ui/src/controllers/clipboard/utils.tsindex 775447fba3..9aa2f95258 100644--- a/packages/sheets-ui/src/controllers/clipboard/utils.ts+++ b/packages/sheets-ui/src/controllers/clipboard/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange } from '@univerjs/core';import { IUniverInstanceService, ObjectMatrix, Rectangle } from '@univerjs/core';import type {diff --git a/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts b/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.tsindex 8af734a07d..0914204f6a 100644--- a/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts+++ b/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {Disposable,IUniverInstanceService,diff --git a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts b/packages/sheets-ui/src/controllers/editor-bridge.controller.tsindex a2724fa93a..c2cd521048 100644--- a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts+++ b/packages/sheets-ui/src/controllers/editor-bridge.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, Nullable } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/editor/editing.controller.ts b/packages/sheets-ui/src/controllers/editor/editing.controller.tsindex 0aa7febd8d..5c80d04118 100644--- a/packages/sheets-ui/src/controllers/editor/editing.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/editing.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {DOCS_NORMAL_EDITOR_UNIT_ID_KEY,IUndoRedoService,diff --git a/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/end-edit.controller.tsindex 0feecbefe3..89c017365e 100644--- a/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { DocumentDataModel, ICellData, ICommandInfo, Nullable, Observer } from '@univerjs/core';import {DEFAULT_EMPTY_DOCUMENT_VALUE,diff --git a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.tsindex ab21e53ea1..96c922a4cb 100644--- a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IParagraph, ITextRun, Nullable } from '@univerjs/core';import {DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,diff --git a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.tsindex 2f30a36a8a..6d7ecadbf8 100644--- a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import {DEFAULT_EMPTY_DOCUMENT_VALUE,diff --git a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/start-edit.controller.tsindex 5345bcb5c3..baba22740c 100644--- a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IDocumentBody, IDocumentData, IPosition, ITextRotation, Nullable } from '@univerjs/core';import {DEFAULT_EMPTY_DOCUMENT_VALUE,diff --git a/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts b/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.tsindex 40748e5289..d055f46de0 100644--- a/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts+++ b/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommandInfo, IRange } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { CURSOR_TYPE, IRenderManagerService } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/controllers/freeze.controller.ts b/packages/sheets-ui/src/controllers/freeze.controller.tsindex ac27d1d31f..4bed0b2171 100644--- a/packages/sheets-ui/src/controllers/freeze.controller.ts+++ b/packages/sheets-ui/src/controllers/freeze.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { ICommandInfo, IStyleSheet, Nullable, Observer } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/controllers/header-menu.controller.ts b/packages/sheets-ui/src/controllers/header-menu.controller.tsindex 0f9d6ca1b1..3506c05fc2 100644--- a/packages/sheets-ui/src/controllers/header-menu.controller.ts+++ b/packages/sheets-ui/src/controllers/header-menu.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observer } from '@univerjs/core';import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/controllers/header-move.controller.ts b/packages/sheets-ui/src/controllers/header-move.controller.tsindex 1d5c916c90..5740b891cc 100644--- a/packages/sheets-ui/src/controllers/header-move.controller.ts+++ b/packages/sheets-ui/src/controllers/header-move.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observer } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/header-resize.controller.ts b/packages/sheets-ui/src/controllers/header-resize.controller.tsindex 7698238371..26eea6ff0b 100644--- a/packages/sheets-ui/src/controllers/header-resize.controller.ts+++ b/packages/sheets-ui/src/controllers/header-resize.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Observer } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/controllers/header-unhide.controller.ts b/packages/sheets-ui/src/controllers/header-unhide.controller.tsindex 10c3b28372..7055b97279 100644--- a/packages/sheets-ui/src/controllers/header-unhide.controller.ts+++ b/packages/sheets-ui/src/controllers/header-unhide.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IKeyValue, Workbook, Worksheet } from '@univerjs/core';import {getWorksheetUID,diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts b/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.tsindex a3747c0c82..f165e361d4 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts+++ b/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { LocaleType, Plugin, PluginType, Univer } from '@univerjs/core';import { SelectionManagerService, SheetInterceptorService, SheetPermissionService } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts b/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.tsindex a7570fb6c6..d8d3eb800d 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts+++ b/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import {DisposableCollection,diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts b/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.tsindex f8b54a2c99..76ab5aa424 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts+++ b/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import {DisposableCollection,diff --git a/packages/sheets-ui/src/controllers/menu/border.menu.ts b/packages/sheets-ui/src/controllers/menu/border.menu.tsindex 4c3f1924ba..d97d188ff3 100644--- a/packages/sheets-ui/src/controllers/menu/border.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/border.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService } from '@univerjs/core';import type { IBorderInfo } from '@univerjs/sheets';import { BorderStyleManagerService, SetBorderBasicCommand } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/controllers/menu/clear.menu.ts b/packages/sheets-ui/src/controllers/menu/clear.menu.tsindex 446bb48f78..1697d8c2fa 100644--- a/packages/sheets-ui/src/controllers/menu/clear.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/clear.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand } from '@univerjs/sheets';import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/menu/delete.menu.ts b/packages/sheets-ui/src/controllers/menu/delete.menu.tsindex dbae29b4eb..c1c92b2639 100644--- a/packages/sheets-ui/src/controllers/menu/delete.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/delete.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {DeleteRangeMoveLeftCommand,DeleteRangeMoveUpCommand,diff --git a/packages/sheets-ui/src/controllers/menu/insert.menu.ts b/packages/sheets-ui/src/controllers/menu/insert.menu.tsindex 02edb9a5eb..d2c465b352 100644--- a/packages/sheets-ui/src/controllers/menu/insert.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/insert.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {InsertColAfterCommand,InsertColBeforeCommand,diff --git a/packages/sheets-ui/src/controllers/menu/menu.ts b/packages/sheets-ui/src/controllers/menu/menu.tsindex 8df135df87..d961af9ba3 100644--- a/packages/sheets-ui/src/controllers/menu/menu.ts+++ b/packages/sheets-ui/src/controllers/menu/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {FontItalic,FontWeight,diff --git a/packages/sheets-ui/src/controllers/menu/merge.menu.ts b/packages/sheets-ui/src/controllers/menu/merge.menu.tsindex 62dc9f204c..a9c5953c7e 100644--- a/packages/sheets-ui/src/controllers/menu/merge.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/merge.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { RemoveWorksheetMergeCommand } from '@univerjs/sheets';import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts b/packages/sheets-ui/src/controllers/menu/sheet.menu.tsindex acd9701eab..28fdc19090 100644--- a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/sheet.menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService, IUniverInstanceService } from '@univerjs/core';import {CopySheetCommand,diff --git a/packages/sheets-ui/src/controllers/move-range.controller.ts b/packages/sheets-ui/src/controllers/move-range.controller.tsindex 48bb579e65..a6c88ea4ed 100644--- a/packages/sheets-ui/src/controllers/move-range.controller.ts+++ b/packages/sheets-ui/src/controllers/move-range.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts b/packages/sheets-ui/src/controllers/navigation/navigation.controller.tsindex 30da12edeb..9095c9cd5e 100644--- a/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts+++ b/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/controllers/scroll.controller.ts b/packages/sheets-ui/src/controllers/scroll.controller.tsindex a6a15dbf84..4ea3acb165 100644--- a/packages/sheets-ui/src/controllers/scroll.controller.ts+++ b/packages/sheets-ui/src/controllers/scroll.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Direction } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/selection.controller.ts b/packages/sheets-ui/src/controllers/selection.controller.tsindex 6208d1f94b..23065315a1 100644--- a/packages/sheets-ui/src/controllers/selection.controller.ts+++ b/packages/sheets-ui/src/controllers/selection.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/sheet-render.controller.ts b/packages/sheets-ui/src/controllers/sheet-render.controller.tsindex 46b98237b9..fda83824c6 100644--- a/packages/sheets-ui/src/controllers/sheet-render.controller.ts+++ b/packages/sheets-ui/src/controllers/sheet-render.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts b/packages/sheets-ui/src/controllers/sheet-ui.controller.tsindex f8bc7e9de0..b81d42f7cf 100644--- a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts+++ b/packages/sheets-ui/src/controllers/sheet-ui.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import {SetBoldCommand,diff --git a/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.tsindex c6b5365929..5f0b974b07 100644--- a/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { FOCUSING_EDITOR } from '@univerjs/core';import { BreakLineCommand, DeleteLeftCommand } from '@univerjs/docs';import { DeviceInputEventType } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.tsindex d553731e85..9b6425b7c8 100644--- a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { SetColHiddenCommand, SetRowHiddenCommand } from '@univerjs/sheets';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode, MetaKeys } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.tsindex b6cb475554..0ec0293e4e 100644--- a/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Direction } from '@univerjs/core';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode, MetaKeys } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.tsindex 3e281347e4..2d7e04fb2e 100644--- a/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { SetBoldCommand, SetItalicCommand, SetStrikeThroughCommand, SetUnderlineCommand } from '@univerjs/sheets';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode, MetaKeys } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/shortcuts/utils.ts b/packages/sheets-ui/src/controllers/shortcuts/utils.tsindex e7c0da2e2e..e3c86013bd 100644--- a/packages/sheets-ui/src/controllers/shortcuts/utils.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IContextService } from '@univerjs/core';import {FOCUSING_EDITOR,diff --git a/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.tsindex eb6e512ef3..2d5f8c4be6 100644--- a/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ClearSelectionContentCommand } from '@univerjs/sheets';import type { IShortcutItem } from '@univerjs/ui';import { KeyCode } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.tsindex 236c69c443..6dd7e607f6 100644--- a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IShortcutItem } from '@univerjs/ui';import { KeyCode, MetaKeys } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/controllers/status-bar.controller.ts b/packages/sheets-ui/src/controllers/status-bar.controller.tsindex f7c59710bd..33ff2e8a43 100644--- a/packages/sheets-ui/src/controllers/status-bar.controller.ts+++ b/packages/sheets-ui/src/controllers/status-bar.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/controllers/utils/component-tools.ts b/packages/sheets-ui/src/controllers/utils/component-tools.tsindex c04cb8e932..f0af8c4965 100644--- a/packages/sheets-ui/src/controllers/utils/component-tools.ts+++ b/packages/sheets-ui/src/controllers/utils/component-tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUniverInstanceService, Nullable } from '@univerjs/core';import type {Engine,diff --git a/packages/sheets-ui/src/controllers/zoom.controller.ts b/packages/sheets-ui/src/controllers/zoom.controller.tsindex 2fffbd4a2b..d56a3a76db 100644--- a/packages/sheets-ui/src/controllers/zoom.controller.ts+++ b/packages/sheets-ui/src/controllers/zoom.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.tsindex 8b069164c1..0ecc71e3e8 100644--- a/packages/sheets-ui/src/index.ts+++ b/packages/sheets-ui/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './basics';export { getEditorObject } from './basics/editor/get-editor-object';export { AutoFillCommand } from './commands/commands/auto-fill.command';diff --git a/packages/sheets-ui/src/locale/en-US.ts b/packages/sheets-ui/src/locale/en-US.tsindex acc0225ca8..8f91660a46 100644--- a/packages/sheets-ui/src/locale/en-US.ts+++ b/packages/sheets-ui/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {spreadsheetLabel: 'Spreadsheet',spreadsheetRightLabel: 'more Sheets',diff --git a/packages/sheets-ui/src/locale/index.ts b/packages/sheets-ui/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets-ui/src/locale/index.ts+++ b/packages/sheets-ui/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets-ui/src/locale/zh-CN.ts b/packages/sheets-ui/src/locale/zh-CN.tsindex 8eb0fa8be9..43fac1f581 100644--- a/packages/sheets-ui/src/locale/zh-CN.ts+++ b/packages/sheets-ui/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {spreadsheetLabel: '插件',spreadsheetRightLabel: '更多 Sheets',diff --git a/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts b/packages/sheets-ui/src/services/auto-fill/auto-fill.service.tsindex ecc8c1bc23..63ab72cc0c 100644--- a/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts+++ b/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/services/auto-fill/rules.ts b/packages/sheets-ui/src/services/auto-fill/rules.tsindex 8ccbb3ab6d..94215374cd 100644--- a/packages/sheets-ui/src/services/auto-fill/rules.ts+++ b/packages/sheets-ui/src/services/auto-fill/rules.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Direction } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/services/auto-fill/tools.ts b/packages/sheets-ui/src/services/auto-fill/tools.tsindex b19505fe1f..d4c065ec30 100644--- a/packages/sheets-ui/src/services/auto-fill/tools.ts+++ b/packages/sheets-ui/src/services/auto-fill/tools.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, Nullable } from '@univerjs/core';import { Direction, Tools } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/auto-fill/type.ts b/packages/sheets-ui/src/services/auto-fill/type.tsindex 7ffa2f83bb..353e036fb0 100644--- a/packages/sheets-ui/src/services/auto-fill/type.ts+++ b/packages/sheets-ui/src/services/auto-fill/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Direction, ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';export enum DATA_TYPE {diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.tsindex e2e9ca2ab4..dd743f0ee8 100644--- a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts+++ b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData, Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE, Rectangle } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.tsindex 81e885d078..27946ad8ab 100644--- a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts+++ b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts b/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.tsindex 539038c127..81b68cbe19 100644--- a/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts+++ b/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface IClipboardItem {readonly types: readonly string[];getType(type: string): Promise<Blob>;diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts b/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.tsindex 6b13cf0ef9..ad80601a94 100644--- a/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts+++ b/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { describe, expect, it } from 'vitest';diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.tsindex eb306c83db..0c9053adf3 100644--- a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts+++ b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange, ObjectMatrixPrimitiveType, Worksheet } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts b/packages/sheets-ui/src/services/clipboard/copy-content-cache.tsindex 71d674f8f0..23e6ec1dea 100644--- a/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts+++ b/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, ObjectMatrix } from '@univerjs/core';import { LRUMap, Tools } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.tsindex 568175c67c..85243a3fb3 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, IDocumentData, ITextRun, ITextStyle, Nullable } from '@univerjs/core';import { ObjectMatrix } from '@univerjs/core';import { handleStringToStyle } from '@univerjs/ui';diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.tsindex 92d82aa23d..44ca21e174 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { ITextStyle } from '@univerjs/core';import { BaselineOffset, BooleanNumber } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.tsindex 59f228d627..df98c00848 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BooleanNumber } from '@univerjs/core';import { extractNodeStyle as getInlineStyle } from '../parse-node-style';diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.tsindex adf3dcca6a..a6dcbd1223 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraph } from '@univerjs/core';import { BooleanNumber } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.tsindex 6f21a92da1..b7edb7edcc 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentBody, ITextStyle } from '@univerjs/core';export interface IStyleRule {diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.tsindex 659d4b906f..78dc347c4b 100644--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IParagraphStyle, Nullable } from '@univerjs/core';export default function parseToDom(rawHtml: string) {diff --git a/packages/sheets-ui/src/services/clipboard/type.ts b/packages/sheets-ui/src/services/clipboard/type.tsindex 592c9b1afc..14cb000ef6 100644--- a/packages/sheets-ui/src/services/clipboard/type.ts+++ b/packages/sheets-ui/src/services/clipboard/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';export enum COPY_TYPE {diff --git a/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts b/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.tsindex 8b55720eb0..89043a7926 100644--- a/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts+++ b/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, ObjectMatrix } from '@univerjs/core';import type { ICellDataWithSpanInfo, IClipboardPropertyItem, ISheetClipboardHook } from '../type';diff --git a/packages/sheets-ui/src/services/clipboard/utils.ts b/packages/sheets-ui/src/services/clipboard/utils.tsindex 6a72010ea2..5b817e8990 100644--- a/packages/sheets-ui/src/services/clipboard/utils.ts+++ b/packages/sheets-ui/src/services/clipboard/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';/**diff --git a/packages/sheets-ui/src/services/editor-bridge.service.ts b/packages/sheets-ui/src/services/editor-bridge.service.tsindex 12989f5a07..ab937a7f93 100644--- a/packages/sheets-ui/src/services/editor-bridge.service.ts+++ b/packages/sheets-ui/src/services/editor-bridge.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellDataForSheetInterceptor, IPosition, Nullable } from '@univerjs/core';import { createInterceptorKey, Disposable, InterceptorManager, toDisposable } from '@univerjs/core';import type { IDocumentLayoutObject } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts b/packages/sheets-ui/src/services/editor/cell-editor-manager.service.tsindex cfb14f48ab..fd0ea3ccea 100644--- a/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts+++ b/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPosition, Nullable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.tsindex a61c6fbec1..ee6670c859 100644--- a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts+++ b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts b/packages/sheets-ui/src/services/format-painter/format-painter.service.tsindex ca7099181e..11c377929e 100644--- a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts+++ b/packages/sheets-ui/src/services/format-painter/format-painter.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData } from '@univerjs/core';import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';import { getCellInfoInMergeData } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts b/packages/sheets-ui/src/services/mark-selection/mark-selection.service.tsindex 119fc2037b..522511021a 100644--- a/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts+++ b/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, IUniverInstanceService, ThemeService, Tools } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/scroll-manager.service.ts b/packages/sheets-ui/src/services/scroll-manager.service.tsindex 070c283750..2191f64236 100644--- a/packages/sheets-ui/src/services/scroll-manager.service.ts+++ b/packages/sheets-ui/src/services/scroll-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { BehaviorSubject } from 'rxjs';diff --git a/packages/sheets-ui/src/services/selection/selection-render-model.ts b/packages/sheets-ui/src/services/selection/selection-render-model.tsindex fcb99e7ec1..87bdc72adf 100644--- a/packages/sheets-ui/src/services/selection/selection-render-model.ts+++ b/packages/sheets-ui/src/services/selection/selection-render-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRangeWithCoord, ISelectionCellWithCoord, ISelectionWithCoord, Nullable } from '@univerjs/core';import { makeCellToSelection, RANGE_TYPE } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/selection/selection-render.service.ts b/packages/sheets-ui/src/services/selection/selection-render.service.tsindex 6648549193..389fb113e5 100644--- a/packages/sheets-ui/src/services/selection/selection-render.service.ts+++ b/packages/sheets-ui/src/services/selection/selection-render.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IRange,IRangeWithCoord,diff --git a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts b/packages/sheets-ui/src/services/selection/selection-shape-extension.tsindex 3ad79a9595..f2c92e813f 100644--- a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts+++ b/packages/sheets-ui/src/services/selection/selection-shape-extension.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { IRangeWithCoord, Nullable, Observer, ThemeService } from '@univerjs/core';import type { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/selection/selection-shape.ts b/packages/sheets-ui/src/services/selection/selection-shape.tsindex de5bd21b28..30cdd33675 100644--- a/packages/sheets-ui/src/services/selection/selection-shape.ts+++ b/packages/sheets-ui/src/services/selection/selection-shape.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { IRangeWithCoord, ISelectionCellWithCoord, Nullable, ThemeService } from '@univerjs/core';import { RANGE_TYPE } from '@univerjs/core';diff --git a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.tsindex 099cb504f7..7584e67e5b 100644--- a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts+++ b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts b/packages/sheets-ui/src/services/sheet-skeleton-manager.service.tsindex 888c8b84f0..ffb8d87410 100644--- a/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts+++ b/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Workbook, Worksheet } from '@univerjs/core';import { IUniverInstanceService, LocaleService } from '@univerjs/core';import { SpreadsheetSkeleton } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/services/status-bar.service.ts b/packages/sheets-ui/src/services/status-bar.service.tsindex a69ac105fe..2fa4a65649 100644--- a/packages/sheets-ui/src/services/status-bar.service.ts+++ b/packages/sheets-ui/src/services/status-bar.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import type { IFunctionNames } from '@univerjs/engine-formula';import { FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL } from '@univerjs/engine-formula';diff --git a/packages/sheets-ui/src/sheets-ui-plugin.ts b/packages/sheets-ui/src/sheets-ui-plugin.tsindex e3a4d45615..7a06edada6 100644--- a/packages/sheets-ui/src/sheets-ui-plugin.ts+++ b/packages/sheets-ui/src/sheets-ui-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/sheets-ui/src/views/count-bar/CountBar.tsx b/packages/sheets-ui/src/views/count-bar/CountBar.tsxindex 77db25124e..e94caad926 100644--- a/packages/sheets-ui/src/views/count-bar/CountBar.tsx+++ b/packages/sheets-ui/src/views/count-bar/CountBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import styles from './index.module.less';diff --git a/packages/sheets-ui/src/views/count-bar/index.ts b/packages/sheets-ui/src/views/count-bar/index.tsindex 2429282b86..02a4f164e5 100644--- a/packages/sheets-ui/src/views/count-bar/index.ts+++ b/packages/sheets-ui/src/views/count-bar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './CountBar';diff --git a/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx b/packages/sheets-ui/src/views/count-bar/zoom-slider.tsxindex 8a95a65a2d..8bc635b39f 100644--- a/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx+++ b/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService, IUniverInstanceService } from '@univerjs/core';import { Slider } from '@univerjs/design';import { SetWorksheetActivateCommand } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsxindex 077ddd57d5..0fd1e29d94 100644--- a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx+++ b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DOCS_NORMAL_EDITOR_UNIT_ID_KEY } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/sheets-ui/src/views/editor-container/index.ts b/packages/sheets-ui/src/views/editor-container/index.tsindex 38b6807631..d198bb0bb1 100644--- a/packages/sheets-ui/src/views/editor-container/index.ts+++ b/packages/sheets-ui/src/views/editor-container/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './EditorContainer';diff --git a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsxindex e2353db262..1ddc83096a 100644--- a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx+++ b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY } from '@univerjs/core';import { DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';import { CheckMarkSingle, CloseSingle, DropdownSingle, FxSingle } from '@univerjs/icons';diff --git a/packages/sheets-ui/src/views/formula-bar/index.ts b/packages/sheets-ui/src/views/formula-bar/index.tsindex a7fc0418a5..5c1317cb74 100644--- a/packages/sheets-ui/src/views/formula-bar/index.ts+++ b/packages/sheets-ui/src/views/formula-bar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './FormulaBar';diff --git a/packages/sheets-ui/src/views/header-menu-shape.ts b/packages/sheets-ui/src/views/header-menu-shape.tsindex 2ab8ff8ccd..10bf536c40 100644--- a/packages/sheets-ui/src/views/header-menu-shape.ts+++ b/packages/sheets-ui/src/views/header-menu-shape.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IShapeProps } from '@univerjs/engine-render';import { Rect, RegularPolygon, Shape } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/views/header-resize-shape.ts b/packages/sheets-ui/src/views/header-resize-shape.tsindex 7e2cf0dc71..1ce3eb724f 100644--- a/packages/sheets-ui/src/views/header-resize-shape.ts+++ b/packages/sheets-ui/src/views/header-resize-shape.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IShapeProps } from '@univerjs/engine-render';import { Rect, Shape } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/views/header-unhide-shape.ts b/packages/sheets-ui/src/views/header-unhide-shape.tsindex 99292d0286..15fdc9730d 100644--- a/packages/sheets-ui/src/views/header-unhide-shape.ts+++ b/packages/sheets-ui/src/views/header-unhide-shape.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IShapeProps } from '@univerjs/engine-render';import { Rect, RegularPolygon, Shape } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsxindex 128e99c958..eab1a07e82 100644--- a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx+++ b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { ICommandService, IUniverInstanceService, LocaleService, toDisposable } from '@univerjs/core';import { Dropdown } from '@univerjs/design';diff --git a/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx b/packages/sheets-ui/src/views/operate-container/OperateContainer.tsxindex ab53735184..fe6521849c 100644--- a/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx+++ b/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import { AutoFillPopupMenu } from './AutoFillPopupMenu';diff --git a/packages/sheets-ui/src/views/operate-container/index.ts b/packages/sheets-ui/src/views/operate-container/index.tsindex 3604f3c3d9..b560403c2e 100644--- a/packages/sheets-ui/src/views/operate-container/index.ts+++ b/packages/sheets-ui/src/views/operate-container/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './OperateContainer';diff --git a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsxindex 576e118c6e..8c567ff362 100644--- a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService } from '@univerjs/core';import { IncreaseSingle, MoreSingle } from '@univerjs/icons';import { InsertSheetCommand } from '@univerjs/sheets';diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsxindex fbd1568581..558e9dfd1b 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import styles from './index.module.less';diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsxindex 5d9eb5e1fe..31f26c6148 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { BooleanNumber, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';import { Dropdown } from '@univerjs/design';diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsxindex cacf69f62c..a9f243767c 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type { BooleanNumber } from '@univerjs/core';import { ICommandService, ThemeService } from '@univerjs/core';diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsxindex d16edac79d..83fbef5cc7 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { BooleanNumber, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';import {diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.tsindex 036b8ed581..ebe0e9752b 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+const Tween: Record<string, Function> = {easeOutStrong(t: number, b: number, c: number, d: number): number {return -c * ((t = t / d - 1) * t * t * t - 1) + b;diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.tsindex 45642623a0..20f4970399 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Animate } from './animate';export interface IScrollState {diff --git a/packages/sheets-ui/src/views/sheet-canvas-view.ts b/packages/sheets-ui/src/views/sheet-canvas-view.tsindex d988b74fa3..44b6842eff 100644--- a/packages/sheets-ui/src/views/sheet-canvas-view.ts+++ b/packages/sheets-ui/src/views/sheet-canvas-view.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Workbook, Worksheet } from '@univerjs/core';import { ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IRender, IWheelEvent, Scene } from '@univerjs/engine-render';diff --git a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsxindex 164cd3fd65..21c900c481 100644--- a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx+++ b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';import type { IUniverSheetsUIConfig } from '../../basics';diff --git a/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx b/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsxindex d8ef74d702..7e4d4d1a34 100644--- a/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx+++ b/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { MessageType, Tooltip } from '@univerjs/design';import type { IFunctionNames } from '@univerjs/engine-formula';diff --git a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx b/packages/sheets-ui/src/views/status-bar/StatusBar.tsxindex 1653154a91..2063819c71 100644--- a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx+++ b/packages/sheets-ui/src/views/status-bar/StatusBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { Checkbox, Dropdown } from '@univerjs/design';import { MoreSingle } from '@univerjs/icons';diff --git a/packages/sheets/src/basics/const/command-listener-const.ts b/packages/sheets/src/basics/const/command-listener-const.tsindex fb2168d6f3..4bb8a8f3ac 100644--- a/packages/sheets/src/basics/const/command-listener-const.ts+++ b/packages/sheets/src/basics/const/command-listener-const.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { InsertColMutation, InsertRowMutation } from '../../commands/mutations/insert-row-col.mutation';import { MoveRangeMutation } from '../../commands/mutations/move-range.mutation';import { MoveColsMutation, MoveRowsMutation } from '../../commands/mutations/move-rows-cols.mutation';diff --git a/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts b/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.tsindex b85fc14268..dd7d031cf1 100644--- a/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts+++ b/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';export const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig = {diff --git a/packages/sheets/src/basics/const/index.ts b/packages/sheets/src/basics/const/index.tsindex 7ced67b846..07ff6f446a 100644--- a/packages/sheets/src/basics/const/index.ts+++ b/packages/sheets/src/basics/const/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './command-listener-const';export * from './default-spreadsheet-plugin-data';diff --git a/packages/sheets/src/basics/get-apply-data.ts b/packages/sheets/src/basics/get-apply-data.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets/src/basics/index.ts b/packages/sheets/src/basics/index.tsindex d4be4ea9ad..cf0bbd2e28 100644--- a/packages/sheets/src/basics/index.ts+++ b/packages/sheets/src/basics/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './const/index';export * from './interfaces/index';export * from './selection';diff --git a/packages/sheets/src/basics/interfaces/i-ruler-manager.ts b/packages/sheets/src/basics/interfaces/i-ruler-manager.tsindex 0f763f66d5..596f02b972 100644--- a/packages/sheets/src/basics/interfaces/i-ruler-manager.ts+++ b/packages/sheets/src/basics/interfaces/i-ruler-manager.ts@@ -1,8 +1,24 @@-import type { BooleanNumber } from '@univerjs/core';--/**- * Column ruler data type- */-export interface IColumnRulerData {- hd: BooleanNumber;-}+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { BooleanNumber } from '@univerjs/core';++/**+ * Column ruler data type+ */+export interface IColumnRulerData {+ hd: BooleanNumber;+}diff --git a/packages/sheets/src/basics/interfaces/index.ts b/packages/sheets/src/basics/interfaces/index.tsindex 0ce4e8eb3a..85ff3e2190 100644--- a/packages/sheets/src/basics/interfaces/index.ts+++ b/packages/sheets/src/basics/interfaces/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './mutation-interface';export * from './selection-config';export * from './spreadsheet-config';diff --git a/packages/sheets/src/basics/interfaces/mutation-interface.ts b/packages/sheets/src/basics/interfaces/mutation-interface.tsindex c7c1f7bfe5..669afe525c 100644--- a/packages/sheets/src/basics/interfaces/mutation-interface.ts+++ b/packages/sheets/src/basics/interfaces/mutation-interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {Dimension,ICellData,diff --git a/packages/sheets/src/basics/interfaces/selection-config.ts b/packages/sheets/src/basics/interfaces/selection-config.tsindex 0c47204c7e..99ad664b8a 100644--- a/packages/sheets/src/basics/interfaces/selection-config.ts+++ b/packages/sheets/src/basics/interfaces/selection-config.ts@@ -1,10 +1,26 @@-import type { IRange, IRangeCellData } from '@univerjs/core';--export interface ISelectionConfig {- selection: IRange;- cell?: IRangeCellData;-}--export interface ISelectionsConfig {- [worksheetId: string]: ISelectionConfig[];-}+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IRange, IRangeCellData } from '@univerjs/core';++export interface ISelectionConfig {+ selection: IRange;+ cell?: IRangeCellData;+}++export interface ISelectionsConfig {+ [worksheetId: string]: ISelectionConfig[];+}diff --git a/packages/sheets/src/basics/interfaces/spreadsheet-config.ts b/packages/sheets/src/basics/interfaces/spreadsheet-config.tsindex 7cd5b08fc5..e016094248 100644--- a/packages/sheets/src/basics/interfaces/spreadsheet-config.ts+++ b/packages/sheets/src/basics/interfaces/spreadsheet-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISelectionsConfig } from './selection-config';export interface IUniverSheetsConfig {diff --git a/packages/sheets/src/basics/selection.ts b/packages/sheets/src/basics/selection.tsindex eebd3bd524..5be619d999 100644--- a/packages/sheets/src/basics/selection.ts+++ b/packages/sheets/src/basics/selection.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import type {IRange,diff --git a/packages/sheets/src/basics/sheet-header.ts b/packages/sheets/src/basics/sheet-header.tsindex aa0240b34f..73969725c8 100644--- a/packages/sheets/src/basics/sheet-header.ts+++ b/packages/sheets/src/basics/sheet-header.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Worksheet } from '@univerjs/core';export function rowHeightByHeader(worksheet: Worksheet) {diff --git a/packages/sheets/src/basics/utils.ts b/packages/sheets/src/basics/utils.tsindex 4689e9b703..009ac002c4 100644--- a/packages/sheets/src/basics/utils.ts+++ b/packages/sheets/src/basics/utils.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const groupByKey = <T = Record<string, unknown>>(arr: T[], key: string, blankKey = '') => {return arr.reduce((result, current) => {diff --git a/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.tsindex f69ff0de84..004dd925aa 100644--- a/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData, Nullable, Univer } from '@univerjs/core';import {CellValueType,diff --git a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.tsindex 24be1aa7a8..c9ca3f6c8f 100644--- a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts@@ -1,4 +1,19 @@-// test for copy sheet command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer, Worksheet } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts b/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.tsindex e9e1bba213..036ad3166a 100644--- a/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts+++ b/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData, Workbook } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.tsindex c47269dfa5..2d94c20a58 100644--- a/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.tsindex f2b0f32e6f..6f3053da21 100644--- a/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.tsindex 57cb41d7cf..94e9970de2 100644--- a/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts b/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.tsindex 845ba058c4..1037b1c724 100644--- a/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IWorkbookData, Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, LocaleType, Rectangle, Tools, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.tsindex 6c11694f32..94de293cb8 100644--- a/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, IWorkbookData, Nullable, Univer } from '@univerjs/core';import {ICommandService,diff --git a/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.tsindex d2f6f07434..ee196edcca 100644--- a/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts@@ -1,4 +1,19 @@-// test for remove sheet command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.tsindex 59bfffcec3..7c78374ef9 100644--- a/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IBorderData, IRange, Univer } from '@univerjs/core';import { BorderStyleTypes, BorderType, ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.tsindex bcd064fec3..5623d01e57 100644--- a/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.tsindex 31e100dfb7..1d09c50286 100644--- a/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts@@ -1,4 +1,19 @@-// test for set frozen command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, LocaleType, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.tsindex 569ddefaf9..eb39693925 100644--- a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IDocumentData, IStyleData, Nullable, Univer } from '@univerjs/core';import {CellValueType,diff --git a/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.tsindex f669e85551..fe92365cd3 100644--- a/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.tsindex d46268e0a5..ec2b118cfc 100644--- a/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable, Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.tsindex 9b4f6a0c46..8454ad6cee 100644--- a/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ITextDecoration, ITextRotation, Univer } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.tsindex c47cb9a570..938e088d65 100644--- a/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.tsindex 8c8132626b..bca76a8603 100644--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { BooleanNumber, ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.tsindex 4ed1306608..6c9e5a4a72 100644--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts@@ -1,4 +1,19 @@-// test for set worksheet name command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.tsindex 5a58dabb75..66800e22ea 100644--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts@@ -1,4 +1,19 @@-// test for set worksheet name command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.tsindex e903233edd..e82e70cd5a 100644--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts@@ -1,4 +1,19 @@-// test for remove sheet command+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts b/packages/sheets/src/commands/commands/add-worksheet-merge.command.tsindex 46447347ca..143572dbaf 100644--- a/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts+++ b/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts@@ -1,5 +1,18 @@-// The file is for tests only.-// Please refer to packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */import type { ICellData, ICommand, IMutationInfo, IRange, Worksheet } from '@univerjs/core';import {diff --git a/packages/sheets/src/commands/commands/clear-selection-all.command.ts b/packages/sheets/src/commands/commands/clear-selection-all.command.tsindex 2a46e85fe5..290cbc7a76 100644--- a/packages/sheets/src/commands/commands/clear-selection-all.command.ts+++ b/packages/sheets/src/commands/commands/clear-selection-all.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/clear-selection-content.command.ts b/packages/sheets/src/commands/commands/clear-selection-content.command.tsindex 6aab77fc06..945643e762 100644--- a/packages/sheets/src/commands/commands/clear-selection-content.command.ts+++ b/packages/sheets/src/commands/commands/clear-selection-content.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/clear-selection-format.command.ts b/packages/sheets/src/commands/commands/clear-selection-format.command.tsindex 132996846f..55364e6b6f 100644--- a/packages/sheets/src/commands/commands/clear-selection-format.command.ts+++ b/packages/sheets/src/commands/commands/clear-selection-format.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts b/packages/sheets/src/commands/commands/copy-to-worksheet.command.tsindex b4bcd62b16..0b31f088b9 100644--- a/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts+++ b/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/copy-worksheet.command.ts b/packages/sheets/src/commands/commands/copy-worksheet.command.tsindex 2549951beb..37242a1d59 100644--- a/packages/sheets/src/commands/commands/copy-worksheet.command.ts+++ b/packages/sheets/src/commands/commands/copy-worksheet.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/delete-range-move-left.command.ts b/packages/sheets/src/commands/commands/delete-range-move-left.command.tsindex 5c9a07f8d0..ba569166ca 100644--- a/packages/sheets/src/commands/commands/delete-range-move-left.command.ts+++ b/packages/sheets/src/commands/commands/delete-range-move-left.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMutationInfo, IRange, Nullable } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/delete-range-move-up.command.ts b/packages/sheets/src/commands/commands/delete-range-move-up.command.tsindex e488c02f86..97b179452c 100644--- a/packages/sheets/src/commands/commands/delete-range-move-up.command.ts+++ b/packages/sheets/src/commands/commands/delete-range-move-up.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMutationInfo, IRange, Nullable } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/insert-range-move-down.command.ts b/packages/sheets/src/commands/commands/insert-range-move-down.command.tsindex a2fcd7f7c0..6d03ee14ae 100644--- a/packages/sheets/src/commands/commands/insert-range-move-down.command.ts+++ b/packages/sheets/src/commands/commands/insert-range-move-down.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IMutationInfo, IRange, IRowData } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/insert-range-move-right.command.ts b/packages/sheets/src/commands/commands/insert-range-move-right.command.tsindex 5210ef563f..b2b570facc 100644--- a/packages/sheets/src/commands/commands/insert-range-move-right.command.ts+++ b/packages/sheets/src/commands/commands/insert-range-move-right.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IColumnData, ICommand, IMutationInfo, IRange } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/insert-row-col.command.ts b/packages/sheets/src/commands/commands/insert-row-col.command.tsindex 0610acb49f..a9753b229f 100644--- a/packages/sheets/src/commands/commands/insert-row-col.command.ts+++ b/packages/sheets/src/commands/commands/insert-row-col.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IColumnData, ICommand, IRange, IRowData, IStyleData, Nullable } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/insert-sheet.command.ts b/packages/sheets/src/commands/commands/insert-sheet.command.tsindex 32a8d527b1..3bc1155fa2 100644--- a/packages/sheets/src/commands/commands/insert-sheet.command.ts+++ b/packages/sheets/src/commands/commands/insert-sheet.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IWorksheetData } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/move-range.command.ts b/packages/sheets/src/commands/commands/move-range.command.tsindex 784e1b10f0..09e839ea33 100644--- a/packages/sheets/src/commands/commands/move-range.command.ts+++ b/packages/sheets/src/commands/commands/move-range.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IRange } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/move-rows-cols.command.ts b/packages/sheets/src/commands/commands/move-rows-cols.command.tsindex b517547bf6..19e8fc0aa2 100644--- a/packages/sheets/src/commands/commands/move-rows-cols.command.ts+++ b/packages/sheets/src/commands/commands/move-rows-cols.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IRange } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/remove-row-col.command.ts b/packages/sheets/src/commands/commands/remove-row-col.command.tsindex bf0e717bd8..35883078f6 100644--- a/packages/sheets/src/commands/commands/remove-row-col.command.ts+++ b/packages/sheets/src/commands/commands/remove-row-col.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IRange, Nullable } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/remove-sheet.command.ts b/packages/sheets/src/commands/commands/remove-sheet.command.tsindex 3818f1d830..68ec06bf4a 100644--- a/packages/sheets/src/commands/commands/remove-sheet.command.ts+++ b/packages/sheets/src/commands/commands/remove-sheet.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.tsindex 651732c123..74d655ed0d 100644--- a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts+++ b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Rectangle } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-border-command.ts b/packages/sheets/src/commands/commands/set-border-command.tsindex a7e0d51583..a6947463f5 100644--- a/packages/sheets/src/commands/commands/set-border-command.ts+++ b/packages/sheets/src/commands/commands/set-border-command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {BorderStyleTypes,IBorderData,diff --git a/packages/sheets/src/commands/commands/set-col-visible.command.ts b/packages/sheets/src/commands/commands/set-col-visible.command.tsindex 66a9f5e996..43dabd2098 100644--- a/packages/sheets/src/commands/commands/set-col-visible.command.ts+++ b/packages/sheets/src/commands/commands/set-col-visible.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IRange, Nullable } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts b/packages/sheets/src/commands/commands/set-frozen-cancel.command.tsindex 06880d2eb6..10d99ddb38 100644--- a/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts+++ b/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-frozen.command.ts b/packages/sheets/src/commands/commands/set-frozen.command.tsindex dd10d94602..f65089e671 100644--- a/packages/sheets/src/commands/commands/set-frozen.command.ts+++ b/packages/sheets/src/commands/commands/set-frozen.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts b/packages/sheets/src/commands/commands/set-hide-gridlines.command.tsindex 4818e12b4a..9a9e6ddbf3 100644--- a/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts+++ b/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-range-values.command.ts b/packages/sheets/src/commands/commands/set-range-values.command.tsindex 9fb573ec71..4ed7e7a2f5 100644--- a/packages/sheets/src/commands/commands/set-range-values.command.ts+++ b/packages/sheets/src/commands/commands/set-range-values.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, ICommand, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-row-visible.command.ts b/packages/sheets/src/commands/commands/set-row-visible.command.tsindex 797ec04a14..00c516a999 100644--- a/packages/sheets/src/commands/commands/set-row-visible.command.ts+++ b/packages/sheets/src/commands/commands/set-row-visible.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IRange } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-style.command.ts b/packages/sheets/src/commands/commands/set-style.command.tsindex e4a89490e0..aae135e6be 100644--- a/packages/sheets/src/commands/commands/set-style.command.ts+++ b/packages/sheets/src/commands/commands/set-style.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {HorizontalAlign,ICellData,diff --git a/packages/sheets/src/commands/commands/set-tab-color.command.ts b/packages/sheets/src/commands/commands/set-tab-color.command.tsindex 38c79cdc07..df5fd38626 100644--- a/packages/sheets/src/commands/commands/set-tab-color.command.ts+++ b/packages/sheets/src/commands/commands/set-tab-color.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts b/packages/sheets/src/commands/commands/set-worksheet-activate.command.tsindex d3ea0653a7..f9f179ee5a 100644--- a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts b/packages/sheets/src/commands/commands/set-worksheet-col-width.command.tsindex 5844fb7e03..955408bf3d 100644--- a/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts b/packages/sheets/src/commands/commands/set-worksheet-hide.command.tsindex f368e0b400..b03b1bd901 100644--- a/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {BooleanNumber,diff --git a/packages/sheets/src/commands/commands/set-worksheet-name.command.ts b/packages/sheets/src/commands/commands/set-worksheet-name.command.tsindex 3cb3b3aa54..6149126712 100644--- a/packages/sheets/src/commands/commands/set-worksheet-name.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-name.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-worksheet-order.command.ts b/packages/sheets/src/commands/commands/set-worksheet-order.command.tsindex e43a229f1c..593dfcbead 100644--- a/packages/sheets/src/commands/commands/set-worksheet-order.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-order.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.tsindex dcabf8b396..b0386e0055 100644--- a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.tsindex 279a69c152..600d669d95 100644--- a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import {CommandType,diff --git a/packages/sheets/src/commands/commands/set-worksheet-show.command.ts b/packages/sheets/src/commands/commands/set-worksheet-show.command.tsindex e74d1bea38..23e77dfa1b 100644--- a/packages/sheets/src/commands/commands/set-worksheet-show.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-show.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand } from '@univerjs/core';import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/commands/utils/merged-cell-util.ts b/packages/sheets/src/commands/commands/utils/merged-cell-util.tsindex bb1e04b9f3..8e78765cc1 100644--- a/packages/sheets/src/commands/commands/utils/merged-cell-util.ts+++ b/packages/sheets/src/commands/commands/utils/merged-cell-util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Worksheet } from '@univerjs/core';/**diff --git a/packages/sheets/src/commands/commands/utils/selection-util.ts b/packages/sheets/src/commands/commands/utils/selection-util.tsindex 222b3a3f95..306e712084 100644--- a/packages/sheets/src/commands/commands/utils/selection-util.ts+++ b/packages/sheets/src/commands/commands/utils/selection-util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, ISelection, ISelectionCell, Nullable, ObjectMatrix, Worksheet } from '@univerjs/core';import { Direction, getReverseDirection, RANGE_TYPE, Rectangle, selectionToArray } from '@univerjs/core';diff --git a/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts b/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.tsindex cc37402087..7aabfb3de2 100644--- a/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts+++ b/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/delete-range.mutation.ts b/packages/sheets/src/commands/mutations/delete-range.mutation.tsindex 389d0c36e5..153a11c2ee 100644--- a/packages/sheets/src/commands/mutations/delete-range.mutation.ts+++ b/packages/sheets/src/commands/mutations/delete-range.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutation, IRange, Nullable } from '@univerjs/core';import { CommandType, Dimension, IUniverInstanceService, ObjectMatrix, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/insert-range.mutation.ts b/packages/sheets/src/commands/mutations/insert-range.mutation.tsindex 09ead4cdb0..6df7e4f49a 100644--- a/packages/sheets/src/commands/mutations/insert-range.mutation.ts+++ b/packages/sheets/src/commands/mutations/insert-range.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange, ObjectMatrix, ObjectMatrixPrimitiveType } from '@univerjs/core';import { CommandType, Dimension, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts b/packages/sheets/src/commands/mutations/insert-row-col.mutation.tsindex 66170a1e3e..29e784be5e 100644--- a/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts+++ b/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, ObjectArray, Rectangle } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts b/packages/sheets/src/commands/mutations/insert-sheet.mutation.tsindex a8f5545cd6..4d11320cdb 100644--- a/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts+++ b/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/move-range.mutation.ts b/packages/sheets/src/commands/mutations/move-range.mutation.tsindex 9c23ee0f14..8ce7eaefdf 100644--- a/packages/sheets/src/commands/mutations/move-range.mutation.ts+++ b/packages/sheets/src/commands/mutations/move-range.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IMutation, ObjectMatrixPrimitiveType } from '@univerjs/core';import { CommandType, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';diff --git a/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts b/packages/sheets/src/commands/mutations/move-rows-cols.mutation.tsindex 91384e865b..50cf2829ae 100644--- a/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts+++ b/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange } from '@univerjs/core';import { CommandType, IUniverInstanceService, Rectangle } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/numfmt-mutation.ts b/packages/sheets/src/commands/mutations/numfmt-mutation.tsindex 2be0d2fc9a..a60ac83673 100644--- a/packages/sheets/src/commands/mutations/numfmt-mutation.ts+++ b/packages/sheets/src/commands/mutations/numfmt-mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommand, IMutationInfo, IRange } from '@univerjs/core';import { CommandType, Range } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts b/packages/sheets/src/commands/mutations/remove-row-col.mutation.tsindex 1b88a9c51a..b8378a4c90 100644--- a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts+++ b/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IColumnData, IMutation, IRowData, Worksheet } from '@univerjs/core';import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts b/packages/sheets/src/commands/mutations/remove-sheet.mutation.tsindex 8ff9865c84..169a755ba4 100644--- a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts+++ b/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts b/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.tsindex b704265816..0d95faa20f 100644--- a/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts+++ b/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Rectangle } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts b/packages/sheets/src/commands/mutations/set-col-visible.mutation.tsindex 671e1c3c69..07b4cef76b 100644--- a/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange } from '@univerjs/core';import { BooleanNumber, CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-frozen.mutation.ts b/packages/sheets/src/commands/mutations/set-frozen.mutation.tsindex 5d64d627f6..f18f28bbf2 100644--- a/packages/sheets/src/commands/mutations/set-frozen.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-frozen.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts b/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.tsindex 25bc93e795..ec057ef580 100644--- a/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts+++ b/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber, IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts b/packages/sheets/src/commands/mutations/set-range-values.mutation.tsindex 52cc23de07..9a70038e2d 100644--- a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-range-values.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IBorderData,ICellData,diff --git a/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts b/packages/sheets/src/commands/mutations/set-row-visible.mutation.tsindex d71a7ea224..aebb33b875 100644--- a/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts b/packages/sheets/src/commands/mutations/set-tab-color.mutation.tsindex 46c351f7a4..2ef425b35a 100644--- a/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.tsindex f6b4580295..dff8aa3655 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange } from '@univerjs/core';import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.tsindex a9585d4512..cf6c053238 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IWorksheetData } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.tsindex 48a5ac0e4a..67a47a5e7a 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber, IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.tsindex 68bf126530..b70de2fc69 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.tsindex 4c700cddf2..ac2ef25aef 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.tsindex 6a5998e205..fe08b878f9 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BooleanNumber, IMutation } from '@univerjs/core';import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.tsindex ff707dd8ad..d26b24e12d 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutation, IRange, Nullable } from '@univerjs/core';import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';import type { IRowAutoHeightInfo } from '@univerjs/engine-render';diff --git a/packages/sheets/src/commands/operations/selection.operation.ts b/packages/sheets/src/commands/operations/selection.operation.tsindex 04bb74796a..92db923830 100644--- a/packages/sheets/src/commands/operations/selection.operation.ts+++ b/packages/sheets/src/commands/operations/selection.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts b/packages/sheets/src/commands/operations/set-worksheet-active.operation.tsindex c2bc8a4535..c1f772c196 100644--- a/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts+++ b/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { BooleanNumber, CommandType, IUniverInstanceService } from '@univerjs/core';diff --git a/packages/sheets/src/commands/utils/interface.ts b/packages/sheets/src/commands/utils/interface.tsindex 45f38dd706..460088ae12 100644--- a/packages/sheets/src/commands/utils/interface.ts+++ b/packages/sheets/src/commands/utils/interface.ts@@ -1,4 +1,19 @@-// TODO@wzhudev: not all commands / mutations / operations depend on this interface+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface ISheetCommandSharedParams {workbookId: string;worksheetId: string;diff --git a/packages/sheets/src/controllers/__tests__/util.ts b/packages/sheets/src/controllers/__tests__/util.tsindex ea317162c1..7eab1be128 100644--- a/packages/sheets/src/controllers/__tests__/util.ts+++ b/packages/sheets/src/controllers/__tests__/util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets/src/controllers/basic-worksheet.controller.ts b/packages/sheets/src/controllers/basic-worksheet.controller.tsindex 2634462f6f..90513da97a 100644--- a/packages/sheets/src/controllers/basic-worksheet.controller.ts+++ b/packages/sheets/src/controllers/basic-worksheet.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IStyleData } from '@univerjs/core';import { Disposable, ICommandService, IConfigService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/sheets/src/controllers/calculate-result-apply.controller.ts b/packages/sheets/src/controllers/calculate-result-apply.controller.tsindex a3fb07162f..41e6cf6dbb 100644--- a/packages/sheets/src/controllers/calculate-result-apply.controller.ts+++ b/packages/sheets/src/controllers/calculate-result-apply.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';diff --git a/packages/sheets/src/controllers/config/config.ts b/packages/sheets/src/controllers/config/config.tsindex 32ff3a1053..fcc79453dd 100644--- a/packages/sheets/src/controllers/config/config.ts+++ b/packages/sheets/src/controllers/config/config.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const MAX_CELL_PER_SHEET_KEY = 'maxCellsPerSheet';export const MAX_CELL_PER_SHEET_DEFAULT = 3_000_000;diff --git a/packages/sheets/src/controllers/feature-calculation.controller.ts b/packages/sheets/src/controllers/feature-calculation.controller.tsindex ac832544ef..06b8cddfc5 100644--- a/packages/sheets/src/controllers/feature-calculation.controller.ts+++ b/packages/sheets/src/controllers/feature-calculation.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import {Disposable,ICommandService,diff --git a/packages/sheets/src/controllers/merge-cell.controller.ts b/packages/sheets/src/controllers/merge-cell.controller.tsindex e903a77c98..3eff82dcfd 100644--- a/packages/sheets/src/controllers/merge-cell.controller.ts+++ b/packages/sheets/src/controllers/merge-cell.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo, IRange, Workbook } from '@univerjs/core';import {Dimension,diff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.tsindex c84a88363e..db1360ae9a 100644--- a/packages/sheets/src/index.ts+++ b/packages/sheets/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { type IUniverSheetsConfig, UniverSheets } from './sheets-plugin';// #region servicesdiff --git a/packages/sheets/src/locale/en-US.ts b/packages/sheets/src/locale/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets/src/locale/en-US.ts+++ b/packages/sheets/src/locale/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets/src/locale/index.ts b/packages/sheets/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/sheets/src/locale/index.ts+++ b/packages/sheets/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/sheets/src/locale/zh-CN.ts b/packages/sheets/src/locale/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/sheets/src/locale/zh-CN.ts+++ b/packages/sheets/src/locale/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/sheets/src/services/__tests__/numfmt.service.test.ts b/packages/sheets/src/services/__tests__/numfmt.service.test.tsindex 1a34986d2d..0f88d1cde5 100644--- a/packages/sheets/src/services/__tests__/numfmt.service.test.ts+++ b/packages/sheets/src/services/__tests__/numfmt.service.test.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService } from '@univerjs/core';import type { IRemoveNumfmtMutationParams, ISetNumfmtMutationParams } from '@univerjs/sheets';diff --git a/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts b/packages/sheets/src/services/__tests__/ref-range.setvice.spec.tsindex 99ea02853b..0ab9b5e142 100644--- a/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts+++ b/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Univer, Workbook, Worksheet } from '@univerjs/core';import { ICommandService, IUniverInstanceService } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/__tests__/sheet-permission.spec.ts b/packages/sheets/src/services/__tests__/sheet-permission.spec.tsindex 699a94487b..8df0ac2d7a 100644--- a/packages/sheets/src/services/__tests__/sheet-permission.spec.ts+++ b/packages/sheets/src/services/__tests__/sheet-permission.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Univer } from '@univerjs/core';import { ICommandService, IUniverInstanceService, UniverPermissionService } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/__tests__/util.ts b/packages/sheets/src/services/__tests__/util.tsindex f2cbb3c520..12b5f765b2 100644--- a/packages/sheets/src/services/__tests__/util.ts+++ b/packages/sheets/src/services/__tests__/util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/border-style-manager.service.ts b/packages/sheets/src/services/border-style-manager.service.tsindex 5944d1b135..445b9b99f4 100644--- a/packages/sheets/src/services/border-style-manager.service.ts+++ b/packages/sheets/src/services/border-style-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BorderStyleTypes, BorderType } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { BehaviorSubject } from 'rxjs';diff --git a/packages/sheets/src/services/numfmt/numfmt.service.ts b/packages/sheets/src/services/numfmt/numfmt.service.tsindex b772a856ef..99ab7f3c65 100644--- a/packages/sheets/src/services/numfmt/numfmt.service.ts+++ b/packages/sheets/src/services/numfmt/numfmt.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Nullable, ObjectMatrixPrimitiveType, Workbook } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets/src/services/numfmt/type.ts b/packages/sheets/src/services/numfmt/type.tsindex 33d7d70bf0..cb0254f18f 100644--- a/packages/sheets/src/services/numfmt/type.ts+++ b/packages/sheets/src/services/numfmt/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, IRange, Nullable, ObjectMatrix, ObjectMatrixPrimitiveType, RefAlias } from '@univerjs/core';import { LifecycleStages, runOnLifecycle } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/permission/index.ts b/packages/sheets/src/services/permission/index.tsindex d37520e610..29737ad5a9 100644--- a/packages/sheets/src/services/permission/index.ts+++ b/packages/sheets/src/services/permission/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { SheetEditablePermission } from './permission-point';export { SheetPermissionService } from './sheet-permission.service';diff --git a/packages/sheets/src/services/permission/permission-point.ts b/packages/sheets/src/services/permission/permission-point.tsindex ee6472809b..5920b565d0 100644--- a/packages/sheets/src/services/permission/permission-point.ts+++ b/packages/sheets/src/services/permission/permission-point.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { PermissionPoint } from '@univerjs/core';const SheetEditablePermissionPoint = 'univer.sheet.editable';diff --git a/packages/sheets/src/services/permission/sheet-permission.service.ts b/packages/sheets/src/services/permission/sheet-permission.service.tsindex e785ecfd26..f95966ab00 100644--- a/packages/sheets/src/services/permission/sheet-permission.service.ts+++ b/packages/sheets/src/services/permission/sheet-permission.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { PermissionService } from '@univerjs/core';import {Disposable,diff --git a/packages/sheets/src/services/ref-range/__tests__/util.spec.ts b/packages/sheets/src/services/ref-range/__tests__/util.spec.tsindex f4e25e911f..b38b12a8e1 100644--- a/packages/sheets/src/services/ref-range/__tests__/util.spec.ts+++ b/packages/sheets/src/services/ref-range/__tests__/util.spec.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange } from '@univerjs/core';import { beforeEach, describe, expect, it } from 'vitest';diff --git a/packages/sheets/src/services/ref-range/__tests__/util.ts b/packages/sheets/src/services/ref-range/__tests__/util.tsindex f2cbb3c520..12b5f765b2 100644--- a/packages/sheets/src/services/ref-range/__tests__/util.ts+++ b/packages/sheets/src/services/ref-range/__tests__/util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/ref-range/ref-range.service.ts b/packages/sheets/src/services/ref-range/ref-range.service.tsindex f40d44c9d4..efda80b319 100644--- a/packages/sheets/src/services/ref-range/ref-range.service.ts+++ b/packages/sheets/src/services/ref-range/ref-range.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMutationInfo, IRange } from '@univerjs/core';import {createInterceptorKey,diff --git a/packages/sheets/src/services/ref-range/type.ts b/packages/sheets/src/services/ref-range/type.tsindex cfac8c5df1..7d68c9ea6b 100644--- a/packages/sheets/src/services/ref-range/type.ts+++ b/packages/sheets/src/services/ref-range/type.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICommandInfo, IRange } from '@univerjs/core';import type { IDeleteRangeMoveLeftCommandParams } from '../../commands/commands/delete-range-move-left.command';diff --git a/packages/sheets/src/services/ref-range/util.ts b/packages/sheets/src/services/ref-range/util.tsindex 718f08a244..987303b796 100644--- a/packages/sheets/src/services/ref-range/util.ts+++ b/packages/sheets/src/services/ref-range/util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Nullable } from '@univerjs/core';import { Rectangle } from '@univerjs/core';diff --git a/packages/sheets/src/services/selection-manager.service.ts b/packages/sheets/src/services/selection-manager.service.tsindex ed0550f7e3..ed3ce4ba56 100644--- a/packages/sheets/src/services/selection-manager.service.ts+++ b/packages/sheets/src/services/selection-manager.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { type IRange, type ISelectionCell, type Nullable, ThemeService } from '@univerjs/core';import { type IDisposable, Inject } from '@wendellhu/redi';import { BehaviorSubject, Subject } from 'rxjs';diff --git a/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts b/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.tsindex 5b726521b4..ae58d227a8 100644--- a/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts+++ b/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IWorkbookData } from '@univerjs/core';import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts b/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.tsindex a21661190d..cf5fb36521 100644--- a/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts+++ b/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellData, Nullable, Univer } from '@univerjs/core';import { createInterceptorKey, IUniverInstanceService } from '@univerjs/core';import type { Injector } from '@wendellhu/redi';diff --git a/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts b/packages/sheets/src/services/sheet-interceptor/interceptor-const.tsindex 8cb73011d8..dd5226ebcd 100644--- a/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts+++ b/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellDataForSheetInterceptor, ICommandInfo } from '@univerjs/core';import { createInterceptorKey } from '@univerjs/core';diff --git a/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts b/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.tsindex 5ece693f5b..e7a43ee8a9 100644--- a/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts+++ b/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {ICellData,ICommandInfo,diff --git a/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts b/packages/sheets/src/services/sheet-interceptor/utils/interceptor.tsindex 31245d2e52..7b196fbf9c 100644--- a/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts+++ b/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Workbook, Worksheet } from '@univerjs/core';export interface ISheetLocation {diff --git a/packages/sheets/src/sheets-plugin.ts b/packages/sheets/src/sheets-plugin.tsindex 2b38a75261..bef63fa02c 100644--- a/packages/sheets/src/sheets-plugin.ts+++ b/packages/sheets/src/sheets-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/slides-ui/src/basics/const/default-univer-slide-config.ts b/packages/slides-ui/src/basics/const/default-univer-slide-config.tsindex 782a76f76d..4a4c64eb7b 100644--- a/packages/slides-ui/src/basics/const/default-univer-slide-config.ts+++ b/packages/slides-ui/src/basics/const/default-univer-slide-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const DefaultToolbarConfig = {undo: true,redo: true, // Undo redodiff --git a/packages/slides-ui/src/basics/const/index.ts b/packages/slides-ui/src/basics/const/index.tsindex 0449b3ba1b..bf3e30efb5 100644--- a/packages/slides-ui/src/basics/const/index.ts+++ b/packages/slides-ui/src/basics/const/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './default-univer-slide-config';export * from './plugin-name';diff --git a/packages/slides-ui/src/basics/const/plugin-name.ts b/packages/slides-ui/src/basics/const/plugin-name.tsindex 9ee068a5a0..ccadb37791 100644--- a/packages/slides-ui/src/basics/const/plugin-name.ts+++ b/packages/slides-ui/src/basics/const/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const SLIDE_UI_PLUGIN_NAME = 'SlideUI';diff --git a/packages/slides-ui/src/basics/index.ts b/packages/slides-ui/src/basics/index.tsindex c6f20c3e48..9c53c04e2b 100644--- a/packages/slides-ui/src/basics/index.ts+++ b/packages/slides-ui/src/basics/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './const';export * from './interfaces';diff --git a/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.tsindex 84f8ff044e..5630b4dc1c 100644--- a/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts+++ b/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import type { SlideContainerConfig } from './slide-container-config';diff --git a/packages/slides-ui/src/basics/interfaces/component-config/index.ts b/packages/slides-ui/src/basics/interfaces/component-config/index.tsindex afd8120ab5..7b638dca4a 100644--- a/packages/slides-ui/src/basics/interfaces/component-config/index.ts+++ b/packages/slides-ui/src/basics/interfaces/component-config/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './i-slide-ui-plugin-config';export * from './toolbar-config';diff --git a/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.tsindex 6814da32df..8b28971b54 100644--- a/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts+++ b/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface SlideContainerConfig {outerLeft?: boolean;diff --git a/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.tsindex 3d818ef74e..b0b70d9724 100644--- a/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts+++ b/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts@@ -1,4 +1,19 @@-// sheet工具栏配置+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export interface SlideToolbarConfig {undo?: boolean; // Undo redoredo?: boolean; // Undo redodiff --git a/packages/slides-ui/src/basics/interfaces/index.ts b/packages/slides-ui/src/basics/interfaces/index.tsindex 79ccf90bfd..c1acc2d0d6 100644--- a/packages/slides-ui/src/basics/interfaces/index.ts+++ b/packages/slides-ui/src/basics/interfaces/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './component-config';diff --git a/packages/slides-ui/src/controllers/app-ui-controller.ts b/packages/slides-ui/src/controllers/app-ui-controller.tsindex 246ba5abbf..f577d7ceb9 100644--- a/packages/slides-ui/src/controllers/app-ui-controller.ts+++ b/packages/slides-ui/src/controllers/app-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import { LocaleService } from '@univerjs/core';import { ComponentManager } from '@univerjs/ui';diff --git a/packages/slides-ui/src/controllers/index.ts b/packages/slides-ui/src/controllers/index.tsindex b5e2eadefd..e595258fd3 100644--- a/packages/slides-ui/src/controllers/index.ts+++ b/packages/slides-ui/src/controllers/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './app-ui-controller';export * from './info-bar-ui-controller';export * from './slide-container-ui-controller';diff --git a/packages/slides-ui/src/controllers/info-bar-ui-controller.ts b/packages/slides-ui/src/controllers/info-bar-ui-controller.tsindex ce14e0a7fd..b098baebde 100644--- a/packages/slides-ui/src/controllers/info-bar-ui-controller.ts+++ b/packages/slides-ui/src/controllers/info-bar-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { InfoBarModel } from '../model/info-bar-model';import type { InfoBar } from '../views/info-bar';diff --git a/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts b/packages/slides-ui/src/controllers/slide-bar-ui-controller.tsindex d9eef46c4c..c7fdd77bf4 100644--- a/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts+++ b/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISlidePage } from '@univerjs/core';import { IUniverInstanceService } from '@univerjs/core';import { CanvasView } from '@univerjs/slides';diff --git a/packages/slides-ui/src/controllers/slide-container-ui-controller.ts b/packages/slides-ui/src/controllers/slide-container-ui-controller.tsindex 28173bb545..f9472d7303 100644--- a/packages/slides-ui/src/controllers/slide-container-ui-controller.ts+++ b/packages/slides-ui/src/controllers/slide-container-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { LocaleType } from '@univerjs/core';import { LocaleService } from '@univerjs/core';import { ComponentManager } from '@univerjs/ui';diff --git a/packages/slides-ui/src/controllers/slide-ui.controller.ts b/packages/slides-ui/src/controllers/slide-ui.controller.tsindex 7ed4c6f373..6800c2f583 100644--- a/packages/slides-ui/src/controllers/slide-ui.controller.ts+++ b/packages/slides-ui/src/controllers/slide-ui.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, LifecycleStages, OnLifecycle } from '@univerjs/core';import type { IDesktopUIController } from '@univerjs/ui';import { IUIController } from '@univerjs/ui';diff --git a/packages/slides-ui/src/controllers/toolbar-ui-controller.ts b/packages/slides-ui/src/controllers/toolbar-ui-controller.tsindex 5eb649229c..7b18f1c4d1 100644--- a/packages/slides-ui/src/controllers/toolbar-ui-controller.ts+++ b/packages/slides-ui/src/controllers/toolbar-ui-controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { HorizontalAlign, IKeyValue, UIObserver, VerticalAlign, WrapStrategy } from '@univerjs/core';import { BorderType, IUniverInstanceService, Tools } from '@univerjs/core';import { ColorPicker } from '@univerjs/design';diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.tsindex a5994fceb5..b18cb79e33 100644--- a/packages/slides-ui/src/index.ts+++ b/packages/slides-ui/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './basics';export * from './slides-ui-plugin';diff --git a/packages/slides-ui/src/locale/en-US.ts b/packages/slides-ui/src/locale/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/slides-ui/src/locale/en-US.ts+++ b/packages/slides-ui/src/locale/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/slides-ui/src/locale/index.ts b/packages/slides-ui/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/slides-ui/src/locale/index.ts+++ b/packages/slides-ui/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/slides-ui/src/locale/zh-CN.ts b/packages/slides-ui/src/locale/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/slides-ui/src/locale/zh-CN.ts+++ b/packages/slides-ui/src/locale/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/slides-ui/src/model/index.ts b/packages/slides-ui/src/model/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides-ui/src/model/info-bar-model.ts b/packages/slides-ui/src/model/info-bar-model.tsindex e9d969cf44..20b7a7380d 100644--- a/packages/slides-ui/src/model/info-bar-model.ts+++ b/packages/slides-ui/src/model/info-bar-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class InfoBarModel {constructor(private _name: string) {}diff --git a/packages/slides-ui/src/services/index.ts b/packages/slides-ui/src/services/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides-ui/src/slides-ui-plugin.ts b/packages/slides-ui/src/slides-ui-plugin.tsindex 187c89193f..27d2898988 100644--- a/packages/slides-ui/src/slides-ui-plugin.ts+++ b/packages/slides-ui/src/slides-ui-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService, LocaleService, Plugin, PluginType, Tools } from '@univerjs/core';import { ComponentManager } from '@univerjs/ui';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/slides-ui/src/types/index.d.ts b/packages/slides-ui/src/types/index.d.tsindex 9ecd9dee0c..0b5eafd001 100644--- a/packages/slides-ui/src/types/index.d.ts+++ b/packages/slides-ui/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/slides-ui' {}diff --git a/packages/slides-ui/src/views/info-bar/InfoBar.tsx b/packages/slides-ui/src/views/info-bar/InfoBar.tsxindex 92beb22ae0..df0a1a7b98 100644--- a/packages/slides-ui/src/views/info-bar/InfoBar.tsx+++ b/packages/slides-ui/src/views/info-bar/InfoBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { Container, Input, Tooltip } from '@univerjs/design';import type { BaseComponentProps } from '@univerjs/ui';diff --git a/packages/slides-ui/src/views/info-bar/index.ts b/packages/slides-ui/src/views/info-bar/index.tsindex 345955a1ce..76be62d035 100644--- a/packages/slides-ui/src/views/info-bar/index.ts+++ b/packages/slides-ui/src/views/info-bar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './InfoBar';diff --git a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx b/packages/slides-ui/src/views/slide-bar/SlideBar.tsxindex 548d25ea8d..1607230ec9 100644--- a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx+++ b/packages/slides-ui/src/views/slide-bar/SlideBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISlidePage } from '@univerjs/core';import type { BaseComponentProps } from '@univerjs/ui';import React, { Component, createRef } from 'react';diff --git a/packages/slides-ui/src/views/slide-container/SlideContainer.tsx b/packages/slides-ui/src/views/slide-container/SlideContainer.tsxindex 9cf25388d2..af99e7bfeb 100644--- a/packages/slides-ui/src/views/slide-container/SlideContainer.tsx+++ b/packages/slides-ui/src/views/slide-container/SlideContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { BaseComponentProps } from '@univerjs/ui';import React, { Component, createRef } from 'react';diff --git a/packages/slides-ui/src/views/slide-container/index.ts b/packages/slides-ui/src/views/slide-container/index.tsindex 9cee177d14..c3d0403e6b 100644--- a/packages/slides-ui/src/views/slide-container/index.ts+++ b/packages/slides-ui/src/views/slide-container/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './SlideContainer';diff --git a/packages/slides-ui/src/views/toolbar/DataBar.tsx b/packages/slides-ui/src/views/toolbar/DataBar.tsxindex f4c8a5ef03..3e4c553e4e 100644--- a/packages/slides-ui/src/views/toolbar/DataBar.tsx+++ b/packages/slides-ui/src/views/toolbar/DataBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import React from 'react';interface BarProps {diff --git a/packages/slides-ui/src/views/toolbar/Toolbar.tsx b/packages/slides-ui/src/views/toolbar/Toolbar.tsxindex 1b49dc679d..82805385a9 100644--- a/packages/slides-ui/src/views/toolbar/Toolbar.tsx+++ b/packages/slides-ui/src/views/toolbar/Toolbar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Button, Container, Tooltip } from '@univerjs/design';import type { BaseComponentProps } from '@univerjs/ui';import React, { Component, createRef } from 'react';diff --git a/packages/slides-ui/src/views/toolbar/const.ts b/packages/slides-ui/src/views/toolbar/const.tsindex 4e72dea985..ac9f12b291 100644--- a/packages/slides-ui/src/views/toolbar/const.ts+++ b/packages/slides-ui/src/views/toolbar/const.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BorderStyleTypes } from '@univerjs/core';export const FONT_FAMILY_CHILDREN = [diff --git a/packages/slides-ui/src/views/toolbar/index.ts b/packages/slides-ui/src/views/toolbar/index.tsindex 7c6430332b..9ddf47dfe3 100644--- a/packages/slides-ui/src/views/toolbar/index.ts+++ b/packages/slides-ui/src/views/toolbar/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './Toolbar';diff --git a/packages/slides/src/basics/const/index.ts b/packages/slides/src/basics/const/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/basics/const/plugin-name.ts b/packages/slides/src/basics/const/plugin-name.tsindex aecdecac81..9e6d40a48b 100644--- a/packages/slides/src/basics/const/plugin-name.ts+++ b/packages/slides/src/basics/const/plugin-name.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export const SLIDES_PLUGIN_NAME = 'slides';diff --git a/packages/slides/src/basics/demo-data.ts b/packages/slides/src/basics/demo-data.tsindex de198a9ed6..9a3bbf772a 100644--- a/packages/slides/src/basics/demo-data.ts+++ b/packages/slides/src/basics/demo-data.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDocumentData } from '@univerjs/core';import {BaselineOffset,diff --git a/packages/slides/src/basics/enum/index.ts b/packages/slides/src/basics/enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/basics/index.ts b/packages/slides/src/basics/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/basics/shared/index.ts b/packages/slides/src/basics/shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/index.ts b/packages/slides/src/index.tsindex 7c130ed66d..856000f029 100644--- a/packages/slides/src/index.ts+++ b/packages/slides/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './slides-plugin';export * from './views/render';diff --git a/packages/slides/src/locale/en-US.ts b/packages/slides/src/locale/en-US.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/slides/src/locale/en-US.ts+++ b/packages/slides/src/locale/en-US.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/slides/src/locale/index.ts b/packages/slides/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/slides/src/locale/index.ts+++ b/packages/slides/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/slides/src/locale/zh-CN.ts b/packages/slides/src/locale/zh-CN.tsindex ff8b4c5632..ef2cf5cf67 100644--- a/packages/slides/src/locale/zh-CN.ts+++ b/packages/slides/src/locale/zh-CN.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {};diff --git a/packages/slides/src/model/index.ts b/packages/slides/src/model/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/model/info-bar-model.ts b/packages/slides/src/model/info-bar-model.tsindex e9d969cf44..20b7a7380d 100644--- a/packages/slides/src/model/info-bar-model.ts+++ b/packages/slides/src/model/info-bar-model.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class InfoBarModel {constructor(private _name: string) {}diff --git a/packages/slides/src/model/toolbar-model.ts b/packages/slides/src/model/toolbar-model.tsindex 700a0e61f1..549606a485 100644--- a/packages/slides/src/model/toolbar-model.ts+++ b/packages/slides/src/model/toolbar-model.ts@@ -1,5 +1,18 @@-// import { BaseSelectChildrenProps, IBaseSelectProps } from '../views/ui/common/select/select';-// import { BaseTextButtonProps } from '../views/ui/common/text-button/text-button';+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */// export interface IShowToolbarConfig {// undoRedo?: boolean; // Undo redodiff --git a/packages/slides/src/services/index.ts b/packages/slides/src/services/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/slides/src/slides-plugin.ts b/packages/slides/src/slides-plugin.tsindex 3e953a1d01..38c20e8b5d 100644--- a/packages/slides/src/slides-plugin.ts+++ b/packages/slides/src/slides-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Engine } from '@univerjs/engine-render';import { IRenderingEngine } from '@univerjs/engine-render';diff --git a/packages/slides/src/types/index.d.ts b/packages/slides/src/types/index.d.tsindex 996fd94c31..0f8ad6d438 100644--- a/packages/slides/src/types/index.d.ts+++ b/packages/slides/src/types/index.d.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from '../index';declare module '@univerjs/slides' {}diff --git a/packages/slides/src/views/render/adaptor.ts b/packages/slides/src/views/render/adaptor.tsindex da05d05159..9957f42c6c 100644--- a/packages/slides/src/views/render/adaptor.ts+++ b/packages/slides/src/views/render/adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPageElement, PageElementType } from '@univerjs/core';import { Registry } from '@univerjs/core';import type { Scene } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/docs-adaptor.ts b/packages/slides/src/views/render/adaptors/docs-adaptor.tsindex ef6cba106f..5b1df5b614 100644--- a/packages/slides/src/views/render/adaptors/docs-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/docs-adaptor.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IPageElement } from '@univerjs/core';import { DocumentDataModel, LocaleService, PageElementType } from '@univerjs/core';import type { BaseObject, IDocumentSkeletonDrawing, IPageRenderConfig, IWheelEvent } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/image-adaptor.ts b/packages/slides/src/views/render/adaptors/image-adaptor.tsindex 29db7750ca..c99a96dbc4 100644--- a/packages/slides/src/views/render/adaptors/image-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/image-adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPageElement } from '@univerjs/core';import { PageElementType } from '@univerjs/core';import { Picture } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/index.ts b/packages/slides/src/views/render/adaptors/index.tsindex ad4805c756..4b82df2f5c 100644--- a/packages/slides/src/views/render/adaptors/index.ts+++ b/packages/slides/src/views/render/adaptors/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './docs-adaptor';export * from './image-adaptor';export * from './rich-text-adaptor';diff --git a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts b/packages/slides/src/views/render/adaptors/rich-text-adaptor.tsindex 58203ecd43..39eaf6eecd 100644--- a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPageElement } from '@univerjs/core';import { LocaleService, PageElementType } from '@univerjs/core';import type { IRichTextProps, Scene } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/shape-adaptor.ts b/packages/slides/src/views/render/adaptors/shape-adaptor.tsindex 777fc7d37b..4266b75140 100644--- a/packages/slides/src/views/render/adaptors/shape-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/shape-adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IPageElement } from '@univerjs/core';import { getColorStyle, PageElementType, ShapeType } from '@univerjs/core';import { Rect } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/slide-adaptor.ts b/packages/slides/src/views/render/adaptors/slide-adaptor.tsindex 20bf67bc57..6825cd24e7 100644--- a/packages/slides/src/views/render/adaptors/slide-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/slide-adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IColorStyle, IPageElement, ISlidePage } from '@univerjs/core';import { getColorStyle, PageElementType, Slide as SlideM } from '@univerjs/core';import type { Engine } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts b/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.tsindex 491ec736c8..86383ffe5b 100644--- a/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, ICellData, IPageElement } from '@univerjs/core';import { LocaleService, ObjectMatrix, PageElementType, Styles } from '@univerjs/core';import type { IScrollObserverParam, IWheelEvent } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/canvas-view.ts b/packages/slides/src/views/render/canvas-view.tsindex 6d0dd0213f..2bbec7be65 100644--- a/packages/slides/src/views/render/canvas-view.ts+++ b/packages/slides/src/views/render/canvas-view.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { EventState, IColorStyle, ISlidePage, Nullable } from '@univerjs/core';import { getColorStyle, IUniverInstanceService } from '@univerjs/core';import type { IWheelEvent, RenderManagerService } from '@univerjs/engine-render';diff --git a/packages/slides/src/views/render/index.ts b/packages/slides/src/views/render/index.tsindex cea5f3faab..c339d7b272 100644--- a/packages/slides/src/views/render/index.ts+++ b/packages/slides/src/views/render/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './canvas-view';diff --git a/packages/slides/src/views/render/object-provider.ts b/packages/slides/src/views/render/object-provider.tsindex 3f80816031..5927883384 100644--- a/packages/slides/src/views/render/object-provider.ts+++ b/packages/slides/src/views/render/object-provider.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import './adaptors';import type { IPageElement } from '@univerjs/core';diff --git a/packages/ui/src/BaseComponent.ts b/packages/ui/src/BaseComponent.tsindex f95ff993c0..ba828e8f5f 100644--- a/packages/ui/src/BaseComponent.ts+++ b/packages/ui/src/BaseComponent.ts@@ -1,6 +1,19 @@/**- * @deprecated+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.*/+export interface BaseComponentProps {getComponent?: (ref: any) => void; //获取自身组件id?: string; // 组件iddiff --git a/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts b/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.tsindex 01d7af14c2..006c170ba9 100644--- a/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts+++ b/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';diff --git a/packages/ui/src/common/component-manager.ts b/packages/ui/src/common/component-manager.tsindex ad815797ac..06d0dccceb 100644--- a/packages/ui/src/common/component-manager.ts+++ b/packages/ui/src/common/component-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import {AdjustHeight,diff --git a/packages/ui/src/common/index.ts b/packages/ui/src/common/index.tsindex d4df12b99c..a58a6e53c5 100644--- a/packages/ui/src/common/index.ts+++ b/packages/ui/src/common/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './component-manager';export * from './z-index-manager';diff --git a/packages/ui/src/common/lifecycle.ts b/packages/ui/src/common/lifecycle.tsindex 17bdd9f8e0..9c5d26f473 100644--- a/packages/ui/src/common/lifecycle.ts+++ b/packages/ui/src/common/lifecycle.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/ui/src/common/z-index-manager.ts b/packages/ui/src/common/z-index-manager.tsindex c4a8fe41d5..7620c448be 100644--- a/packages/ui/src/common/z-index-manager.ts+++ b/packages/ui/src/common/z-index-manager.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export class ZIndexManager {private _list: Map<string, number> = new Map();diff --git a/packages/ui/src/components/custom-label/CustomLabel.tsx b/packages/ui/src/components/custom-label/CustomLabel.tsxindex 6c2615454f..e507204544 100644--- a/packages/ui/src/components/custom-label/CustomLabel.tsx+++ b/packages/ui/src/components/custom-label/CustomLabel.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { TinyColor } from '@ctrl/tinycolor';import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/ui/src/components/custom-label/index.ts b/packages/ui/src/components/custom-label/index.tsindex 4f5055db8e..90dacd8422 100644--- a/packages/ui/src/components/custom-label/index.ts+++ b/packages/ui/src/components/custom-label/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './CustomLabel';diff --git a/packages/ui/src/components/hooks/observable.ts b/packages/ui/src/components/hooks/observable.tsindex 34139bb0f8..ade7a88f0b 100644--- a/packages/ui/src/components/hooks/observable.ts+++ b/packages/ui/src/components/hooks/observable.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type React from 'react';import { useRef, useState } from 'react';import type { Observable, Subscription } from 'rxjs';diff --git a/packages/ui/src/components/index.ts b/packages/ui/src/components/index.tsindex 62db8296f8..0c33ac835f 100644--- a/packages/ui/src/components/index.ts+++ b/packages/ui/src/components/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './custom-label';export * from './menu';diff --git a/packages/ui/src/components/menu/Menu.tsx b/packages/ui/src/components/menu/Menu.tsxindex 933e54c8d3..36caacfb04 100644--- a/packages/ui/src/components/menu/Menu.tsx+++ b/packages/ui/src/components/menu/Menu.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { isRealNum } from '@univerjs/core';import {Menu as DesignMenu,diff --git a/packages/ui/src/components/menu/index.ts b/packages/ui/src/components/menu/index.tsindex 629d3d0aa1..d9ebfd5a5f 100644--- a/packages/ui/src/components/menu/index.ts+++ b/packages/ui/src/components/menu/index.ts@@ -1 +1,17 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './Menu';diff --git a/packages/ui/src/components/notification/Notification.stories.tsx b/packages/ui/src/components/notification/Notification.stories.tsxindex a62a4a6ddd..69e6b865bd 100644--- a/packages/ui/src/components/notification/Notification.stories.tsx+++ b/packages/ui/src/components/notification/Notification.stories.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Meta } from '@storybook/react';import { Button } from '@univerjs/design';import React from 'react';diff --git a/packages/ui/src/components/notification/Notification.tsx b/packages/ui/src/components/notification/Notification.tsxindex f3e928b206..04f21c33ec 100644--- a/packages/ui/src/components/notification/Notification.tsx+++ b/packages/ui/src/components/notification/Notification.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ConfigContext } from '@univerjs/design';import { CloseSingle, ErrorSingle, SuccessSingle, WarningSingle } from '@univerjs/icons';import clsx from 'clsx';diff --git a/packages/ui/src/controllers/error/error.controller.ts b/packages/ui/src/controllers/error/error.controller.tsindex a7a4c6fae9..e4b3d5705c 100644--- a/packages/ui/src/controllers/error/error.controller.ts+++ b/packages/ui/src/controllers/error/error.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ErrorService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';import { MessageType } from '@univerjs/design';import { Inject } from '@wendellhu/redi';diff --git a/packages/ui/src/controllers/menus/menus.ts b/packages/ui/src/controllers/menus/menus.tsindex 33bce02dca..a0cc22d013 100644--- a/packages/ui/src/controllers/menus/menus.ts+++ b/packages/ui/src/controllers/menus/menus.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUndoRedoService, RedoCommand, UndoCommand } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';import { map } from 'rxjs/operators';diff --git a/packages/ui/src/controllers/shared-shortcut.controller.ts b/packages/ui/src/controllers/shared-shortcut.controller.tsindex 703e00c3a7..62956a2a63 100644--- a/packages/ui/src/controllers/shared-shortcut.controller.ts+++ b/packages/ui/src/controllers/shared-shortcut.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle, RedoCommand, UndoCommand } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/ui/src/controllers/shortcut-display/menu.ts b/packages/ui/src/controllers/shortcut-display/menu.tsindex ff0b1ae0a6..c0f8a6fe8c 100644--- a/packages/ui/src/controllers/shortcut-display/menu.ts+++ b/packages/ui/src/controllers/shortcut-display/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ToggleShortcutPanelOperation } from '../../commands/operations/toggle-shortcut-panel.operation';import type { IMenuButtonItem } from '../../services/menu/menu';import { MenuItemType, MenuPosition } from '../../services/menu/menu';diff --git a/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts b/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.tsindex 67b4d9e9ba..6492e3f7e2 100644--- a/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts+++ b/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { Inject } from '@wendellhu/redi';diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsxindex 59109c261e..cda756a1c5 100644--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, LifecycleService, LifecycleStages, toDisposable } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/ui/src/controllers/ui/ui.controller.ts b/packages/ui/src/controllers/ui/ui.controller.tsindex 51a438051e..0a3119cc37 100644--- a/packages/ui/src/controllers/ui/ui.controller.ts+++ b/packages/ui/src/controllers/ui/ui.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';export interface IWorkbenchOptions {diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex 9bb010b3c2..076659ee0f 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './BaseComponent';export * from './common';export * from './components';diff --git a/packages/ui/src/locale/en-US.ts b/packages/ui/src/locale/en-US.tsindex ea496335ba..c4ed639a78 100644--- a/packages/ui/src/locale/en-US.ts+++ b/packages/ui/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {uiToolbar: {start: 'Start',diff --git a/packages/ui/src/locale/index.ts b/packages/ui/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/ui/src/locale/index.ts+++ b/packages/ui/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/ui/src/locale/zh-CN.ts b/packages/ui/src/locale/zh-CN.tsindex 65871b15e0..ee2ae81849 100644--- a/packages/ui/src/locale/zh-CN.ts+++ b/packages/ui/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {uiToolbar: {start: '开始',diff --git a/packages/ui/src/services/before-close/before-close.service.ts b/packages/ui/src/services/before-close/before-close.service.tsindex 6b2dc5fe92..1b53052bab 100644--- a/packages/ui/src/services/before-close/before-close.service.ts+++ b/packages/ui/src/services/before-close/before-close.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/clipboard/clipboard-interface.service.ts b/packages/ui/src/services/clipboard/clipboard-interface.service.tsindex 80cec77ceb..b66d8376c1 100644--- a/packages/ui/src/services/clipboard/clipboard-interface.service.ts+++ b/packages/ui/src/services/clipboard/clipboard-interface.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/clipboard/clipboard.command.ts b/packages/ui/src/services/clipboard/clipboard.command.tsindex 636e6a7b59..b05be849d7 100644--- a/packages/ui/src/services/clipboard/clipboard.command.ts+++ b/packages/ui/src/services/clipboard/clipboard.command.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMultiCommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';diff --git a/packages/ui/src/services/confirm/confirm.service.ts b/packages/ui/src/services/confirm/confirm.service.tsindex 35761f816b..4ca2cce834 100644--- a/packages/ui/src/services/confirm/confirm.service.ts+++ b/packages/ui/src/services/confirm/confirm.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import { type Subject } from 'rxjs';diff --git a/packages/ui/src/services/confirm/desktop-confirm.service.ts b/packages/ui/src/services/confirm/desktop-confirm.service.tsindex 4f0f03a4bc..b5523891d3 100644--- a/packages/ui/src/services/confirm/desktop-confirm.service.ts+++ b/packages/ui/src/services/confirm/desktop-confirm.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { Subject } from 'rxjs';diff --git a/packages/ui/src/services/contextmenu/contextmenu.service.ts b/packages/ui/src/services/contextmenu/contextmenu.service.tsindex 55bf784e49..bde9de78d8 100644--- a/packages/ui/src/services/contextmenu/contextmenu.service.ts+++ b/packages/ui/src/services/contextmenu/contextmenu.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, toDisposable } from '@univerjs/core';import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/ui/src/services/dialog/desktop-dialog.service.ts b/packages/ui/src/services/dialog/desktop-dialog.service.tsindex 2637d20989..923e25ee9b 100644--- a/packages/ui/src/services/dialog/desktop-dialog.service.ts+++ b/packages/ui/src/services/dialog/desktop-dialog.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { Subject } from 'rxjs';diff --git a/packages/ui/src/services/dialog/dialog.service.ts b/packages/ui/src/services/dialog/dialog.service.tsindex 0ad5258418..dec1a9cd92 100644--- a/packages/ui/src/services/dialog/dialog.service.ts+++ b/packages/ui/src/services/dialog/dialog.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import { type Subject } from 'rxjs';diff --git a/packages/ui/src/services/focus/focus.service.ts b/packages/ui/src/services/focus/focus.service.tsindex f6150ab22e..8214663169 100644--- a/packages/ui/src/services/focus/focus.service.ts+++ b/packages/ui/src/services/focus/focus.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ContextService } from '@univerjs/core';import { Disposable, IContextService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/local-storage/local-storage.service.ts b/packages/ui/src/services/local-storage/local-storage.service.tsindex 71598cd640..4bf9cd9921 100644--- a/packages/ui/src/services/local-storage/local-storage.service.ts+++ b/packages/ui/src/services/local-storage/local-storage.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ILocalStorageService } from '@univerjs/core';import localforage from 'localforage';diff --git a/packages/ui/src/services/menu/menu.service.ts b/packages/ui/src/services/menu/menu.service.tsindex d20f8c4496..754933e499 100644--- a/packages/ui/src/services/menu/menu.service.ts+++ b/packages/ui/src/services/menu/menu.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/menu/menu.ts b/packages/ui/src/services/menu/menu.tsindex e5cd156894..c437feecff 100644--- a/packages/ui/src/services/menu/menu.ts+++ b/packages/ui/src/services/menu/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IAccessor } from '@wendellhu/redi';import type { Observable } from 'rxjs';diff --git a/packages/ui/src/services/message/desktop-message.service.ts b/packages/ui/src/services/message/desktop-message.service.tsindex e9c68f3ae7..af061b22ab 100644--- a/packages/ui/src/services/message/desktop-message.service.ts+++ b/packages/ui/src/services/message/desktop-message.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IMessageMethodOptions, IMessageProps } from '@univerjs/design';import { Message } from '@univerjs/design';diff --git a/packages/ui/src/services/message/message.service.ts b/packages/ui/src/services/message/message.service.tsindex b37de22943..0d869b3bbf 100644--- a/packages/ui/src/services/message/message.service.ts+++ b/packages/ui/src/services/message/message.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMessageMethodOptions, IMessageProps } from '@univerjs/design';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/notification/desktop-notification.service.ts b/packages/ui/src/services/notification/desktop-notification.service.tsindex 07f447fa29..6dd1344d2d 100644--- a/packages/ui/src/services/notification/desktop-notification.service.ts+++ b/packages/ui/src/services/notification/desktop-notification.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/ui/src/services/notification/notification.service.ts b/packages/ui/src/services/notification/notification.service.tsindex d2f7693eab..65ae7b5171 100644--- a/packages/ui/src/services/notification/notification.service.ts+++ b/packages/ui/src/services/notification/notification.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/platform/platform.service.ts b/packages/ui/src/services/platform/platform.service.tsindex d95eda9aeb..3f9b3f8c96 100644--- a/packages/ui/src/services/platform/platform.service.ts+++ b/packages/ui/src/services/platform/platform.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { createIdentifier } from '@wendellhu/redi';/**diff --git a/packages/ui/src/services/shortcut/keycode.ts b/packages/ui/src/services/shortcut/keycode.tsindex a363f8ed76..2c5033714b 100644--- a/packages/ui/src/services/shortcut/keycode.ts+++ b/packages/ui/src/services/shortcut/keycode.ts@@ -1,4 +1,19 @@-/* eslint-disable no-magic-numbers */+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+// Useful keyboard event inspection tool https://www.toptal.com/developers/keycodeexport const KeyCodeToChar: { [key: number]: string } = {diff --git a/packages/ui/src/services/shortcut/shortcut-experience.service.ts b/packages/ui/src/services/shortcut/shortcut-experience.service.tsindex c9e0364c48..4515ebac6a 100644--- a/packages/ui/src/services/shortcut/shortcut-experience.service.ts+++ b/packages/ui/src/services/shortcut/shortcut-experience.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ISelection, ITextRangeParam, Nullable } from '@univerjs/core';import { IUniverInstanceService, LocaleService } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/ui/src/services/shortcut/shortcut-panel.service.ts b/packages/ui/src/services/shortcut/shortcut-panel.service.tsindex 2a028627ef..00578ba2bd 100644--- a/packages/ui/src/services/shortcut/shortcut-panel.service.ts+++ b/packages/ui/src/services/shortcut/shortcut-panel.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import { BehaviorSubject, distinctUntilChanged } from 'rxjs';diff --git a/packages/ui/src/services/shortcut/shortcut.service.ts b/packages/ui/src/services/shortcut/shortcut.service.tsindex 49dddfe281..3e4c539f58 100644--- a/packages/ui/src/services/shortcut/shortcut.service.ts+++ b/packages/ui/src/services/shortcut/shortcut.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, IContextService, toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';diff --git a/packages/ui/src/services/sidebar/desktop-sidebar.service.ts b/packages/ui/src/services/sidebar/desktop-sidebar.service.tsindex a912a48dfa..19dd3d0c4d 100644--- a/packages/ui/src/services/sidebar/desktop-sidebar.service.ts+++ b/packages/ui/src/services/sidebar/desktop-sidebar.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { toDisposable } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';import { Subject } from 'rxjs';diff --git a/packages/ui/src/services/sidebar/sidebar.service.ts b/packages/ui/src/services/sidebar/sidebar.service.tsindex e2968cca2d..08318b99ae 100644--- a/packages/ui/src/services/sidebar/sidebar.service.ts+++ b/packages/ui/src/services/sidebar/sidebar.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDisposable } from '@wendellhu/redi';import { createIdentifier } from '@wendellhu/redi';import type { Subject } from 'rxjs';diff --git a/packages/ui/src/ui-plugin.ts b/packages/ui/src/ui-plugin.tsindex 7f97b790b7..93d63a8818 100644--- a/packages/ui/src/ui-plugin.ts+++ b/packages/ui/src/ui-plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ILocalStorageService, LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/ui/src/utils/cell.ts b/packages/ui/src/utils/cell.tsindex 266fa3fc1b..71a8602683 100644--- a/packages/ui/src/utils/cell.ts+++ b/packages/ui/src/utils/cell.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type {IBorderData,ICellData,diff --git a/packages/ui/src/utils/index.ts b/packages/ui/src/utils/index.tsindex cd5f681250..6b52071ad0 100644--- a/packages/ui/src/utils/index.ts+++ b/packages/ui/src/utils/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export * from './cell';export * from './util';diff --git a/packages/ui/src/utils/util.ts b/packages/ui/src/utils/util.tsindex 5b25391365..7a9ac7df4d 100644--- a/packages/ui/src/utils/util.ts+++ b/packages/ui/src/utils/util.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export function textTrim(x: string): string {if (x.length === 0) {// if (x == null || x.length == 0) {diff --git a/packages/ui/src/views/App.tsx b/packages/ui/src/views/App.tsxindex 9e14fe3f46..73829baf51 100644--- a/packages/ui/src/views/App.tsx+++ b/packages/ui/src/views/App.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService, ThemeService } from '@univerjs/core';import type { ILocale } from '@univerjs/design';import { ConfigProvider, defaultTheme, themeInstance } from '@univerjs/design';diff --git a/packages/ui/src/views/components/ComponentContainer.tsx b/packages/ui/src/views/components/ComponentContainer.tsxindex dde97eab33..fa6baa4438 100644--- a/packages/ui/src/views/components/ComponentContainer.tsx+++ b/packages/ui/src/views/components/ComponentContainer.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ComponentType } from 'react';import React from 'react';diff --git a/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx b/packages/ui/src/views/components/confirm-part/ConfirmPart.tsxindex 4bdad2c9e8..a9ad98af8b 100644--- a/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx+++ b/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IConfirmProps } from '@univerjs/design';import { Confirm } from '@univerjs/design';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/ui/src/views/components/confirm-part/interface.ts b/packages/ui/src/views/components/confirm-part/interface.tsindex 7a25defaff..659d52aa72 100644--- a/packages/ui/src/views/components/confirm-part/interface.ts+++ b/packages/ui/src/views/components/confirm-part/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IConfirmProps } from '@univerjs/design';import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';diff --git a/packages/ui/src/views/components/context-menu/ContextMenu.tsx b/packages/ui/src/views/components/context-menu/ContextMenu.tsxindex 6c8b7d78bb..3db7132847 100644--- a/packages/ui/src/views/components/context-menu/ContextMenu.tsx+++ b/packages/ui/src/views/components/context-menu/ContextMenu.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService } from '@univerjs/core';import { Popup } from '@univerjs/design';import type { IMouseEvent } from '@univerjs/engine-render';diff --git a/packages/ui/src/views/components/dialog-part/DialogPart.tsx b/packages/ui/src/views/components/dialog-part/DialogPart.tsxindex 41e522d2c9..bb0f55989e 100644--- a/packages/ui/src/views/components/dialog-part/DialogPart.tsx+++ b/packages/ui/src/views/components/dialog-part/DialogPart.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDialogProps } from '@univerjs/design';import { Dialog } from '@univerjs/design';import { useDependency } from '@wendellhu/redi/react-bindings';diff --git a/packages/ui/src/views/components/dialog-part/interface.ts b/packages/ui/src/views/components/dialog-part/interface.tsindex 9cf8479aa6..6f159a27e3 100644--- a/packages/ui/src/views/components/dialog-part/interface.ts+++ b/packages/ui/src/views/components/dialog-part/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IDialogProps } from '@univerjs/design';import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';diff --git a/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx b/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsxindex 4f872d6f09..a542737b62 100644--- a/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx+++ b/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import clsx from 'clsx';import React from 'react';diff --git a/packages/ui/src/views/components/doc-bars/MenuBar.tsx b/packages/ui/src/views/components/doc-bars/MenuBar.tsxindex 244388dcc6..39c325544f 100644--- a/packages/ui/src/views/components/doc-bars/MenuBar.tsx+++ b/packages/ui/src/views/components/doc-bars/MenuBar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import clsx from 'clsx';diff --git a/packages/ui/src/views/components/doc-bars/Toolbar.tsx b/packages/ui/src/views/components/doc-bars/Toolbar.tsxindex b2fb19a8f4..6a84841777 100644--- a/packages/ui/src/views/components/doc-bars/Toolbar.tsx+++ b/packages/ui/src/views/components/doc-bars/Toolbar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';diff --git a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsxindex c120a2eb0e..11701ac933 100644--- a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx+++ b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { ICommandService, LocaleService } from '@univerjs/core';import { Dropdown, Tooltip } from '@univerjs/design';import { MoreDownSingle } from '@univerjs/icons';diff --git a/packages/ui/src/views/components/doc-bars/hooks/menu.ts b/packages/ui/src/views/components/doc-bars/hooks/menu.tsindex 71d13732bf..df1b712a4a 100644--- a/packages/ui/src/views/components/doc-bars/hooks/menu.ts+++ b/packages/ui/src/views/components/doc-bars/hooks/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { BehaviorSubject } from 'rxjs';import type { IDisplayMenuItem, IMenuItem } from '../../../../services/menu/menu';diff --git a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsxindex fe197739c8..eced5522cb 100644--- a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx+++ b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useCallback, useEffect } from 'react';diff --git a/packages/ui/src/views/components/sidebar/Sidebar.tsx b/packages/ui/src/views/components/sidebar/Sidebar.tsxindex a685785366..c26c954c96 100644--- a/packages/ui/src/views/components/sidebar/Sidebar.tsx+++ b/packages/ui/src/views/components/sidebar/Sidebar.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { CloseSingle } from '@univerjs/icons';import { useDependency } from '@wendellhu/redi/react-bindings';import clsx from 'clsx';diff --git a/packages/ui/src/views/components/sidebar/interface.ts b/packages/ui/src/views/components/sidebar/interface.tsindex b0eba83789..3858155007 100644--- a/packages/ui/src/views/components/sidebar/interface.ts+++ b/packages/ui/src/views/components/sidebar/interface.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';export interface ISidebarMethodOptions {diff --git a/packages/ui/src/views/parts.ts b/packages/ui/src/views/parts.tsindex 037723e4a3..1f69f438a2 100644--- a/packages/ui/src/views/parts.ts+++ b/packages/ui/src/views/parts.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ComponentType } from 'react';import { Notification } from '../components/notification/Notification';diff --git a/packages/uniscript/src/commands/operations/panel.operation.ts b/packages/uniscript/src/commands/operations/panel.operation.tsindex 3323f07ddc..4f3da24de6 100644--- a/packages/uniscript/src/commands/operations/panel.operation.ts+++ b/packages/uniscript/src/commands/operations/panel.operation.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { ISidebarService } from '@univerjs/ui';diff --git a/packages/uniscript/src/controllers/menu.ts b/packages/uniscript/src/controllers/menu.tsindex f23748dd6f..55efefa61a 100644--- a/packages/uniscript/src/controllers/menu.ts+++ b/packages/uniscript/src/controllers/menu.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IMenuButtonItem } from '@univerjs/ui';import { MenuItemType, MenuPosition } from '@univerjs/ui';diff --git a/packages/uniscript/src/controllers/uniscript.controller.ts b/packages/uniscript/src/controllers/uniscript.controller.tsindex 44f95a7722..3f86f49ef9 100644--- a/packages/uniscript/src/controllers/uniscript.controller.ts+++ b/packages/uniscript/src/controllers/uniscript.controller.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { ComponentManager, IMenuService } from '@univerjs/ui';import { Inject } from '@wendellhu/redi';diff --git a/packages/uniscript/src/facade/facade.ts b/packages/uniscript/src/facade/facade.tsindex 4ca7139975..0ea5353278 100644--- a/packages/uniscript/src/facade/facade.ts+++ b/packages/uniscript/src/facade/facade.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { IUniverInstanceService } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/facade/sheet/f-range.ts b/packages/uniscript/src/facade/sheet/f-range.tsindex 168f4e1383..bf57af181e 100644--- a/packages/uniscript/src/facade/sheet/f-range.ts+++ b/packages/uniscript/src/facade/sheet/f-range.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { ICellV, IColorStyle, IRange, Workbook, Worksheet } from '@univerjs/core';import { ICommandService } from '@univerjs/core';import type { ISetStyleCommandParams } from '@univerjs/sheets';diff --git a/packages/uniscript/src/facade/sheet/f-selection.ts b/packages/uniscript/src/facade/sheet/f-selection.tsindex eae3e66e31..6ebef1da68 100644--- a/packages/uniscript/src/facade/sheet/f-selection.ts+++ b/packages/uniscript/src/facade/sheet/f-selection.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Workbook, Worksheet } from '@univerjs/core';import type { ISelectionWithStyle } from '@univerjs/sheets';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/facade/sheet/f-workbook.ts b/packages/uniscript/src/facade/sheet/f-workbook.tsindex 0dd1645109..4a3e16d6b0 100644--- a/packages/uniscript/src/facade/sheet/f-workbook.ts+++ b/packages/uniscript/src/facade/sheet/f-workbook.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Workbook } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/facade/sheet/f-worksheet.ts b/packages/uniscript/src/facade/sheet/f-worksheet.tsindex bde1071b2f..120d072e69 100644--- a/packages/uniscript/src/facade/sheet/f-worksheet.ts+++ b/packages/uniscript/src/facade/sheet/f-worksheet.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { IRange, Workbook, Worksheet } from '@univerjs/core';import { SelectionManagerService } from '@univerjs/sheets';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.tsindex 017417f26e..ad6c88fd10 100644--- a/packages/uniscript/src/index.ts+++ b/packages/uniscript/src/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { enUS, zhCN } from './locale';export { type IUniscriptConfig, UniverUniscript } from './plugin';diff --git a/packages/uniscript/src/locale/en-US.ts b/packages/uniscript/src/locale/en-US.tsindex 2e3e495243..2848db5910 100644--- a/packages/uniscript/src/locale/en-US.ts+++ b/packages/uniscript/src/locale/en-US.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {'script-panel': {title: 'Uniscript',diff --git a/packages/uniscript/src/locale/index.ts b/packages/uniscript/src/locale/index.tsindex b0b1d48d5d..ac8ca08af1 100644--- a/packages/uniscript/src/locale/index.ts+++ b/packages/uniscript/src/locale/index.ts@@ -1,2 +1,18 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export { default as enUS } from './en-US';export { default as zhCN } from './zh-CN';diff --git a/packages/uniscript/src/locale/zh-CN.ts b/packages/uniscript/src/locale/zh-CN.tsindex 5fe2f12573..07e0373a7f 100644--- a/packages/uniscript/src/locale/zh-CN.ts+++ b/packages/uniscript/src/locale/zh-CN.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+export default {'script-panel': {title: 'Uniscript',diff --git a/packages/uniscript/src/models/model.ts b/packages/uniscript/src/models/model.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/uniscript/src/plugin.ts b/packages/uniscript/src/plugin.tsindex 188f3fc1ac..b74ecf4229 100644--- a/packages/uniscript/src/plugin.ts+++ b/packages/uniscript/src/plugin.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { LocaleService, Plugin, PluginType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/services/command/batch-command.service.ts b/packages/uniscript/src/services/command/batch-command.service.tsindex dcc385dac7..6106a60553 100644--- a/packages/uniscript/src/services/command/batch-command.service.ts+++ b/packages/uniscript/src/services/command/batch-command.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { CommandListener, ICommand, ICommandService, IExecutionOptions } from '@univerjs/core';import type { IDisposable } from '@wendellhu/redi';diff --git a/packages/uniscript/src/services/script-editor.service.ts b/packages/uniscript/src/services/script-editor.service.tsindex d93560b44c..22e1086448 100644--- a/packages/uniscript/src/services/script-editor.service.ts+++ b/packages/uniscript/src/services/script-editor.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';export interface IScriptEditorServiceConfig {diff --git a/packages/uniscript/src/services/script-execution.service.ts b/packages/uniscript/src/services/script-execution.service.tsindex d5fda82c6f..7f344cfe99 100644--- a/packages/uniscript/src/services/script-execution.service.ts+++ b/packages/uniscript/src/services/script-execution.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable, ILogService } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';diff --git a/packages/uniscript/src/services/script-panel.service.ts b/packages/uniscript/src/services/script-panel.service.tsindex c56ecaed5e..92be01612f 100644--- a/packages/uniscript/src/services/script-panel.service.ts+++ b/packages/uniscript/src/services/script-panel.service.ts@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import { Disposable } from '@univerjs/core';import { BehaviorSubject, distinctUntilChanged } from 'rxjs';diff --git a/packages/uniscript/src/views/components/ScriptEditorPanel.tsx b/packages/uniscript/src/views/components/ScriptEditorPanel.tsxindex ab198f8d94..ff252a1f4a 100644--- a/packages/uniscript/src/views/components/ScriptEditorPanel.tsx+++ b/packages/uniscript/src/views/components/ScriptEditorPanel.tsx@@ -1,3 +1,19 @@+/**+ * Copyright 2023 DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+import type { Nullable } from '@univerjs/core';import { DisposableCollection, LocaleService, toDisposable } from '@univerjs/core';import { Button, MessageType } from '@univerjs/design';diff --git a/packages/uniscript/src/views/parts/render.part.ts b/packages/uniscript/src/views/parts/render.part.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex afdd9e896b..fac653725e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -77,6 +77,9 @@ importers:eslint-import-resolver-typescript:specifier: ^3.6.1+ eslint-plugin-header:+ specifier: ~3.1.1+ version: 3.1.1([email protected])eslint-plugin-import-newlines:specifier: ^1.3.4version: 1.3.4([email protected])@@ -10744,6 +10747,14 @@ packages:- supports-colordev: true+ resolution: {integrity: sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==}+ peerDependencies:+ eslint: '>=7.7.0'+ dependencies:+ eslint: 8.55.0+ dev: true+resolution: {integrity: sha512-Lmf/BbK+EQKUfjKPcZpslE/KTGYlgaI8ZJ/sYzdbb3BVTg5+GmLBLHBjsUKNEVRM1SEhDTF/didtOSYKi4tSnQ==}engines: {node: '>=10.0.0'}