@univerjs/docs-ui 1.0.3 → 1.0.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 (104) hide show
  1. package/lib/cjs/index.js +1189 -284
  2. package/lib/cjs/locale/ar-SA.js +12 -0
  3. package/lib/cjs/locale/ca-ES.js +12 -0
  4. package/lib/cjs/locale/de-DE.js +12 -0
  5. package/lib/cjs/locale/en-US.js +12 -0
  6. package/lib/cjs/locale/es-ES.js +12 -0
  7. package/lib/cjs/locale/fa-IR.js +12 -0
  8. package/lib/cjs/locale/fr-FR.js +12 -0
  9. package/lib/cjs/locale/id-ID.js +12 -0
  10. package/lib/cjs/locale/it-IT.js +12 -0
  11. package/lib/cjs/locale/ja-JP.js +12 -0
  12. package/lib/cjs/locale/ko-KR.js +12 -0
  13. package/lib/cjs/locale/pl-PL.js +12 -0
  14. package/lib/cjs/locale/pt-BR.js +12 -0
  15. package/lib/cjs/locale/ru-RU.js +12 -0
  16. package/lib/cjs/locale/sk-SK.js +12 -0
  17. package/lib/cjs/locale/vi-VN.js +12 -0
  18. package/lib/cjs/locale/zh-CN.js +12 -0
  19. package/lib/cjs/locale/zh-HK.js +12 -0
  20. package/lib/cjs/locale/zh-TW.js +12 -0
  21. package/lib/es/index.js +1194 -289
  22. package/lib/es/locale/ar-SA.js +12 -0
  23. package/lib/es/locale/ca-ES.js +12 -0
  24. package/lib/es/locale/de-DE.js +12 -0
  25. package/lib/es/locale/en-US.js +12 -0
  26. package/lib/es/locale/es-ES.js +12 -0
  27. package/lib/es/locale/fa-IR.js +12 -0
  28. package/lib/es/locale/fr-FR.js +12 -0
  29. package/lib/es/locale/id-ID.js +12 -0
  30. package/lib/es/locale/it-IT.js +12 -0
  31. package/lib/es/locale/ja-JP.js +12 -0
  32. package/lib/es/locale/ko-KR.js +12 -0
  33. package/lib/es/locale/pl-PL.js +12 -0
  34. package/lib/es/locale/pt-BR.js +12 -0
  35. package/lib/es/locale/ru-RU.js +12 -0
  36. package/lib/es/locale/sk-SK.js +12 -0
  37. package/lib/es/locale/vi-VN.js +12 -0
  38. package/lib/es/locale/zh-CN.js +12 -0
  39. package/lib/es/locale/zh-HK.js +12 -0
  40. package/lib/es/locale/zh-TW.js +12 -0
  41. package/lib/index.css +21 -0
  42. package/lib/index.js +1194 -289
  43. package/lib/locale/ar-SA.js +12 -0
  44. package/lib/locale/ca-ES.js +12 -0
  45. package/lib/locale/de-DE.js +12 -0
  46. package/lib/locale/en-US.js +12 -0
  47. package/lib/locale/es-ES.js +12 -0
  48. package/lib/locale/fa-IR.js +12 -0
  49. package/lib/locale/fr-FR.js +12 -0
  50. package/lib/locale/id-ID.js +12 -0
  51. package/lib/locale/it-IT.js +12 -0
  52. package/lib/locale/ja-JP.js +12 -0
  53. package/lib/locale/ko-KR.js +12 -0
  54. package/lib/locale/pl-PL.js +12 -0
  55. package/lib/locale/pt-BR.js +12 -0
  56. package/lib/locale/ru-RU.js +12 -0
  57. package/lib/locale/sk-SK.js +12 -0
  58. package/lib/locale/vi-VN.js +12 -0
  59. package/lib/locale/zh-CN.js +12 -0
  60. package/lib/locale/zh-HK.js +12 -0
  61. package/lib/locale/zh-TW.js +12 -0
  62. package/lib/types/commands/commands/doc-delete.command.d.ts +5 -2
  63. package/lib/types/commands/commands/doc-header-footer.command.d.ts +2 -0
  64. package/lib/types/commands/commands/insert-header-footer-field.command.d.ts +28 -0
  65. package/lib/types/commands/commands/refresh-header-footer-fields.command.d.ts +22 -0
  66. package/lib/types/commands/operations/doc-header-footer-ribbon.operation.d.ts +19 -0
  67. package/lib/types/controllers/doc-header-footer-ribbon.controller.d.ts +31 -0
  68. package/lib/types/controllers/render-controllers/doc-field.render-controller.d.ts +31 -0
  69. package/lib/types/controllers/ui.controller.d.ts +1 -0
  70. package/lib/types/locale/en-US.d.ts +12 -0
  71. package/lib/types/menu/header-footer-ribbon.d.ts +17 -0
  72. package/lib/types/services/clipboard/clipboard.service.d.ts +4 -0
  73. package/lib/types/services/doc-event-manager.service.d.ts +1 -0
  74. package/lib/types/services/selection/doc-selection-render.service.d.ts +2 -0
  75. package/lib/types/services/selection/word-boundary.d.ts +1 -0
  76. package/lib/types/shortcuts/core-editing.shortcut.d.ts +4 -0
  77. package/lib/types/shortcuts/format.shortcut.d.ts +1 -0
  78. package/lib/types/shortcuts/utils.d.ts +1 -0
  79. package/lib/types/utils/date-time-field.d.ts +22 -0
  80. package/lib/types/views/header-footer/panel/DocHeaderFooterFields.d.ts +19 -0
  81. package/lib/types/views/header-footer/panel/DocHeaderFooterRibbonControl.d.ts +20 -0
  82. package/lib/types/views/header-footer/panel/component-name.d.ts +2 -0
  83. package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +2 -2
  84. package/lib/umd/index.js +15 -14
  85. package/lib/umd/locale/ar-SA.js +1 -1
  86. package/lib/umd/locale/ca-ES.js +1 -1
  87. package/lib/umd/locale/de-DE.js +1 -1
  88. package/lib/umd/locale/en-US.js +1 -1
  89. package/lib/umd/locale/es-ES.js +1 -1
  90. package/lib/umd/locale/fa-IR.js +1 -1
  91. package/lib/umd/locale/fr-FR.js +1 -1
  92. package/lib/umd/locale/id-ID.js +1 -1
  93. package/lib/umd/locale/it-IT.js +1 -1
  94. package/lib/umd/locale/ja-JP.js +1 -1
  95. package/lib/umd/locale/ko-KR.js +1 -1
  96. package/lib/umd/locale/pl-PL.js +1 -1
  97. package/lib/umd/locale/pt-BR.js +1 -1
  98. package/lib/umd/locale/ru-RU.js +1 -1
  99. package/lib/umd/locale/sk-SK.js +1 -1
  100. package/lib/umd/locale/vi-VN.js +1 -1
  101. package/lib/umd/locale/zh-CN.js +1 -1
  102. package/lib/umd/locale/zh-HK.js +1 -1
  103. package/lib/umd/locale/zh-TW.js +1 -1
  104. package/package.json +10 -10
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "حذف الجدول"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "التنقل",
98
+ options: "الخيارات",
99
+ position: "الموضع",
100
+ refreshFields: "تحديث الحقول",
101
+ pageNumber: "رقم الصفحة",
102
+ currentPage: "الصفحة الحالية",
103
+ totalPages: "إجمالي الصفحات",
104
+ dateTime: "التاريخ والوقت",
105
+ updateAutomatically: "تحديث تلقائي",
106
+ insertFailed: "تغير المستند أو لا يمكن تحريره. أغلق مربع الحوار وحاول مرة أخرى.",
107
+ goToHeader: "انتقال إلى الرأس",
108
+ goToFooter: "انتقال إلى التذييل",
97
109
  linkToPrevious: "ارتباط بالسابق",
98
110
  header: "رأس",
99
111
  footer: "تذييل",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Elimina taula"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navegació",
98
+ options: "Opcions",
99
+ position: "Posició",
100
+ refreshFields: "Actualitza els camps",
101
+ pageNumber: "Número de pàgina",
102
+ currentPage: "Pàgina actual",
103
+ totalPages: "Total de pàgines",
104
+ dateTime: "Data i hora",
105
+ updateAutomatically: "Actualitza automàticament",
106
+ insertFailed: "El document ha canviat o no es pot editar. Tanqueu aquest diàleg i torneu-ho a provar.",
107
+ goToHeader: "Ves a la capçalera",
108
+ goToFooter: "Ves al peu de pàgina",
97
109
  linkToPrevious: "Enllaça amb l'anterior",
98
110
  header: "Capçalera",
99
111
  footer: "Peu de pàgina",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Tabelle löschen"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navigation",
98
+ options: "Optionen",
99
+ position: "Position",
100
+ refreshFields: "Felder aktualisieren",
101
+ pageNumber: "Seitenzahl",
102
+ currentPage: "Aktuelle Seite",
103
+ totalPages: "Gesamtseitenzahl",
104
+ dateTime: "Datum und Uhrzeit",
105
+ updateAutomatically: "Automatisch aktualisieren",
106
+ insertFailed: "Das Dokument wurde geändert oder kann nicht bearbeitet werden. Schließen Sie den Dialog und versuchen Sie es erneut.",
107
+ goToHeader: "Zur Kopfzeile",
108
+ goToFooter: "Zur Fußzeile",
97
109
  linkToPrevious: "Mit vorheriger verknüpfen",
98
110
  header: "Kopfzeile",
99
111
  footer: "Fußzeile",
@@ -109,6 +109,18 @@ const locale = { "docs-ui": {
109
109
  deleteTable: "Delete table"
110
110
  },
111
111
  headerFooter: {
112
+ navigation: "Navigation",
113
+ options: "Options",
114
+ position: "Position",
115
+ refreshFields: "Update fields",
116
+ pageNumber: "Page number",
117
+ currentPage: "Current page",
118
+ totalPages: "Total pages",
119
+ dateTime: "Date & time",
120
+ updateAutomatically: "Update automatically",
121
+ insertFailed: "The document changed or cannot be edited. Close this dialog and try again.",
122
+ goToHeader: "Go to header",
123
+ goToFooter: "Go to footer",
112
124
  header: "Header",
113
125
  footer: "Footer",
114
126
  panel: "Header & Footer Settings",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Eliminar tabla"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navegación",
98
+ options: "Opciones",
99
+ position: "Posición",
100
+ refreshFields: "Actualizar campos",
101
+ pageNumber: "Número de página",
102
+ currentPage: "Página actual",
103
+ totalPages: "Total de páginas",
104
+ dateTime: "Fecha y hora",
105
+ updateAutomatically: "Actualizar automáticamente",
106
+ insertFailed: "El documento ha cambiado o no se puede editar. Cierre este diálogo e inténtelo de nuevo.",
107
+ goToHeader: "Ir al encabezado",
108
+ goToFooter: "Ir al pie de página",
97
109
  linkToPrevious: "Vincular al anterior",
98
110
  header: "Encabezado",
99
111
  footer: "Pie de página",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "حذف جدول"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "پیمایش",
98
+ options: "گزینه‌ها",
99
+ position: "موقعیت",
100
+ refreshFields: "به‌روزرسانی فیلدها",
101
+ pageNumber: "شماره صفحه",
102
+ currentPage: "صفحه فعلی",
103
+ totalPages: "تعداد کل صفحات",
104
+ dateTime: "تاریخ و زمان",
105
+ updateAutomatically: "به‌روزرسانی خودکار",
106
+ insertFailed: "سند تغییر کرده یا قابل ویرایش نیست. این پنجره را ببندید و دوباره تلاش کنید.",
107
+ goToHeader: "رفتن به سرصفحه",
108
+ goToFooter: "رفتن به پاصفحه",
97
109
  linkToPrevious: "پیوند به قبلی",
98
110
  header: "هدر",
99
111
  footer: "فوتر",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Supprimer le tableau"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navigation",
98
+ options: "Options",
99
+ position: "Position",
100
+ refreshFields: "Mettre à jour les champs",
101
+ pageNumber: "Numéro de page",
102
+ currentPage: "Page actuelle",
103
+ totalPages: "Nombre total de pages",
104
+ dateTime: "Date et heure",
105
+ updateAutomatically: "Mettre à jour automatiquement",
106
+ insertFailed: "Le document a changé ou ne peut pas être modifié. Fermez cette boîte de dialogue et réessayez.",
107
+ goToHeader: "Aller à l’en-tête",
108
+ goToFooter: "Aller au pied de page",
97
109
  linkToPrevious: "Lier au précédent",
98
110
  header: "En-tête",
99
111
  footer: "Pied de page",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Hapus tabel"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navigasi",
98
+ options: "Opsi",
99
+ position: "Posisi",
100
+ refreshFields: "Perbarui bidang",
101
+ pageNumber: "Nomor halaman",
102
+ currentPage: "Halaman saat ini",
103
+ totalPages: "Total halaman",
104
+ dateTime: "Tanggal dan waktu",
105
+ updateAutomatically: "Perbarui otomatis",
106
+ insertFailed: "Dokumen berubah atau tidak dapat diedit. Tutup dialog ini dan coba lagi.",
107
+ goToHeader: "Ke header",
108
+ goToFooter: "Ke footer",
97
109
  linkToPrevious: "Tautkan ke sebelumnya",
98
110
  header: "Header",
99
111
  footer: "Footer",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Elimina tabella"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navigazione",
98
+ options: "Opzioni",
99
+ position: "Posizione",
100
+ refreshFields: "Aggiorna campi",
101
+ pageNumber: "Numero di pagina",
102
+ currentPage: "Pagina corrente",
103
+ totalPages: "Totale pagine",
104
+ dateTime: "Data e ora",
105
+ updateAutomatically: "Aggiorna automaticamente",
106
+ insertFailed: "Il documento è cambiato o non può essere modificato. Chiudi questa finestra e riprova.",
107
+ goToHeader: "Vai all’intestazione",
108
+ goToFooter: "Vai al piè di pagina",
97
109
  linkToPrevious: "Collega al precedente",
98
110
  header: "Intestazione",
99
111
  footer: "Piè di pagina",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "表を削除"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "移動",
98
+ options: "オプション",
99
+ position: "位置",
100
+ refreshFields: "フィールドを更新",
101
+ pageNumber: "ページ番号",
102
+ currentPage: "現在のページ",
103
+ totalPages: "総ページ数",
104
+ dateTime: "日付と時刻",
105
+ updateAutomatically: "自動更新",
106
+ insertFailed: "文書が変更されたか編集できません。ダイアログを閉じて再試行してください。",
107
+ goToHeader: "ヘッダーに移動",
108
+ goToFooter: "フッターに移動",
97
109
  linkToPrevious: "前と同じ",
98
110
  header: "ヘッダー",
99
111
  footer: "フッター",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "표 삭제"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "탐색",
98
+ options: "옵션",
99
+ position: "위치",
100
+ refreshFields: "필드 업데이트",
101
+ pageNumber: "페이지 번호",
102
+ currentPage: "현재 페이지",
103
+ totalPages: "전체 페이지 수",
104
+ dateTime: "날짜 및 시간",
105
+ updateAutomatically: "자동 업데이트",
106
+ insertFailed: "문서가 변경되었거나 편집할 수 없습니다. 대화 상자를 닫고 다시 시도하세요.",
107
+ goToHeader: "머리글로 이동",
108
+ goToFooter: "바닥글로 이동",
97
109
  linkToPrevious: "이전 항목에 연결",
98
110
  header: "머리글",
99
111
  footer: "바닥글",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Usuń tabelę"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Nawigacja",
98
+ options: "Opcje",
99
+ position: "Pozycja",
100
+ refreshFields: "Aktualizuj pola",
101
+ pageNumber: "Numer strony",
102
+ currentPage: "Bieżąca strona",
103
+ totalPages: "Liczba stron",
104
+ dateTime: "Data i godzina",
105
+ updateAutomatically: "Aktualizuj automatycznie",
106
+ insertFailed: "Dokument zmienił się lub nie można go edytować. Zamknij okno i spróbuj ponownie.",
107
+ goToHeader: "Przejdź do nagłówka",
108
+ goToFooter: "Przejdź do stopki",
97
109
  linkToPrevious: "Połącz z poprzednim",
98
110
  header: "Nagłówek",
99
111
  footer: "Stopka",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Excluir tabela"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navegação",
98
+ options: "Opções",
99
+ position: "Posição",
100
+ refreshFields: "Atualizar campos",
101
+ pageNumber: "Número da página",
102
+ currentPage: "Página atual",
103
+ totalPages: "Total de páginas",
104
+ dateTime: "Data e hora",
105
+ updateAutomatically: "Atualizar automaticamente",
106
+ insertFailed: "O documento mudou ou não pode ser editado. Feche esta caixa de diálogo e tente novamente.",
107
+ goToHeader: "Ir para o cabeçalho",
108
+ goToFooter: "Ir para o rodapé",
97
109
  linkToPrevious: "Vincular ao anterior",
98
110
  header: "Cabeçalho",
99
111
  footer: "Rodapé",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Удалить таблицу"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Навигация",
98
+ options: "Параметры",
99
+ position: "Положение",
100
+ refreshFields: "Обновить поля",
101
+ pageNumber: "Номер страницы",
102
+ currentPage: "Текущая страница",
103
+ totalPages: "Всего страниц",
104
+ dateTime: "Дата и время",
105
+ updateAutomatically: "Обновлять автоматически",
106
+ insertFailed: "Документ изменён или недоступен для редактирования. Закройте диалог и повторите попытку.",
107
+ goToHeader: "К верхнему колонтитулу",
108
+ goToFooter: "К нижнему колонтитулу",
97
109
  linkToPrevious: "Связать с предыдущим",
98
110
  header: "Верхний колонтитул",
99
111
  footer: "Нижний колонтитул",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Odstrániť tabuľku"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Navigácia",
98
+ options: "Možnosti",
99
+ position: "Poloha",
100
+ refreshFields: "Aktualizovať polia",
101
+ pageNumber: "Číslo strany",
102
+ currentPage: "Aktuálna strana",
103
+ totalPages: "Celkový počet strán",
104
+ dateTime: "Dátum a čas",
105
+ updateAutomatically: "Aktualizovať automaticky",
106
+ insertFailed: "Dokument sa zmenil alebo ho nemožno upraviť. Zatvorte dialóg a skúste to znova.",
107
+ goToHeader: "Prejsť na hlavičku",
108
+ goToFooter: "Prejsť na pätu",
97
109
  linkToPrevious: "Prepojiť s predchádzajúcim",
98
110
  header: "Hlavička",
99
111
  footer: "Päta",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "Xóa bảng"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "Điều hướng",
98
+ options: "Tùy chọn",
99
+ position: "Vị trí",
100
+ refreshFields: "Cập nhật trường",
101
+ pageNumber: "Số trang",
102
+ currentPage: "Trang hiện tại",
103
+ totalPages: "Tổng số trang",
104
+ dateTime: "Ngày và giờ",
105
+ updateAutomatically: "Tự động cập nhật",
106
+ insertFailed: "Tài liệu đã thay đổi hoặc không thể chỉnh sửa. Đóng hộp thoại và thử lại.",
107
+ goToHeader: "Đi đến đầu trang",
108
+ goToFooter: "Đi đến chân trang",
97
109
  linkToPrevious: "Liên kết với phần trước",
98
110
  header: "Đầu trang",
99
111
  footer: "Chân trang",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "删除表格"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "导航",
98
+ options: "选项",
99
+ position: "位置",
100
+ refreshFields: "更新域",
101
+ pageNumber: "页码",
102
+ currentPage: "当前页码",
103
+ totalPages: "总页数",
104
+ dateTime: "日期和时间",
105
+ updateAutomatically: "自动更新",
106
+ insertFailed: "文档已发生变化或不可编辑,请关闭对话框后重试。",
107
+ goToHeader: "转到页眉",
108
+ goToFooter: "转到页脚",
97
109
  linkToPrevious: "链接到上一节",
98
110
  header: "页眉",
99
111
  footer: "页脚",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "刪除表格"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "導覽",
98
+ options: "選項",
99
+ position: "位置",
100
+ refreshFields: "更新欄位",
101
+ pageNumber: "頁碼",
102
+ currentPage: "目前頁碼",
103
+ totalPages: "總頁數",
104
+ dateTime: "日期與時間",
105
+ updateAutomatically: "自動更新",
106
+ insertFailed: "文件已變更或無法編輯,請關閉對話框後重試。",
107
+ goToHeader: "移至頁首",
108
+ goToFooter: "移至頁尾",
97
109
  linkToPrevious: "連結到上一節",
98
110
  header: "頁眉",
99
111
  footer: "頁腳",
@@ -94,6 +94,18 @@ const locale = { "docs-ui": {
94
94
  deleteTable: "刪除表格"
95
95
  },
96
96
  headerFooter: {
97
+ navigation: "導覽",
98
+ options: "選項",
99
+ position: "位置",
100
+ refreshFields: "更新欄位",
101
+ pageNumber: "頁碼",
102
+ currentPage: "目前頁碼",
103
+ totalPages: "總頁數",
104
+ dateTime: "日期與時間",
105
+ updateAutomatically: "自動更新",
106
+ insertFailed: "文件已變更或無法編輯,請關閉對話方塊後重試。",
107
+ goToHeader: "移至頁首",
108
+ goToFooter: "移至頁尾",
97
109
  linkToPrevious: "連結到上一節",
98
110
  header: "頁眉",
99
111
  footer: "頁腳",
@@ -31,8 +31,11 @@ export declare const MergeTwoParagraphCommand: ICommand<IMergeTwoParagraphParams
31
31
  export declare const RemoveHorizontalLineCommand: ICommand;
32
32
  export declare function getCursorWhenDelete(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: readonly IRectRangeWithStyle[]): number;
33
33
  export declare function isDeleteOffsetInsideBlockRange(body: IDocumentBody, offset: number): boolean;
34
- export declare const DeleteLeftCommand: ICommand;
35
- export declare const DeleteRightCommand: ICommand;
34
+ export interface IDeleteBoundaryParams {
35
+ granularity?: 'word' | 'line';
36
+ }
37
+ export declare const DeleteLeftCommand: ICommand<IDeleteBoundaryParams>;
38
+ export declare const DeleteRightCommand: ICommand<IDeleteBoundaryParams>;
36
39
  export interface IDeleteCurrentParagraphCommandParams {
37
40
  unitId?: string;
38
41
  blockRange?: IDocumentBlockRange;
@@ -16,6 +16,7 @@
16
16
  import type { ICommand } from '@univerjs/core';
17
17
  import type { IHeaderFooterProps } from '@univerjs/docs';
18
18
  import { HeaderFooterType } from '@univerjs/docs';
19
+ import { DocumentEditArea } from '@univerjs/engine-render';
19
20
  export interface ICoreHeaderFooterParams {
20
21
  unitId: string;
21
22
  createType?: HeaderFooterType;
@@ -29,6 +30,7 @@ export declare const CoreHeaderFooterCommandId = "doc.command.core-header-footer
29
30
  */
30
31
  export declare const CoreHeaderFooterCommand: ICommand<ICoreHeaderFooterParams>;
31
32
  interface IOpenHeaderFooterPanelParams {
33
+ editArea?: DocumentEditArea.HEADER | DocumentEditArea.FOOTER;
32
34
  }
33
35
  export declare const OpenHeaderFooterPanelCommand: ICommand<IOpenHeaderFooterPanelParams>;
34
36
  interface ICloseHeaderFooterParams {
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand, ITextRange } from '@univerjs/core';
17
+ import type { DateTimeFieldFormat } from '../../utils/date-time-field';
18
+ export interface IInsertHeaderFooterFieldParams {
19
+ unitId: string;
20
+ fieldType: 'PAGE' | 'NUMPAGES' | 'DATE' | 'TIME';
21
+ selection?: ITextRange;
22
+ segmentId?: string;
23
+ segmentPage?: number;
24
+ expectedDataStream?: string;
25
+ format?: DateTimeFieldFormat;
26
+ automatic?: boolean;
27
+ }
28
+ export declare const InsertHeaderFooterFieldCommand: ICommand<IInsertHeaderFooterFieldParams>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand } from '@univerjs/core';
17
+ export declare const RefreshHeaderFooterFieldsCommand: ICommand<{
18
+ unitId: string;
19
+ onOpen?: boolean;
20
+ selectionOnly?: boolean;
21
+ }>;
22
+ export declare const UpdateSelectedDocFieldsCommand: ICommand;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand } from '@univerjs/core';
17
+ export declare const DocHeaderFooterRibbonOperation: ICommand<{
18
+ value: string;
19
+ }>;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { DocumentDataModel } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
19
+ import { DocSkeletonManagerService } from '@univerjs/docs';
20
+ import { IRenderManagerService } from '@univerjs/engine-render';
21
+ import { IRibbonService } from '@univerjs/ui';
22
+ export declare class DocHeaderFooterRibbonController extends Disposable implements IRenderModule {
23
+ private readonly _context;
24
+ private readonly _instanceService;
25
+ private readonly _ribbonService;
26
+ private readonly _renderManager;
27
+ private _visible;
28
+ constructor(_context: IRenderContext<DocumentDataModel>, skeletonManager: DocSkeletonManagerService, _instanceService: IUniverInstanceService, _ribbonService: IRibbonService, _renderManager: IRenderManagerService);
29
+ private _focusedDocumentEditsHeaderFooter;
30
+ dispose(): void;
31
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { DocumentDataModel } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { Disposable, IUniverInstanceService, ThemeService } from '@univerjs/core';
19
+ import { DocSelectionManagerService } from '@univerjs/docs';
20
+ import { DocEventManagerService } from '../../services/doc-event-manager.service';
21
+ export declare class DocFieldRenderController extends Disposable implements IRenderModule {
22
+ private readonly _context;
23
+ private readonly _events;
24
+ private readonly _selections;
25
+ private readonly _instances;
26
+ private _hovered;
27
+ private _shade;
28
+ constructor(_context: IRenderContext<DocumentDataModel>, _events: DocEventManagerService, _selections: DocSelectionManagerService, theme: ThemeService, _instances: IUniverInstanceService);
29
+ private _drawFields;
30
+ private _getActiveFields;
31
+ }
@@ -32,6 +32,7 @@ export declare class DocUIController extends Disposable {
32
32
  private _initShortCut;
33
33
  private _init;
34
34
  private _initCommands;
35
+ private _initDateTimeFields;
35
36
  private _initFocusHandler;
36
37
  private _shouldPreserveEmbedFocus;
37
38
  }
@@ -115,6 +115,18 @@ declare const locale: {
115
115
  deleteTable: string;
116
116
  };
117
117
  headerFooter: {
118
+ navigation: string;
119
+ options: string;
120
+ position: string;
121
+ refreshFields: string;
122
+ pageNumber: string;
123
+ currentPage: string;
124
+ totalPages: string;
125
+ dateTime: string;
126
+ updateAutomatically: string;
127
+ insertFailed: string;
128
+ goToHeader: string;
129
+ goToFooter: string;
118
130
  header: string;
119
131
  footer: string;
120
132
  panel: string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { MenuSchemaType } from '@univerjs/ui';
17
+ export declare const headerFooterRibbonSchema: MenuSchemaType;
@@ -39,6 +39,8 @@ export interface IDocClipboardPasteContext {
39
39
  targetUnitId: string;
40
40
  }
41
41
  export interface IDocClipboardHook {
42
+ /** Opt an internal rich-text editor into the post-paste format menu. */
43
+ supportsPasteOptions?(unitId: string): boolean;
42
44
  /** Supply a rich fragment for selections owned by a plugin rather than native text ranges. */
43
45
  onCopySelection?(unitId: string): {
44
46
  documentData: IDocumentData;
@@ -73,6 +75,7 @@ export interface IDocClipboardService {
73
75
  pasteFromClipboard(mode?: DocPasteMode): Promise<boolean>;
74
76
  legacyPaste(options: IDocClipboardPayload): Promise<boolean>;
75
77
  readonly pasteOptions$: Observable<IDocPasteOptionsState | null>;
78
+ isPasteOptionsEnabled(unitId: string): boolean;
76
79
  setNextPasteMode(mode: DocPasteMode): void;
77
80
  dismissPasteOptions(): void;
78
81
  changePasteMode(mode: DocPasteMode): Promise<boolean>;
@@ -107,6 +110,7 @@ export declare class DocClipboardService extends Disposable implements IDocClipb
107
110
  cut(ranges?: ITextRangeWithStyle[]): Promise<boolean>;
108
111
  pasteFromClipboard(mode?: DocPasteMode): Promise<boolean>;
109
112
  paste(items?: ClipboardItem[], mode?: DocPasteMode): Promise<boolean>;
113
+ isPasteOptionsEnabled(unitId: string): boolean;
110
114
  setNextPasteMode(mode: DocPasteMode): void;
111
115
  legacyPaste(options: IDocClipboardPayload): Promise<boolean>;
112
116
  dismissPasteOptions(): void;
@@ -169,6 +169,7 @@ export declare class DocEventManagerService extends Disposable implements IRende
169
169
  isPointerOnInteractiveRange(offsetX: number, offsetY: number): boolean;
170
170
  isPointerOnNonChecklistBullet(offsetX: number, offsetY: number): boolean;
171
171
  getBulletBounds(): IBulletBound[];
172
+ getCustomRangeBounds(): ICustomRangeBound[];
172
173
  getListContextMenuBulletByOffset(offsetX: number, offsetY: number): Nullable<IBulletBound>;
173
174
  private _buildCustomRangeBoundsBySegment;
174
175
  private _buildCustomRangeBounds;
@@ -92,6 +92,8 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
92
92
  get hasPendingSelection(): boolean;
93
93
  get isOnPointerEvent(): boolean;
94
94
  get isFocusing(): boolean;
95
+ get inputElement(): HTMLDivElement;
96
+ get selectionContainer(): HTMLDivElement;
95
97
  get isEditing(): boolean;
96
98
  get canFocusing(): boolean;
97
99
  cancelPointerSelection(): void;
@@ -19,4 +19,5 @@ export interface IWordBoundary {
19
19
  endOffset: number;
20
20
  }
21
21
  export declare function getWordBoundaryByIndex(content: string, nodeIndex: number, paragraphStartOffset: number): IWordBoundary | null;
22
+ export declare function getWordSelectionByIndex(content: string, nodeIndex: number, paragraphStartOffset: number, isBack: boolean): IWordBoundary | null;
22
23
  export declare function getNextWordBoundaryOffset(content: string, nodeIndex: number, paragraphStartOffset: number, direction: Direction): number | null;