@univerjs/ui 0.17.0 → 0.18.0

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 (172) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +377 -43
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -391
  16. package/lib/es/index.js +378 -12224
  17. package/lib/es/locale/ca-ES.js +1 -85
  18. package/lib/es/locale/en-US.js +1 -85
  19. package/lib/es/locale/es-ES.js +1 -85
  20. package/lib/es/locale/fa-IR.js +1 -85
  21. package/lib/es/locale/fr-FR.js +1 -85
  22. package/lib/es/locale/ja-JP.js +1 -85
  23. package/lib/es/locale/ko-KR.js +1 -85
  24. package/lib/es/locale/ru-RU.js +1 -85
  25. package/lib/es/locale/sk-SK.js +1 -85
  26. package/lib/es/locale/vi-VN.js +1 -85
  27. package/lib/es/locale/zh-CN.js +1 -85
  28. package/lib/es/locale/zh-TW.js +1 -85
  29. package/lib/facade.js +1 -391
  30. package/lib/index.css +1662 -1
  31. package/lib/index.js +378 -12224
  32. package/lib/locale/ca-ES.js +1 -85
  33. package/lib/locale/en-US.js +1 -85
  34. package/lib/locale/es-ES.js +1 -85
  35. package/lib/locale/fa-IR.js +1 -85
  36. package/lib/locale/fr-FR.js +1 -85
  37. package/lib/locale/ja-JP.js +1 -85
  38. package/lib/locale/ko-KR.js +1 -85
  39. package/lib/locale/ru-RU.js +1 -85
  40. package/lib/locale/sk-SK.js +1 -85
  41. package/lib/locale/vi-VN.js +1 -85
  42. package/lib/locale/zh-CN.js +1 -85
  43. package/lib/locale/zh-TW.js +1 -85
  44. package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +16 -1
  45. package/lib/types/common/component-manager.d.ts +17 -1
  46. package/lib/types/common/lifecycle.d.ts +16 -1
  47. package/lib/types/common/menu-hidden-observable.d.ts +16 -1
  48. package/lib/types/common/menu-merge-configs.d.ts +16 -1
  49. package/lib/types/components/custom-label/CustomLabel.d.ts +18 -3
  50. package/lib/types/components/font-family/FontFamily.d.ts +16 -1
  51. package/lib/types/components/font-family/interface.d.ts +17 -2
  52. package/lib/types/components/font-size/FontSize.d.ts +16 -1
  53. package/lib/types/components/font-size/interface.d.ts +17 -2
  54. package/lib/types/components/heading-item/index.d.ts +16 -1
  55. package/lib/types/components/hooks/layout.d.ts +16 -1
  56. package/lib/types/components/hooks/locale.d.ts +15 -0
  57. package/lib/types/components/hooks/update-effect.d.ts +15 -0
  58. package/lib/types/components/hooks/use-click-out-side.d.ts +16 -1
  59. package/lib/types/components/menu/common/hook.d.ts +16 -1
  60. package/lib/types/components/menu/desktop/DesignTinyMenuGroup.d.ts +30 -0
  61. package/lib/types/components/menu/desktop/TinyMenuGroup.d.ts +17 -2
  62. package/lib/types/components/menu/mobile/MobileMenu.d.ts +20 -3
  63. package/lib/types/components/menu/mobile/MobileMenu.stories.d.ts +16 -1
  64. package/lib/types/components/menu/types.d.ts +29 -0
  65. package/lib/types/components/notification/Notification.d.ts +17 -1
  66. package/lib/types/components/notification/Notification.stories.d.ts +16 -1
  67. package/lib/types/components/slider/Slider.stories.d.ts +16 -1
  68. package/lib/types/config/config.d.ts +18 -3
  69. package/lib/types/controllers/error/error.controller.d.ts +15 -0
  70. package/lib/types/controllers/menus/menus.d.ts +17 -2
  71. package/lib/types/controllers/shared-shortcut.controller.d.ts +17 -1
  72. package/lib/types/controllers/shortcut-display/menu.d.ts +16 -1
  73. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +15 -0
  74. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +18 -2
  75. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +25 -4
  76. package/lib/types/controllers/ui/ui-shared.controller.d.ts +19 -3
  77. package/lib/types/controllers/ui/ui.controller.d.ts +17 -2
  78. package/lib/types/facade/f-enum.d.ts +15 -0
  79. package/lib/types/facade/f-hooks.d.ts +16 -1
  80. package/lib/types/facade/f-menu-builder.d.ts +17 -1
  81. package/lib/types/facade/f-shortcut.d.ts +17 -1
  82. package/lib/types/facade/f-univer.d.ts +21 -4
  83. package/lib/types/index.d.ts +1 -2
  84. package/lib/types/locale/ca-ES.d.ts +16 -1
  85. package/lib/types/locale/es-ES.d.ts +16 -1
  86. package/lib/types/locale/fa-IR.d.ts +16 -1
  87. package/lib/types/locale/fr-FR.d.ts +16 -1
  88. package/lib/types/locale/ja-JP.d.ts +16 -1
  89. package/lib/types/locale/ko-KR.d.ts +16 -1
  90. package/lib/types/locale/ru-RU.d.ts +16 -1
  91. package/lib/types/locale/sk-SK.d.ts +16 -1
  92. package/lib/types/locale/vi-VN.d.ts +16 -1
  93. package/lib/types/locale/zh-CN.d.ts +16 -1
  94. package/lib/types/locale/zh-TW.d.ts +16 -1
  95. package/lib/types/menu/schema.d.ts +16 -1
  96. package/lib/types/mobile-plugin.d.ts +16 -1
  97. package/lib/types/plugin.d.ts +16 -1
  98. package/lib/types/services/before-close/before-close.service.d.ts +17 -2
  99. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +16 -1
  100. package/lib/types/services/clipboard/clipboard.command.d.ts +16 -1
  101. package/lib/types/services/confirm/desktop-confirm.service.d.ts +18 -2
  102. package/lib/types/services/contextmenu/contextmenu-host.service.d.ts +18 -2
  103. package/lib/types/services/contextmenu/contextmenu.service.d.ts +19 -3
  104. package/lib/types/services/dialog/desktop-dialog.service.d.ts +20 -4
  105. package/lib/types/services/dialog/dialog.service.d.ts +19 -4
  106. package/lib/types/services/dom/canvas-dom-layer.service.d.ts +17 -2
  107. package/lib/types/services/font.service.d.ts +18 -2
  108. package/lib/types/services/gallery/desktop-gallery.service.d.ts +19 -3
  109. package/lib/types/services/gallery/gallery.service.d.ts +19 -4
  110. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +18 -3
  111. package/lib/types/services/global-zone/global-zone.service.d.ts +18 -3
  112. package/lib/types/services/layout/layout.service.d.ts +18 -2
  113. package/lib/types/services/local-file/desktop-local-file.service.d.ts +16 -1
  114. package/lib/types/services/local-file/local-file.service.d.ts +1 -1
  115. package/lib/types/services/local-storage/local-storage.service.d.ts +16 -1
  116. package/lib/types/services/menu/menu-manager.service.d.ts +21 -4
  117. package/lib/types/services/menu/menu.d.ts +18 -2
  118. package/lib/types/services/menu/types.d.ts +5 -1
  119. package/lib/types/services/message/__testing__/mock-message.service.d.ts +18 -3
  120. package/lib/types/services/message/desktop-message.service.d.ts +19 -3
  121. package/lib/types/services/message/message.service.d.ts +18 -3
  122. package/lib/types/services/notification/desktop-notification.service.d.ts +19 -3
  123. package/lib/types/services/notification/notification.service.d.ts +18 -3
  124. package/lib/types/services/parts/parts.service.d.ts +20 -4
  125. package/lib/types/services/platform/platform.service.d.ts +1 -1
  126. package/lib/types/services/popup/canvas-popup.service.d.ts +21 -5
  127. package/lib/types/services/ribbon/ribbon.service.d.ts +19 -3
  128. package/lib/types/services/shortcut/shortcut-panel.service.d.ts +16 -1
  129. package/lib/types/services/shortcut/shortcut.service.d.ts +20 -4
  130. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +18 -3
  131. package/lib/types/services/sidebar/sidebar.service.d.ts +20 -5
  132. package/lib/types/services/theme-switcher/theme-switcher.service.d.ts +16 -1
  133. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +20 -4
  134. package/lib/types/services/zen-zone/zen-zone.service.d.ts +19 -4
  135. package/lib/types/utils/cell.d.ts +16 -1
  136. package/lib/types/utils/di.d.ts +19 -4
  137. package/lib/types/views/components/ComponentContainer.d.ts +18 -3
  138. package/lib/types/views/components/confirm-part/interface.d.ts +17 -2
  139. package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +16 -1
  140. package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +17 -1
  141. package/lib/types/views/components/context-menu/MobileContextMenu.d.ts +1 -1
  142. package/lib/types/views/components/dialog-part/interface.d.ts +17 -2
  143. package/lib/types/views/components/dom/FloatDom.d.ts +17 -2
  144. package/lib/types/views/components/dom/print.d.ts +17 -2
  145. package/lib/types/views/components/popup/CanvasPopup.d.ts +17 -2
  146. package/lib/types/views/components/popup/RectPopup.d.ts +18 -3
  147. package/lib/types/views/components/ribbon/MobileRibbon.d.ts +22 -0
  148. package/lib/types/views/components/ribbon/Ribbon.d.ts +17 -2
  149. package/lib/types/views/components/ribbon/ToolbarItem.d.ts +18 -3
  150. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +19 -4
  151. package/lib/types/views/components/ribbon/hook.d.ts +16 -1
  152. package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +16 -1
  153. package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +16 -1
  154. package/lib/types/views/components/sidebar/Sidebar.d.ts +17 -2
  155. package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +16 -1
  156. package/lib/types/views/workbench/Workbench.d.ts +16 -1
  157. package/lib/umd/facade.js +1 -1
  158. package/lib/umd/index.js +384 -43
  159. package/lib/umd/locale/ca-ES.js +1 -1
  160. package/lib/umd/locale/en-US.js +1 -1
  161. package/lib/umd/locale/es-ES.js +1 -1
  162. package/lib/umd/locale/fa-IR.js +1 -1
  163. package/lib/umd/locale/fr-FR.js +1 -1
  164. package/lib/umd/locale/ja-JP.js +1 -1
  165. package/lib/umd/locale/ko-KR.js +1 -1
  166. package/lib/umd/locale/ru-RU.js +1 -1
  167. package/lib/umd/locale/sk-SK.js +1 -1
  168. package/lib/umd/locale/vi-VN.js +1 -1
  169. package/lib/umd/locale/zh-CN.js +1 -1
  170. package/lib/umd/locale/zh-TW.js +1 -1
  171. package/package.json +10 -9
  172. package/lib/types/components/menu/desktop/Menu.d.ts +0 -17
@@ -1 +1 @@
1
- "use strict";const e={toolbar:{heading:{normal:"Normal",title:"Títol",subTitle:"Subtítol",1:"Encapçalament 1",2:"Encapçalament 2",3:"Encapçalament 3",4:"Encapçalament 4",5:"Encapçalament 5",6:"Encapçalament 6",tooltip:"Estableix l'encapçalament"}},ribbon:{start:"Inici",startDesc:"Inicia el full de càlcul i estableix els paràmetres bàsics.",insert:"Insereix",insertDesc:"Insereix files, columnes, gràfics i altres elements.",formulas:"Fórmules",formulasDesc:"Utilitza funcions i fórmules per a càlculs de dades.",data:"Dades",dataDesc:"Gestiona les dades, incloent importació, ordenació i filtratge.",view:"Vista",viewDesc:"Canvia els modes de vista i ajusta l'efecte de visualització.",others:"Altres",othersDesc:"Altres funcions i configuracions.",more:"Més"},fontFamily:{"not-supported":"No s'ha trobat aquesta font al sistema, s'utilitza la font per defecte.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Dreceres"},shortcut:{undo:"Desfer",redo:"Refer",cut:"Retalla",copy:"Copia",paste:"Enganxa","shortcut-panel":"Alterna el panell de dreceres"},"common-edit":"Dreceres d'edició comunes","toggle-shortcut-panel":"Alterna el panell de dreceres",clipboard:{authentication:{title:"Permís denegat",content:"Si us plau, permet que Univer accedeixi al teu porta-retalls."}},textEditor:{formulaError:"Si us plau, introdueix una fórmula vàlida, com ara =SUMA(A1)",rangeError:"Si us plau, introdueix un interval vàlid, com ara A1:B10"},rangeSelector:{title:"Selecciona un interval de dades",addAnotherRange:"Afegeix interval",buttonTooltip:"Selecciona interval de dades",placeHolder:"Selecciona un interval o escriu.",confirm:"Confirma",cancel:"Cancel·la"},"global-shortcut":"Drecera global","zoom-slider":{resetTo:"Restableix a"}};module.exports=e;
1
+ const e={toolbar:{heading:{normal:`Normal`,title:`Títol`,subTitle:`Subtítol`,1:`Encapçalament 1`,2:`Encapçalament 2`,3:`Encapçalament 3`,4:`Encapçalament 4`,5:`Encapçalament 5`,6:`Encapçalament 6`,tooltip:`Estableix l'encapçalament`}},ribbon:{start:`Inici`,startDesc:`Inicia el full de càlcul i estableix els paràmetres bàsics.`,insert:`Insereix`,insertDesc:`Insereix files, columnes, gràfics i altres elements.`,formulas:`Fórmules`,formulasDesc:`Utilitza funcions i fórmules per a càlculs de dades.`,data:`Dades`,dataDesc:`Gestiona les dades, incloent importació, ordenació i filtratge.`,view:`Vista`,viewDesc:`Canvia els modes de vista i ajusta l'efecte de visualització.`,others:`Altres`,othersDesc:`Altres funcions i configuracions.`,more:`Més`},fontFamily:{"not-supported":`No s'ha trobat aquesta font al sistema, s'utilitza la font per defecte.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Dreceres`},shortcut:{undo:`Desfer`,redo:`Refer`,cut:`Retalla`,copy:`Copia`,paste:`Enganxa`,"shortcut-panel":`Alterna el panell de dreceres`},"common-edit":`Dreceres d'edició comunes`,"toggle-shortcut-panel":`Alterna el panell de dreceres`,clipboard:{authentication:{title:`Permís denegat`,content:`Si us plau, permet que Univer accedeixi al teu porta-retalls.`}},textEditor:{formulaError:`Si us plau, introdueix una fórmula vàlida, com ara =SUMA(A1)`,rangeError:`Si us plau, introdueix un interval vàlid, com ara A1:B10`},rangeSelector:{title:`Selecciona un interval de dades`,addAnotherRange:`Afegeix interval`,buttonTooltip:`Selecciona interval de dades`,placeHolder:`Selecciona un interval o escriu.`,confirm:`Confirma`,cancel:`Cancel·la`},"global-shortcut":`Drecera global`,"zoom-slider":{resetTo:`Restableix a`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const e={toolbar:{heading:{normal:"Normal",title:"Title",subTitle:"Sub Title",1:"Heading 1",2:"Heading 2",3:"Heading 3",4:"Heading 4",5:"Heading 5",6:"Heading 6",tooltip:"Set Heading"}},ribbon:{start:"Start",startDesc:"Initiate the worksheet and set basic parameters.",insert:"Insert",insertDesc:"Insert rows, columns, charts and various other elements.",formulas:"Formulas",formulasDesc:"Use functions and formulas for data calculations.",data:"Data",dataDesc:"Manage data, including import, sorting and filtering.",view:"View",viewDesc:"Switch view modes and adjust the display effect.",others:"Others",othersDesc:"Other functions and settings.",more:"More"},fontFamily:{"not-supported":"No such font found in the system, using default font.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Shortcuts"},shortcut:{undo:"Undo",redo:"Redo",cut:"Cut",copy:"Copy",paste:"Paste","shortcut-panel":"Toggle Shortcut Panel"},"common-edit":"Common Editing Shortcuts","toggle-shortcut-panel":"Toggle Shortcut Panel",clipboard:{authentication:{title:"Permission Denied",content:"Please allow Univer to access your clipboard."}},textEditor:{formulaError:"Please enter a valid formula, such as =SUM(A1)",rangeError:"Please enter a valid range, such as A1:B10"},rangeSelector:{title:"Select a data range",addAnotherRange:"Add range",buttonTooltip:"Select data range",placeHolder:"Select range or enter.",confirm:"Confirm",cancel:"Cancel"},"global-shortcut":"Global Shortcut","zoom-slider":{resetTo:"Reset to"}};module.exports=e;
1
+ const e={toolbar:{heading:{normal:`Normal`,title:`Title`,subTitle:`Sub Title`,1:`Heading 1`,2:`Heading 2`,3:`Heading 3`,4:`Heading 4`,5:`Heading 5`,6:`Heading 6`,tooltip:`Set Heading`}},ribbon:{start:`Start`,startDesc:`Initiate the worksheet and set basic parameters.`,insert:`Insert`,insertDesc:`Insert rows, columns, charts and various other elements.`,formulas:`Formulas`,formulasDesc:`Use functions and formulas for data calculations.`,data:`Data`,dataDesc:`Manage data, including import, sorting and filtering.`,view:`View`,viewDesc:`Switch view modes and adjust the display effect.`,others:`Others`,othersDesc:`Other functions and settings.`,more:`More`},fontFamily:{"not-supported":`No such font found in the system, using default font.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Shortcuts`},shortcut:{undo:`Undo`,redo:`Redo`,cut:`Cut`,copy:`Copy`,paste:`Paste`,"shortcut-panel":`Toggle Shortcut Panel`},"common-edit":`Common Editing Shortcuts`,"toggle-shortcut-panel":`Toggle Shortcut Panel`,clipboard:{authentication:{title:`Permission Denied`,content:`Please allow Univer to access your clipboard.`}},textEditor:{formulaError:`Please enter a valid formula, such as =SUM(A1)`,rangeError:`Please enter a valid range, such as A1:B10`},rangeSelector:{title:`Select a data range`,addAnotherRange:`Add range`,buttonTooltip:`Select data range`,placeHolder:`Select range or enter.`,confirm:`Confirm`,cancel:`Cancel`},"global-shortcut":`Global Shortcut`,"zoom-slider":{resetTo:`Reset to`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const a={toolbar:{heading:{normal:"Normal",title:"Título",subTitle:"Subtítulo",1:"Encabezado 1",2:"Encabezado 2",3:"Encabezado 3",4:"Encabezado 4",5:"Encabezado 5",6:"Encabezado 6",tooltip:"Establecer encabezado"}},ribbon:{start:"Inicio",startDesc:"Inicia la hoja de cálculo y establece los parámetros básicos.",insert:"Insertar",insertDesc:"Inserta filas, columnas, gráficos y otros elementos.",formulas:"Fórmulas",formulasDesc:"Utiliza funciones y fórmulas para cálculos de datos.",data:"Datos",dataDesc:"Gestiona los datos, incluyendo importación, ordenación y filtrado.",view:"Vista",viewDesc:"Cambia los modos de vista y ajusta el efecto de visualización.",others:"Otros",othersDesc:"Otras funciones y configuraciones.",more:"Más"},fontFamily:{"not-supported":"No se encontró esta fuente en el sistema, se utiliza la fuente predeterminada.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Atajos"},shortcut:{undo:"Deshacer",redo:"Rehacer",cut:"Cortar",copy:"Copiar",paste:"Pegar","shortcut-panel":"Alternar panel de atajos"},"common-edit":"Atajos de edición comunes","toggle-shortcut-panel":"Alternar panel de atajos",clipboard:{authentication:{title:"Permiso denegado",content:"Por favor, permite que Univer acceda a tu portapapeles."}},textEditor:{formulaError:"Por favor, introduce una fórmula válida, como =SUMA(A1)",rangeError:"Por favor, introduce un rango válido, como A1:B10"},rangeSelector:{title:"Selecciona un rango de datos",addAnotherRange:"Agregar rango",buttonTooltip:"Seleccionar rango de datos",placeHolder:"Selecciona un rango o escribe.",confirm:"Confirmar",cancel:"Cancelar"},"global-shortcut":"Atajo global","zoom-slider":{resetTo:"Restablecer a"}};module.exports=a;
1
+ const e={toolbar:{heading:{normal:`Normal`,title:`Título`,subTitle:`Subtítulo`,1:`Encabezado 1`,2:`Encabezado 2`,3:`Encabezado 3`,4:`Encabezado 4`,5:`Encabezado 5`,6:`Encabezado 6`,tooltip:`Establecer encabezado`}},ribbon:{start:`Inicio`,startDesc:`Inicia la hoja de cálculo y establece los parámetros básicos.`,insert:`Insertar`,insertDesc:`Inserta filas, columnas, gráficos y otros elementos.`,formulas:`Fórmulas`,formulasDesc:`Utiliza funciones y fórmulas para cálculos de datos.`,data:`Datos`,dataDesc:`Gestiona los datos, incluyendo importación, ordenación y filtrado.`,view:`Vista`,viewDesc:`Cambia los modos de vista y ajusta el efecto de visualización.`,others:`Otros`,othersDesc:`Otras funciones y configuraciones.`,more:`Más`},fontFamily:{"not-supported":`No se encontró esta fuente en el sistema, se utiliza la fuente predeterminada.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Atajos`},shortcut:{undo:`Deshacer`,redo:`Rehacer`,cut:`Cortar`,copy:`Copiar`,paste:`Pegar`,"shortcut-panel":`Alternar panel de atajos`},"common-edit":`Atajos de edición comunes`,"toggle-shortcut-panel":`Alternar panel de atajos`,clipboard:{authentication:{title:`Permiso denegado`,content:`Por favor, permite que Univer acceda a tu portapapeles.`}},textEditor:{formulaError:`Por favor, introduce una fórmula válida, como =SUMA(A1)`,rangeError:`Por favor, introduce un rango válido, como A1:B10`},rangeSelector:{title:`Selecciona un rango de datos`,addAnotherRange:`Agregar rango`,buttonTooltip:`Seleccionar rango de datos`,placeHolder:`Selecciona un rango o escribe.`,confirm:`Confirmar`,cancel:`Cancelar`},"global-shortcut":`Atajo global`,"zoom-slider":{resetTo:`Restablecer a`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"متن عادی",title:"عنوان",subTitle:"زیر عنوان",1:"عنوان 1",2:"عنوان 2",3:"عنوان 3",4:"عنوان 4",5:"عنوان 5",6:"عنوان 6",tooltip:"تنظیم عنوان"}},ribbon:{start:"شروع",startDesc:"ایجاد کاربرگ و تنظیم پارامترهای اولیه.",insert:"درج",insertDesc:"درج ردیف‌ها، ستون‌ها، نمودارها و عناصر مختلف دیگر.",formulas:"فرمول‌ها",formulasDesc:"استفاده از توابع و فرمول‌ها برای محاسبات داده‌ها.",data:"داده‌ها",dataDesc:"ادغام و تجزیه داده‌ها.",view:"نمایش",viewDesc:"تغییر حالت نمایش و تنظیم اثرات نمایشی.",others:"دیگر",othersDesc:"سایر عملکردها و تنظیمات.",more:"بیشتر"},fontFamily:{"not-supported":"هیچ فونتی با این نام در سیستم یافت نشد، از فونت پیش‌فرض استفاده می‌شود.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"کلیدهای میانبر"},shortcut:{undo:"بازگرداندن",redo:"تکرار",cut:"بریدن",copy:"کپی کردن",paste:"چسباندن","shortcut-panel":"نمایش/مخفی کردن پنل کلیدهای میانبر"},"common-edit":"کلیدهای میانبر ویرایش عمومی","toggle-shortcut-panel":"نمایش/مخفی کردن پنل کلیدهای میانبر",clipboard:{authentication:{title:"اجازه دسترسی داده نشده است",content:"لطفا به Univer اجازه دسترسی به کلیپ بورد خود را بدهید."}},textEditor:{formulaError:"لطفا یک فرمول معتبر مانند =SUM(A1) وارد کنید.",rangeError:"لطفا یک محدوده معتبر مانند A1:B10 وارد کنید."},rangeSelector:{title:"انتخاب محدوده داده",addAnotherRange:"افزودن محدوده",buttonTooltip:"انتخاب محدوده داده",placeHolder:"انتخاب محدوده یا وارد کردن.",confirm:"تایید",cancel:"انصراف"},"global-shortcut":"کلید میانبر جهانی","zoom-slider":{resetTo:"بازنشانی به"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`متن عادی`,title:`عنوان`,subTitle:`زیر عنوان`,1:`عنوان 1`,2:`عنوان 2`,3:`عنوان 3`,4:`عنوان 4`,5:`عنوان 5`,6:`عنوان 6`,tooltip:`تنظیم عنوان`}},ribbon:{start:`شروع`,startDesc:`ایجاد کاربرگ و تنظیم پارامترهای اولیه.`,insert:`درج`,insertDesc:`درج ردیف‌ها، ستون‌ها، نمودارها و عناصر مختلف دیگر.`,formulas:`فرمول‌ها`,formulasDesc:`استفاده از توابع و فرمول‌ها برای محاسبات داده‌ها.`,data:`داده‌ها`,dataDesc:`ادغام و تجزیه داده‌ها.`,view:`نمایش`,viewDesc:`تغییر حالت نمایش و تنظیم اثرات نمایشی.`,others:`دیگر`,othersDesc:`سایر عملکردها و تنظیمات.`,more:`بیشتر`},fontFamily:{"not-supported":`هیچ فونتی با این نام در سیستم یافت نشد، از فونت پیش‌فرض استفاده می‌شود.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`کلیدهای میانبر`},shortcut:{undo:`بازگرداندن`,redo:`تکرار`,cut:`بریدن`,copy:`کپی کردن`,paste:`چسباندن`,"shortcut-panel":`نمایش/مخفی کردن پنل کلیدهای میانبر`},"common-edit":`کلیدهای میانبر ویرایش عمومی`,"toggle-shortcut-panel":`نمایش/مخفی کردن پنل کلیدهای میانبر`,clipboard:{authentication:{title:`اجازه دسترسی داده نشده است`,content:`لطفا به Univer اجازه دسترسی به کلیپ بورد خود را بدهید.`}},textEditor:{formulaError:`لطفا یک فرمول معتبر مانند =SUM(A1) وارد کنید.`,rangeError:`لطفا یک محدوده معتبر مانند A1:B10 وارد کنید.`},rangeSelector:{title:`انتخاب محدوده داده`,addAnotherRange:`افزودن محدوده`,buttonTooltip:`انتخاب محدوده داده`,placeHolder:`انتخاب محدوده یا وارد کردن.`,confirm:`تایید`,cancel:`انصراف`},"global-shortcut":`کلید میانبر جهانی`,"zoom-slider":{resetTo:`بازنشانی به`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const e={toolbar:{heading:{normal:"Normal",title:"Titre",subTitle:"Sous-titre",1:"Titre 1",2:"Titre 2",3:"Titre 3",4:"Titre 4",5:"Titre 5",6:"Titre 6",tooltip:"Définir un titre"}},ribbon:{start:"Démarrer",startDesc:"Initialiser la feuille de calcul et définir les paramètres de base.",insert:"Insérer",insertDesc:"Insérer des lignes, des colonnes, des graphiques et divers autres éléments.",formulas:"Formules",formulasDesc:"Utiliser des fonctions et des formules pour les calculs de données.",data:"Données",dataDesc:"Gérer les données, y compris l'importation, le tri et le filtrage.",view:"Vue",viewDesc:"Changer les modes d'affichage et ajuster l'effet d'affichage.",others:"Autres",othersDesc:"Autres fonctions et paramètres.",more:"Plus"},fontFamily:{"not-supported":"Aucune police de ce type trouvée dans le système, utilisation de la police par défaut.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Raccourcis"},shortcut:{undo:"Annuler",redo:"Refaire",cut:"Couper",copy:"Copier",paste:"Coller","shortcut-panel":"Basculer le panneau de raccourcis"},"common-edit":"Raccourcis d'édition courants","toggle-shortcut-panel":"Basculer le panneau de raccourcis",clipboard:{authentication:{title:"Permission refusée",content:"Veuillez autoriser Univer à accéder à votre presse-papiers."}},textEditor:{formulaError:"Veuillez entrer une formule valide, telle que =SOMME(A1)",rangeError:"Veuillez entrer une plage valide, telle que A1:B10"},rangeSelector:{title:"Sélectionner une plage de données",addAnotherRange:"Ajouter une plage",buttonTooltip:"Sélectionner une plage de données",placeHolder:"Sélectionner une plage ou entrer.",confirm:"Confirmer",cancel:"Annuler"},"global-shortcut":"Raccourci global","zoom-slider":{resetTo:"Réinitialiser à"}};module.exports=e;
1
+ const e={toolbar:{heading:{normal:`Normal`,title:`Titre`,subTitle:`Sous-titre`,1:`Titre 1`,2:`Titre 2`,3:`Titre 3`,4:`Titre 4`,5:`Titre 5`,6:`Titre 6`,tooltip:`Définir un titre`}},ribbon:{start:`Démarrer`,startDesc:`Initialiser la feuille de calcul et définir les paramètres de base.`,insert:`Insérer`,insertDesc:`Insérer des lignes, des colonnes, des graphiques et divers autres éléments.`,formulas:`Formules`,formulasDesc:`Utiliser des fonctions et des formules pour les calculs de données.`,data:`Données`,dataDesc:`Gérer les données, y compris l'importation, le tri et le filtrage.`,view:`Vue`,viewDesc:`Changer les modes d'affichage et ajuster l'effet d'affichage.`,others:`Autres`,othersDesc:`Autres fonctions et paramètres.`,more:`Plus`},fontFamily:{"not-supported":`Aucune police de ce type trouvée dans le système, utilisation de la police par défaut.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Raccourcis`},shortcut:{undo:`Annuler`,redo:`Refaire`,cut:`Couper`,copy:`Copier`,paste:`Coller`,"shortcut-panel":`Basculer le panneau de raccourcis`},"common-edit":`Raccourcis d'édition courants`,"toggle-shortcut-panel":`Basculer le panneau de raccourcis`,clipboard:{authentication:{title:`Permission refusée`,content:`Veuillez autoriser Univer à accéder à votre presse-papiers.`}},textEditor:{formulaError:`Veuillez entrer une formule valide, telle que =SOMME(A1)`,rangeError:`Veuillez entrer une plage valide, telle que A1:B10`},rangeSelector:{title:`Sélectionner une plage de données`,addAnotherRange:`Ajouter une plage`,buttonTooltip:`Sélectionner une plage de données`,placeHolder:`Sélectionner une plage ou entrer.`,confirm:`Confirmer`,cancel:`Annuler`},"global-shortcut":`Raccourci global`,"zoom-slider":{resetTo:`Réinitialiser à`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"標準",title:"タイトル",subTitle:"サブタイトル",1:"見出し 1",2:"見出し 2",3:"見出し 3",4:"見出し 4",5:"見出し 5",6:"見出し 6",tooltip:"見出しを設定"}},ribbon:{start:"開始",startDesc:"ワークシートを初期化し、基本パラメータを設定します。",insert:"挿入",insertDesc:"行、列、グラフなどさまざまな要素を挿入します。",formulas:"数式",formulasDesc:"データ計算のための関数と数式を使用します。",data:"データ",dataDesc:"データの管理(インポート、並べ替え、フィルタリングを含む)。",view:"表示",viewDesc:"表示モードを切り替え、表示効果を調整します。",others:"その他",othersDesc:"その他の機能と設定。",more:"もっと見る"},fontFamily:{"not-supported":"システムにそのようなフォントが見つからないため、デフォルトのフォントを使用しています。",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"微軟雅黒",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"ショートカット"},shortcut:{undo:"元に戻す",redo:"やり直す",cut:"切り取り",copy:"コピー",paste:"貼り付け","shortcut-panel":"ショートカットパネルを切り替え"},"common-edit":"一般編集ショートカット","toggle-shortcut-panel":"ショートカットパネルを切り替え",clipboard:{authentication:{title:"権限が拒否されました",content:"Univerにクリップボードアクセスの権限を付与してください。"}},textEditor:{formulaError:"有効な数式を入力してください。例: =SUM(A1)",rangeError:"有効な範囲を入力してください。例: A1:B10"},rangeSelector:{title:"データ範囲の選択",addAnotherRange:"範囲を追加",buttonTooltip:"データ範囲を選択",placeHolder:"範囲を選択または入力してください。",confirm:"確認",cancel:"キャンセル"},"global-shortcut":"グローバルショートカット","zoom-slider":{resetTo:"リセット"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`標準`,title:`タイトル`,subTitle:`サブタイトル`,1:`見出し 1`,2:`見出し 2`,3:`見出し 3`,4:`見出し 4`,5:`見出し 5`,6:`見出し 6`,tooltip:`見出しを設定`}},ribbon:{start:`開始`,startDesc:`ワークシートを初期化し、基本パラメータを設定します。`,insert:`挿入`,insertDesc:`行、列、グラフなどさまざまな要素を挿入します。`,formulas:`数式`,formulasDesc:`データ計算のための関数と数式を使用します。`,data:`データ`,dataDesc:`データの管理(インポート、並べ替え、フィルタリングを含む)。`,view:`表示`,viewDesc:`表示モードを切り替え、表示効果を調整します。`,others:`その他`,othersDesc:`その他の機能と設定。`,more:`もっと見る`},fontFamily:{"not-supported":`システムにそのようなフォントが見つからないため、デフォルトのフォントを使用しています。`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`微軟雅黒`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`ショートカット`},shortcut:{undo:`元に戻す`,redo:`やり直す`,cut:`切り取り`,copy:`コピー`,paste:`貼り付け`,"shortcut-panel":`ショートカットパネルを切り替え`},"common-edit":`一般編集ショートカット`,"toggle-shortcut-panel":`ショートカットパネルを切り替え`,clipboard:{authentication:{title:`権限が拒否されました`,content:`Univerにクリップボードアクセスの権限を付与してください。`}},textEditor:{formulaError:`有効な数式を入力してください。例: =SUM(A1)`,rangeError:`有効な範囲を入力してください。例: A1:B10`},rangeSelector:{title:`データ範囲の選択`,addAnotherRange:`範囲を追加`,buttonTooltip:`データ範囲を選択`,placeHolder:`範囲を選択または入力してください。`,confirm:`確認`,cancel:`キャンセル`},"global-shortcut":`グローバルショートカット`,"zoom-slider":{resetTo:`リセット`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"일반",title:"제목",subTitle:"부제목",1:"제목 1",2:"제목 2",3:"제목 3",4:"제목 4",5:"제목 5",6:"제목 6",tooltip:"제목 설정"}},ribbon:{start:"시작",startDesc:"워크시트를 초기화하고 기본 매개변수를 설정합니다.",insert:"삽입",insertDesc:"행, 열, 차트 및 다양한 요소를 삽입합니다.",formulas:"수식",formulasDesc:"데이터 계산을 위한 함수와 수식을 사용합니다.",data:"데이터",dataDesc:"데이터를 관리하며, 가져오기, 정렬 및 필터링을 포함합니다.",view:"보기",viewDesc:"보기 모드를 전환하고 표시 효과를 조정합니다.",others:"기타",othersDesc:"기타 함수와 설정.",more:"더 보기"},fontFamily:{"not-supported":"시스템에 해당 폰트가 없어 기본 폰트를 사용합니다.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"단축키"},shortcut:{undo:"실행 취소",redo:"다시 실행",cut:"자르기",copy:"복사",paste:"붙여넣기","shortcut-panel":"단축키 패널 전환"},"common-edit":"일반 편집 단축키","toggle-shortcut-panel":"단축키 패널 전환",clipboard:{authentication:{title:"권한 거절",content:"Univer에 클립보드 접근 권한을 부여해주세요."}},textEditor:{formulaError:"올바른 수식을 입력하세요, 예: =SUM(A1)",rangeError:"올바른 범위를 입력하세요, 예: A1:B10"},rangeSelector:{title:"데이터 범위 선택",addAnotherRange:"범위 추가",buttonTooltip:"데이터 범위 선택",placeHolder:"범위를 선택하거나 입력하세요.",confirm:"확인",cancel:"취소"},"global-shortcut":"전역 단축키","zoom-slider":{resetTo:"초기화"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`일반`,title:`제목`,subTitle:`부제목`,1:`제목 1`,2:`제목 2`,3:`제목 3`,4:`제목 4`,5:`제목 5`,6:`제목 6`,tooltip:`제목 설정`}},ribbon:{start:`시작`,startDesc:`워크시트를 초기화하고 기본 매개변수를 설정합니다.`,insert:`삽입`,insertDesc:`행, 열, 차트 및 다양한 요소를 삽입합니다.`,formulas:`수식`,formulasDesc:`데이터 계산을 위한 함수와 수식을 사용합니다.`,data:`데이터`,dataDesc:`데이터를 관리하며, 가져오기, 정렬 및 필터링을 포함합니다.`,view:`보기`,viewDesc:`보기 모드를 전환하고 표시 효과를 조정합니다.`,others:`기타`,othersDesc:`기타 함수와 설정.`,more:`더 보기`},fontFamily:{"not-supported":`시스템에 해당 폰트가 없어 기본 폰트를 사용합니다.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`단축키`},shortcut:{undo:`실행 취소`,redo:`다시 실행`,cut:`자르기`,copy:`복사`,paste:`붙여넣기`,"shortcut-panel":`단축키 패널 전환`},"common-edit":`일반 편집 단축키`,"toggle-shortcut-panel":`단축키 패널 전환`,clipboard:{authentication:{title:`권한 거절`,content:`Univer에 클립보드 접근 권한을 부여해주세요.`}},textEditor:{formulaError:`올바른 수식을 입력하세요, 예: =SUM(A1)`,rangeError:`올바른 범위를 입력하세요, 예: A1:B10`},rangeSelector:{title:`데이터 범위 선택`,addAnotherRange:`범위 추가`,buttonTooltip:`데이터 범위 선택`,placeHolder:`범위를 선택하거나 입력하세요.`,confirm:`확인`,cancel:`취소`},"global-shortcut":`전역 단축키`,"zoom-slider":{resetTo:`초기화`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"Обычный текст",title:"Заголовок",subTitle:"Подзаголовок",1:"Заголовок 1",2:"Заголовок 2",3:"Заголовок 3",4:"Заголовок 4",5:"Заголовок 5",6:"Заголовок 6",tooltip:"Установить заголовок"}},ribbon:{start:"Начало",startDesc:"Инициализация рабочей таблицы и установка основных параметров.",insert:"Вставка",insertDesc:"Вставка строк, столбцов, графиков и различных других элементов.",formulas:"Формулы",formulasDesc:"Использование функций и формул для вычислений данных.",data:"Данные",dataDesc:"Управление данными, включая импорт, сортировку и фильтрацию.",view:"Вид",viewDesc:"Смена режимов отображения и настройка эффекта отображения.",others:"Другие",othersDesc:"Другие функции и настройки.",more:"Больше"},fontFamily:{"not-supported":"В системе не найден такой шрифт, используется шрифт по умолчанию.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Сочетания клавиш"},shortcut:{undo:"Отменить",redo:"Повторить",cut:"Вырезать",copy:"Копировать",paste:"Вставить","shortcut-panel":"Переключить панель сочетания клавиш"},"common-edit":"Общие команды редактирования","toggle-shortcut-panel":"Переключить панель сочетания клавиш",clipboard:{authentication:{title:"Доступ запрещен",content:"Пожалуйста, разрешите Univer доступ к вашему буферу обмена."}},textEditor:{formulaError:"Пожалуйста, введите корректную формулу, например =SUM(A1)",rangeError:"Пожалуйста, введите корректный диапазон, например A1:B10"},rangeSelector:{title:"Выберите диапазон данных",addAnotherRange:"Добавить диапазон",buttonTooltip:"Выбрать диапазон данных",placeHolder:"Выберите диапазон или введите.",confirm:"Подтвердить",cancel:"Отменить"},"global-shortcut":"Сочетания клавиш","zoom-slider":{resetTo:"Сбросить до"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`Обычный текст`,title:`Заголовок`,subTitle:`Подзаголовок`,1:`Заголовок 1`,2:`Заголовок 2`,3:`Заголовок 3`,4:`Заголовок 4`,5:`Заголовок 5`,6:`Заголовок 6`,tooltip:`Установить заголовок`}},ribbon:{start:`Начало`,startDesc:`Инициализация рабочей таблицы и установка основных параметров.`,insert:`Вставка`,insertDesc:`Вставка строк, столбцов, графиков и различных других элементов.`,formulas:`Формулы`,formulasDesc:`Использование функций и формул для вычислений данных.`,data:`Данные`,dataDesc:`Управление данными, включая импорт, сортировку и фильтрацию.`,view:`Вид`,viewDesc:`Смена режимов отображения и настройка эффекта отображения.`,others:`Другие`,othersDesc:`Другие функции и настройки.`,more:`Больше`},fontFamily:{"not-supported":`В системе не найден такой шрифт, используется шрифт по умолчанию.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Сочетания клавиш`},shortcut:{undo:`Отменить`,redo:`Повторить`,cut:`Вырезать`,copy:`Копировать`,paste:`Вставить`,"shortcut-panel":`Переключить панель сочетания клавиш`},"common-edit":`Общие команды редактирования`,"toggle-shortcut-panel":`Переключить панель сочетания клавиш`,clipboard:{authentication:{title:`Доступ запрещен`,content:`Пожалуйста, разрешите Univer доступ к вашему буферу обмена.`}},textEditor:{formulaError:`Пожалуйста, введите корректную формулу, например =SUM(A1)`,rangeError:`Пожалуйста, введите корректный диапазон, например A1:B10`},rangeSelector:{title:`Выберите диапазон данных`,addAnotherRange:`Добавить диапазон`,buttonTooltip:`Выбрать диапазон данных`,placeHolder:`Выберите диапазон или введите.`,confirm:`Подтвердить`,cancel:`Отменить`},"global-shortcut":`Сочетания клавиш`,"zoom-slider":{resetTo:`Сбросить до`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const a={toolbar:{heading:{normal:"Normálne",title:"Nadpis",subTitle:"Podnadpis",1:"Nadpis 1",2:"Nadpis 2",3:"Nadpis 3",4:"Nadpis 4",5:"Nadpis 5",6:"Nadpis 6",tooltip:"Nastaviť nadpis"}},ribbon:{start:"Začiatok",startDesc:"Inicializujte hárok a nastavte základné parametre.",insert:"Vložiť",insertDesc:"Vložte riadky, stĺpce, grafy a ďalšie prvky.",formulas:"Vzorce",formulasDesc:"Používajte funkcie a vzorce na výpočty údajov.",data:"Údaje",dataDesc:"Spravujte údaje vrátane importu, triedenia a filtrovania.",view:"Zobrazenie",viewDesc:"Prepínajte režimy zobrazenia a upravte efekt zobrazenia.",others:"Ostatné",othersDesc:"Ďalšie funkcie a nastavenia.",more:"Viac"},fontFamily:{"not-supported":"Toto písmo sa v systéme nenašlo, používa sa predvolené písmo.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Skratky"},shortcut:{undo:"Späť",redo:"Znova",cut:"Vystrihnúť",copy:"Kopírovať",paste:"Prilepiť","shortcut-panel":"Prepnúť panel skratiek"},"common-edit":"Bežné úpravové skratky","toggle-shortcut-panel":"Prepnúť panel skratiek",clipboard:{authentication:{title:"Povolenie zamietnuté",content:"Povoľte Univeru prístup k schránke."}},textEditor:{formulaError:"Zadajte platný vzorec, napríklad =SUMA(A1)",rangeError:"Zadajte platný rozsah, napríklad A1:B10"},rangeSelector:{title:"Vyberte rozsah údajov",addAnotherRange:"Pridať rozsah",buttonTooltip:"Vybrať rozsah údajov",placeHolder:"Vyberte rozsah alebo zadajte.",confirm:"Potvrdiť",cancel:"Zrušiť"},"global-shortcut":"Globálna skratka","zoom-slider":{resetTo:"Obnoviť na"}};module.exports=a;
1
+ const e={toolbar:{heading:{normal:`Normálne`,title:`Nadpis`,subTitle:`Podnadpis`,1:`Nadpis 1`,2:`Nadpis 2`,3:`Nadpis 3`,4:`Nadpis 4`,5:`Nadpis 5`,6:`Nadpis 6`,tooltip:`Nastaviť nadpis`}},ribbon:{start:`Začiatok`,startDesc:`Inicializujte hárok a nastavte základné parametre.`,insert:`Vložiť`,insertDesc:`Vložte riadky, stĺpce, grafy a ďalšie prvky.`,formulas:`Vzorce`,formulasDesc:`Používajte funkcie a vzorce na výpočty údajov.`,data:`Údaje`,dataDesc:`Spravujte údaje vrátane importu, triedenia a filtrovania.`,view:`Zobrazenie`,viewDesc:`Prepínajte režimy zobrazenia a upravte efekt zobrazenia.`,others:`Ostatné`,othersDesc:`Ďalšie funkcie a nastavenia.`,more:`Viac`},fontFamily:{"not-supported":`Toto písmo sa v systéme nenašlo, používa sa predvolené písmo.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Skratky`},shortcut:{undo:`Späť`,redo:`Znova`,cut:`Vystrihnúť`,copy:`Kopírovať`,paste:`Prilepiť`,"shortcut-panel":`Prepnúť panel skratiek`},"common-edit":`Bežné úpravové skratky`,"toggle-shortcut-panel":`Prepnúť panel skratiek`,clipboard:{authentication:{title:`Povolenie zamietnuté`,content:`Povoľte Univeru prístup k schránke.`}},textEditor:{formulaError:`Zadajte platný vzorec, napríklad =SUMA(A1)`,rangeError:`Zadajte platný rozsah, napríklad A1:B10`},rangeSelector:{title:`Vyberte rozsah údajov`,addAnotherRange:`Pridať rozsah`,buttonTooltip:`Vybrať rozsah údajov`,placeHolder:`Vyberte rozsah alebo zadajte.`,confirm:`Potvrdiť`,cancel:`Zrušiť`},"global-shortcut":`Globálna skratka`,"zoom-slider":{resetTo:`Obnoviť na`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"Văn bản",title:"Tiêu đề",subTitle:"Tiêu đề phụ",1:"Tiêu đề 1",2:"Tiêu đề 2",3:"Tiêu đề 3",4:"Tiêu đề 4",5:"Tiêu đề 5",6:"Tiêu đề 6",tooltip:"Đặt tiêu đề"}},ribbon:{start:"Bắt đầu",startDesc:"Khởi tạo bảng tính và thiết lập các tham số cơ bản.",insert:"Chèn",insertDesc:"Chèn hàng, cột, biểu đồ và các phần tử khác.",formulas:"Công thức",formulasDesc:"Sử dụng hàm và công thức để tính toán dữ liệu.",data:"Dữ liệu",dataDesc:"Sắp xếp, lọc và phân tích dữ liệu.",view:"Xem",viewDesc:"Chuyển đổi chế độ xem và điều chỉnh hiệu ứng hiển thị.",others:"Khác",othersDesc:"Các chức năng và cài đặt khác.",more:"Thêm"},fontFamily:{"not-supported":"Không tìm thấy phông chữ này trong hệ thống, sử dụng phông chữ mặc định.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Bảng phím tắt"},shortcut:{undo:"Hoàn tác",redo:"Làm lại",cut:"Cắt",copy:"Sao chép",paste:"Dán","shortcut-panel":"Mở/Đóng bảng phím tắt"},"common-edit":"Chỉnh sửa thường dùng","toggle-shortcut-panel":"Mở/Đóng bảng phím tắt",clipboard:{authentication:{title:"Không thể truy cập vào bảng nhớ tạm",content:"Vui lòng cho phép Univer truy cập vào bảng nhớ tạm của bạn."}},textEditor:{formulaError:"Vui lòng nhập công thức hợp lệ, ví dụ =SUM(A1)",rangeError:"Vui lòng nhập phạm vi hợp lệ, ví dụ A1:B10"},rangeSelector:{title:"Chọn một phạm vi dữ liệu",addAnotherRange:"Thêm phạm vi",buttonTooltip:"Chọn phạm vi dữ liệu",placeHolder:"Chọn phạm vi hoặc nhập",confirm:"Xác nhận",cancel:"Hủy"},"global-shortcut":"Phím tắt toàn cầu","zoom-slider":{resetTo:"Khôi phục đến"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`Văn bản`,title:`Tiêu đề`,subTitle:`Tiêu đề phụ`,1:`Tiêu đề 1`,2:`Tiêu đề 2`,3:`Tiêu đề 3`,4:`Tiêu đề 4`,5:`Tiêu đề 5`,6:`Tiêu đề 6`,tooltip:`Đặt tiêu đề`}},ribbon:{start:`Bắt đầu`,startDesc:`Khởi tạo bảng tính và thiết lập các tham số cơ bản.`,insert:`Chèn`,insertDesc:`Chèn hàng, cột, biểu đồ và các phần tử khác.`,formulas:`Công thức`,formulasDesc:`Sử dụng hàm và công thức để tính toán dữ liệu.`,data:`Dữ liệu`,dataDesc:`Sắp xếp, lọc và phân tích dữ liệu.`,view:`Xem`,viewDesc:`Chuyển đổi chế độ xem và điều chỉnh hiệu ứng hiển thị.`,others:`Khác`,othersDesc:`Các chức năng và cài đặt khác.`,more:`Thêm`},fontFamily:{"not-supported":`Không tìm thấy phông chữ này trong hệ thống, sử dụng phông chữ mặc định.`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`Microsoft YaHei`,simsun:`SimSun`,simhei:`SimHei`,kaiti:`Kaiti`,fangsong:`FangSong`,nsimsun:`NSimSun`,stxinwei:`STXinwei`,stxingkai:`STXingkai`,stliti:`STLiti`},"shortcut-panel":{title:`Bảng phím tắt`},shortcut:{undo:`Hoàn tác`,redo:`Làm lại`,cut:`Cắt`,copy:`Sao chép`,paste:`Dán`,"shortcut-panel":`Mở/Đóng bảng phím tắt`},"common-edit":`Chỉnh sửa thường dùng`,"toggle-shortcut-panel":`Mở/Đóng bảng phím tắt`,clipboard:{authentication:{title:`Không thể truy cập vào bảng nhớ tạm`,content:`Vui lòng cho phép Univer truy cập vào bảng nhớ tạm của bạn.`}},textEditor:{formulaError:`Vui lòng nhập công thức hợp lệ, ví dụ =SUM(A1)`,rangeError:`Vui lòng nhập phạm vi hợp lệ, ví dụ A1:B10`},rangeSelector:{title:`Chọn một phạm vi dữ liệu`,addAnotherRange:`Thêm phạm vi`,buttonTooltip:`Chọn phạm vi dữ liệu`,placeHolder:`Chọn phạm vi hoặc nhập`,confirm:`Xác nhận`,cancel:`Hủy`},"global-shortcut":`Phím tắt toàn cầu`,"zoom-slider":{resetTo:`Khôi phục đến`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"正文",title:"标题",subTitle:"副标题",1:"标题1",2:"标题2",3:"标题3",4:"标题4",5:"标题5",6:"标题6",tooltip:"设置标题"}},ribbon:{start:"开始",startDesc:"初始化工作表并设置基本参数。",insert:"插入",insertDesc:"插入行、列、图表和各种其他元素。",formulas:"公式",formulasDesc:"使用函数和公式进行数据计算。",data:"数据",dataDesc:"管理数据,包括导入、排序和筛选。",view:"视图",viewDesc:"切换视图模式并调整显示效果。",others:"其他",othersDesc:"其他功能和设置。",more:"更多"},fontFamily:{"not-supported":"系统中未找到该字体,使用默认字体。",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"微软雅黑",simsun:"宋体",simhei:"黑体",kaiti:"楷体",fangsong:"仿宋",nsimsun:"新宋体",stxinwei:"华文新魏",stxingkai:"华文行楷",stliti:"华文隶书"},"shortcut-panel":{title:"快捷键面板"},shortcut:{undo:"撤销",redo:"重做",cut:"剪切",copy:"复制",paste:"粘贴","shortcut-panel":"打开收起快捷键面板"},"common-edit":"常用编辑","toggle-shortcut-panel":"打开收起快捷键面板",clipboard:{authentication:{title:"无法访问剪贴板",content:"请允许 Univer 访问您的剪贴板。"}},textEditor:{formulaError:"请输入合法的公式,例如=SUM(A1)",rangeError:"请输入合法的范围,例如 A1:B10"},rangeSelector:{title:"选择一个数据范围",addAnotherRange:"添加范围",buttonTooltip:"选择数据范围",placeHolder:"框选范围或输入",confirm:"确认",cancel:"取消"},"global-shortcut":"全局快捷键","zoom-slider":{resetTo:"恢复至"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`正文`,title:`标题`,subTitle:`副标题`,1:`标题1`,2:`标题2`,3:`标题3`,4:`标题4`,5:`标题5`,6:`标题6`,tooltip:`设置标题`}},ribbon:{start:`开始`,startDesc:`初始化工作表并设置基本参数。`,insert:`插入`,insertDesc:`插入行、列、图表和各种其他元素。`,formulas:`公式`,formulasDesc:`使用函数和公式进行数据计算。`,data:`数据`,dataDesc:`管理数据,包括导入、排序和筛选。`,view:`视图`,viewDesc:`切换视图模式并调整显示效果。`,others:`其他`,othersDesc:`其他功能和设置。`,more:`更多`},fontFamily:{"not-supported":`系统中未找到该字体,使用默认字体。`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`微软雅黑`,simsun:`宋体`,simhei:`黑体`,kaiti:`楷体`,fangsong:`仿宋`,nsimsun:`新宋体`,stxinwei:`华文新魏`,stxingkai:`华文行楷`,stliti:`华文隶书`},"shortcut-panel":{title:`快捷键面板`},shortcut:{undo:`撤销`,redo:`重做`,cut:`剪切`,copy:`复制`,paste:`粘贴`,"shortcut-panel":`打开收起快捷键面板`},"common-edit":`常用编辑`,"toggle-shortcut-panel":`打开收起快捷键面板`,clipboard:{authentication:{title:`无法访问剪贴板`,content:`请允许 Univer 访问您的剪贴板。`}},textEditor:{formulaError:`请输入合法的公式,例如=SUM(A1)`,rangeError:`请输入合法的范围,例如 A1:B10`},rangeSelector:{title:`选择一个数据范围`,addAnotherRange:`添加范围`,buttonTooltip:`选择数据范围`,placeHolder:`框选范围或输入`,confirm:`确认`,cancel:`取消`},"global-shortcut":`全局快捷键`,"zoom-slider":{resetTo:`恢复至`}};module.exports=e;
@@ -1 +1 @@
1
- "use strict";const t={toolbar:{heading:{normal:"正文",title:"標題",subTitle:"副標題",1:"標題 1",2:"標題 2",3:"標題 3",4:"標題 4",5:"標題 5",6:"標題 6",tooltip:"設定標題"}},ribbon:{start:"開始",startDesc:"初始化工作表並設定基本參數。",insert:"插入",insertDesc:"插入行、列、圖表和各種其他元素。",formulas:"公式",formulasDesc:"使用函數和公式進行數據計算。",data:"資料",dataDesc:"管理資料,包括匯入、排序和篩選。",view:"視圖",viewDesc:"切換視圖模式並調整顯示效果。",others:"其他",othersDesc:"其他功能和設定。",more:"更多"},fontFamily:{"not-supported":"系統中未找到該字體,使用預設字體。",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"微軟雅黑",simsun:"宋體",simhei:"黑體",kaiti:"楷體",fangsong:"仿宋",nsimsun:"新宋體",stxinwei:"華文新魏",stxingkai:"華文行楷",stliti:"華文隸書"},"shortcut-panel":{title:"快捷鍵面板"},shortcut:{undo:"撤銷",redo:"重做",cut:"剪切",copy:"複製",paste:"貼上","shortcut-panel":"開啟收起快捷鍵面板"},"common-edit":"常用編輯","toggle-shortcut-panel":"開啟收起快速鍵面板",clipboard:{authentication:{title:"無法存取剪貼簿",content:"請允許 Univer 存取您的剪貼簿。 "}},textEditor:{formulaError:"請輸入合法的公式,例如=SUM(A1)",rangeError:"請輸入合法的範圍,例如 A1:B10"},rangeSelector:{title:"選擇一個資料範圍",addAnotherRange:"新增範圍",buttonTooltip:"選擇資料範圍",placeHolder:"框選範圍或輸入",confirm:"確認",cancel:"取消"},"global-shortcut":"全域快捷鍵","zoom-slider":{resetTo:"恢復至"}};module.exports=t;
1
+ const e={toolbar:{heading:{normal:`正文`,title:`標題`,subTitle:`副標題`,1:`標題 1`,2:`標題 2`,3:`標題 3`,4:`標題 4`,5:`標題 5`,6:`標題 6`,tooltip:`設定標題`}},ribbon:{start:`開始`,startDesc:`初始化工作表並設定基本參數。`,insert:`插入`,insertDesc:`插入行、列、圖表和各種其他元素。`,formulas:`公式`,formulasDesc:`使用函數和公式進行數據計算。`,data:`資料`,dataDesc:`管理資料,包括匯入、排序和篩選。`,view:`視圖`,viewDesc:`切換視圖模式並調整顯示效果。`,others:`其他`,othersDesc:`其他功能和設定。`,more:`更多`},fontFamily:{"not-supported":`系統中未找到該字體,使用預設字體。`,arial:`Arial`,"times-new-roman":`Times New Roman`,tahoma:`Tahoma`,verdana:`Verdana`,"microsoft-yahei":`微軟雅黑`,simsun:`宋體`,simhei:`黑體`,kaiti:`楷體`,fangsong:`仿宋`,nsimsun:`新宋體`,stxinwei:`華文新魏`,stxingkai:`華文行楷`,stliti:`華文隸書`},"shortcut-panel":{title:`快捷鍵面板`},shortcut:{undo:`撤銷`,redo:`重做`,cut:`剪切`,copy:`複製`,paste:`貼上`,"shortcut-panel":`開啟收起快捷鍵面板`},"common-edit":`常用編輯`,"toggle-shortcut-panel":`開啟收起快速鍵面板`,clipboard:{authentication:{title:`無法存取剪貼簿`,content:`請允許 Univer 存取您的剪貼簿。 `}},textEditor:{formulaError:`請輸入合法的公式,例如=SUM(A1)`,rangeError:`請輸入合法的範圍,例如 A1:B10`},rangeSelector:{title:`選擇一個資料範圍`,addAnotherRange:`新增範圍`,buttonTooltip:`選擇資料範圍`,placeHolder:`框選範圍或輸入`,confirm:`確認`,cancel:`取消`},"global-shortcut":`全域快捷鍵`,"zoom-slider":{resetTo:`恢復至`}};module.exports=e;
package/lib/es/facade.js CHANGED
@@ -1,391 +1 @@
1
- var B = Object.defineProperty;
2
- var R = (n, e, t) => e in n ? B(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var o = (n, e, t) => R(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { FBase as C, FUniver as M, FHooks as j, FEnum as y } from "@univerjs/core/facade";
5
- import { IRenderManagerService as U } from "@univerjs/engine-render";
6
- import { IMenuManagerService as P, MenuItemType as E, RibbonStartGroup as w, RibbonPosition as T, MenuManagerPosition as O, IShortcutService as G, CopyCommand as v, PasteCommand as _, ISidebarService as V, IDialogService as $, ComponentManager as I, IMessageService as N, IUIPartsService as g, connectInjector as H, IFontService as K, SheetPasteShortKeyCommandName as k, BuiltInUIPart as L, KeyCode as A } from "@univerjs/ui";
7
- import { Inject as m, Injector as f, ICommandService as d, generateRandomId as W, CommandType as q, IUniverInstanceService as z, UniverInstanceType as J } from "@univerjs/core";
8
- var Q = Object.getOwnPropertyDescriptor, x = (n, e, t, r) => {
9
- for (var i = r > 1 ? void 0 : r ? Q(e, t) : e, s = n.length - 1, c; s >= 0; s--)
10
- (c = n[s]) && (i = c(i) || i);
11
- return i;
12
- }, u = (n, e) => (t, r) => e(t, r, n);
13
- class D extends C {
14
- /**
15
- * Append the menu to any menu position on Univer UI.
16
- * @param {string | string[]} path - Some predefined path to append the menu. The paths can be an array,
17
- * or an array joined by `|` separator. Since lots of submenus reuse the same name,
18
- * you may need to specify their parent menus as well.
19
- *
20
- * @example
21
- * ```typescript
22
- * // This menu item will appear on every `contextMenu.others` section.
23
- * univerAPI.createMenu({
24
- * id: 'custom-menu-id-1',
25
- * title: 'Custom Menu 1',
26
- * action: () => {
27
- * console.log('Custom Menu 1 clicked');
28
- * },
29
- * }).appendTo('contextMenu.others');
30
- *
31
- * // This menu item will only appear on the `contextMenu.others` section on the main area.
32
- * univerAPI.createMenu({
33
- * id: 'custom-menu-id-2',
34
- * title: 'Custom Menu 2',
35
- * action: () => {
36
- * console.log('Custom Menu 2 clicked');
37
- * },
38
- * }).appendTo(['contextMenu.mainArea', 'contextMenu.others']);
39
- * ```
40
- */
41
- appendTo(e) {
42
- const t = typeof e == "string" ? e.split("|") : e, r = t.length, i = {};
43
- let s = i;
44
- const c = this.__getSchema();
45
- t.forEach((S, F) => {
46
- F === r - 1 ? s[S] = c : s[S] = {}, s = s[S];
47
- }), this._menuManagerService.mergeMenu(i);
48
- }
49
- }
50
- var a;
51
- let p = (a = class extends D {
52
- constructor(e, t, r, i) {
53
- super();
54
- o(this, "_commandToRegister", /* @__PURE__ */ new Map());
55
- o(this, "_buildingSchema");
56
- this._item = e, this._injector = t, this._commandService = r, this._menuManagerService = i;
57
- const s = typeof e.action == "string" ? e.action : W(12);
58
- s !== e.action && this._commandToRegister.set(s, e.action), this._buildingSchema = {
59
- // eslint-disable-next-line ts/explicit-function-return-type
60
- menuItemFactory: () => ({
61
- id: e.id,
62
- type: E.BUTTON,
63
- // we only support button for now
64
- icon: e.icon,
65
- title: e.title,
66
- tooltip: e.tooltip,
67
- commandId: s
68
- })
69
- }, typeof e.order < "u" && (this._buildingSchema.order = e.order);
70
- }
71
- /**
72
- * @ignore
73
- */
74
- __getSchema() {
75
- return this._commandToRegister.forEach((e, t) => {
76
- this._commandService.hasCommand(t) || this._commandService.registerCommand({
77
- id: t,
78
- type: q.COMMAND,
79
- handler: e
80
- });
81
- }), { [this._item.id]: this._buildingSchema };
82
- }
83
- }, o(a, "RibbonStartGroup", w), o(a, "RibbonPosition", T), o(a, "MenuManagerPosition", O), a);
84
- p = x([
85
- u(1, m(f)),
86
- u(2, d),
87
- u(3, P)
88
- ], p);
89
- let l = class extends D {
90
- constructor(e, t, r) {
91
- super();
92
- o(this, "_menuByGroups", []);
93
- o(this, "_submenus", []);
94
- o(this, "_buildingSchema");
95
- this._item = e, this._injector = t, this._menuManagerService = r, this._buildingSchema = {
96
- // eslint-disable-next-line ts/explicit-function-return-type
97
- menuItemFactory: () => ({
98
- id: e.id,
99
- type: E.SUBITEMS,
100
- icon: e.icon,
101
- title: e.title,
102
- tooltip: e.tooltip
103
- })
104
- }, typeof e.order < "u" && (this._buildingSchema.order = e.order);
105
- }
106
- /**
107
- * Add a menu to the submenu. It can be a {@link FMenu} or a {@link FSubmenu}.
108
- * @param {FMenu | FSubmenu} submenu - Menu to add to the submenu.
109
- * @returns {FSubmenu} The FSubmenu itself for chaining calls.
110
- * @example
111
- * ```typescript
112
- * // Create two leaf menus.
113
- * const menu1 = univerAPI.createMenu({
114
- * id: 'submenu-nested-1',
115
- * title: 'Item 1',
116
- * action: () => {
117
- * console.log('Item 1 clicked');
118
- * }
119
- * });
120
- * const menu2 = univerAPI.createMenu({
121
- * id: 'submenu-nested-2',
122
- * title: 'Item 2',
123
- * action: () => {
124
- * console.log('Item 2 clicked');
125
- * }
126
- * });
127
- *
128
- * // Add the leaf menus to a submenu.
129
- * const submenu = univerAPI.createSubmenu({ id: 'submenu-nested', title: 'Nested Submenu' })
130
- * .addSubmenu(menu1)
131
- * .addSeparator()
132
- * .addSubmenu(menu2);
133
- *
134
- * // Create a root submenu append to the `contextMenu.others` section.
135
- * univerAPI.createSubmenu({ id: 'custom-submenu', title: 'Custom Submenu' })
136
- * .addSubmenu(submenu)
137
- * .appendTo('contextMenu.others');
138
- * ```
139
- */
140
- addSubmenu(e) {
141
- return this._submenus.push(e), this;
142
- }
143
- /**
144
- * Add a separator to the submenu.
145
- * @returns {FSubmenu} The FSubmenu itself for chaining calls.
146
- * @example
147
- * ```typescript
148
- * // Create two leaf menus.
149
- * const menu1 = univerAPI.createMenu({
150
- * id: 'submenu-nested-1',
151
- * title: 'Item 1',
152
- * action: () => {
153
- * console.log('Item 1 clicked');
154
- * }
155
- * });
156
- * const menu2 = univerAPI.createMenu({
157
- * id: 'submenu-nested-2',
158
- * title: 'Item 2',
159
- * action: () => {
160
- * console.log('Item 2 clicked');
161
- * }
162
- * });
163
- *
164
- * // Add the leaf menus to a submenu and add a separator between them.
165
- * // Append the submenu to the `contextMenu.others` section.
166
- * univerAPI.createSubmenu({ id: 'submenu-nested', title: 'Nested Submenu' })
167
- * .addSubmenu(menu1)
168
- * .addSeparator()
169
- * .addSubmenu(menu2)
170
- * .appendTo('contextMenu.others');
171
- * ```
172
- */
173
- addSeparator() {
174
- return this._menuByGroups.push(this._submenus), this._submenus = [], this;
175
- }
176
- /**
177
- * @ignore
178
- */
179
- __getSchema() {
180
- const e = {};
181
- return this.addSeparator(), this._menuByGroups.forEach((t, r) => {
182
- const i = {};
183
- t.forEach((s) => {
184
- Object.assign(i, s.__getSchema());
185
- }), e[`${this._item.id}-group-${r}`] = i;
186
- }), { [this._item.id]: Object.assign(this._buildingSchema, e) };
187
- }
188
- };
189
- l = x([
190
- u(1, m(f)),
191
- u(2, P)
192
- ], l);
193
- var X = Object.getOwnPropertyDescriptor, Y = (n, e, t, r) => {
194
- for (var i = r > 1 ? void 0 : r ? X(e, t) : e, s = n.length - 1, c; s >= 0; s--)
195
- (c = n[s]) && (i = c(i) || i);
196
- return i;
197
- }, h = (n, e) => (t, r) => e(t, r, n);
198
- let b = class extends C {
199
- constructor(e, t, r, i) {
200
- super();
201
- o(this, "_forceDisableDisposable", null);
202
- this._injector = e, this._renderManagerService = t, this._univerInstanceService = r, this._shortcutService = i;
203
- }
204
- /**
205
- * Enable shortcuts of Univer.
206
- * @returns {FShortcut} The Facade API instance itself for chaining.
207
- *
208
- * @example
209
- * ```typescript
210
- * fShortcut.enableShortcut(); // Use the FShortcut instance used by disableShortcut before, do not create a new instance
211
- * ```
212
- */
213
- enableShortcut() {
214
- var e;
215
- return (e = this._forceDisableDisposable) == null || e.dispose(), this._forceDisableDisposable = null, this;
216
- }
217
- /**
218
- * Disable shortcuts of Univer.
219
- * @returns {FShortcut} The Facade API instance itself for chaining.
220
- *
221
- * @example
222
- * ```typescript
223
- * const fShortcut = univerAPI.getShortcut();
224
- * fShortcut.disableShortcut();
225
- * ```
226
- */
227
- disableShortcut() {
228
- return this._forceDisableDisposable || (this._forceDisableDisposable = this._shortcutService.forceDisable()), this;
229
- }
230
- /**
231
- * Trigger shortcut of Univer by a KeyboardEvent and return the matched shortcut item.
232
- * @param {KeyboardEvent} e - The KeyboardEvent to trigger.
233
- * @returns {IShortcutItem<object> | undefined} The matched shortcut item.
234
- *
235
- * @example
236
- * ```typescript
237
- * // Assum the current sheet is empty sheet.
238
- * const fWorkbook = univerAPI.getActiveWorkbook();
239
- * const fWorksheet = fWorkbook.getActiveSheet();
240
- * const fRange = fWorksheet.getRange('A1');
241
- *
242
- * // Set A1 cell active and set value to 'Hello Univer'.
243
- * fRange.activate();
244
- * fRange.setValue('Hello Univer');
245
- * console.log(fRange.getCellStyle().bold); // false
246
- *
247
- * // Set A1 cell bold by shortcut.
248
- * const fShortcut = univerAPI.getShortcut();
249
- * const pseudoEvent = new KeyboardEvent('keydown', {
250
- * key: 'b',
251
- * ctrlKey: true,
252
- * keyCode: univerAPI.Enum.KeyCode.B
253
- * });
254
- * const ifShortcutItem = fShortcut.triggerShortcut(pseudoEvent);
255
- * if (ifShortcutItem) {
256
- * const commandId = ifShortcutItem.id;
257
- * console.log(fRange.getCellStyle().bold); // true
258
- * }
259
- * ```
260
- */
261
- triggerShortcut(e) {
262
- const t = this._univerInstanceService.getCurrentUnitForType(J.UNIVER_SHEET);
263
- if (!t)
264
- return;
265
- const r = this._renderManagerService.getRenderById(t.getUnitId());
266
- return r ? (r.engine.getCanvasElement().dispatchEvent(e), this._shortcutService.dispatch(e)) : void 0;
267
- }
268
- /**
269
- * Dispatch a KeyboardEvent to the shortcut service and return the matched shortcut item.
270
- * @param {KeyboardEvent} e - The KeyboardEvent to dispatch.
271
- * @returns {IShortcutItem<object> | undefined} The matched shortcut item.
272
- *
273
- * @example
274
- * ```typescript
275
- * const fShortcut = univerAPI.getShortcut();
276
- * const pseudoEvent = new KeyboardEvent('keydown', { key: 's', ctrlKey: true });
277
- * const ifShortcutItem = fShortcut.dispatchShortcutEvent(pseudoEvent);
278
- * if (ifShortcutItem) {
279
- * const commandId = ifShortcutItem.id;
280
- * // Do something with the commandId.
281
- * }
282
- * ```
283
- */
284
- dispatchShortcutEvent(e) {
285
- return this._shortcutService.dispatch(e);
286
- }
287
- };
288
- b = Y([
289
- h(0, m(f)),
290
- h(1, m(U)),
291
- h(2, z),
292
- h(3, G)
293
- ], b);
294
- class Z extends M {
295
- getURL() {
296
- return new URL(window.location.href);
297
- }
298
- getShortcut() {
299
- return this._injector.createInstance(b);
300
- }
301
- copy() {
302
- return this._commandService.executeCommand(v.id);
303
- }
304
- paste() {
305
- return this._commandService.executeCommand(_.id);
306
- }
307
- createMenu(e) {
308
- return this._injector.createInstance(p, e);
309
- }
310
- createSubmenu(e) {
311
- return this._injector.createInstance(l, e);
312
- }
313
- openSiderbar(e) {
314
- return this._injector.get(V).open(e);
315
- }
316
- openSidebar(e) {
317
- return this.openSiderbar(e);
318
- }
319
- openDialog(e) {
320
- const r = this._injector.get($).open({
321
- ...e,
322
- onClose: () => {
323
- r.dispose();
324
- }
325
- });
326
- return r;
327
- }
328
- getComponentManager() {
329
- return this._injector.get(I);
330
- }
331
- showMessage(e) {
332
- return this._injector.get(N).show(e), this;
333
- }
334
- setUIVisible(e, t) {
335
- return this._injector.get(g).setUIVisible(e, t), this;
336
- }
337
- isUIVisible(e) {
338
- return this._injector.get(g).isUIVisible(e);
339
- }
340
- registerUIPart(e, t) {
341
- return this._injector.get(g).registerComponent(e, () => H(t, this._injector));
342
- }
343
- registerComponent(e, t, r) {
344
- const i = this._injector.get(I);
345
- return this.disposeWithMe(i.register(e, t, r));
346
- }
347
- setCurrent(e) {
348
- if (!this._injector.get(U).getRenderById(e))
349
- throw new Error("Unit not found");
350
- this._univerInstanceService.setCurrentUnitForType(e);
351
- }
352
- addFonts(e) {
353
- const t = this._injector.get(K);
354
- e.forEach((r) => {
355
- t.addFont(r);
356
- });
357
- }
358
- }
359
- M.extend(Z);
360
- class ee extends j {
361
- onBeforeCopy(e) {
362
- return this._injector.get(d).beforeCommandExecuted((r) => {
363
- r.id === v.id && e();
364
- });
365
- }
366
- onCopy(e) {
367
- return this._injector.get(d).onCommandExecuted((r) => {
368
- r.id === v.id && e();
369
- });
370
- }
371
- onBeforePaste(e) {
372
- return this._injector.get(d).beforeCommandExecuted((r) => {
373
- r.id === _.id && e();
374
- });
375
- }
376
- onPaste(e) {
377
- return this._injector.get(d).onCommandExecuted((r) => {
378
- (r.id === _.id || r.id === k) && e();
379
- });
380
- }
381
- }
382
- j.extend(ee);
383
- class te extends y {
384
- get BuiltInUIPart() {
385
- return L;
386
- }
387
- get KeyCode() {
388
- return A;
389
- }
390
- }
391
- y.extend(te);
1
+ import{FBase as e,FEnum as t,FHooks as n,FUniver as r}from"@univerjs/core/facade";import{IRenderManagerService as i}from"@univerjs/engine-render";import{BuiltInUIPart as a,ComponentManager as o,CopyCommand as s,IDialogService as c,IFontService as l,IMenuManagerService as u,IMessageService as d,IShortcutService as f,ISidebarService as p,IUIPartsService as m,KeyCode as h,MenuItemType as g,MenuManagerPosition as _,PasteCommand as v,RibbonPosition as y,RibbonStartGroup as b,SheetPasteShortKeyCommandName as x,connectInjector as S}from"@univerjs/ui";import{CommandType as C,ICommandService as w,IUniverInstanceService as T,Inject as E,Injector as D,UniverInstanceType as O,generateRandomId as k}from"@univerjs/core";function A(e){"@babel/helpers - typeof";return A=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},A(e)}function j(e,t){if(A(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(A(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function M(e){var t=j(e,`string`);return A(t)==`symbol`?t:t+``}function N(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(n,r){t(n,r,e)}}function F(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}var I=class extends e{appendTo(e){let t=typeof e==`string`?e.split(`|`):e,n=t.length,r={},i=r,a=this.__getSchema();t.forEach((e,t)=>{t===n-1?i[e]=a:i[e]={},i=i[e]}),this._menuManagerService.mergeMenu(r)}};let L=class extends I{constructor(e,t,n,r){super(),this._item=e,this._injector=t,this._commandService=n,this._menuManagerService=r,N(this,`_commandToRegister`,new Map),N(this,`_buildingSchema`,void 0);let i=typeof e.action==`string`?e.action:k(12);i!==e.action&&this._commandToRegister.set(i,e.action),this._buildingSchema={menuItemFactory:()=>({id:e.id,type:g.BUTTON,icon:e.icon,title:e.title,tooltip:e.tooltip,commandId:i})},e.order!==void 0&&(this._buildingSchema.order=e.order)}__getSchema(){return this._commandToRegister.forEach((e,t)=>{this._commandService.hasCommand(t)||this._commandService.registerCommand({id:t,type:C.COMMAND,handler:e})}),{[this._item.id]:this._buildingSchema}}};N(L,`RibbonStartGroup`,b),N(L,`RibbonPosition`,y),N(L,`MenuManagerPosition`,_),L=F([P(1,E(D)),P(2,w),P(3,u)],L);let R=class extends I{constructor(e,t,n){super(),this._item=e,this._injector=t,this._menuManagerService=n,N(this,`_menuByGroups`,[]),N(this,`_submenus`,[]),N(this,`_buildingSchema`,void 0),this._buildingSchema={menuItemFactory:()=>({id:e.id,type:g.SUBITEMS,icon:e.icon,title:e.title,tooltip:e.tooltip})},e.order!==void 0&&(this._buildingSchema.order=e.order)}addSubmenu(e){return this._submenus.push(e),this}addSeparator(){return this._menuByGroups.push(this._submenus),this._submenus=[],this}__getSchema(){let e={};return this.addSeparator(),this._menuByGroups.forEach((t,n)=>{let r={};t.forEach(e=>{Object.assign(r,e.__getSchema())}),e[`${this._item.id}-group-${n}`]=r}),{[this._item.id]:Object.assign(this._buildingSchema,e)}}};R=F([P(1,E(D)),P(2,u)],R);let z=class extends e{constructor(e,t,n,r){super(),this._injector=e,this._renderManagerService=t,this._univerInstanceService=n,this._shortcutService=r,N(this,`_forceDisableDisposable`,null)}enableShortcut(){var e;return(e=this._forceDisableDisposable)==null||e.dispose(),this._forceDisableDisposable=null,this}disableShortcut(){return this._forceDisableDisposable||(this._forceDisableDisposable=this._shortcutService.forceDisable()),this}triggerShortcut(e){let t=this._univerInstanceService.getCurrentUnitForType(O.UNIVER_SHEET);if(!t)return;let n=this._renderManagerService.getRenderById(t.getUnitId());if(n)return n.engine.getCanvasElement().dispatchEvent(e),this._shortcutService.dispatch(e)}dispatchShortcutEvent(e){return this._shortcutService.dispatch(e)}};z=F([P(0,E(D)),P(1,E(i)),P(2,T),P(3,f)],z);var B=class extends r{getURL(){return new URL(window.location.href)}getShortcut(){return this._injector.createInstance(z)}copy(){return this._commandService.executeCommand(s.id)}paste(){return this._commandService.executeCommand(v.id)}createMenu(e){return this._injector.createInstance(L,e)}createSubmenu(e){return this._injector.createInstance(R,e)}openSiderbar(e){return this._injector.get(p).open(e)}openSidebar(e){return this.openSiderbar(e)}openDialog(e){let t=this._injector.get(c).open({...e,onClose:()=>{t.dispose()}});return t}getComponentManager(){return this._injector.get(o)}showMessage(e){return this._injector.get(d).show(e),this}setUIVisible(e,t){return this._injector.get(m).setUIVisible(e,t),this}isUIVisible(e){return this._injector.get(m).isUIVisible(e)}registerUIPart(e,t){return this._injector.get(m).registerComponent(e,()=>S(t,this._injector))}registerComponent(e,t,n){let r=this._injector.get(o);return this.disposeWithMe(r.register(e,t,n))}setCurrent(e){if(!this._injector.get(i).getRenderById(e))throw Error(`Unit not found`);this._univerInstanceService.setCurrentUnitForType(e)}addFonts(e){let t=this._injector.get(l);e.forEach(e=>{t.addFont(e)})}};r.extend(B);var V=class extends n{onBeforeCopy(e){return this._injector.get(w).beforeCommandExecuted(t=>{t.id===s.id&&e()})}onCopy(e){return this._injector.get(w).onCommandExecuted(t=>{t.id===s.id&&e()})}onBeforePaste(e){return this._injector.get(w).beforeCommandExecuted(t=>{t.id===v.id&&e()})}onPaste(e){return this._injector.get(w).onCommandExecuted(t=>{(t.id===v.id||t.id===x)&&e()})}};n.extend(V);var H=class extends t{get BuiltInUIPart(){return a}get KeyCode(){return h}};t.extend(H);export{};