100 Commits
Author SHA1 Message Date
Wenzhao Hu 9c8f2ed8f4 docs: add dependency injection token naming convention 2024-03-13 17:51:13 +08:00
Wenzhao Hu 7c3ad491a7 feat: add focus handler for doc (#1433) 2024-03-02 16:39:46 +08:00
Wenzhao Hu b1d186fca0 refactor(*): refactor global focus management system (#1421)
* refactor: refactor editor focus management

* fix: fix some shortcut conditions

* refactor: implement focus trap

* docs: add docs

* fix: some injection error
2024-02-26 17:30:11 +08:00
Wenzhao Hu b289174b13 chore: upgrade redi to 0.13.0 (#1355) 2024-02-08 13:03:35 +08:00
Wenzhao Hu bd57a8452c fix(sheet-ui): fix clipboard not available in unsecure context (#1345)
* fix(sheet-ui): fix clipboard not available in unsecure context

* docs: add comment
2024-02-07 10:44:21 +08:00
Wenzhao Hu bf71b360ee fix(sheet): fix snapshot references are not consistent (#1339)
* fix(sheet): fix snapshot references are not consistent

close #1332

* fix: fix test

* test: fix tests
2024-02-06 14:49:43 +08:00
Wenzhao Hu 492f0e14c0 refactor(sheet): remove legacy fields and change active sheet implementation (#1326)
* refactor: remove redundant fields and change active sheet implementation

* fix: fix active sheet status in UI

* fix: fix set active sheet implementation

* fix: fix legacy snapshot causing type error
2024-02-03 16:27:17 +08:00
Wenzhao Hu 6e92c60833 fix: fix sheet command preconditions (#1319) 2024-02-03 08:05:15 +08:00
Wenzhao Hu 4065ea8a55 fix: fix autofixable lint (#1325)
* fix: fix autofixable lint

* fix: header lint

* fix: fix default import
2024-02-03 00:51:56 +08:00
Wenzhao Hu 66b9f7c5cd feat(doc): refactor doc clipboard and support firefox (#1302)
* refactor: refactor doc clipboard

* chore: tidy code
2024-01-31 10:40:26 +08:00
Wenzhao Hu 694f793735 feat(clipboard): support copy paste on firefox (#1300)
* feat(clipboard): support copy paste on firefox

* fix(sheet): should not paste when editor is activated

* feat(sheet): disable context menu related to pasting

* feat(sheet): change when will falllback clipboard works

* feat: add clipboard API disable hint

* fix: fix type error

* test: bypass notification service in tests

* fix: fix import missing error

* test: fix test by bypassing a dependency

* fix: fix test by bypassing dependencies
2024-01-30 22:33:27 +08:00
Wenzhao Hu bb888c70b5 fix(facade): createUniverSheet interface (#1251) 2024-01-25 14:35:32 +08:00
Wenzhao Hu 0a2c944c93 fix(sheet): fix sheet paste command not working (#1226)
* fix(sheet): fix sheet paste command not working

* chore: remove comment
2024-01-23 19:24:21 +08:00
Wenzhao Hu f7fef1fdb7 fix: fix unhide widget not dispose on worksheet change (#1228) 2024-01-23 17:35:11 +08:00
Wenzhao Hu 1d001ded11 ci: add sonar config (#1212) 2024-01-22 17:47:43 +08:00
Wenzhao Hu bcc5373882 feat(sheet): disable zooming on editing (#1200)
* feat: disable zooming when editor focus is lost

* fix: polish UI

* fix: fix type error

* fix: fix observable

* chore: tidy comments

* chore: trigger

* test: add test for context service
2024-01-22 11:55:00 +08:00
Wenzhao Hu 1ad16facfd ci: add sonar cloud (#1197)
* ci: add sonar cloud

* ci: add tokens

* ci: setup sonar

* fix: fix project key

* fix: try fixing syntac

* fix: fix CI
2024-01-20 19:28:16 +08:00
Wenzhao Hu 865aba794b fix(core): fix error in univer.dispose (#1195) 2024-01-20 16:57:19 +08:00
Wenzhao Hu 7ff1dfe0c4 refactor: move ShortcutExperienceService to sheets-ui (#1193) 2024-01-19 21:21:56 +08:00
Wenzhao Huandgggpound 0a6a3c8c7e fix: fix lint errors (#1187)
* fix: fix lint errors

* fix: fix lint error

* fix(core): interceptor priority from large to small

---------

Co-authored-by: gggpound <gpoundLiu@gmail.com>
2024-01-19 18:00:38 +08:00
Wenzhao Hu d6149e5ee6 feat(sr): add base for search & replace feature (#1065) 2024-01-18 20:36:14 +08:00
Wenzhao Hu 30c78e45bc fix(sheet-ui): should not activate selection when clicking on header menu (#1117)
* fix(sheet-ui): should not activate selection when clicking on header menu

fix #1089

* fix: fix overlay position intercept pointerup
2024-01-16 12:54:27 +08:00
Wenzhao Hu eda5cc5dc1 feat(design): dialog could assign width (#1107) 2024-01-11 20:20:38 +08:00
Wenzhao Hu 3ea86aa384 feat(design): polish draggable dialog (#1106) 2024-01-11 17:51:17 +08:00
Wenzhao Hu da19aaf62a feat(design): implement InputWithSlot component (#1094)
* feat(design): implement InputWithSlot component

* fix: fix UI implementation details

* fix: fix duplicated file header

* fix: fix component export
2024-01-10 21:58:59 +08:00
Wenzhao Hu a24136af06 fix(header): fix selected range not changed when clicking menu (#1073)
* fix(header): fix selected range not changed when clicking menu

fix #1068

* feat: set minimum value for input number

* fix: fix unhide col header shown
2024-01-10 21:34:55 +08:00
Wenzhao Hu c1d8f2b8f8 feat(design): add Pager component (#1085)
* feat: add Pager component dev playground

* feat(design): implement pager component

* feat: export from the index
2024-01-10 18:50:45 +08:00
Wenzhao HuandDushusir 6224b4f3e2 feat(facade): add more Facade API (#1029)
* feat(formula): register function (#928)

* feat(formula): register function

* feat(formula): register function in worker

* feat(formula): register function, send to worker

* feat(formula): register function in uniscript

* feat(formula): use simple description when register function

* fix(facade): conflict

* fix(formula): register description

* fix(formula): register use service

* fix(formula): custom function service name

docs: add how to contribute to facade API

fix: fix type errors

fix: fix unintented change

fix: tsconfig format

chore: move spec file

feat: init find-replace plugin

feat(facade): add more apis

feat(facade): add API of changing number format

feat(facade): add callback API

feat: add set number format apis

feat(facade): change wrap and alignment API

* fix: resolve conflict

* fix: change naming

* fix: fix type error

* fix: fix type error

* fix: lint problems

---------

Co-authored-by: Dushusir <1414556676@qq.com>
2024-01-08 18:39:15 +08:00
Wenzhao Hu fd579a78e5 docs: add how to contribute to facade API (#1008)
* docs: add how to contribute to facade API

* docs: add guidance to add doc

* fix: fix type errors

* fix: fix unintented change

* fix: tsconfig format
2024-01-05 12:41:28 +08:00
Wenzhao Hu 4eb8bdee61 docs: add asking questions and reporting issues (#980)
* docs: add asking questions and reporting issues

close https://github.com/dream-num/docs/issues/19

* docs: add links to asking questions

* chore: format
2024-01-03 12:24:27 +08:00
Wenzhao Hu f8716221ad docs(readme): add examples to readme (#956) 2024-01-02 17:42:14 +08:00
Wenzhao Huand白熱 e473dbfda4 feat(facade): make facade a separate pacakge (#964)
* feat(facade): make facade a separate pacakge

* fix: remove redundant properties

* chore: resolve packaging issue

* docs: add more docs

---------

Co-authored-by: 白熱 <sonne@asaki.me>
2024-01-02 17:41:47 +08:00
Wenzhao Hu d895be60be fix(sheets): fix move row col undo params (#950) 2024-01-02 14:16:27 +08:00
Wenzhao Hu f88025159a refactor: add info level to logservice (#946) 2024-01-02 10:12:27 +08:00
Wenzhao Hu d8e4ef57f6 test: add more test for CommandService & LifecycleService (#899)
* test: add more test for CommandService

* fix: fix type error

* chore: update CODEOWNERS

* test: test lifecycle service

* chore: remote redundant code
2024-01-02 09:02:11 +08:00
Wenzhao Hu 51bbd7cb36 feat: expose monaco editor instance (#895)
* feat: expose monaco editor instance

* fix: fix build error
2023-12-26 17:58:43 +08:00
Wenzhao Hu 76bb1d6f81 chore: cleanup legacy code (#888) 2023-12-26 14:22:09 +08:00
Wenzhao Hu b9c4cc1840 chore: add codecov threshold (#860) 2023-12-25 09:34:21 +08:00
Wenzhao Hu ffe05d9449 chore: add funding configs 2023-12-22 23:23:06 +08:00
Wenzhao Hu cdcec594ef feat(uniscript): add demo to draw univer logo using uniscript (#840)
* feat: implement drawing logo uniscript

* feat: add draw univer script logo

* fix: fix id generation

* fix: remove uncessary color casting

* feat: add shuffle method
2023-12-20 07:52:59 +08:00
Wenzhao Hu 8d7c579a3b fix(sheet-ui): fix col width dragging when selection the whole sheet (#831)
* fix(selection): fix row selection not changed after draggging

* fix: fix col width dragging when selection the whole sheet

* fix: fix type check

* fix: fix tests

* fix: fix changing row height
2023-12-19 21:43:56 +08:00
Wenzhao Hu f5968ccd64 fix: fix set active worksheet (#808) 2023-12-19 14:12:04 +08:00
Wenzhao Hu aa0478533d feat: add uniscript i18n (#804) 2023-12-18 23:53:41 +08:00
Wenzhao Hu fd416a9d95 feat: add uniscript demo to online examples (#799) 2023-12-18 20:26:27 +08:00
Wenzhao Hu ffb94c9941 fix: should not close editor when collab edits happen (#782) 2023-12-16 16:59:47 +08:00
Wenzhao Hu 4beb744934 feat: add multi instance demo (#772)
* feat: add multi instance demo

* fix: fix formula not calculated

* fix: fix tests by make layout controller optional
2023-12-15 22:56:15 +08:00
Wenzhao Hu be18b70a30 refactor(core): support lazy load plugins (#768)
* feat: implement plugin lazy load

* refactor: refactor other plugin of Univer business

* fix: fix plugin init twice

* fix: remove console.log
2023-12-15 17:33:20 +08:00
Wenzhao Hu c56e0e7c2e feat: change i18n (#747)
* feat: change i18n

* feat: change favicon by the way
2023-12-13 22:01:12 +08:00
Wenzhao Hu 12122914ba fix: fix genname lifecycle (#739) 2023-12-13 17:50:24 +08:00
Wenzhao Hu a5b95eadbd fix: fix RPC code confliction (#725) 2023-12-12 07:46:00 +08:00
Wenzhao Hu e1a2cecbe1 fix(sheet): fix select all expansion (#723)
* test: add test

* fix: fix test title

* refactor: move selection utils to improve code coverage
2023-12-11 23:18:01 +08:00
Wenzhao Hu 3d2e0ed1ce feat: add shortcut panel i18n (#722) 2023-12-11 22:37:00 +08:00
Wenzhao Hu 4c1d087515 feat: add getSlice method (#717) 2023-12-11 18:36:56 +08:00
Wenzhao Hu 5fbf5bb3c5 docs: add logo (#715)
* docs: add logo

* docs: add logo in document site
2023-12-11 17:32:24 +08:00
Wenzhao Hu 2d33d5fc40 docs: change license year (#713) 2023-12-11 16:20:47 +08:00
Wenzhao Hu 44bcdc67a0 docs: update readme (#711) 2023-12-11 15:58:58 +08:00
Wenzhao Hu de2553c8e0 chore: change license to apache and add file headers (#710) 2023-12-11 12:51:11 +08:00
Wenzhao Hu ca09058f30 feat: update redi version (#705) 2023-12-10 10:03:24 +08:00
Wenzhao Hu 8d7f40d486 docs: wzhudev (#693)
* docs: remove unnecessary

* docs: introduce plugins

* docs: add more documents

* chore: revert temp changes
2023-12-09 18:41:05 +08:00
Wenzhao Hu 2f10c2dd9b refactor: add set worksheet active controller (#692)
* refactor: add set worksheet active controller

* fix: change remove sheet implementation

* fix: fix type error

* fix: fix type error
2023-12-09 11:50:23 +08:00
Wenzhao Hu 743dcec03c docs: add more docs (#671)
* docs: add code of conduct

* docs: more docs
2023-12-08 13:45:16 +08:00
Wenzhao Hu f9d6caeada ci: add code quality badge (#678) 2023-12-08 07:59:26 +08:00
Wenzhao Hu bee5d97f41 chore: clear code (#654)
* chore: clear code

* chore: remove redundant files

* fix: revert unintended tsconfig change

* fix: eslint
2023-12-06 11:14:27 +08:00
Wenzhao Hu cbe0988d49 feat: move add merge command to sheets-ui (#622)
* feat: move add merge command to sheets-ui

* fix: merge cells should clear values

* fix: fix types

* feat: merge command confirm dialog

* feat: add dialog

* fix: fix test

* fix: fix lint and type errors

* fix: remove only
2023-12-05 21:02:04 +08:00
Wenzhao Hu 0a165a88ec refactor: add channel service in rpc module as public api (#647)
* refactor: add channel service in rpc module as public api

* fix: fix eslint problems

* fix: fix type check

* chore: revert eslintignore
2023-12-05 17:55:12 +08:00
Wenzhao Hu e4aa6d5743 docs: change playground link (#641) 2023-12-05 13:56:16 +08:00
Wenzhao Hu 409f2f8659 refactor: rename file and plugin names (#637)
* refactor: rename file and plugin names

* fix: fix import

* fix: fix lint problems

* fix: fix names

* refactor: change slide names
2023-12-05 09:26:54 +08:00
Wenzhao Hu cb09fc0b72 fix(sheet): fix change selection with tab or enter (#621)
close #366
2023-12-04 14:13:58 +08:00
Wenzhao Hu 2272789111 fix: fix minor problems (#604)
* fix: fix minor problems

* fix: fix tests
2023-12-02 13:44:19 +08:00
Wenzhao HuandWenzhao Hu c4968e6893 feat: add web worker documentation (#603)
Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
2023-12-02 10:54:17 +08:00
Wenzhao HuandWenzhao Hu d355cd0edb docs: adjust folder structure (#602)
* docs: init doc fold structure

* docs: add online playground and images

* feat: adjust doc structure

* docs: add docs for plugin

---------

Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
2023-12-02 08:01:37 +08:00
Wenzhao HuandWenzhao Hu 9b59b160da docs: init doc site structure (#599)
* docs: init doc fold structure

* docs: add online playground and images

---------

Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
2023-12-01 17:22:44 +08:00
Wenzhao Hu 53376c9f79 fix: http service deal with body (#594) 2023-11-30 21:29:12 +08:00
Wenzhao Hu ea5f18ef75 feat: implement uniscript demo (#589)
* feat: implement some API in facade

* fix: fix type error

* feat: add first uniscript demo
2023-11-29 20:08:40 -06:00
Wenzhao Hu 98ce9da95a feat(core): command service add trigger params to mutations (#583)
* feat(core): command service add trigger params to mutations

* for formula to decide if a mutation should trigger recalculation
* for history to figure out what action caused a mutation

* chore: cleanup code

* fix: fix type

* fix: downgrade syntax to pass node 16

* fix: fix import
2023-11-29 16:09:08 +08:00
Wenzhao Hu 4f72d77324 feat(uniscript): implement uniscript POC (#570)
* feat: introduce uniscript

* fix: fix demo

* feat: add more services

* feat: adjust how ts config is injected

* feat: update uniscript UI
2023-11-28 16:41:23 +08:00
Wenzhao Hu e2d1f08bc7 feat: shortcut service support escape (#568) 2023-11-27 21:50:49 +08:00
Wenzhao Hu ada808f4c5 fix: fix numfmt service interface (#569) 2023-11-27 21:45:31 +08:00
Wenzhao Hu 4ba1e36f83 fix: fix formula input controller startup too early (#540) 2023-11-24 11:06:45 +08:00
Wenzhao Hu e1c21b2e46 feat: add more shortcuts (#536)
* feat: add more shortcuts

* chore: remove log

* fix: fix type error
2023-11-23 21:59:21 +08:00
Wenzhao Hu 0df769c845 feat: implement shortcut panel (#529)
* refactor: rename files & folders in base-ui

* feat: basic shortcut panel

* feat: show shortcuts by groups
2023-11-23 18:07:55 +08:00
Wenzhao Hu 97e547fa12 feat: sequence utils (#525)
* feat: sequence utils

* refactor: remove legacy code

* test: add tests

* chore: reuse string

* refactor: remove legacy code
2023-11-22 07:24:07 -06:00
Wenzhao Hu d5b2a1a3ac refactor: move serialize methods to core (#505)
* refactor: move serialize methods to core

* fix: fix import
2023-11-22 10:08:53 +08:00
wzhudev 6a6f09b6e8 docs: add formula and rpc docs 2023-11-21 09:16:59 +08:00
wzhudev d0d3c60c15 feat: sync service should be local 2023-11-20 22:24:57 +08:00
Wenzhao Hu 6b1148eb3b feat: run formula calculation in worker (#492)
* feat: run formula calculation in worker

* refactor: base-formula-engine plugin

* fix: fix type export
2023-11-20 08:16:08 -06:00
Wenzhao Hu cd387f6d8e refactor: add imutationinfo interface (#488) 2023-11-19 23:25:12 +08:00
Wenzhao Hu 5a024f1098 feat(rpc): init network package (#485)
* feat(rpc): init network package

* chore: update pnpm lock
2023-11-18 03:27:26 -06:00
Wenzhao Hu 909efe35e5 refactor: change workbook snapshot fields and names (#483)
* refactor: rename some interfaces to make the semantic correct

* chore: remove empty files

* fix: remove deprecated properties
2023-11-18 01:58:08 -06:00
Wenzhao Hu c2de4d5947 refactor: change config service interface (#478)
* refactor: change config service interface

* fix: fix auto updated tsconfig
2023-11-17 19:28:19 +08:00
Wenzhao Hu 13e45b85ce chore: add naming conversion linter (#460)
* chore: add naming conversion linter

* chore: adjust interface names
2023-11-16 15:32:10 +08:00
wzhudev d7208b9c60 docs: to move with confidence! 2023-11-14 09:54:37 +08:00
wzhudev 7c14a47b27 docs: update contributing guide to cover unit test 2023-11-14 09:53:51 +08:00
Wenzhao Hu c711f0a53a feat(rpc): sync sheet between main and worker thread (#450) 2023-11-14 09:41:21 +08:00
Wenzhao Hu e16034dcc4 feat(rpc): implement RPC framwork and make Univer running in web worker (#438)
* docs: init English architecture doc

* docs: update

* feat: implement basic rpc

* test: add basic test

* feat: implement RPC over web worker
2023-11-13 23:06:35 +08:00
wzhudev 76d8c9ae28 chore: update owners 2023-11-11 14:12:36 +08:00
wzhudev f9ad65a736 chore: update owners 2023-11-10 17:50:36 +08:00
wzhudev aca74404d2 docs: README format 2023-11-10 11:41:46 +08:00
wzhudev 0b795f89c7 docs: add more guides 2023-11-10 11:24:17 +08:00
wzhudev 63c688b3ed docs: cleanup docs 2023-11-10 11:18:07 +08:00