@univerjs-pro/collaboration-client-ui 1.0.0-alpha.3 → 1.0.0-alpha.4

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 (89) 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 +87 -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/snapshot-loading/snapshot-loading.controller.d.ts +36 -0
  66. package/lib/types/locale/en-US.d.ts +5 -0
  67. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +15 -0
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +22 -22
@@ -1 +1 @@
1
- const _0xfc7ddc=_0x1912;function _0xa143(){const _0x551e55=['您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','420PTmKNh','78639wUiHqy','8qnhkqw','1009446cDRlTn','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','認證錯誤','93290UMkGbI','168EfaNCC','42903MCmmdh','141745TLpJvV','公式計算已開始。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','協作房間已滿,您的編輯將暫存於本機。','由於協作房間已關閉,編輯權限已被收回。','本機檔案','6RRbkik','8872NymEXB','連線失敗,將在稍後重試連線。','805gixFzR','41005TUyTIb','已離線,編輯將儲存在本機','協作衝突','正在擷取伺服器資料...','同步中...'];_0xa143=function(){return _0x551e55;};return _0xa143();}function _0x1912(_0x2ed050,_0x148994){_0x2ed050=_0x2ed050-0x133;const _0xa143e7=_0xa143();let _0x19121d=_0xa143e7[_0x2ed050];return _0x19121d;}(function(_0x46bd7f,_0x11f8c9){const _0x21ae9c=_0x1912,_0xd612ee=_0x46bd7f();while(!![]){try{const _0x486bcf=-parseInt(_0x21ae9c(0x148))/0x1+parseInt(_0x21ae9c(0x13b))/0x2*(-parseInt(_0x21ae9c(0x144))/0x3)+-parseInt(_0x21ae9c(0x137))/0x4*(parseInt(_0x21ae9c(0x13e))/0x5)+parseInt(_0x21ae9c(0x138))/0x6+parseInt(_0x21ae9c(0x147))/0x7*(-parseInt(_0x21ae9c(0x145))/0x8)+parseInt(_0x21ae9c(0x13d))/0x9*(parseInt(_0x21ae9c(0x135))/0xa)+-parseInt(_0x21ae9c(0x136))/0xb*(-parseInt(_0x21ae9c(0x13c))/0xc);if(_0x486bcf===_0x11f8c9)break;else _0xd612ee['push'](_0xd612ee['shift']());}catch(_0x48003f){_0xd612ee['push'](_0xd612ee['shift']());}}}(_0xa143,0x249fd));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0xfc7ddc(0x14b),'conflict':'編輯衝突','notCollab':_0xfc7ddc(0x143),'synced':'已同步','syncing':_0xfc7ddc(0x133),'offline':_0xfc7ddc(0x149)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0xfc7ddc(0x146),'room-full':_0xfc7ddc(0x141),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0xfc7ddc(0x14a),'content':_0xfc7ddc(0x140)},'permission':{'title':_0xfc7ddc(0x13a),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':_0xfc7ddc(0x139),'single-unit':{'warning':_0xfc7ddc(0x134)},'closeRoom':_0xfc7ddc(0x142)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'},'formula':{'calculation':{'started':_0xfc7ddc(0x13f),'waiting':'公式計算佇列已滿,正在等待可用資源...','unable':'目前無法執行公式計算,請稍後重試。'}}}};export{e as default};
1
+ function _0x99c3(_0x18ae46,_0xee0109){_0x18ae46=_0x18ae46-0x112;const _0x2dc78b=_0x2dc7();let _0x99c36d=_0x2dc78b[_0x18ae46];return _0x99c36d;}function _0x2dc7(){const _0x197672=['伺服器未回應協作請求,您的編輯將儲存在本機。','點擊重新連線','同步中...','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','835610qpGEhm','正在擷取伺服器資料...','8ZjsWYw','770664ZjckgO','本機檔案','已離線,編輯將儲存在本機','7UurSdx','公式計算已開始。','5184423tKYYTP','協作衝突','連線失敗,將在稍後重試連線。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','7217976ppYFas','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','已同步','390XKVBqp','1913468ckiAuv','協作房間已滿,您的編輯將暫存於本機。','190cNTJIy','公式計算佇列已滿,正在等待可用資源...','604582OfGXtL','目前無法執行公式計算,請稍後重試。','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','25505oxIsGt'];_0x2dc7=function(){return _0x197672;};return _0x2dc7();}const _0x462113=_0x99c3;(function(_0xad1fe5,_0x588214){const _0x10c4d2=_0x99c3,_0x5016c7=_0xad1fe5();while(!![]){try{const _0x83f80f=-parseInt(_0x10c4d2(0x121))/0x1+parseInt(_0x10c4d2(0x114))/0x2+-parseInt(_0x10c4d2(0x124))/0x3*(parseInt(_0x10c4d2(0x123))/0x4)+parseInt(_0x10c4d2(0x11c))/0x5*(-parseInt(_0x10c4d2(0x113))/0x6)+-parseInt(_0x10c4d2(0x127))/0x7*(-parseInt(_0x10c4d2(0x12d))/0x8)+-parseInt(_0x10c4d2(0x129))/0x9+-parseInt(_0x10c4d2(0x116))/0xa*(-parseInt(_0x10c4d2(0x118))/0xb);if(_0x83f80f===_0x588214)break;else _0x5016c7['push'](_0x5016c7['shift']());}catch(_0xdf2169){_0x5016c7['push'](_0x5016c7['shift']());}}}(_0x2dc7,0x9dc75));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x462113(0x11e)}},'collabStatus':{'fetchMiss':_0x462113(0x122),'conflict':_0x462113(0x11a),'notCollab':_0x462113(0x125),'synced':_0x462113(0x112),'syncing':_0x462113(0x11f),'offline':_0x462113(0x126)},'snapshotLoading':{'loadingSheet':'正在載入工作表','timeout':_0x462113(0x120),'refresh':'重新整理頁面'},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x462113(0x12b),'room-full':_0x462113(0x115),'collaboration-timeout':_0x462113(0x11d)},'conflict':{'title':_0x462113(0x12a),'content':_0x462113(0x12e)},'permission':{'title':'認證錯誤','content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':'您有未儲存至伺服器的離線編輯,請檢查網路後重試。','single-unit':{'warning':_0x462113(0x11b)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x462113(0x12c)},'formula':{'calculation':{'started':_0x462113(0x128),'waiting':_0x462113(0x117),'unable':_0x462113(0x119)}}}};export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2326a5=_0x535f;(function(_0x25beb7,_0x2261cf){var _0x24f614=_0x535f,_0x483c63=_0x25beb7();while(!![]){try{var _0x722729=parseInt(_0x24f614(0x1fe))/0x1*(parseInt(_0x24f614(0x200))/0x2)+parseInt(_0x24f614(0x1fb))/0x3+parseInt(_0x24f614(0x1f9))/0x4*(parseInt(_0x24f614(0x1fa))/0x5)+-parseInt(_0x24f614(0x1fd))/0x6+-parseInt(_0x24f614(0x1f4))/0x7+parseInt(_0x24f614(0x1f6))/0x8*(parseInt(_0x24f614(0x1f8))/0x9)+-parseInt(_0x24f614(0x1f5))/0xa;if(_0x722729===_0x2261cf)break;else _0x483c63['push'](_0x483c63['shift']());}catch(_0xb0b900){_0x483c63['push'](_0x483c63['shift']());}}}(_0x3b16,0xee130));function _0x3b16(){var _0x23aa2e=['1739907cdcApn','904vZNVKX','34705NsJoKM','1376268ejijXd','get','8715600wzkIAU','23TBkkPM','runOnServer','159434Itpvwr','extend','1280223NwWRpV','22168870cgIkxr','40foHBeG','_injector'];_0x3b16=function(){return _0x23aa2e;};return _0x3b16();}import{RemoteUniscriptService as _0x3ea60b}from'@univerjs-pro/collaboration-client-ui';function _0x535f(_0x475dac,_0x29f378){_0x475dac=_0x475dac-0x1f3;var _0x3b1641=_0x3b16();var _0x535f5a=_0x3b1641[_0x475dac];return _0x535f5a;}import{FUniver as _0x4d4c5e}from'@univerjs/core/facade';var n=class extends _0x4d4c5e{['runOnServer'](_0x23308e,_0xc94033,..._0x2d4831){var _0x11c92a=_0x535f;return this[_0x11c92a(0x1f7)][_0x11c92a(0x1fc)](_0x3ea60b)[_0x11c92a(0x1ff)](_0x23308e,_0xc94033,{},..._0x2d4831);}};_0x4d4c5e[_0x2326a5(0x1f3)](n);export{};
1
+ var _0x38de46=_0x1c55;(function(_0x1a2057,_0x193568){var _0x151318=_0x1c55,_0x310b9c=_0x1a2057();while(!![]){try{var _0x1dca8c=-parseInt(_0x151318(0x15a))/0x1+parseInt(_0x151318(0x153))/0x2*(parseInt(_0x151318(0x150))/0x3)+-parseInt(_0x151318(0x151))/0x4*(-parseInt(_0x151318(0x14f))/0x5)+-parseInt(_0x151318(0x14e))/0x6+parseInt(_0x151318(0x154))/0x7*(parseInt(_0x151318(0x157))/0x8)+parseInt(_0x151318(0x156))/0x9+parseInt(_0x151318(0x158))/0xa*(-parseInt(_0x151318(0x155))/0xb);if(_0x1dca8c===_0x193568)break;else _0x310b9c['push'](_0x310b9c['shift']());}catch(_0x947fd3){_0x310b9c['push'](_0x310b9c['shift']());}}}(_0x2926,0x5319f));function _0x2926(){var _0x3e46b4=['1730lircpw','_injector','594035sjxfeo','get','3513768IiBNSj','3139025XNswQp','3wxWAxp','4HlsZUG','runOnServer','875702qiuzMn','794738uoMtMa','12617RgGQxV','1788165zkqnOs','32ywJWiT'];_0x2926=function(){return _0x3e46b4;};return _0x2926();}import{RemoteUniscriptService as _0xfba72e}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x1c90a4}from'@univerjs/core/facade';function _0x1c55(_0x5114e4,_0x7168a9){_0x5114e4=_0x5114e4-0x14e;var _0x292622=_0x2926();var _0x1c5509=_0x292622[_0x5114e4];return _0x1c5509;}var n=class extends _0x1c90a4{[_0x38de46(0x152)](_0x50117d,_0xc2f86,..._0x1af7dd){var _0x274ce2=_0x38de46;return this[_0x274ce2(0x159)][_0x274ce2(0x15b)](_0xfba72e)['runOnServer'](_0x50117d,_0xc2f86,{},..._0x1af7dd);}};_0x1c90a4['extend'](n);export{};
package/lib/index.css CHANGED
@@ -1,3 +1,30 @@
1
+ .univer-fixed {
2
+ position: fixed;
3
+ }
4
+
5
+ .univer-inset-0 {
6
+ top: 0;
7
+ bottom: 0;
8
+ left: 0;
9
+ right: 0;
10
+ }
11
+
12
+ .univer-left-1\/2 {
13
+ left: 50%;
14
+ }
15
+
16
+ .univer-top-4 {
17
+ top: 1rem;
18
+ }
19
+
20
+ .univer-z-\[1000\] {
21
+ z-index: 1000;
22
+ }
23
+
24
+ .univer-z-\[1001\] {
25
+ z-index: 1001;
26
+ }
27
+
1
28
  .univer-m-0 {
2
29
  margin: 0;
3
30
  }
@@ -10,6 +37,11 @@
10
37
  display: inline-flex;
11
38
  }
12
39
 
40
+ .univer-size-4 {
41
+ width: 1rem;
42
+ height: 1rem;
43
+ }
44
+
13
45
  .univer-h-8 {
14
46
  height: 2rem;
15
47
  }
@@ -18,6 +50,20 @@
18
50
  width: 2rem;
19
51
  }
20
52
 
53
+ .univer-max-w-\[calc\(100vw-32px\)\] {
54
+ max-width: calc(100vw - 32px);
55
+ }
56
+
57
+ .univer-shrink-0 {
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ .-univer-translate-x-1\/2 {
62
+ --univer-tw-translate-x: -50%;
63
+ transform: translate(-50%, var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
64
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
65
+ }
66
+
21
67
  @keyframes univer-pulse {
22
68
  50% {
23
69
  opacity: .5;
@@ -46,6 +92,10 @@
46
92
  cursor: pointer;
47
93
  }
48
94
 
95
+ .univer-cursor-wait {
96
+ cursor: wait;
97
+ }
98
+
49
99
  .univer-appearance-none {
50
100
  -webkit-appearance: none;
51
101
  appearance: none;
@@ -63,6 +113,10 @@
63
113
  justify-content: center;
64
114
  }
65
115
 
116
+ .univer-gap-2 {
117
+ gap: .5rem;
118
+ }
119
+
66
120
  .univer-gap-3 {
67
121
  gap: .75rem;
68
122
  }
@@ -91,10 +145,19 @@
91
145
  background-color: #0000;
92
146
  }
93
147
 
148
+ .univer-bg-white {
149
+ background-color: var(--univer-white);
150
+ }
151
+
94
152
  .univer-p-0 {
95
153
  padding: 0;
96
154
  }
97
155
 
156
+ .univer-px-3 {
157
+ padding-left: .75rem;
158
+ padding-right: .75rem;
159
+ }
160
+
98
161
  .univer-px-4 {
99
162
  padding-left: 1rem;
100
163
  padding-right: 1rem;
@@ -115,6 +178,11 @@
115
178
  line-height: 1.75rem;
116
179
  }
117
180
 
181
+ .univer-text-amber-500 {
182
+ --univer-tw-text-opacity: 1;
183
+ color: rgba(245, 158, 11, var(--univer-tw-text-opacity, 1));
184
+ }
185
+
118
186
  .univer-text-blue-500 {
119
187
  color: var(--univer-blue-500);
120
188
  }
@@ -127,6 +195,10 @@
127
195
  color: var(--univer-gray-600);
128
196
  }
129
197
 
198
+ .univer-text-gray-900 {
199
+ color: var(--univer-gray-900);
200
+ }
201
+
130
202
  .univer-text-green-500 {
131
203
  color: var(--univer-green-500);
132
204
  }
@@ -143,6 +215,13 @@
143
215
  color: var(--univer-white);
144
216
  }
145
217
 
218
+ .univer-shadow-lg {
219
+ --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
220
+ --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
221
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px #1e284d0d, 0 10px 15px -3px #1e284d1a;
222
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
223
+ }
224
+
146
225
  .univer-transition-all {
147
226
  transition-property: all;
148
227
  transition-duration: .15s;
@@ -183,6 +262,14 @@
183
262
  --univer-tw-ring-offset-width: 2px;
184
263
  }
185
264
 
265
+ .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
266
+ background-color: var(--univer-gray-700) !important;
267
+ }
268
+
269
+ .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
270
+ color: var(--univer-white) !important;
271
+ }
272
+
186
273
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
187
274
  background-color: var(--univer-gray-700) !important;
188
275
  }