@univerjs/action-recorder 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/lib/cjs/index.js +180 -193
- package/lib/cjs/locale/ar-SA.js +18 -7
- package/lib/cjs/locale/ca-ES.js +18 -7
- package/lib/cjs/locale/de-DE.js +18 -7
- package/lib/cjs/locale/en-US.js +18 -7
- package/lib/cjs/locale/es-ES.js +18 -7
- package/lib/cjs/locale/fa-IR.js +18 -7
- package/lib/cjs/locale/fr-FR.js +18 -7
- package/lib/cjs/locale/id-ID.js +18 -7
- package/lib/cjs/locale/it-IT.js +18 -7
- package/lib/cjs/locale/ja-JP.js +18 -7
- package/lib/cjs/locale/ko-KR.js +18 -7
- package/lib/cjs/locale/pl-PL.js +18 -7
- package/lib/cjs/locale/pt-BR.js +18 -7
- package/lib/cjs/locale/ru-RU.js +18 -7
- package/lib/cjs/locale/sk-SK.js +18 -7
- package/lib/cjs/locale/vi-VN.js +18 -7
- package/lib/cjs/locale/zh-CN.js +18 -7
- package/lib/cjs/locale/zh-HK.js +18 -7
- package/lib/cjs/locale/zh-TW.js +18 -7
- package/lib/es/index.js +181 -195
- package/lib/es/locale/ar-SA.js +18 -7
- package/lib/es/locale/ca-ES.js +18 -7
- package/lib/es/locale/de-DE.js +18 -7
- package/lib/es/locale/en-US.js +18 -7
- package/lib/es/locale/es-ES.js +18 -7
- package/lib/es/locale/fa-IR.js +18 -7
- package/lib/es/locale/fr-FR.js +18 -7
- package/lib/es/locale/id-ID.js +18 -7
- package/lib/es/locale/it-IT.js +18 -7
- package/lib/es/locale/ja-JP.js +18 -7
- package/lib/es/locale/ko-KR.js +18 -7
- package/lib/es/locale/pl-PL.js +18 -7
- package/lib/es/locale/pt-BR.js +18 -7
- package/lib/es/locale/ru-RU.js +18 -7
- package/lib/es/locale/sk-SK.js +18 -7
- package/lib/es/locale/vi-VN.js +18 -7
- package/lib/es/locale/zh-CN.js +18 -7
- package/lib/es/locale/zh-HK.js +18 -7
- package/lib/es/locale/zh-TW.js +18 -7
- package/lib/index.js +181 -195
- package/lib/locale/ar-SA.js +18 -7
- package/lib/locale/ca-ES.js +18 -7
- package/lib/locale/de-DE.js +18 -7
- package/lib/locale/en-US.js +18 -7
- package/lib/locale/es-ES.js +18 -7
- package/lib/locale/fa-IR.js +18 -7
- package/lib/locale/fr-FR.js +18 -7
- package/lib/locale/id-ID.js +18 -7
- package/lib/locale/it-IT.js +18 -7
- package/lib/locale/ja-JP.js +18 -7
- package/lib/locale/ko-KR.js +18 -7
- package/lib/locale/pl-PL.js +18 -7
- package/lib/locale/pt-BR.js +18 -7
- package/lib/locale/ru-RU.js +18 -7
- package/lib/locale/sk-SK.js +18 -7
- package/lib/locale/vi-VN.js +18 -7
- package/lib/locale/zh-CN.js +18 -7
- package/lib/locale/zh-HK.js +18 -7
- package/lib/locale/zh-TW.js +18 -7
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -0
- 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 +10 -10
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/id-ID.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Merekam...",
|
|
5
|
+
startRecording: "Mulai merekam",
|
|
6
|
+
cancel: "Batal",
|
|
7
|
+
close: "Tutup",
|
|
8
|
+
save: "Simpan",
|
|
9
|
+
start: "Mulai",
|
|
10
|
+
startWithId: "Mulai (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Rekam Aksi",
|
|
14
|
+
record: "Rekam Aksi...",
|
|
15
|
+
"replay-local": "Putar Ulang Rekaman Lokal...",
|
|
16
|
+
"replay-local-name": "Putar Ulang Rekaman Lokal berdasarkan Subunit...",
|
|
17
|
+
"replay-local-active": "Putar Ulang Rekaman Lokal berdasarkan Subunit Saat Ini..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/it-IT.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Registrazione...",
|
|
5
|
+
startRecording: "Avvia registrazione",
|
|
6
|
+
cancel: "Annulla",
|
|
7
|
+
close: "Chiudi",
|
|
8
|
+
save: "Salva",
|
|
9
|
+
start: "Avvia",
|
|
10
|
+
startWithId: "Avvia (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Registra Azioni",
|
|
14
|
+
record: "Registra Azioni...",
|
|
15
|
+
"replay-local": "Riproduci Registrazione Locale...",
|
|
16
|
+
"replay-local-name": "Riproduci Registrazione Locale per Sottoelemento...",
|
|
17
|
+
"replay-local-active": "Riproduci Registrazione Locale per Sottoelemento Corrente..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/ja-JP.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "記録中...",
|
|
5
|
+
startRecording: "記録を開始",
|
|
6
|
+
cancel: "キャンセル",
|
|
7
|
+
close: "閉じる",
|
|
8
|
+
save: "保存",
|
|
9
|
+
start: "開始",
|
|
10
|
+
startWithId: "開始 (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "操作記録",
|
|
14
|
+
record: "記録を開始...",
|
|
15
|
+
"replay-local": "ローカルの記録で置き換え...",
|
|
16
|
+
"replay-local-name": "サブ単位ごとにローカルの記録で置き換え...",
|
|
17
|
+
"replay-local-active": "現在のサブ単位をローカルの記録で置き換え..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/ko-KR.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "기록 중...",
|
|
5
|
+
startRecording: "기록 시작",
|
|
6
|
+
cancel: "취소",
|
|
7
|
+
close: "닫기",
|
|
8
|
+
save: "저장",
|
|
9
|
+
start: "시작",
|
|
10
|
+
startWithId: "시작 (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "동작 기록",
|
|
14
|
+
record: "동작 기록 시작...",
|
|
15
|
+
"replay-local": "로컬 기록 대체...",
|
|
16
|
+
"replay-local-name": "하위 단위로 로컬 기록 대체...",
|
|
17
|
+
"replay-local-active": "현재 하위 단위로 로컬 기록 대체..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/pl-PL.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Nagrywanie...",
|
|
5
|
+
startRecording: "Rozpocznij nagrywanie",
|
|
6
|
+
cancel: "Anuluj",
|
|
7
|
+
close: "Zamknij",
|
|
8
|
+
save: "Zapisz",
|
|
9
|
+
start: "Rozpocznij",
|
|
10
|
+
startWithId: "Rozpocznij (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Nagraj działania",
|
|
14
|
+
record: "Nagraj działania...",
|
|
15
|
+
"replay-local": "Odtwórz nagranie lokalne...",
|
|
16
|
+
"replay-local-name": "Odtwórz nagranie lokalne według jednostki podrzędnej...",
|
|
17
|
+
"replay-local-active": "Odtwórz nagranie lokalne według bieżącej jednostki podrzędnej..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/pt-BR.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Gravando...",
|
|
5
|
+
startRecording: "Iniciar gravação",
|
|
6
|
+
cancel: "Cancelar",
|
|
7
|
+
close: "Fechar",
|
|
8
|
+
save: "Salvar",
|
|
9
|
+
start: "Iniciar",
|
|
10
|
+
startWithId: "Iniciar (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Gravar Ações",
|
|
14
|
+
record: "Gravar Ações...",
|
|
15
|
+
"replay-local": "Substituir Gravação Local...",
|
|
16
|
+
"replay-local-name": "Substituir Gravação Local por Subunidade...",
|
|
17
|
+
"replay-local-active": "Substituir Gravação Local pela Subunidade Atual..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/ru-RU.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Запись...",
|
|
5
|
+
startRecording: "Начать запись",
|
|
6
|
+
cancel: "Отмена",
|
|
7
|
+
close: "Закрыть",
|
|
8
|
+
save: "Сохранить",
|
|
9
|
+
start: "Начать",
|
|
10
|
+
startWithId: "Начать (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Record Actions",
|
|
14
|
+
record: "Record Actions...",
|
|
15
|
+
"replay-local": "Replace Local Record...",
|
|
16
|
+
"replay-local-name": "Replace Local Record by Subunit...",
|
|
17
|
+
"replay-local-active": "Replace Local Record by Current Subunit..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/sk-SK.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Nahrávanie...",
|
|
5
|
+
startRecording: "Spustiť nahrávanie",
|
|
6
|
+
cancel: "Zrušiť",
|
|
7
|
+
close: "Zavrieť",
|
|
8
|
+
save: "Uložiť",
|
|
9
|
+
start: "Spustiť",
|
|
10
|
+
startWithId: "Spustiť (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Zaznamenať akcie",
|
|
14
|
+
record: "Zaznamenať akcie...",
|
|
15
|
+
"replay-local": "Nahradiť miestny záznam...",
|
|
16
|
+
"replay-local-name": "Nahradiť miestny záznam podľa podjednotky...",
|
|
17
|
+
"replay-local-active": "Nahradiť miestny záznam podľa aktuálnej podjednotky..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/vi-VN.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "Đang ghi...",
|
|
5
|
+
startRecording: "Bắt đầu ghi",
|
|
6
|
+
cancel: "Hủy",
|
|
7
|
+
close: "Đóng",
|
|
8
|
+
save: "Lưu",
|
|
9
|
+
start: "Bắt đầu",
|
|
10
|
+
startWithId: "Bắt đầu (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "Record Actions",
|
|
14
|
+
record: "Record Actions...",
|
|
15
|
+
"replay-local": "Replace Local Record...",
|
|
16
|
+
"replay-local-name": "Replace Local Record by Subunit...",
|
|
17
|
+
"replay-local-active": "Replace Local Record by Current Subunit..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/zh-CN.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "录制中...",
|
|
5
|
+
startRecording: "开始录制",
|
|
6
|
+
cancel: "取消",
|
|
7
|
+
close: "关闭",
|
|
8
|
+
save: "保存",
|
|
9
|
+
start: "开始",
|
|
10
|
+
startWithId: "开始 (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "操作录制",
|
|
14
|
+
record: "录制操作...",
|
|
15
|
+
"replay-local": "回放本地录制...",
|
|
16
|
+
"replay-local-name": "根据子表名回放本地录制...",
|
|
17
|
+
"replay-local-active": "根据当前子表回放本地录制..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/zh-HK.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "錄製中...",
|
|
5
|
+
startRecording: "開始錄製",
|
|
6
|
+
cancel: "取消",
|
|
7
|
+
close: "關閉",
|
|
8
|
+
save: "儲存",
|
|
9
|
+
start: "開始",
|
|
10
|
+
startWithId: "開始 (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "操作錄製",
|
|
14
|
+
record: "錄製操作...",
|
|
15
|
+
"replay-local": "回放本地錄製...",
|
|
16
|
+
"replay-local-name": "根據子表名回放本地錄製...",
|
|
17
|
+
"replay-local-active": "根據當前子表回放本地錄製..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
|
-
const locale = { "action-recorder": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const locale = { "action-recorder": {
|
|
3
|
+
panel: {
|
|
4
|
+
recording: "錄製中...",
|
|
5
|
+
startRecording: "開始錄製",
|
|
6
|
+
cancel: "取消",
|
|
7
|
+
close: "關閉",
|
|
8
|
+
save: "儲存",
|
|
9
|
+
start: "開始",
|
|
10
|
+
startWithId: "開始 (N)"
|
|
11
|
+
},
|
|
12
|
+
menu: {
|
|
13
|
+
title: "操作錄製",
|
|
14
|
+
record: "錄製操作...",
|
|
15
|
+
"replay-local": "回放本地錄製...",
|
|
16
|
+
"replay-local-name": "根據子表名回放本地錄製...",
|
|
17
|
+
"replay-local-active": "根據當前子表回放本地錄製..."
|
|
18
|
+
}
|
|
19
|
+
} };
|
|
9
20
|
|
|
10
21
|
//#endregion
|
|
11
22
|
export { locale as default };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import './global.css';
|
|
17
17
|
export type { IUniverActionRecorderConfig } from './config/config';
|
|
18
|
+
export { menuSchema as ActionRecorderMenuSchema } from './menu/action-recorder.menu';
|
|
18
19
|
export { UniverActionRecorderPlugin } from './plugin';
|
|
19
20
|
export { ActionRecorderService } from './services/action-recorder.service';
|
|
20
21
|
export { ActionReplayService } from './services/replay.service';
|
|
@@ -15,6 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
declare const locale: {
|
|
17
17
|
'action-recorder': {
|
|
18
|
+
panel: {
|
|
19
|
+
recording: string;
|
|
20
|
+
startRecording: string;
|
|
21
|
+
cancel: string;
|
|
22
|
+
close: string;
|
|
23
|
+
save: string;
|
|
24
|
+
start: string;
|
|
25
|
+
startWithId: string;
|
|
26
|
+
};
|
|
18
27
|
menu: {
|
|
19
28
|
title: string;
|
|
20
29
|
record: string;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/core"),require("@univerjs/sheets"),require("@univerjs/sheets-filter"),require("@univerjs/sheets-ui"),require("@univerjs/ui"),require("rxjs"),require("@univerjs/design"),require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/core`,`@univerjs/sheets`,`@univerjs/sheets-filter`,`@univerjs/sheets-ui`,`@univerjs/ui`,`rxjs`,`@univerjs/design`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverActionRecorder={},e.UniverCore,e.UniverSheets,e.UniverSheetsFilter,e.UniverSheetsUi,e.UniverUi,e.rxjs,e.UniverDesign,e.React,e.React))})(this,function(e,t,n,r,i,a,o,s,c,l){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var u=`@univerjs/action-recorder`,d=`1.0.0-alpha.2`;let f={};function p(e){"@babel/helpers - typeof";return p=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},p(e)}function m(e,t){if(p(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(p(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function h(e){var t=m(e,`string`);return p(t)==`symbol`?t:t+``}function g(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(n,r){t(n,r,e)}}function v(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let y=class extends t.Disposable{get recording(){return this._recording$.getValue()}get _recorded(){return this._recorded$.getValue()}get _recordedCommands(){return this._recordedCommands$.getValue()}constructor(e,t,n,r){super(),this._commandSrv=e,this._logService=t,this._localFileService=n,this._instanceService=r,g(this,`_shouldRecordCommands`,new Set),g(this,`_panelOpened$`,new o.BehaviorSubject(!1)),g(this,`panelOpened$`,this._panelOpened$.asObservable()),g(this,`_recorder`,null),g(this,`_recording$`,new o.BehaviorSubject(!1)),g(this,`recording$`,this._recording$.asObservable()),g(this,`_recorded$`,new o.BehaviorSubject([])),g(this,`_recordedCommands$`,new o.BehaviorSubject([])),g(this,`recordedCommands$`,this._recordedCommands$.asObservable())}registerRecordedCommand(e){if(e.type===t.CommandType.MUTATION)throw Error(`[CommandRecorderService] Cannot record mutation commands.`);this._shouldRecordCommands.add(e.id)}togglePanel(e){this._panelOpened$.next(e),e===!1&&this.stopRecording()}startRecording(e=!1){this._recorder=this._commandSrv.onCommandExecuted(r=>{if(this._shouldRecordCommands.has(r.id)){var i;let o=this._recorded,s=this._recordedCommands,c={...r},l=(i=this._instanceService.getFocusedUnit())==null?void 0:i.getUnitId(),{unitId:u=l,subUnitId:d}=c==null?void 0:c.params;if(e&&u&&d){var a;let e=(a=this._instanceService.getUnit(u).getSheetBySheetId(d))==null?void 0:a.getName();c={...c,params:{...c.params,subUnitId:e}}}c.id===n.SetSelectionsOperation.id&&o.length>0&&o[o.length-1].id===n.SetSelectionsOperation.id?o[o.length-1]=c:(o.push(c),this._recorded$.next(o),c.type===t.CommandType.COMMAND&&(s.push(c),this._recordedCommands$.next(s)))}}),this._recording$.next(!0)}stopRecording(){var e;(e=this._recorder)==null||e.dispose(),this._recorder=null,this._recorded$.next([]),this._recordedCommands$.next([]),this._recording$.next(!1)}completeRecording(){let e=this._recorded.slice();this._localFileService.downloadFile(new Blob([JSON.stringify(e,null,2)]),`recorded-commands.json`),this._logService.error(`Recorded commands:`,e),this.stopRecording()}};y=v([_(0,t.ICommandService),_(1,t.ILogService),_(2,a.ILocalFileService),_(3,t.IUniverInstanceService)],y);let b={id:`action-recorder.command.start-recording`,type:t.CommandType.COMMAND,handler:(e,t)=>(e.get(y).startRecording(!!(t!=null&&t.replaceId)),!0)},x={id:`action-recorder.command.complete-recording`,type:t.CommandType.COMMAND,handler:e=>(e.get(y).completeRecording(),!0)},S={id:`action-recorder.command.stop-recording`,type:t.CommandType.COMMAND,handler:e=>(e.get(y).completeRecording(),!0)},C=class extends t.Disposable{constructor(e,t,n,r,i){super(),this._messageService=e,this._instanceService=t,this._localFileService=n,this._logService=r,this._commandService=i}async replayLocalJSON(e=`default`){let t=await this._localFileService.openFile({multiple:!1,accept:`.json`});if(t.length!==1)return!1;let n=t[0];try{return this.replayCommands(JSON.parse(await n.text()),{mode:e})}catch{return this._messageService.show({type:s.MessageType.Error,content:`Failed to replay commands from local file ${n.name}.`}),!1}}async replayCommands(e,t){var n;let r=(n=this._instanceService.getFocusedUnit())==null?void 0:n.getUnitId();r||this._logService.error(`[ReplayService]`,`no focused unit to replay commands`);let{mode:i}=t||{};for(let t of e){let{id:e,params:n}=t,s=n;if(s){if(s.unitId!==void 0&&(s.unitId=r),i===`name`&&s.subUnitId!==`undefined`){var a;let e=(a=this._instanceService.getFocusedUnit().getSheetBySheetName(s.subUnitId))==null?void 0:a.getSheetId();e?s.subUnitId=e:this._logService.error(`[ReplayService]`,`failed to find subunit by subUnitName = ${s.subUnitId}`)}if(i===`active`&&s.subUnitId!==`undefined`){var o;let e=(o=this._instanceService.getFocusedUnit().getActiveSheet())==null?void 0:o.getSheetId();e?s.subUnitId=e:this._logService.error(`[ReplayService]`,`failed to find active subunit`)}if(!await this._commandService.executeCommand(e,n))return!1}else if(!await this._commandService.executeCommand(e))return!1}return!0}async replayCommandsWithDelay(e){var n;let r=(n=this._instanceService.getFocusedUnit())==null?void 0:n.getUnitId();r||this._logService.error(`[ReplayService]`,`no focused unit to replay commands`);for(let n of e){await(0,t.awaitTime)(w());let{id:e,params:i}=n;if(i){if(i.unitId!==void 0&&(i.unitId=r),!await this._commandService.executeCommand(e,i))return!1}else if(!await this._commandService.executeCommand(e))return!1}return!0}};C=v([_(0,a.IMessageService),_(1,t.IUniverInstanceService),_(2,a.ILocalFileService),_(3,t.ILogService),_(4,t.ICommandService)],C);function w(){return Math.floor(Math.random()*800)+200}let T={id:`action-recorder.command.replay-local-records`,type:t.CommandType.COMMAND,handler:async e=>{let t=await e.get(C).replayLocalJSON();return t&&e.get(a.IMessageService).show({type:s.MessageType.Success,content:`Successfully replayed local records`}),t}},E={id:`action-recorder.command.replay-local-records-name`,type:t.CommandType.COMMAND,handler:async e=>{let t=await e.get(C).replayLocalJSON(`name`);return t&&e.get(a.IMessageService).show({type:s.MessageType.Success,content:`Successfully replayed local records`}),t}},D={id:`action-recorder.command.replay-local-records-active`,type:t.CommandType.COMMAND,handler:async e=>{let t=await e.get(C).replayLocalJSON(`active`);return t&&e.get(a.IMessageService).show({type:s.MessageType.Success,content:`Successfully replayed local records`}),t}},O={id:`action-recorder.operation.open-panel`,type:t.CommandType.OPERATION,handler(e){return e.get(y).togglePanel(!0),!0}},k={id:`action-recorder.operation.close-panel`,type:t.CommandType.OPERATION,handler(e){return e.get(y).togglePanel(!1),!0}},A=`RECORD_MENU_ITEM`;function j(){return{id:A,type:a.MenuItemType.SUBITEMS,icon:`RecordIcon`,tooltip:`action-recorder.menu.title`}}function M(e){let t=e.get(y);return{id:O.id,title:`action-recorder.menu.record`,type:a.MenuItemType.BUTTON,disabled$:t.panelOpened$}}function N(){return{id:T.id,title:`action-recorder.menu.replay-local`,type:a.MenuItemType.BUTTON}}function P(){return{id:E.id,title:`action-recorder.menu.replay-local-name`,type:a.MenuItemType.BUTTON}}function F(){return{id:D.id,title:`action-recorder.menu.replay-local-active`,type:a.MenuItemType.BUTTON}}let I={[a.RibbonOthersGroup.OTHERS]:{[A]:{order:1,menuItemFactory:j,[O.id]:{order:1,menuItemFactory:M},[T.id]:{order:2,menuItemFactory:N},[E.id]:{order:3,menuItemFactory:P},[D.id]:{order:4,menuItemFactory:F}}}};function L({ref:e,...t}){let{icon:n,id:r,className:i,extend:a,...o}=t,s=`univerjs-icon univerjs-icon-${r} ${i||``}`.trim(),l=(0,c.useRef)(`_${V()}`);return R(n,`${r}`,{defIds:n.defIds,idSuffix:l.current},{ref:e,className:s,...o},a)}function R(e,t,n,r,i){return(0,c.createElement)(e.tag,{key:t,...z(e,n,i),...r},(B(e,n).children||[]).map((r,a)=>R(r,`${t}-${e.tag}-${a}`,n,void 0,i)))}function z(e,t,n){let r={...e.attrs};n!=null&&n.colorChannel1&&r.fill===`colorChannel1`&&(r.fill=n.colorChannel1),n!=null&&n.colorChannel1&&r.stroke===`colorChannel1`&&(r.stroke=n.colorChannel1),e.tag===`mask`&&r.id&&(r.id+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{e===`mask`&&typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return!i||i.length===0?r:(e.tag===`use`&&r[`xlink:href`]&&(r[`xlink:href`]+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))}),r)}function B(e,t){var n;let{defIds:r}=t;return!r||r.length===0?e:e.tag===`defs`&&(n=e.children)!=null&&n.length?{...e,children:e.children.map(e=>typeof e.attrs.id==`string`&&r&&r.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e}function V(){return Math.random().toString(36).substring(2,8)}L.displayName=`UniverIcon`;let H={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 17 16`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{fill:`currentColor`,clipPath:`url(#record-icon_clip0_1559_19)`},children:[{tag:`path`,attrs:{d:`M7.60303 10C8.7076 10 9.60303 9.10457 9.60303 8C9.60303 6.89543 8.7076 6 7.60303 6C6.49846 6 5.60303 6.89543 5.60303 8C5.60303 9.10457 6.49846 10 7.60303 10Z`}},{tag:`path`,attrs:{d:`M1.66943 5.29023C1.66941 3.85426 2.83349 2.69017 4.26946 2.69019L10.9362 2.69026C12.3192 2.69028 13.45 3.77008 13.5315 5.13259L14.5692 4.55638C15.3024 4.14929 16.2032 4.67947 16.2032 5.51809V10.4819C16.2032 11.3205 15.3024 11.8507 14.5692 11.4436L13.5315 10.8674C13.45 12.2299 12.3192 13.3097 10.9362 13.3097H4.26953C2.83361 13.3097 1.66956 12.1457 1.66953 10.7098L1.66943 5.29023ZM13.5362 9.49743L15.0032 10.312V5.68799L13.5362 6.50254V9.49743ZM4.26945 3.89019C3.49623 3.89018 2.86942 4.517 2.86943 5.29021L2.86953 10.7098C2.86955 11.483 3.49634 12.1097 4.26953 12.1097H10.9362C11.7094 12.1097 12.3362 11.4829 12.3362 10.7097V5.29026C12.3362 4.51707 11.7094 3.89027 10.9362 3.89026L4.26945 3.89019Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},{tag:`defs`,attrs:{},children:[{tag:`clipPath`,attrs:{id:`record-icon_clip0_1559_19`},children:[{tag:`path`,attrs:{fill:`white`,d:`M0 0H16V16H0z`,transform:`translate(.94)`}}]}]}],defIds:[`record-icon_clip0_1559_19`]},U=(0,c.forwardRef)(function(e,t){return(0,c.createElement)(L,Object.assign({},e,{id:`record-icon`,ref:t,icon:H}))});U.displayName=`RecordIcon`;function W(){return(0,a.useObservable)((0,a.useDependency)(y).panelOpened$)?(0,l.jsx)(G,{}):null}function G(){var e;let n=(0,a.useDependency)(t.ICommandService),r=(0,a.useDependency)(y),i=(0,a.useObservable)(r.recording$),o=(0,a.useObservable)(r.recordedCommands$),u=(e=o==null?void 0:o.length)==null?0:e,d=(0,c.useCallback)(()=>{i||n.executeCommand(k.id)},[n,i]),f=(0,c.useCallback)(e=>{i||n.executeCommand(b.id,{replaceId:e})},[n,i]),p=(0,c.useCallback)(()=>{i&&n.executeCommand(x.id)},[n,i]),m=(0,c.useCallback)(()=>{i&&n.executeCommand(S.id)},[n,i]),h=i?u===0?`Recording...`:`${u}: ${o[u-1].id}`:`Start Recording`;return(0,l.jsxs)(`div`,{className:`univer-fixed univer-bottom-20 univer-left-1/2 univer-z-[1000] univer-flex univer-h-16 univer-w-[512px] -univer-translate-x-1/2 univer-items-center univer-rounded-lg univer-bg-white univer-px-5 univer-shadow-lg`,children:[(0,l.jsx)(`div`,{className:`univer-mr-2 univer-size-5 univer-shrink-0 univer-grow-0 univer-text-xl`,children:(0,l.jsx)(U,{})}),(0,l.jsx)(`div`,{className:`univer-flex-1 univer-text-sm`,children:h}),(0,l.jsxs)(`div`,{className:`univer-flex univer-w-64 univer-shrink-0 univer-grow-0 univer-justify-between`,children:[(0,l.jsx)(s.Button,{className:`univer-w-20`,onClick:i?m:d,children:i?`Cancel`:`Close`}),(0,l.jsx)(s.Button,{className:`univer-w-20`,variant:`primary`,onClick:i?p:()=>f(),children:i?`Save`:`Start`}),!i&&(0,l.jsx)(s.Button,{variant:`primary`,onClick:()=>f(!0),children:`Start(N)`})]})]})}let K=class extends t.Disposable{constructor(e,t,n,r,i){super(),this._commandSrv=e,this._uiPartsSrv=t,this._menuManagerService=n,this._actionRecorderService=r,this._injector=i,this._initCommands(),this._initUI(),this._initSheetsCommands(),this._initDocsCommands()}_initCommands(){[b,S,x,O,k,T,E,D].forEach(e=>this._commandSrv.registerCommand(e))}_initUI(){this._uiPartsSrv.registerComponent(a.BuiltInUIPart.GLOBAL,()=>(0,a.connectInjector)(W,this._injector)),this._menuManagerService.mergeMenu(I)}_initSheetsCommands(){[n.CopySheetCommand,n.DeleteRangeMoveLeftCommand,n.DeleteRangeMoveUpCommand,n.DeltaColumnWidthCommand,n.DeltaRowHeightCommand,n.InsertSheetCommand,n.InsertColAfterCommand,n.InsertColBeforeCommand,n.InsertRowAfterCommand,n.InsertRowBeforeCommand,n.RemoveSheetCommand,n.SetStyleCommand,n.AddWorksheetMergeCommand,n.AddWorksheetMergeAllCommand,n.AddWorksheetMergeVerticalCommand,n.AddWorksheetMergeHorizontalCommand,n.SetFrozenCommand,n.CancelFrozenCommand,n.SetHorizontalTextAlignCommand,n.SetOverlineCommand,i.SetRangeBoldCommand,i.SetRangeFontFamilyCommand,i.SetRangeFontSizeCommand,i.SetRangeItalicCommand,i.SetRangeStrickThroughCommand,i.SetRangeSubscriptCommand,i.SetRangeSuperscriptCommand,i.SetRangeTextColorCommand,i.SetRangeUnderlineCommand,n.SetRangeValuesCommand,n.SetStrikeThroughCommand,n.SetTextColorCommand,n.SetTextRotationCommand,n.SetTextWrapCommand,n.SetVerticalTextAlignCommand,i.SheetCopyCommand,i.SheetCutCommand,i.SheetPasteBesidesBorderCommand,i.SheetPasteColWidthCommand,i.SheetPasteCommand,i.SheetPasteFormatCommand,i.SheetPasteShortKeyCommand,i.SheetPasteValueCommand,n.AutoFillCommand,n.RefillCommand,n.SetWorksheetActivateCommand,n.SetWorksheetActiveOperation,n.SetSelectionsOperation,r.SetSheetFilterRangeCommand,r.SetSheetsFilterCriteriaCommand,r.RemoveSheetFilterCommand].forEach(e=>this._actionRecorderService.registerRecordedCommand(e))}_initDocsCommands(){}};K=v([_(0,t.ICommandService),_(1,a.IUIPartsService),_(2,a.IMenuManagerService),_(3,(0,t.Inject)(y)),_(4,(0,t.Inject)(t.Injector))],K);let q=class extends t.Disposable{constructor(e,t){super(),this._componentManager=e,this._iconManager=t,this._registerIcons()}_registerIcons(){this.disposeWithMe(this._iconManager.register({RecordIcon:U}))}};q=v([_(0,(0,t.Inject)(a.ComponentManager)),_(1,(0,t.Inject)(a.IconManager))],q);let J=class extends t.Plugin{constructor(e=f,n,r){super(),this._config=e,this._injector=n,this._configService=r;let{menu:i,...a}=(0,t.merge)({},f,this._config);i&&this._configService.setConfig(`menu`,i,{merge:!0}),this._configService.setConfig(`action-recorder.config`,a)}onStarting(){this._injector.add([q]),this._injector.get(q),(this._config.replayOnly?[[C]]:[[y],[C],[K]]).forEach(e=>this._injector.add(e))}onSteady(){this._config.replayOnly||this._injector.get(K)}};g(J,`pluginName`,`UNIVER_ACTION_RECORDER_PLUGIN`),g(J,`packageName`,u),g(J,`version`,d),J=v([_(1,(0,t.Inject)(t.Injector)),_(2,t.IConfigService)],J),Object.defineProperty(e,"ActionRecorderService",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"ActionReplayService",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"UniverActionRecorderPlugin",{enumerable:!0,get:function(){return J}})});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/ui"),require("@univerjs/core"),require("@univerjs/design"),require("@univerjs/sheets"),require("rxjs"),require("@univerjs/sheets-filter"),require("@univerjs/sheets-ui"),require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/ui`,`@univerjs/core`,`@univerjs/design`,`@univerjs/sheets`,`rxjs`,`@univerjs/sheets-filter`,`@univerjs/sheets-ui`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverActionRecorder={},e.UniverUi,e.UniverCore,e.UniverDesign,e.UniverSheets,e.rxjs,e.UniverSheetsFilter,e.UniverSheetsUi,e.React,e.React))})(this,function(e,t,n,r,i,a,o,s,c,l){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function u(e,t){return function(n,r){t(n,r,e)}}function d(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let f=class extends n.Disposable{constructor(e,t,n,r,i){super(),this._messageService=e,this._instanceService=t,this._localFileService=n,this._logService=r,this._commandService=i}async replayLocalJSON(e=`default`){let t=await this._localFileService.openFile({multiple:!1,accept:`.json`});if(t.length!==1)return!1;let n=t[0];try{return this.replayCommands(JSON.parse(await n.text()),{mode:e})}catch{return this._messageService.show({type:r.MessageType.Error,content:`Failed to replay commands from local file ${n.name}.`}),!1}}async replayCommands(e,t){var n;let r=(n=this._instanceService.getFocusedUnit())==null?void 0:n.getUnitId();r||this._logService.error(`[ReplayService]`,`no focused unit to replay commands`);let{mode:i}=t||{};for(let t of e){let{id:e,params:n}=t,s=n;if(s){if(s.unitId!==void 0&&(s.unitId=r),i===`name`&&s.subUnitId!==`undefined`){var a;let e=(a=this._instanceService.getFocusedUnit().getSheetBySheetName(s.subUnitId))==null?void 0:a.getSheetId();e?s.subUnitId=e:this._logService.error(`[ReplayService]`,`failed to find subunit by subUnitName = ${s.subUnitId}`)}if(i===`active`&&s.subUnitId!==`undefined`){var o;let e=(o=this._instanceService.getFocusedUnit().getActiveSheet())==null?void 0:o.getSheetId();e?s.subUnitId=e:this._logService.error(`[ReplayService]`,`failed to find active subunit`)}if(!await this._commandService.executeCommand(e,n))return!1}else if(!await this._commandService.executeCommand(e))return!1}return!0}async replayCommandsWithDelay(e){var t;let r=(t=this._instanceService.getFocusedUnit())==null?void 0:t.getUnitId();r||this._logService.error(`[ReplayService]`,`no focused unit to replay commands`);for(let t of e){await(0,n.awaitTime)(p());let{id:e,params:i}=t;if(i){if(i.unitId!==void 0&&(i.unitId=r),!await this._commandService.executeCommand(e,i))return!1}else if(!await this._commandService.executeCommand(e))return!1}return!0}};f=d([u(0,t.IMessageService),u(1,n.IUniverInstanceService),u(2,t.ILocalFileService),u(3,n.ILogService),u(4,n.ICommandService)],f);function p(){return Math.floor(Math.random()*800)+200}let m={id:`action-recorder.command.replay-local-records`,type:n.CommandType.COMMAND,handler:async e=>{let n=await e.get(f).replayLocalJSON();return n&&e.get(t.IMessageService).show({type:r.MessageType.Success,content:`Successfully replayed local records`}),n}},h={id:`action-recorder.command.replay-local-records-name`,type:n.CommandType.COMMAND,handler:async e=>{let n=await e.get(f).replayLocalJSON(`name`);return n&&e.get(t.IMessageService).show({type:r.MessageType.Success,content:`Successfully replayed local records`}),n}},g={id:`action-recorder.command.replay-local-records-active`,type:n.CommandType.COMMAND,handler:async e=>{let n=await e.get(f).replayLocalJSON(`active`);return n&&e.get(t.IMessageService).show({type:r.MessageType.Success,content:`Successfully replayed local records`}),n}};function _(e){"@babel/helpers - typeof";return _=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_(e)}function v(e,t){if(_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y(e){var t=v(e,`string`);return _(t)==`symbol`?t:t+``}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let x=class extends n.Disposable{get recording(){return this._recording$.getValue()}get _recorded(){return this._recorded$.getValue()}get _recordedCommands(){return this._recordedCommands$.getValue()}constructor(e,t,n,r){super(),this._commandSrv=e,this._logService=t,this._localFileService=n,this._instanceService=r,b(this,`_shouldRecordCommands`,new Set),b(this,`_panelOpened$`,new a.BehaviorSubject(!1)),b(this,`panelOpened$`,this._panelOpened$.asObservable()),b(this,`_recorder`,null),b(this,`_recording$`,new a.BehaviorSubject(!1)),b(this,`recording$`,this._recording$.asObservable()),b(this,`_recorded$`,new a.BehaviorSubject([])),b(this,`_recordedCommands$`,new a.BehaviorSubject([])),b(this,`recordedCommands$`,this._recordedCommands$.asObservable())}registerRecordedCommand(e){if(e.type===n.CommandType.MUTATION)throw Error(`[CommandRecorderService] Cannot record mutation commands.`);this._shouldRecordCommands.add(e.id)}togglePanel(e){this._panelOpened$.next(e),e===!1&&this.stopRecording()}startRecording(e=!1){this._recorder=this._commandSrv.onCommandExecuted(t=>{if(this._shouldRecordCommands.has(t.id)){var r;let o=this._recorded,s=this._recordedCommands,c={...t},l=(r=this._instanceService.getFocusedUnit())==null?void 0:r.getUnitId(),{unitId:u=l,subUnitId:d}=c==null?void 0:c.params;if(e&&u&&d){var a;let e=(a=this._instanceService.getUnit(u).getSheetBySheetId(d))==null?void 0:a.getName();c={...c,params:{...c.params,subUnitId:e}}}c.id===i.SetSelectionsOperation.id&&o.length>0&&o[o.length-1].id===i.SetSelectionsOperation.id?o[o.length-1]=c:(o.push(c),this._recorded$.next(o),c.type===n.CommandType.COMMAND&&(s.push(c),this._recordedCommands$.next(s)))}}),this._recording$.next(!0)}stopRecording(){var e;(e=this._recorder)==null||e.dispose(),this._recorder=null,this._recorded$.next([]),this._recordedCommands$.next([]),this._recording$.next(!1)}completeRecording(){let e=this._recorded.slice();this._localFileService.downloadFile(new Blob([JSON.stringify(e,null,2)]),`recorded-commands.json`),this._logService.error(`Recorded commands:`,e),this.stopRecording()}};x=d([u(0,n.ICommandService),u(1,n.ILogService),u(2,t.ILocalFileService),u(3,n.IUniverInstanceService)],x);let S={id:`action-recorder.operation.open-panel`,type:n.CommandType.OPERATION,handler(e){return e.get(x).togglePanel(!0),!0}},C={id:`action-recorder.operation.close-panel`,type:n.CommandType.OPERATION,handler(e){return e.get(x).togglePanel(!1),!0}},w=`RECORD_MENU_ITEM`;function T(){return{id:w,type:t.MenuItemType.SUBITEMS,icon:`RecordIcon`,tooltip:`action-recorder.menu.title`}}function E(e){let n=e.get(x);return{id:S.id,title:`action-recorder.menu.record`,type:t.MenuItemType.BUTTON,disabled$:n.panelOpened$}}function D(){return{id:m.id,title:`action-recorder.menu.replay-local`,type:t.MenuItemType.BUTTON}}function O(){return{id:h.id,title:`action-recorder.menu.replay-local-name`,type:t.MenuItemType.BUTTON}}function k(){return{id:g.id,title:`action-recorder.menu.replay-local-active`,type:t.MenuItemType.BUTTON}}let A={[t.RibbonOthersGroup.OTHERS]:{[w]:{order:1,menuItemFactory:T,[S.id]:{order:1,menuItemFactory:E},[m.id]:{order:2,menuItemFactory:D},[h.id]:{order:3,menuItemFactory:O},[g.id]:{order:4,menuItemFactory:k}}}};var j=`@univerjs/action-recorder`,M=`1.0.0-alpha.4`;let N={},P={id:`action-recorder.command.start-recording`,type:n.CommandType.COMMAND,handler:(e,t)=>(e.get(x).startRecording(!!(t!=null&&t.replaceId)),!0)},F={id:`action-recorder.command.complete-recording`,type:n.CommandType.COMMAND,handler:e=>(e.get(x).completeRecording(),!0)},I={id:`action-recorder.command.stop-recording`,type:n.CommandType.COMMAND,handler:e=>(e.get(x).completeRecording(),!0)};function L({ref:e,...t}){let{icon:n,id:r,className:i,extend:a,...o}=t,s=`univerjs-icon univerjs-icon-${r} ${i||``}`.trim(),l=(0,c.useRef)(`_${V()}`);return R(n,`${r}`,{defIds:n.defIds,idSuffix:l.current},{ref:e,className:s,...o},a)}function R(e,t,n,r,i){return(0,c.createElement)(e.tag,{key:t,...z(e,n,i),...r},(B(e,n).children||[]).map((r,a)=>R(r,`${t}-${e.tag}-${a}`,n,void 0,i)))}function z(e,t,n){let r={...e.attrs};n!=null&&n.colorChannel1&&r.fill===`colorChannel1`&&(r.fill=n.colorChannel1),n!=null&&n.colorChannel1&&r.stroke===`colorChannel1`&&(r.stroke=n.colorChannel1),e.tag===`mask`&&r.id&&(r.id+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{e===`mask`&&typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return!i||i.length===0?r:(e.tag===`use`&&r[`xlink:href`]&&(r[`xlink:href`]+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))}),r)}function B(e,t){var n;let{defIds:r}=t;return!r||r.length===0?e:e.tag===`defs`&&(n=e.children)!=null&&n.length?{...e,children:e.children.map(e=>typeof e.attrs.id==`string`&&r&&r.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e}function V(){return Math.random().toString(36).substring(2,8)}L.displayName=`UniverIcon`;let H={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 17 16`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{fill:`currentColor`,clipPath:`url(#record-icon_clip0_1559_19)`},children:[{tag:`path`,attrs:{d:`M7.60303 10C8.7076 10 9.60303 9.10457 9.60303 8C9.60303 6.89543 8.7076 6 7.60303 6C6.49846 6 5.60303 6.89543 5.60303 8C5.60303 9.10457 6.49846 10 7.60303 10Z`}},{tag:`path`,attrs:{d:`M1.66943 5.29023C1.66941 3.85426 2.83349 2.69017 4.26946 2.69019L10.9362 2.69026C12.3192 2.69028 13.45 3.77008 13.5315 5.13259L14.5692 4.55638C15.3024 4.14929 16.2032 4.67947 16.2032 5.51809V10.4819C16.2032 11.3205 15.3024 11.8507 14.5692 11.4436L13.5315 10.8674C13.45 12.2299 12.3192 13.3097 10.9362 13.3097H4.26953C2.83361 13.3097 1.66956 12.1457 1.66953 10.7098L1.66943 5.29023ZM13.5362 9.49743L15.0032 10.312V5.68799L13.5362 6.50254V9.49743ZM4.26945 3.89019C3.49623 3.89018 2.86942 4.517 2.86943 5.29021L2.86953 10.7098C2.86955 11.483 3.49634 12.1097 4.26953 12.1097H10.9362C11.7094 12.1097 12.3362 11.4829 12.3362 10.7097V5.29026C12.3362 4.51707 11.7094 3.89027 10.9362 3.89026L4.26945 3.89019Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},{tag:`defs`,attrs:{},children:[{tag:`clipPath`,attrs:{id:`record-icon_clip0_1559_19`},children:[{tag:`path`,attrs:{fill:`white`,d:`M0 0H16V16H0z`,transform:`translate(.94)`}}]}]}],defIds:[`record-icon_clip0_1559_19`]},U=(0,c.forwardRef)(function(e,t){return(0,c.createElement)(L,Object.assign({},e,{id:`record-icon`,ref:t,icon:H}))});U.displayName=`RecordIcon`;function W(){return(0,t.useObservable)((0,t.useDependency)(x).panelOpened$)?(0,l.jsx)(G,{}):null}function G(){var e;let i=(0,t.useDependency)(n.ICommandService),a=(0,t.useDependency)(n.LocaleService),o=(0,t.useDependency)(x),s=(0,t.useObservable)(o.recording$),u=(0,t.useObservable)(o.recordedCommands$),d=(e=u==null?void 0:u.length)==null?0:e,f=(0,c.useCallback)(()=>{s||i.executeCommand(C.id)},[i,s]),p=(0,c.useCallback)(e=>{s||i.executeCommand(P.id,{replaceId:e})},[i,s]),m=(0,c.useCallback)(()=>{s&&i.executeCommand(F.id)},[i,s]),h=(0,c.useCallback)(()=>{s&&i.executeCommand(I.id)},[i,s]),g=s?d===0?a.t(`action-recorder.panel.recording`):`${d}: ${u[d-1].id}`:a.t(`action-recorder.panel.startRecording`);return(0,l.jsxs)(`div`,{className:`univer-fixed univer-bottom-20 univer-left-1/2 univer-z-[1000] univer-flex univer-h-16 univer-w-[512px] -univer-translate-x-1/2 univer-items-center univer-rounded-lg univer-bg-white univer-px-5 univer-shadow-lg`,children:[(0,l.jsx)(`div`,{className:`univer-mr-2 univer-size-5 univer-shrink-0 univer-grow-0 univer-text-xl`,children:(0,l.jsx)(U,{})}),(0,l.jsx)(`div`,{className:`univer-flex-1 univer-text-sm`,children:g}),(0,l.jsxs)(`div`,{className:`univer-flex univer-w-64 univer-shrink-0 univer-grow-0 univer-justify-between`,children:[(0,l.jsx)(r.Button,{className:`univer-w-20`,onClick:s?h:f,children:a.t(s?`action-recorder.panel.cancel`:`action-recorder.panel.close`)}),(0,l.jsx)(r.Button,{className:`univer-w-20`,variant:`primary`,onClick:s?m:()=>p(),children:a.t(s?`action-recorder.panel.save`:`action-recorder.panel.start`)}),!s&&(0,l.jsx)(r.Button,{variant:`primary`,onClick:()=>p(!0),children:a.t(`action-recorder.panel.startWithId`)})]})]})}let K=class extends n.Disposable{constructor(e,t,n,r,i){super(),this._commandSrv=e,this._uiPartsSrv=t,this._menuManagerService=n,this._actionRecorderService=r,this._injector=i,this._initCommands(),this._initUI(),this._initSheetsCommands(),this._initDocsCommands()}_initCommands(){[P,I,F,S,C,m,h,g].forEach(e=>this._commandSrv.registerCommand(e))}_initUI(){this._uiPartsSrv.registerComponent(t.BuiltInUIPart.GLOBAL,()=>(0,t.connectInjector)(W,this._injector)),this._menuManagerService.mergeMenu(A)}_initSheetsCommands(){[i.CopySheetCommand,i.DeleteRangeMoveLeftCommand,i.DeleteRangeMoveUpCommand,i.DeltaColumnWidthCommand,i.DeltaRowHeightCommand,i.InsertSheetCommand,i.InsertColAfterCommand,i.InsertColBeforeCommand,i.InsertRowAfterCommand,i.InsertRowBeforeCommand,i.RemoveSheetCommand,i.SetStyleCommand,i.AddWorksheetMergeCommand,i.AddWorksheetMergeAllCommand,i.AddWorksheetMergeVerticalCommand,i.AddWorksheetMergeHorizontalCommand,i.SetFrozenCommand,i.CancelFrozenCommand,i.SetHorizontalTextAlignCommand,i.SetOverlineCommand,s.SetRangeBoldCommand,s.SetRangeFontFamilyCommand,s.SetRangeFontSizeCommand,s.SetRangeItalicCommand,s.SetRangeStrickThroughCommand,s.SetRangeSubscriptCommand,s.SetRangeSuperscriptCommand,s.SetRangeTextColorCommand,s.SetRangeUnderlineCommand,i.SetRangeValuesCommand,i.SetStrikeThroughCommand,i.SetTextColorCommand,i.SetTextRotationCommand,i.SetTextWrapCommand,i.SetVerticalTextAlignCommand,s.SheetCopyCommand,s.SheetCutCommand,s.SheetPasteBesidesBorderCommand,s.SheetPasteColWidthCommand,s.SheetPasteCommand,s.SheetPasteFormatCommand,s.SheetPasteShortKeyCommand,s.SheetPasteValueCommand,i.AutoFillCommand,i.RefillCommand,i.SetWorksheetActivateCommand,i.SetWorksheetActiveOperation,i.SetSelectionsOperation,o.SetSheetFilterRangeCommand,o.SetSheetsFilterCriteriaCommand,o.RemoveSheetFilterCommand].forEach(e=>this._actionRecorderService.registerRecordedCommand(e))}_initDocsCommands(){}};K=d([u(0,n.ICommandService),u(1,t.IUIPartsService),u(2,t.IMenuManagerService),u(3,(0,n.Inject)(x)),u(4,(0,n.Inject)(n.Injector))],K);let q=class extends n.Disposable{constructor(e,t){super(),this._componentManager=e,this._iconManager=t,this._registerIcons()}_registerIcons(){this.disposeWithMe(this._iconManager.register({RecordIcon:U}))}};q=d([u(0,(0,n.Inject)(t.ComponentManager)),u(1,(0,n.Inject)(t.IconManager))],q);let J=class extends n.Plugin{constructor(e=N,t,r){super(),this._config=e,this._injector=t,this._configService=r;let{menu:i,...a}=(0,n.merge)({},N,this._config);i&&this._configService.setConfig(`menu`,i,{merge:!0}),this._configService.setConfig(`action-recorder.config`,a)}onStarting(){this._injector.add([q]),this._injector.get(q),(this._config.replayOnly?[[f]]:[[x],[f],[K]]).forEach(e=>this._injector.add(e))}onSteady(){this._config.replayOnly||this._injector.get(K)}};b(J,`pluginName`,`UNIVER_ACTION_RECORDER_PLUGIN`),b(J,`packageName`,j),b(J,`version`,M),J=d([u(1,(0,n.Inject)(n.Injector)),u(2,n.IConfigService)],J),e.ActionRecorderMenuSchema=A,Object.defineProperty(e,"ActionRecorderService",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"ActionReplayService",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"UniverActionRecorderPlugin",{enumerable:!0,get:function(){return J}})});
|
package/lib/umd/locale/ar-SA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderArSA=t())})(this,function(){return{"action-recorder":{menu:{title:`تسجيل الإجراءات`,record:`تسجيل الإجراءات...`,"replay-local":`استبدال السجل المحلي...`,"replay-local-name":`استبدال السجل المحلي بوحدة فرعية...`,"replay-local-active":`استبدال السجل المحلي بالوحدة الفرعية الحالية...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderArSA=t())})(this,function(){return{"action-recorder":{panel:{recording:`جارٍ التسجيل...`,startRecording:`بدء التسجيل`,cancel:`إلغاء`,close:`إغلاق`,save:`حفظ`,start:`بدء`,startWithId:`بدء (N)`},menu:{title:`تسجيل الإجراءات`,record:`تسجيل الإجراءات...`,"replay-local":`استبدال السجل المحلي...`,"replay-local-name":`استبدال السجل المحلي بوحدة فرعية...`,"replay-local-active":`استبدال السجل المحلي بالوحدة الفرعية الحالية...`}}}});
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderCaES=t())})(this,function(){return{"action-recorder":{menu:{title:`Grava accions`,record:`Grava accions...`,"replay-local":`Reemplaça gravació local...`,"replay-local-name":`Reemplaça gravació local per subunitat...`,"replay-local-active":`Reemplaça gravació local per subunitat actual...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderCaES=t())})(this,function(){return{"action-recorder":{panel:{recording:`S'està enregistrant...`,startRecording:`Inicia l’enregistrament`,cancel:`Cancel·la`,close:`Tanca`,save:`Desa`,start:`Inicia`,startWithId:`Inicia (N)`},menu:{title:`Grava accions`,record:`Grava accions...`,"replay-local":`Reemplaça gravació local...`,"replay-local-name":`Reemplaça gravació local per subunitat...`,"replay-local-active":`Reemplaça gravació local per subunitat actual...`}}}});
|
package/lib/umd/locale/de-DE.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderDeDE=t())})(this,function(){return{"action-recorder":{menu:{title:`Aktionen aufzeichnen`,record:`Aktionen aufzeichnen...`,"replay-local":`Lokale Aufzeichnung ersetzen...`,"replay-local-name":`Lokale Aufzeichnung nach Untereinheit ersetzen...`,"replay-local-active":`Lokale Aufzeichnung nach aktueller Untereinheit ersetzen...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderDeDE=t())})(this,function(){return{"action-recorder":{panel:{recording:`Aufnahme läuft...`,startRecording:`Aufnahme starten`,cancel:`Abbrechen`,close:`Schließen`,save:`Speichern`,start:`Starten`,startWithId:`Starten (N)`},menu:{title:`Aktionen aufzeichnen`,record:`Aktionen aufzeichnen...`,"replay-local":`Lokale Aufzeichnung ersetzen...`,"replay-local-name":`Lokale Aufzeichnung nach Untereinheit ersetzen...`,"replay-local-active":`Lokale Aufzeichnung nach aktueller Untereinheit ersetzen...`}}}});
|
package/lib/umd/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderEnUS=t())})(this,function(){return{"action-recorder":{menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderEnUS=t())})(this,function(){return{"action-recorder":{panel:{recording:`Recording...`,startRecording:`Start Recording`,cancel:`Cancel`,close:`Close`,save:`Save`,start:`Start`,startWithId:`Start(N)`},menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
package/lib/umd/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderEsES=t())})(this,function(){return{"action-recorder":{menu:{title:`Grabar acciones`,record:`Grabar acciones...`,"replay-local":`Reemplazar grabación local...`,"replay-local-name":`Reemplazar grabación local por subunidad...`,"replay-local-active":`Reemplazar grabación local por subunidad actual...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderEsES=t())})(this,function(){return{"action-recorder":{panel:{recording:`Grabando...`,startRecording:`Iniciar grabación`,cancel:`Cancelar`,close:`Cerrar`,save:`Guardar`,start:`Iniciar`,startWithId:`Iniciar (N)`},menu:{title:`Grabar acciones`,record:`Grabar acciones...`,"replay-local":`Reemplazar grabación local...`,"replay-local-name":`Reemplazar grabación local por subunidad...`,"replay-local-active":`Reemplazar grabación local por subunidad actual...`}}}});
|
package/lib/umd/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderFaIR=t())})(this,function(){return{"action-recorder":{menu:{title:`ثبت اقدامات`,record:`ثبت اقدامات...`,"replay-local":`بازپخش محلی ثبت...`,"replay-local-name":`بازپخش محلی ثبت بر اساس نام زیر واحد...`,"replay-local-active":`بازپخش محلی ثبت بر اساس زیر واحد فعلی...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderFaIR=t())})(this,function(){return{"action-recorder":{panel:{recording:`در حال ضبط...`,startRecording:`شروع ضبط`,cancel:`لغو`,close:`بستن`,save:`ذخیره`,start:`شروع`,startWithId:`شروع (N)`},menu:{title:`ثبت اقدامات`,record:`ثبت اقدامات...`,"replay-local":`بازپخش محلی ثبت...`,"replay-local-name":`بازپخش محلی ثبت بر اساس نام زیر واحد...`,"replay-local-active":`بازپخش محلی ثبت بر اساس زیر واحد فعلی...`}}}});
|
package/lib/umd/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderFrFR=t())})(this,function(){return{"action-recorder":{menu:{title:`Enregistrer les actions`,record:`Enregistrer les actions...`,"replay-local":`Lecture de l'enregistrement local...`,"replay-local-name":`Remplacer l'enregistrement local par le sous-unité...`,"replay-local-active":`Remplacer l'enregistrement local par le sous-unité actuel...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderFrFR=t())})(this,function(){return{"action-recorder":{panel:{recording:`Enregistrement...`,startRecording:`Démarrer l’enregistrement`,cancel:`Annuler`,close:`Fermer`,save:`Enregistrer`,start:`Démarrer`,startWithId:`Démarrer (N)`},menu:{title:`Enregistrer les actions`,record:`Enregistrer les actions...`,"replay-local":`Lecture de l'enregistrement local...`,"replay-local-name":`Remplacer l'enregistrement local par le sous-unité...`,"replay-local-active":`Remplacer l'enregistrement local par le sous-unité actuel...`}}}});
|
package/lib/umd/locale/id-ID.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderIdID=t())})(this,function(){return{"action-recorder":{menu:{title:`Rekam Aksi`,record:`Rekam Aksi...`,"replay-local":`Putar Ulang Rekaman Lokal...`,"replay-local-name":`Putar Ulang Rekaman Lokal berdasarkan Subunit...`,"replay-local-active":`Putar Ulang Rekaman Lokal berdasarkan Subunit Saat Ini...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderIdID=t())})(this,function(){return{"action-recorder":{panel:{recording:`Merekam...`,startRecording:`Mulai merekam`,cancel:`Batal`,close:`Tutup`,save:`Simpan`,start:`Mulai`,startWithId:`Mulai (N)`},menu:{title:`Rekam Aksi`,record:`Rekam Aksi...`,"replay-local":`Putar Ulang Rekaman Lokal...`,"replay-local-name":`Putar Ulang Rekaman Lokal berdasarkan Subunit...`,"replay-local-active":`Putar Ulang Rekaman Lokal berdasarkan Subunit Saat Ini...`}}}});
|
package/lib/umd/locale/it-IT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderItIT=t())})(this,function(){return{"action-recorder":{menu:{title:`Registra Azioni`,record:`Registra Azioni...`,"replay-local":`Riproduci Registrazione Locale...`,"replay-local-name":`Riproduci Registrazione Locale per Sottoelemento...`,"replay-local-active":`Riproduci Registrazione Locale per Sottoelemento Corrente...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderItIT=t())})(this,function(){return{"action-recorder":{panel:{recording:`Registrazione...`,startRecording:`Avvia registrazione`,cancel:`Annulla`,close:`Chiudi`,save:`Salva`,start:`Avvia`,startWithId:`Avvia (N)`},menu:{title:`Registra Azioni`,record:`Registra Azioni...`,"replay-local":`Riproduci Registrazione Locale...`,"replay-local-name":`Riproduci Registrazione Locale per Sottoelemento...`,"replay-local-active":`Riproduci Registrazione Locale per Sottoelemento Corrente...`}}}});
|
package/lib/umd/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderJaJP=t())})(this,function(){return{"action-recorder":{menu:{title:`操作記録`,record:`記録を開始...`,"replay-local":`ローカルの記録で置き換え...`,"replay-local-name":`サブ単位ごとにローカルの記録で置き換え...`,"replay-local-active":`現在のサブ単位をローカルの記録で置き換え...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderJaJP=t())})(this,function(){return{"action-recorder":{panel:{recording:`記録中...`,startRecording:`記録を開始`,cancel:`キャンセル`,close:`閉じる`,save:`保存`,start:`開始`,startWithId:`開始 (N)`},menu:{title:`操作記録`,record:`記録を開始...`,"replay-local":`ローカルの記録で置き換え...`,"replay-local-name":`サブ単位ごとにローカルの記録で置き換え...`,"replay-local-active":`現在のサブ単位をローカルの記録で置き換え...`}}}});
|
package/lib/umd/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderKoKR=t())})(this,function(){return{"action-recorder":{menu:{title:`동작 기록`,record:`동작 기록 시작...`,"replay-local":`로컬 기록 대체...`,"replay-local-name":`하위 단위로 로컬 기록 대체...`,"replay-local-active":`현재 하위 단위로 로컬 기록 대체...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderKoKR=t())})(this,function(){return{"action-recorder":{panel:{recording:`기록 중...`,startRecording:`기록 시작`,cancel:`취소`,close:`닫기`,save:`저장`,start:`시작`,startWithId:`시작 (N)`},menu:{title:`동작 기록`,record:`동작 기록 시작...`,"replay-local":`로컬 기록 대체...`,"replay-local-name":`하위 단위로 로컬 기록 대체...`,"replay-local-active":`현재 하위 단위로 로컬 기록 대체...`}}}});
|
package/lib/umd/locale/pl-PL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderPlPL=t())})(this,function(){return{"action-recorder":{menu:{title:`Nagraj działania`,record:`Nagraj działania...`,"replay-local":`Odtwórz nagranie lokalne...`,"replay-local-name":`Odtwórz nagranie lokalne według jednostki podrzędnej...`,"replay-local-active":`Odtwórz nagranie lokalne według bieżącej jednostki podrzędnej...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderPlPL=t())})(this,function(){return{"action-recorder":{panel:{recording:`Nagrywanie...`,startRecording:`Rozpocznij nagrywanie`,cancel:`Anuluj`,close:`Zamknij`,save:`Zapisz`,start:`Rozpocznij`,startWithId:`Rozpocznij (N)`},menu:{title:`Nagraj działania`,record:`Nagraj działania...`,"replay-local":`Odtwórz nagranie lokalne...`,"replay-local-name":`Odtwórz nagranie lokalne według jednostki podrzędnej...`,"replay-local-active":`Odtwórz nagranie lokalne według bieżącej jednostki podrzędnej...`}}}});
|
package/lib/umd/locale/pt-BR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderPtBR=t())})(this,function(){return{"action-recorder":{menu:{title:`Gravar Ações`,record:`Gravar Ações...`,"replay-local":`Substituir Gravação Local...`,"replay-local-name":`Substituir Gravação Local por Subunidade...`,"replay-local-active":`Substituir Gravação Local pela Subunidade Atual...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderPtBR=t())})(this,function(){return{"action-recorder":{panel:{recording:`Gravando...`,startRecording:`Iniciar gravação`,cancel:`Cancelar`,close:`Fechar`,save:`Salvar`,start:`Iniciar`,startWithId:`Iniciar (N)`},menu:{title:`Gravar Ações`,record:`Gravar Ações...`,"replay-local":`Substituir Gravação Local...`,"replay-local-name":`Substituir Gravação Local por Subunidade...`,"replay-local-active":`Substituir Gravação Local pela Subunidade Atual...`}}}});
|
package/lib/umd/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderRuRU=t())})(this,function(){return{"action-recorder":{menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderRuRU=t())})(this,function(){return{"action-recorder":{panel:{recording:`Запись...`,startRecording:`Начать запись`,cancel:`Отмена`,close:`Закрыть`,save:`Сохранить`,start:`Начать`,startWithId:`Начать (N)`},menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
package/lib/umd/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderSkSK=t())})(this,function(){return{"action-recorder":{menu:{title:`Zaznamenať akcie`,record:`Zaznamenať akcie...`,"replay-local":`Nahradiť miestny záznam...`,"replay-local-name":`Nahradiť miestny záznam podľa podjednotky...`,"replay-local-active":`Nahradiť miestny záznam podľa aktuálnej podjednotky...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderSkSK=t())})(this,function(){return{"action-recorder":{panel:{recording:`Nahrávanie...`,startRecording:`Spustiť nahrávanie`,cancel:`Zrušiť`,close:`Zavrieť`,save:`Uložiť`,start:`Spustiť`,startWithId:`Spustiť (N)`},menu:{title:`Zaznamenať akcie`,record:`Zaznamenať akcie...`,"replay-local":`Nahradiť miestny záznam...`,"replay-local-name":`Nahradiť miestny záznam podľa podjednotky...`,"replay-local-active":`Nahradiť miestny záznam podľa aktuálnej podjednotky...`}}}});
|
package/lib/umd/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderViVN=t())})(this,function(){return{"action-recorder":{menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderViVN=t())})(this,function(){return{"action-recorder":{panel:{recording:`Đang ghi...`,startRecording:`Bắt đầu ghi`,cancel:`Hủy`,close:`Đóng`,save:`Lưu`,start:`Bắt đầu`,startWithId:`Bắt đầu (N)`},menu:{title:`Record Actions`,record:`Record Actions...`,"replay-local":`Replace Local Record...`,"replay-local-name":`Replace Local Record by Subunit...`,"replay-local-active":`Replace Local Record by Current Subunit...`}}}});
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhCN=t())})(this,function(){return{"action-recorder":{menu:{title:`操作录制`,record:`录制操作...`,"replay-local":`回放本地录制...`,"replay-local-name":`根据子表名回放本地录制...`,"replay-local-active":`根据当前子表回放本地录制...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhCN=t())})(this,function(){return{"action-recorder":{panel:{recording:`录制中...`,startRecording:`开始录制`,cancel:`取消`,close:`关闭`,save:`保存`,start:`开始`,startWithId:`开始 (N)`},menu:{title:`操作录制`,record:`录制操作...`,"replay-local":`回放本地录制...`,"replay-local-name":`根据子表名回放本地录制...`,"replay-local-active":`根据当前子表回放本地录制...`}}}});
|
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhHK=t())})(this,function(){return{"action-recorder":{menu:{title:`操作錄製`,record:`錄製操作...`,"replay-local":`回放本地錄製...`,"replay-local-name":`根據子表名回放本地錄製...`,"replay-local-active":`根據當前子表回放本地錄製...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhHK=t())})(this,function(){return{"action-recorder":{panel:{recording:`錄製中...`,startRecording:`開始錄製`,cancel:`取消`,close:`關閉`,save:`儲存`,start:`開始`,startWithId:`開始 (N)`},menu:{title:`操作錄製`,record:`錄製操作...`,"replay-local":`回放本地錄製...`,"replay-local-name":`根據子表名回放本地錄製...`,"replay-local-active":`根據當前子表回放本地錄製...`}}}});
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhTW=t())})(this,function(){return{"action-recorder":{menu:{title:`操作錄製`,record:`錄製操作...`,"replay-local":`回放本地錄製...`,"replay-local-name":`根據子表名回放本地錄製...`,"replay-local-active":`根據當前子表回放本地錄製...`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverActionRecorderZhTW=t())})(this,function(){return{"action-recorder":{panel:{recording:`錄製中...`,startRecording:`開始錄製`,cancel:`取消`,close:`關閉`,save:`儲存`,start:`開始`,startWithId:`開始 (N)`},menu:{title:`操作錄製`,record:`錄製操作...`,"replay-local":`回放本地錄製...`,"replay-local-name":`根據子表名回放本地錄製...`,"replay-local-active":`根據當前子表回放本地錄製...`}}}});
|