@univerjs-pro/collaboration-client-ui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +37 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +32 -0
  66. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +35 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
  70. package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
  71. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  72. package/lib/umd/facade.js +1 -1
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +17 -17
@@ -1 +1 @@
1
- const _0xc5f442=_0x2d33;(function(_0x136aee,_0xe04114){const _0x5589ae=_0x2d33,_0x618c79=_0x136aee();while(!![]){try{const _0x4f6594=parseInt(_0x5589ae(0x135))/0x1*(-parseInt(_0x5589ae(0x13a))/0x2)+parseInt(_0x5589ae(0x137))/0x3*(parseInt(_0x5589ae(0x13c))/0x4)+-parseInt(_0x5589ae(0x147))/0x5*(parseInt(_0x5589ae(0x139))/0x6)+parseInt(_0x5589ae(0x13b))/0x7+-parseInt(_0x5589ae(0x133))/0x8*(-parseInt(_0x5589ae(0x146))/0x9)+parseInt(_0x5589ae(0x12f))/0xa+-parseInt(_0x5589ae(0x134))/0xb*(-parseInt(_0x5589ae(0x140))/0xc);if(_0x4f6594===_0xe04114)break;else _0x618c79['push'](_0x618c79['shift']());}catch(_0x7649ad){_0x618c79['push'](_0x618c79['shift']());}}}(_0x4943,0xdc29c));function _0x2d33(_0x44d605,_0x507e38){_0x44d605=_0x44d605-0x12f;const _0x494369=_0x4943();let _0x2d3331=_0x494369[_0x44d605];return _0x2d3331;}const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0xc5f442(0x13f),'notCollab':_0xc5f442(0x141),'synced':_0xc5f442(0x136),'syncing':_0xc5f442(0x13d),'offline':'已離線,編輯將儲存在本機'},'snapshotLoading':{'timeout':_0xc5f442(0x142),'refresh':'重新整理頁面'},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':'連線失敗,將在稍後重試連線。','room-full':_0xc5f442(0x138),'collaboration-timeout':_0xc5f442(0x145)},'conflict':{'processing':'正在處理協同衝突…','clearFailed':'無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','retry':_0xc5f442(0x131),'title':'協作衝突','content':_0xc5f442(0x130)},'permission':{'title':_0xc5f442(0x132),'content':_0xc5f442(0x143)},'collaboration':{'offline-data-not-saved':_0xc5f442(0x13e),'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0xc5f442(0x144)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x4943(){const _0x3cb9c0=['4474500pqltou','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','重試並重新整理','認證錯誤','4079368cHoRxA','11cnAdKG','7QVBnBG','已同步','249771voheLd','協作房間已滿,您的編輯將暫存於本機。','89934dgPeLS','400422ppvYji','1560881rbnEzi','20SYtKmA','同步中...','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','編輯衝突','14048340CaofCU','本機檔案','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','由於協作房間已關閉,編輯權限已被收回。','伺服器未回應協作請求,您的編輯將儲存在本機。','27hRiZOL','495evfNFT'];_0x4943=function(){return _0x3cb9c0;};return _0x4943();}export{e as default};
1
+ const _0x4df671=_0xe929;(function(_0x372373,_0xeb231b){const _0x1a5004=_0xe929,_0x28c6ce=_0x372373();while(!![]){try{const _0x5c71dd=-parseInt(_0x1a5004(0x82))/0x1*(-parseInt(_0x1a5004(0x87))/0x2)+-parseInt(_0x1a5004(0x9a))/0x3+-parseInt(_0x1a5004(0x8e))/0x4+-parseInt(_0x1a5004(0x91))/0x5+parseInt(_0x1a5004(0x89))/0x6*(parseInt(_0x1a5004(0x8c))/0x7)+-parseInt(_0x1a5004(0x83))/0x8+parseInt(_0x1a5004(0x8f))/0x9*(parseInt(_0x1a5004(0x86))/0xa);if(_0x5c71dd===_0xeb231b)break;else _0x28c6ce['push'](_0x28c6ce['shift']());}catch(_0x10ae05){_0x28c6ce['push'](_0x28c6ce['shift']());}}}(_0x30d8,0x558c6));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x4df671(0x90)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':'編輯衝突','notCollab':_0x4df671(0x96),'synced':'已同步','syncing':_0x4df671(0x92),'offline':'已離線,編輯將儲存在本機'},'snapshotLoading':{'timeout':'資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','refresh':_0x4df671(0x98)},'session':{'connection-failed':_0x4df671(0x8d),'will-retry':_0x4df671(0x84),'room-full':_0x4df671(0x94),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'processing':_0x4df671(0x95),'clearFailed':_0x4df671(0x8a),'retry':_0x4df671(0x93),'title':_0x4df671(0x88),'content':_0x4df671(0x97)},'permission':{'title':_0x4df671(0x85),'content':_0x4df671(0x8b)},'collaboration':{'offline-data-not-saved':'您有未儲存至伺服器的離線編輯,請檢查網路後重試。','single-unit':{'warning':_0x4df671(0x99)},'closeRoom':_0x4df671(0x9b)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0xe929(_0x4d1f9d,_0xa16ddf){_0x4d1f9d=_0x4d1f9d-0x82;const _0x30d8d2=_0x30d8();let _0xe9291d=_0x30d8d2[_0x4d1f9d];return _0xe9291d;}export{e as default};function _0x30d8(){const _0x6ab242=['連線失敗,請檢查您的網路。','1619684eBMtZT','9wlKlLN','點擊重新連線','406100yINmYO','同步中...','重試並重新整理','協作房間已滿,您的編輯將暫存於本機。','正在處理協同衝突…','本機檔案','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','重新整理頁面','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','176241NJUOZS','由於協作房間已關閉,編輯權限已被收回。','20297cxhCjC','4218656BTYFqU','連線失敗,將在稍後重試連線。','認證錯誤','7574810CLikjR','30LHRVmw','協作衝突','1082070yjlFys','無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','14cRHDye'];_0x30d8=function(){return _0x6ab242;};return _0x30d8();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x6af763=_0x524b;(function(_0x262cb3,_0x27df60){var _0x53f123=_0x524b,_0xf3edbd=_0x262cb3();while(!![]){try{var _0x392634=parseInt(_0x53f123(0x146))/0x1+parseInt(_0x53f123(0x13c))/0x2*(-parseInt(_0x53f123(0x13f))/0x3)+parseInt(_0x53f123(0x144))/0x4+parseInt(_0x53f123(0x147))/0x5+-parseInt(_0x53f123(0x13b))/0x6+-parseInt(_0x53f123(0x140))/0x7*(parseInt(_0x53f123(0x143))/0x8)+-parseInt(_0x53f123(0x142))/0x9*(-parseInt(_0x53f123(0x141))/0xa);if(_0x392634===_0x27df60)break;else _0xf3edbd['push'](_0xf3edbd['shift']());}catch(_0x448758){_0xf3edbd['push'](_0xf3edbd['shift']());}}}(_0x4656,0xbd6ac));function _0x524b(_0x1a0dda,_0x5e5e72){_0x1a0dda=_0x1a0dda-0x13b;var _0x4656aa=_0x4656();var _0x524b16=_0x4656aa[_0x1a0dda];return _0x524b16;}import{RemoteUniscriptService as _0x1dfa8d}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x2ed08a}from'@univerjs/core/facade';var n=class extends _0x2ed08a{[_0x6af763(0x13d)](_0x3d69c1,_0x30f5b6,..._0x379cfa){var _0xca6383=_0x6af763;return this['_injector'][_0xca6383(0x13e)](_0x1dfa8d)[_0xca6383(0x13d)](_0x3d69c1,_0x30f5b6,{},..._0x379cfa);}};_0x2ed08a[_0x6af763(0x145)](n);function _0x4656(){var _0x27872e=['4136776zAJvpF','extend','137612JevQCe','6086600HkhoYR','8512224RRXuKU','13544xSGpTO','runOnServer','get','417dLPQKS','2277800pLKyaN','10241690GjXlCI','18FkAyKn','32CkmoLL'];_0x4656=function(){return _0x27872e;};return _0x4656();}export{};
1
+ var _0x138718=_0x975c;function _0x975c(_0x3f9b69,_0x2a53e5){_0x3f9b69=_0x3f9b69-0x17b;var _0x495568=_0x4955();var _0x975c85=_0x495568[_0x3f9b69];return _0x975c85;}(function(_0x1ac1fd,_0x5f0546){var _0x489eb1=_0x975c,_0xf323bd=_0x1ac1fd();while(!![]){try{var _0x73820=-parseInt(_0x489eb1(0x183))/0x1+parseInt(_0x489eb1(0x181))/0x2+-parseInt(_0x489eb1(0x182))/0x3*(-parseInt(_0x489eb1(0x17b))/0x4)+parseInt(_0x489eb1(0x17c))/0x5+parseInt(_0x489eb1(0x184))/0x6+parseInt(_0x489eb1(0x187))/0x7*(parseInt(_0x489eb1(0x180))/0x8)+-parseInt(_0x489eb1(0x17f))/0x9;if(_0x73820===_0x5f0546)break;else _0xf323bd['push'](_0xf323bd['shift']());}catch(_0x996457){_0xf323bd['push'](_0xf323bd['shift']());}}}(_0x4955,0x668bf));import{RemoteUniscriptService as _0x1754d1}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x59b5d1}from'@univerjs/core/facade';var n=class extends _0x59b5d1{[_0x138718(0x17e)](_0x1081d5,_0x442bb3,..._0x198097){var _0x246a66=_0x138718;return this[_0x246a66(0x17d)][_0x246a66(0x185)](_0x1754d1)[_0x246a66(0x17e)](_0x1081d5,_0x442bb3,{},..._0x198097);}};_0x59b5d1[_0x138718(0x186)](n);function _0x4955(){var _0x1075fc=['3919286gSDTUK','4fRndmQ','1172490arcIYp','_injector','runOnServer','13181850EBugZb','8bzGCsL','1161580PJLtaV','322521PGTvTw','185844zzFJGw','3526992IvLipC','get','extend'];_0x4955=function(){return _0x1075fc;};return _0x4955();}export{};
package/lib/index.css CHANGED
@@ -14,6 +14,18 @@
14
14
  z-index: 1001;
15
15
  }
16
16
 
17
+ .univer-col-start-2 {
18
+ grid-column-start: 2;
19
+ }
20
+
21
+ .univer-row-start-2 {
22
+ grid-row-start: 2;
23
+ }
24
+
25
+ .\!univer-m-0 {
26
+ margin: 0 !important;
27
+ }
28
+
17
29
  .univer-m-0 {
18
30
  margin: 0;
19
31
  }
@@ -26,6 +38,10 @@
26
38
  display: inline-flex;
27
39
  }
28
40
 
41
+ .\!univer-grid {
42
+ display: grid !important;
43
+ }
44
+
29
45
  .univer-size-4 {
30
46
  width: 1rem;
31
47
  height: 1rem;
@@ -85,10 +101,18 @@
85
101
  appearance: none;
86
102
  }
87
103
 
104
+ .univer-grid-cols-\[16px_minmax\(0\,1fr\)\] {
105
+ grid-template-columns: 16px minmax(0, 1fr);
106
+ }
107
+
88
108
  .univer-flex-col {
89
109
  flex-direction: column;
90
110
  }
91
111
 
112
+ .univer-items-start {
113
+ align-items: flex-start;
114
+ }
115
+
92
116
  .univer-items-center {
93
117
  align-items: center;
94
118
  }
@@ -109,6 +133,19 @@
109
133
  gap: 1rem;
110
134
  }
111
135
 
136
+ .univer-gap-x-1\.5 {
137
+ -moz-column-gap: .375rem;
138
+ column-gap: .375rem;
139
+ }
140
+
141
+ .univer-gap-y-2 {
142
+ row-gap: .5rem;
143
+ }
144
+
145
+ .univer-justify-self-end {
146
+ justify-self: end;
147
+ }
148
+
112
149
  .univer-rounded-lg {
113
150
  border-radius: .5rem;
114
151
  }