@univerjs-pro/collaboration-client-ui 1.0.0-alpha.2 → 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.
- package/README.md +6 -3
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +87 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/clipboard/docs/image/image-paste.controller.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +31 -0
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +3 -2
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +1 -1
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +11 -0
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +36 -0
- package/lib/types/index.d.ts +0 -2
- package/lib/types/locale/en-US.d.ts +5 -0
- package/lib/types/models/cursor.d.ts +12 -8
- package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +15 -0
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +2 -0
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +2 -2
- package/lib/types/views/shapes/text-bubble.shape.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -22
package/lib/es/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x39f281=_0x11e8;(function(_0x471fe4,_0xe0d9e6){const _0x1be1d2=_0x11e8,_0x57657f=_0x471fe4();while(!![]){try{const _0x45efda=parseInt(_0x1be1d2(0x15b))/0x1*(-parseInt(_0x1be1d2(0x159))/0x2)+parseInt(_0x1be1d2(0x15e))/0x3*(parseInt(_0x1be1d2(0x16c))/0x4)+-parseInt(_0x1be1d2(0x163))/0x5+-parseInt(_0x1be1d2(0x162))/0x6*(-parseInt(_0x1be1d2(0x172))/0x7)+parseInt(_0x1be1d2(0x15f))/0x8+-parseInt(_0x1be1d2(0x160))/0x9*(-parseInt(_0x1be1d2(0x16e))/0xa)+-parseInt(_0x1be1d2(0x16b))/0xb*(parseInt(_0x1be1d2(0x168))/0xc);if(_0x45efda===_0xe0d9e6)break;else _0x57657f['push'](_0x57657f['shift']());}catch(_0x15a9aa){_0x57657f['push'](_0x57657f['shift']());}}}(_0x479e,0x46121));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x39f281(0x166)}},'collabStatus':{'fetchMiss':_0x39f281(0x164),'conflict':'編輯衝突','notCollab':_0x39f281(0x175),'synced':'已同步','syncing':_0x39f281(0x165),'offline':'已離線,編輯將儲存在本機'},'snapshotLoading':{'loadingSheet':_0x39f281(0x161),'timeout':'資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','refresh':_0x39f281(0x16d)},'session':{'connection-failed':_0x39f281(0x15d),'will-retry':_0x39f281(0x171),'room-full':_0x39f281(0x167),'collaboration-timeout':_0x39f281(0x169)},'conflict':{'title':_0x39f281(0x170),'content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x39f281(0x15c),'content':_0x39f281(0x158)},'collaboration':{'offline-data-not-saved':_0x39f281(0x16f),'single-unit':{'warning':_0x39f281(0x173)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x39f281(0x15a)},'formula':{'calculation':{'started':'公式計算已開始。','waiting':_0x39f281(0x16a),'unable':_0x39f281(0x174)}}}};function _0x11e8(_0x150d5f,_0xe5744f){_0x150d5f=_0x150d5f-0x158;const _0x479e36=_0x479e();let _0x11e82d=_0x479e36[_0x150d5f];return _0x11e82d;}export{e as default};function _0x479e(){const _0x28025a=['1045033zFpAkS','1189616mqbuqW','重新整理頁面','10uiajpz','您有未儲存至伺服器的離線編輯,請檢查網絡後重試。','協作衝突','連線失敗,將在稍後重試連線。','395248Tgwzzb','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','目前無法執行公式計算,請稍後重試。','本機檔案','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','3810kOrAPU','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','301PXSllj','認證錯誤','連線失敗,請檢查您的網絡。','3vRQjHn','3012304HgJXXB','3903129zguFqv','正在載入工作表','42ClRWvC','1312225VyyYyV','正在擷取伺服器資料...','同步中...','點擊重新連線','協作房間已滿,您的編輯將暫存於本機。','48DGlZSM','伺服器未回應協作請求,您的編輯將儲存在本機。','公式計算佇列已滿,正在等待可用資源...'];_0x479e=function(){return _0x28025a;};return _0x479e();}
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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
|
}
|