@univerjs/sheets-ui 0.14.0 → 0.15.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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +14 -14
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +83 -82
- package/lib/es/index.js +5855 -5678
- package/lib/es/locale/ca-ES.js +5 -2
- package/lib/es/locale/en-US.js +5 -2
- package/lib/es/locale/es-ES.js +5 -2
- package/lib/es/locale/fa-IR.js +5 -2
- package/lib/es/locale/fr-FR.js +5 -2
- package/lib/es/locale/ja-JP.js +5 -2
- package/lib/es/locale/ko-KR.js +5 -2
- package/lib/es/locale/ru-RU.js +5 -2
- package/lib/es/locale/vi-VN.js +5 -2
- package/lib/es/locale/zh-CN.js +5 -2
- package/lib/es/locale/zh-TW.js +5 -2
- package/lib/facade.js +83 -82
- package/lib/index.js +5855 -5678
- package/lib/locale/ca-ES.js +5 -2
- package/lib/locale/en-US.js +5 -2
- package/lib/locale/es-ES.js +5 -2
- package/lib/locale/fa-IR.js +5 -2
- package/lib/locale/fr-FR.js +5 -2
- package/lib/locale/ja-JP.js +5 -2
- package/lib/locale/ko-KR.js +5 -2
- package/lib/locale/ru-RU.js +5 -2
- package/lib/locale/vi-VN.js +5 -2
- package/lib/locale/zh-CN.js +5 -2
- package/lib/locale/zh-TW.js +5 -2
- package/lib/types/commands/commands/set-frozen.command.d.ts +5 -1
- package/lib/types/components/menu-item-frozen/MenuItemFrozen.d.ts +2 -0
- package/lib/types/components/menu-item-frozen/index.d.ts +17 -0
- package/lib/types/components/menu-item-frozen/interface.d.ts +5 -0
- package/lib/types/controllers/clipboard/utils.d.ts +1 -1
- package/lib/types/controllers/menu/frozen.menu.d.ts +14 -0
- package/lib/types/controllers/menu/menu.d.ts +0 -8
- package/lib/types/facade/f-enum.d.ts +18 -0
- package/lib/types/facade/f-worksheet.d.ts +19 -4
- package/lib/types/facade/index.d.ts +1 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +4 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +13 -13
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={spreadsheetLabel:"擴充功能",spreadsheetRightLabel:"更多試算表",toolbar:{undo:"復原",redo:"重做",formatPainter:"複製格式",font:"字型",fontSize:"字型大小",fontSizeIncrease:"放大字型",fontSizeDecrease:"縮小字型",bold:"粗體",italic:"斜體",strikethrough:"刪除線",subscript:"下標",superscript:"上標",underline:"底線",textColor:{main:"字型顏色",right:"顏色選擇"},resetColor:"重置顏色",fillColor:{main:"填滿色彩",right:"顏色選擇"},border:{main:"邊框",right:"邊框類型"},mergeCell:{main:"合併儲存格",right:"選擇合併類型"},horizontalAlignMode:{main:"水平對齊",right:"對齊方式"},verticalAlignMode:{main:"垂直對齊",right:"對齊方式"},textWrapMode:{main:"自動換行",right:"換行方式"},textRotateMode:{main:"文字旋轉",right:"旋轉方式"},more:"更多",toggleGridlines:"切換網格線"},align:{left:"靠左對齊",center:"置中",right:"靠右對齊",top:"靠上對齊",middle:"垂直置中",bottom:"靠下對齊"},button:{confirm:"確定",cancel:"取消",close:"關閉",update:"Update",delete:"Delete",insert:"插入",prevPage:"上一頁",nextPage:"下一頁",total:"總共:"},punctuation:{tab:"Tab 鍵",semicolon:"分號",comma:"逗號",space:"空格"},colorPicker:{collapse:"收起",customColor:"自訂",change:"切換",confirmColor:"確定",cancelColor:"取消"},borderLine:{borderTop:"上框線",borderBottom:"下框線",borderLeft:"左框線",borderRight:"右框線",borderNone:"無",borderAll:"所有",borderOutside:"外側",borderInside:"內側",borderHorizontal:"內側水平框線",borderVertical:"內側垂直框線",borderColor:"邊框顏色",borderSize:"邊框粗細",borderType:"邊框線類型"},merge:{all:"全部合併",vertical:"垂直合併",horizontal:"水平合併",cancel:"取消合併",overlappingError:"不能合併重疊區域",partiallyError:"無法對部分合併儲存格執行此操作",confirm:{title:"合併儲存格僅儲存左上角儲存格的值,是否繼續? ",cancel:"取消合併",confirm:"繼續合併",warning:"警告",dismantleMergeCellWarning:"此操作會導致一些合併儲存格被拆散,是否繼續?"}},filter:{confirm:{error:"出現了一個問題",notAllowedToInsertRange:"要移動這些儲存格,請清除該區域的篩選器"}},textWrap:{overflow:"溢出",wrap:"自動換行",clip:"截斷"},textRotate:{none:"無旋轉",angleUp:"向上傾斜",angleDown:"向下傾斜",vertical:"直排文字",rotationUp:"向上90°",rotationDown:"向下90°"},sheetConfig:{delete:"刪除",copy:"複製",rename:"重新命名",changeColor:"更改顏色",hide:"隱藏",unhide:"取消隱藏",moveLeft:"向左移動",moveRight:"向右移動",resetColor:"重置顏色",cancelText:"取消",chooseText:"確定顏色",tipNameRepeat:"工作表名稱已存在,請輸入其他名稱。",noMoreSheet:"活頁簿中至少需含有一張可見的工作表。若需刪除選定的工作表,請先插入一張新工作表或顯示隱藏的工作表。",confirmDelete:"確認刪除",redoDelete:"可以透過 Ctrl+Z 復原刪除",noHide:"不能隱藏,至少保留一個工作表",chartEditNoOpt:"圖表編輯模式下不允許該操作! ",sheetNameErrorTitle:"錯誤",sheetNameSpecCharError:"名稱不能超過 31 個字元,首尾不能是' 且名稱不能包含: [ ] : \\ ? * /",sheetNameCannotIsEmptyError:"名稱不能為空。 ",sheetNameAlreadyExistsError:"工作表已存在,請輸入其它名稱。 ",deleteSheet:"刪除工作表",deleteSheetContent:"您確定要刪除此工作表嗎?刪除後將無法復原。",deleteLargeSheetContent:"確認刪除此工作表,刪除後將不可找回,確定要刪除嗎?",addProtectSheet:"保護工作表",removeProtectSheet:"取消保護工作表",changeSheetPermission:"更改工作表權限",viewAllProtectArea:"查看所有保護範圍"},rightClick:{copy:"複製",cut:"剪下",paste:"貼上",copySpecial:"選擇性複製",pasteSpecial:"選擇性貼上",pasteValue:"僅貼上值",pasteFormat:"僅貼上格式",pasteColWidth:"僅貼上欄寬",pasteBesidesBorder:"僅貼上邊框以外內容",insert:"插入",delete:"刪除",insertRow:"插入列",insertRowBefore:"上方插入列",insertRowsAbove:"在上方插入",insertRowsAfter:"在下方插入",insertRowsAfterSuffix:"列",insertRowsAboveSuffix:"列",insertColumn:"插入欄",insertColumnBefore:"在左側插入欄",insertColsLeft:"在左側插入",insertColsRight:"在右側插入",insertColsLeftSuffix:"欄",insertColsRightSuffix:"欄",deleteCell:"刪除儲存格",insertCell:"插入儲存格",deleteSelected:"刪除選取",hide:"隱藏",hideSelected:"隱藏",showHide:"取消隱藏",toTopAdd:"向上增加",toBottomAdd:"向下增加",toLeftAdd:"向左增加",toRightAdd:"向右增加",deleteSelectedRow:"刪除選取列",deleteSelectedColumn:"刪除選取欄",hideSelectedRow:"隱藏選取列",showHideRow:"取消隱藏列",rowHeight:"列高",hideSelectedColumn:"隱藏選取欄",showHideColumn:"取消隱藏欄",columnWidth:"欄寬",moveLeft:"左移",moveUp:"上移",moveRight:"右移",moveDown:"下移",add:"增加",row:"列",column:"欄",confirm:"確認",clearSelection:"清除",clearContent:"清除內容",clearFormat:"清除格式",clearAll:"清除全部",root:"次方根",log:"log",delete0:"刪除兩端0值",removeDuplicate:"移除重複項",byRow:"按列",byCol:"按欄",generateNewMatrix:"產生新矩陣",fitContent:"適合數據",freeze:"凍結窗格",freezeCol:"
|
|
1
|
+
"use strict";const e={spreadsheetLabel:"擴充功能",spreadsheetRightLabel:"更多試算表",toolbar:{undo:"復原",redo:"重做",formatPainter:"複製格式",font:"字型",fontSize:"字型大小",fontSizeIncrease:"放大字型",fontSizeDecrease:"縮小字型",bold:"粗體",italic:"斜體",strikethrough:"刪除線",subscript:"下標",superscript:"上標",underline:"底線",textColor:{main:"字型顏色",right:"顏色選擇"},resetColor:"重置顏色",fillColor:{main:"填滿色彩",right:"顏色選擇"},border:{main:"邊框",right:"邊框類型"},mergeCell:{main:"合併儲存格",right:"選擇合併類型"},horizontalAlignMode:{main:"水平對齊",right:"對齊方式"},verticalAlignMode:{main:"垂直對齊",right:"對齊方式"},textWrapMode:{main:"自動換行",right:"換行方式"},textRotateMode:{main:"文字旋轉",right:"旋轉方式"},more:"更多",toggleGridlines:"切換網格線"},align:{left:"靠左對齊",center:"置中",right:"靠右對齊",top:"靠上對齊",middle:"垂直置中",bottom:"靠下對齊"},button:{confirm:"確定",cancel:"取消",close:"關閉",update:"Update",delete:"Delete",insert:"插入",prevPage:"上一頁",nextPage:"下一頁",total:"總共:"},punctuation:{tab:"Tab 鍵",semicolon:"分號",comma:"逗號",space:"空格"},colorPicker:{collapse:"收起",customColor:"自訂",change:"切換",confirmColor:"確定",cancelColor:"取消"},borderLine:{borderTop:"上框線",borderBottom:"下框線",borderLeft:"左框線",borderRight:"右框線",borderNone:"無",borderAll:"所有",borderOutside:"外側",borderInside:"內側",borderHorizontal:"內側水平框線",borderVertical:"內側垂直框線",borderColor:"邊框顏色",borderSize:"邊框粗細",borderType:"邊框線類型"},merge:{all:"全部合併",vertical:"垂直合併",horizontal:"水平合併",cancel:"取消合併",overlappingError:"不能合併重疊區域",partiallyError:"無法對部分合併儲存格執行此操作",confirm:{title:"合併儲存格僅儲存左上角儲存格的值,是否繼續? ",cancel:"取消合併",confirm:"繼續合併",warning:"警告",dismantleMergeCellWarning:"此操作會導致一些合併儲存格被拆散,是否繼續?"}},filter:{confirm:{error:"出現了一個問題",notAllowedToInsertRange:"要移動這些儲存格,請清除該區域的篩選器"}},textWrap:{overflow:"溢出",wrap:"自動換行",clip:"截斷"},textRotate:{none:"無旋轉",angleUp:"向上傾斜",angleDown:"向下傾斜",vertical:"直排文字",rotationUp:"向上90°",rotationDown:"向下90°"},sheetConfig:{delete:"刪除",copy:"複製",rename:"重新命名",changeColor:"更改顏色",hide:"隱藏",unhide:"取消隱藏",moveLeft:"向左移動",moveRight:"向右移動",resetColor:"重置顏色",cancelText:"取消",chooseText:"確定顏色",tipNameRepeat:"工作表名稱已存在,請輸入其他名稱。",noMoreSheet:"活頁簿中至少需含有一張可見的工作表。若需刪除選定的工作表,請先插入一張新工作表或顯示隱藏的工作表。",confirmDelete:"確認刪除",redoDelete:"可以透過 Ctrl+Z 復原刪除",noHide:"不能隱藏,至少保留一個工作表",chartEditNoOpt:"圖表編輯模式下不允許該操作! ",sheetNameErrorTitle:"錯誤",sheetNameSpecCharError:"名稱不能超過 31 個字元,首尾不能是' 且名稱不能包含: [ ] : \\ ? * /",sheetNameCannotIsEmptyError:"名稱不能為空。 ",sheetNameAlreadyExistsError:"工作表已存在,請輸入其它名稱。 ",deleteSheet:"刪除工作表",deleteSheetContent:"您確定要刪除此工作表嗎?刪除後將無法復原。",deleteLargeSheetContent:"確認刪除此工作表,刪除後將不可找回,確定要刪除嗎?",addProtectSheet:"保護工作表",removeProtectSheet:"取消保護工作表",changeSheetPermission:"更改工作表權限",viewAllProtectArea:"查看所有保護範圍"},rightClick:{copy:"複製",cut:"剪下",paste:"貼上",copySpecial:"選擇性複製",pasteSpecial:"選擇性貼上",pasteValue:"僅貼上值",pasteFormat:"僅貼上格式",pasteColWidth:"僅貼上欄寬",pasteBesidesBorder:"僅貼上邊框以外內容",insert:"插入",delete:"刪除",insertRow:"插入列",insertRowBefore:"上方插入列",insertRowsAbove:"在上方插入",insertRowsAfter:"在下方插入",insertRowsAfterSuffix:"列",insertRowsAboveSuffix:"列",insertColumn:"插入欄",insertColumnBefore:"在左側插入欄",insertColsLeft:"在左側插入",insertColsRight:"在右側插入",insertColsLeftSuffix:"欄",insertColsRightSuffix:"欄",deleteCell:"刪除儲存格",insertCell:"插入儲存格",deleteSelected:"刪除選取",hide:"隱藏",hideSelected:"隱藏",showHide:"取消隱藏",toTopAdd:"向上增加",toBottomAdd:"向下增加",toLeftAdd:"向左增加",toRightAdd:"向右增加",deleteSelectedRow:"刪除選取列",deleteSelectedColumn:"刪除選取欄",hideSelectedRow:"隱藏選取列",showHideRow:"取消隱藏列",rowHeight:"列高",hideSelectedColumn:"隱藏選取欄",showHideColumn:"取消隱藏欄",columnWidth:"欄寬",moveLeft:"左移",moveUp:"上移",moveRight:"右移",moveDown:"下移",add:"增加",row:"列",column:"欄",confirm:"確認",clearSelection:"清除",clearContent:"清除內容",clearFormat:"清除格式",clearAll:"清除全部",root:"次方根",log:"log",delete0:"刪除兩端0值",removeDuplicate:"移除重複項",byRow:"按列",byCol:"按欄",generateNewMatrix:"產生新矩陣",fitContent:"適合數據",freeze:"凍結窗格",freezeCell:"凍結至目前儲存格(第 {0} 列 {1} 欄)",freezeCol:"凍結至第 {0} 欄",freezeRow:"凍結至第 {0} 列",freezeFirstCol:"凍結第一欄",freezeFirstRow:"凍結第一列",cancelFreeze:"取消凍結",deleteAllRowsAlert:"您無法刪除工作表上的所有列",deleteAllColumnsAlert:"您無法刪除工作表上的所有欄",hideAllRowsAlert:"您無法隱藏工作表上的所有列",hideAllColumnsAlert:"您無法隱藏工作表上的所有欄",protectRange:"保護範圍",editProtectRange:"設定保護範圍",removeProtectRange:"移除保護範圍",turnOnProtectRange:"新增保護範圍",viewAllProtectArea:"查看所有保護範圍"},info:{tooltip:"提示",error:"錯誤",notChangeMerge:"不能對合併儲存格做部分更改",detailUpdate:"新開啟",detailSave:"已恢復本機快取",row:"列",column:"欄",loading:"渲染中···",copy:"副本",return:"返回",rename:"重新命名",tips:"重命名",noName:"未命名的試算表",wait:"待更新",add:"新增",addLast:"在底部加上",backTop:"回到頂部",pageInfo:"共 ${total} 筆,${totalPage} 頁,目前已顯示 ${currentPage} 頁",nextPage:"下一頁",tipInputNumber:"請輸入數字",tipInputNumberLimit:"增加範圍限制在1-100",tipRowHeightLimit:"列高必須在 0 ~ 545 之間",tipColumnWidthLimit:"欄寬必須在 0 ~ 2038 之間",pageInfoFull:"共 ${total} 筆,${totalPage} 頁,已顯示全部資料",problem:"出現了一個問題",forceStringInfo:"以文字形式儲存的數字"},clipboard:{paste:{exceedMaxCells:"貼上區域超出最大儲存格數",overlappingMergedCells:"貼上區域與合併儲存格重疊"},shortCutNotify:{title:"請使用快捷鍵貼上",useShortCutInstead:"偵測到 Excel 內容,請使用快速鍵貼上"}},statusbar:{sum:"求和",average:"平均值",min:"最小值",max:"最大值",count:"數值計數",countA:"計數",clickToCopy:"點選複製數值",copied:"已複製"},autoFill:{copy:"複製儲存格",series:"填滿數列",formatOnly:"僅以格式填滿",noFormat:"填滿但不填入格式"},rangeSelector:{placeholder:"選擇範圍或輸入值",tooltip:"選擇範圍"},shortcut:{sheet:{"zoom-in":"放大","zoom-out":"縮小","reset-zoom":"恢復縮放","select-below-cell":"選擇下方儲存格","select-up-cell":"選擇上方儲存格","select-left-cell":"選擇左側儲存格","select-right-cell":"選擇右側儲存格","select-next-cell":"選取後一個儲存格","select-previous-cell":"選擇前一個儲存格","select-up-value-cell":"選擇上方有值的儲存格","select-below-value-cell":"選取下方有值的儲存格","select-left-value-cell":"選擇左側有值的儲存格","select-right-value-cell":"選擇右側有值的儲存格","expand-selection-down":"向下擴展選區","expand-selection-up":"向上擴展選區","expand-selection-left":"向左擴展選取範圍","expand-selection-right":"向右擴展選區","expand-selection-to-left-gap":"向左擴展選區到下一個邊界","expand-selection-to-below-gap":"向下擴展選區到下一個邊界","expand-selection-to-right-gap":"向右擴展選區到下一個邊界","expand-selection-to-up-gap":"向上擴展選區到下一個邊界","select-all":"全選","toggle-editing":"開始 / 結束編輯","delete-and-start-editing":"清空並開始編輯","abort-editing":"放棄編輯","break-line":"強制換行","set-bold":"切換粗體","set-italic":"切換斜體","set-underline":"切換底線","set-strike-through":"切換刪除線","start-editing":"開始編輯(選取範圍切換到編輯器)"}},"sheet-view":"瀏覽表格","sheet-edit":"編輯表格",definedName:{managerTitle:"名稱管理員",managerDescription:"透過選擇儲存格或公式,並在文字方塊中輸入您想要的名稱來建立已定義名稱。",addButton:"新建名稱",featureTitle:"已定義名稱",ratioRange:"範圍",ratioFormula:"公式",confirm:"確認",cancel:"取消",scopeWorkbook:"活頁簿",inputNamePlaceholder:"請輸入名稱(必填)",inputCommentPlaceholder:"請輸入備註",inputRangePlaceholder:"請輸入範圍(必填)",inputFormulaPlaceholder:"請輸入公式(必填)",nameEmpty:"名稱不能為空",nameDuplicate:"名稱重複",formulaOrRefStringEmpty:"公式或引用字串不能為空",formulaOrRefStringInvalid:"公式或引用字串無效",defaultName:"DefinedName",updateButton:"修改",deleteButton:"刪除",deleteConfirmText:"確定刪除定義名稱? ",nameConflict:"與函數名稱衝突",nameInvalid:"名稱不包含空格或不允許的字元",nameSheetConflict:"名稱與工作表名稱衝突"},uploadLoading:{loading:"正在上傳,目前剩餘",error:"載入失敗"},permission:{toolbarMenu:"保護",panel:{title:"保護範圍",name:"名稱",protectedRange:"保護區域",permissionDirection:"權限描述",permissionDirectionPlaceholder:"請輸入權限描述",editPermission:"編輯權限",onlyICanEdit:"僅我可以編輯",designedUserCanEdit:"指定使用者可以編輯",viewPermission:"檢視權限",othersCanView:"其他人可以查看",noOneElseCanView:"其他人不可以查看",designedPerson:"指定人員",addPerson:"新增人員",canEdit:"可編輯",canView:"可查看",delete:"刪除",currentSheet:"目前工作表",allSheet:"所有工作表",edit:"編輯",Print:"列印",Comment:"註解",Copy:"複製",SetCellStyle:"設定儲存格樣式",SetCellValue:"設定儲存格值",SetHyperLink:"設定超連結",Sort:"排序",Filter:"篩選",PivotTable:"樞紐分析表",FloatImage:"浮動圖片",RowHeightColWidth:"列高欄寬",RowHeightColWidthReadonly:"只讀列高欄寬",FilterReadonly:"唯讀篩選",nameError:"名稱不能為空",created:"創建",iCanEdit:"我可以編輯",iCanNotEdit:"我不會編輯",iCanView:"我可以查看",iCanNotView:"我不可以查看",emptyRangeError:"範圍不能為空",rangeOverlapError:"範圍不能重疊",rangeOverlapOverPermissionError:"範圍不能重疊已有權限範圍",InsertHyperlink:"插入超連結",SetRowStyle:"設定列樣式",SetColumnStyle:"設定欄樣式",InsertColumn:"插入欄",InsertRow:"插入列",DeleteRow:"刪除列",DeleteColumn:"刪除欄",EditExtraObject:"編輯其他物件"},dialog:{allowUserToEdit:"允許使用者編輯",allowedPermissionType:"允許權限類型",setCellValue:"設定儲存格值",setCellStyle:"設定儲存格樣式",copy:"複製",alert:"提示",search:"搜索",alertContent:"該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",userEmpty:"沒有指定的人員,分享連結以邀請特定的人。 ",listEmpty:"你還沒有設定任何範圍或工作表為受保護狀態。 ",commonErr:"該範圍已被保護,目前無該操作權限。如需編輯,請聯絡創建者。 ",editErr:"該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",pasteErr:"該範圍已被保護,目前無貼上權限。如需貼上,請聯絡創作者。 ",setStyleErr:"該範圍已被保護,目前無設定樣式權限。如需設定樣式,請聯絡建立者。 ",copyErr:"該範圍已被保護,目前無複製權限。如需複製,請聯絡創建者。 ",workbookCopyErr:"該活頁簿已被保護,目前無複製權限。如需複製,請聯絡創建者。 ",setRowColStyleErr:"該範圍已被保護,目前無設定欄列樣式權限。如需設定欄列樣式,請聯絡建立者。 ",moveRowColErr:"該範圍已被保護,目前無移動欄列權限。如需行動欄列,請聯絡創作者。 ",moveRangeErr:"該範圍已被保護,目前無移動選取範圍權限。如需移動選區,請聯絡創作者。 ",autoFillErr:"範圍已被保護,目前無自動填入權限。如需自動填充,請聯絡建立者。 ",filterErr:"該範圍已被保護,目前無篩選權限。如需篩選,請聯絡創作者。 ",operatorSheetErr:"該工作表已被保護,目前無操作工作表權限。如需操作工作表,請聯絡創建者。 ",insertOrDeleteMoveRangeErr:"插入、刪除區域與保護範圍相交,暫不支援此操作。 ",printErr:"該工作表已被保護,目前無列印權限。如需列印,請聯絡創作者。 ",formulaErr:"該範圍或引用範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",hyperLinkErr:"範圍已被保護,目前無設定超連結權限。如需設定超鏈接,請聯絡建立者。 "},button:{confirm:"確認",cancel:"取消",addNewPermission:"新增權限"}}};module.exports=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ICommandService as R, CanceledError as b, IUniverInstanceService as O, RichTextValue as F, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as D, LifecycleService as
|
|
2
|
-
import { FUniver as Q, FEventName as
|
|
3
|
-
import { RichTextEditingMutation as
|
|
4
|
-
import { IRenderManagerService as v, DeviceInputEventType as L, SHEET_VIEWPORT_KEY as
|
|
1
|
+
import { ICommandService as R, CanceledError as b, IUniverInstanceService as O, RichTextValue as F, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as D, LifecycleService as ae, DisposableCollection as j, LifecycleStages as z, UniverInstanceType as ce, ILogService as U, toDisposable as m, IPermissionService as de, awaitTime as he, InterceptorEffectEnum as ge, Rectangle as le, generateRandomId as ue } from "@univerjs/core";
|
|
2
|
+
import { FUniver as Q, FEventName as ve, FEnum as Se } from "@univerjs/core/facade";
|
|
3
|
+
import { RichTextEditingMutation as me } from "@univerjs/docs";
|
|
4
|
+
import { IRenderManagerService as v, DeviceInputEventType as L, SHEET_VIEWPORT_KEY as ee } from "@univerjs/engine-render";
|
|
5
5
|
import { SheetsSelectionsService as Ce, COMMAND_LISTENER_SKELETON_CHANGE as we, getSkeletonChangedEffectedRange as Ee, SetWorksheetRowIsAutoHeightCommand as be, InterceptCellContentPriority as pe, SheetInterceptorService as fe, INTERCEPTOR_POINT as ke } from "@univerjs/sheets";
|
|
6
|
-
import { SetCellEditVisibleOperation as
|
|
7
|
-
import { FSheetHooks as W, FWorkbook as
|
|
6
|
+
import { SetCellEditVisibleOperation as I, IEditorBridgeService as f, SetZoomRatioCommand as $, HoverManagerService as k, DragManagerService as M, SheetScrollManagerService as x, SheetPasteShortKeyCommand as T, ISheetClipboardService as te, SheetSkeletonManagerService as p, SHEET_VIEW_KEY as E, SheetPermissionRenderManagerService as A, ISheetSelectionRenderService as y, IMarkSelectionService as re, SheetsScrollRenderController as Ie, SetWorksheetColAutoWidthCommand as _e, SetColumnHeaderHeightCommand as Re, SetRowHeaderWidthCommand as Pe, SheetCanvasPopManagerService as N, CellAlertManagerService as He, ISheetCellDropdownManagerService as Me, AutoFillCommand as ye } from "@univerjs/sheets-ui";
|
|
7
|
+
import { FSheetHooks as W, FWorkbook as ne, FWorksheet as ie, FPermission as oe, FRange as se } from "@univerjs/sheets/facade";
|
|
8
8
|
import { KeyCode as B, CutCommand as V, CopyCommand as Z, PasteCommand as K, IClipboardInterfaceService as Ue, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as Y, HTML_CLIPBOARD_MIME_TYPE as X, supportClipboardAPI as J, ISidebarService as xe, IDialogService as Be, ComponentManager as G } from "@univerjs/ui";
|
|
9
9
|
import { filter as u, combineLatest as De } from "rxjs";
|
|
10
10
|
class Te extends Q {
|
|
@@ -14,10 +14,10 @@ class Te extends Q {
|
|
|
14
14
|
this.registerEventHandler(
|
|
15
15
|
this.Event.BeforeSheetEditStart,
|
|
16
16
|
() => r.beforeCommandExecuted((t) => {
|
|
17
|
-
if (t.id !==
|
|
17
|
+
if (t.id !== I.id) return;
|
|
18
18
|
const i = this.getActiveSheet();
|
|
19
19
|
if (!i) return;
|
|
20
|
-
const { workbook: o, worksheet: s } = i, d = e.get(
|
|
20
|
+
const { workbook: o, worksheet: s } = i, d = e.get(f), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
|
|
21
21
|
if (g) {
|
|
22
22
|
const c = {
|
|
23
23
|
row: n.row,
|
|
@@ -35,10 +35,10 @@ class Te extends Q {
|
|
|
35
35
|
), this.registerEventHandler(
|
|
36
36
|
this.Event.BeforeSheetEditEnd,
|
|
37
37
|
() => r.beforeCommandExecuted((t) => {
|
|
38
|
-
if (t.id !==
|
|
38
|
+
if (t.id !== I.id) return;
|
|
39
39
|
const i = this.getActiveSheet();
|
|
40
40
|
if (!i) return;
|
|
41
|
-
const { workbook: o, worksheet: s } = i, d = e.get(
|
|
41
|
+
const { workbook: o, worksheet: s } = i, d = e.get(f), h = e.get(O), g = t.params, { visible: l, keycode: a, eventType: n } = g, c = d.getEditLocation();
|
|
42
42
|
if (!l) {
|
|
43
43
|
const P = {
|
|
44
44
|
row: c.row,
|
|
@@ -58,10 +58,10 @@ class Te extends Q {
|
|
|
58
58
|
), this.registerEventHandler(
|
|
59
59
|
this.Event.SheetEditStarted,
|
|
60
60
|
() => r.onCommandExecuted((t) => {
|
|
61
|
-
if (t.id !==
|
|
61
|
+
if (t.id !== I.id) return;
|
|
62
62
|
const i = this.getCommandSheetTarget(t);
|
|
63
63
|
if (!i) return;
|
|
64
|
-
const { workbook: o, worksheet: s } = i, d = e.get(
|
|
64
|
+
const { workbook: o, worksheet: s } = i, d = e.get(f), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
|
|
65
65
|
if (g) {
|
|
66
66
|
const c = {
|
|
67
67
|
row: n.row,
|
|
@@ -78,10 +78,10 @@ class Te extends Q {
|
|
|
78
78
|
), this.registerEventHandler(
|
|
79
79
|
this.Event.SheetEditEnded,
|
|
80
80
|
() => r.onCommandExecuted((t) => {
|
|
81
|
-
if (t.id !==
|
|
81
|
+
if (t.id !== I.id) return;
|
|
82
82
|
const i = this.getCommandSheetTarget(t);
|
|
83
83
|
if (!i) return;
|
|
84
|
-
const { workbook: o, worksheet: s } = i, d = e.get(
|
|
84
|
+
const { workbook: o, worksheet: s } = i, d = e.get(f), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
|
|
85
85
|
if (!g) {
|
|
86
86
|
const c = {
|
|
87
87
|
row: n.row,
|
|
@@ -99,10 +99,10 @@ class Te extends Q {
|
|
|
99
99
|
), this.registerEventHandler(
|
|
100
100
|
this.Event.SheetEditChanging,
|
|
101
101
|
() => r.onCommandExecuted((t) => {
|
|
102
|
-
if (t.id !==
|
|
102
|
+
if (t.id !== me.id) return;
|
|
103
103
|
const i = this.getActiveSheet();
|
|
104
104
|
if (!i) return;
|
|
105
|
-
const { workbook: o, worksheet: s } = i, d = e.get(
|
|
105
|
+
const { workbook: o, worksheet: s } = i, d = e.get(f), h = e.get(O), g = t.params;
|
|
106
106
|
if (!d.isVisible().visible) return;
|
|
107
107
|
const { unitId: l } = g;
|
|
108
108
|
if (l === D) {
|
|
@@ -148,11 +148,11 @@ class Te extends Q {
|
|
|
148
148
|
}
|
|
149
149
|
// eslint-disable-next-line max-lines-per-function
|
|
150
150
|
_initObserverListener(e) {
|
|
151
|
-
const r = e.get(v), t = e.get(
|
|
151
|
+
const r = e.get(v), t = e.get(ae), i = new j();
|
|
152
152
|
this.disposeWithMe(t.lifecycle$.subscribe((h) => {
|
|
153
153
|
if (h !== z.Rendered) return;
|
|
154
154
|
i.dispose();
|
|
155
|
-
const g = e.get(
|
|
155
|
+
const g = e.get(k), l = e.get(M);
|
|
156
156
|
g && (this.registerEventHandler(
|
|
157
157
|
this.Event.CellClicked,
|
|
158
158
|
() => {
|
|
@@ -357,7 +357,7 @@ class Te extends Q {
|
|
|
357
357
|
]);
|
|
358
358
|
this.disposeWithMe(d.subscribe(([h, g]) => {
|
|
359
359
|
var P;
|
|
360
|
-
if (h.type ===
|
|
360
|
+
if (h.type === ce.UNIVER_SHEET && (s = h), g <= z.Rendered || !s) return;
|
|
361
361
|
const l = new j(), a = this.getWorkbook(s.unitId);
|
|
362
362
|
if (!a) return;
|
|
363
363
|
o.get(s.unitId) && ((P = o.get(s.unitId)) == null || P.dispose()), o.set(s.unitId, l);
|
|
@@ -378,7 +378,7 @@ class Te extends Q {
|
|
|
378
378
|
this.fireEvent(this.Event.SelectionMoveStart, {
|
|
379
379
|
workbook: a,
|
|
380
380
|
worksheet: a.getActiveSheet(),
|
|
381
|
-
selections: (C = S == null ? void 0 : S.map((
|
|
381
|
+
selections: (C = S == null ? void 0 : S.map((_) => _.range)) != null ? C : []
|
|
382
382
|
});
|
|
383
383
|
})
|
|
384
384
|
)), l.add(this.registerEventHandler(
|
|
@@ -388,7 +388,7 @@ class Te extends Q {
|
|
|
388
388
|
this.fireEvent(this.Event.SelectionMoving, {
|
|
389
389
|
workbook: a,
|
|
390
390
|
worksheet: a.getActiveSheet(),
|
|
391
|
-
selections: (C = S == null ? void 0 : S.map((
|
|
391
|
+
selections: (C = S == null ? void 0 : S.map((_) => _.range)) != null ? C : []
|
|
392
392
|
});
|
|
393
393
|
})
|
|
394
394
|
)), l.add(this.registerEventHandler(
|
|
@@ -398,7 +398,7 @@ class Te extends Q {
|
|
|
398
398
|
this.fireEvent(this.Event.SelectionMoveEnd, {
|
|
399
399
|
workbook: a,
|
|
400
400
|
worksheet: a.getActiveSheet(),
|
|
401
|
-
selections: (C = S == null ? void 0 : S.map((
|
|
401
|
+
selections: (C = S == null ? void 0 : S.map((_) => _.range)) != null ? C : []
|
|
402
402
|
});
|
|
403
403
|
})
|
|
404
404
|
)), l.add(this.registerEventHandler(
|
|
@@ -408,7 +408,7 @@ class Te extends Q {
|
|
|
408
408
|
this.fireEvent(this.Event.SelectionChanged, {
|
|
409
409
|
workbook: a,
|
|
410
410
|
worksheet: a.getActiveSheet(),
|
|
411
|
-
selections: (C = S == null ? void 0 : S.map((
|
|
411
|
+
selections: (C = S == null ? void 0 : S.map((_) => _.range)) != null ? C : []
|
|
412
412
|
});
|
|
413
413
|
})
|
|
414
414
|
)), s = null, this.disposeWithMe(l);
|
|
@@ -497,7 +497,7 @@ class Te extends Q {
|
|
|
497
497
|
const e = this.getActiveWorkbook(), r = e == null ? void 0 : e.getActiveSheet(), t = e == null ? void 0 : e.getActiveRange();
|
|
498
498
|
if (!e || !r || !t)
|
|
499
499
|
return;
|
|
500
|
-
const o = this._injector.get(
|
|
500
|
+
const o = this._injector.get(te).generateCopyContent(e.getId(), r.getSheetId(), t.getRange());
|
|
501
501
|
if (!o)
|
|
502
502
|
return;
|
|
503
503
|
const { html: s, plain: d } = o;
|
|
@@ -583,7 +583,7 @@ class Te extends Q {
|
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
const t = r == null ? void 0 : r.getId(), i = this._injector.get(v), o = r.getActiveSheet(), s = o.getSheetId(), d = i.getRenderById(t);
|
|
586
|
-
d && ((g = e.headerStyle) != null && g.size) && (d.with(
|
|
586
|
+
d && ((g = e.headerStyle) != null && g.size) && (d.with(p).setColumnHeaderSize(d, s, (l = e.headerStyle) == null ? void 0 : l.size), o == null || o.refreshCanvas()), this._getSheetRenderComponent(t, E.COLUMN).setCustomHeader(e), o == null || o.refreshCanvas();
|
|
587
587
|
}
|
|
588
588
|
customizeRowHeader(e) {
|
|
589
589
|
const r = this.getActiveWorkbook();
|
|
@@ -592,22 +592,22 @@ class Te extends Q {
|
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
594
594
|
const t = r == null ? void 0 : r.getId();
|
|
595
|
-
this._getSheetRenderComponent(t,
|
|
595
|
+
this._getSheetRenderComponent(t, E.ROW).setCustomHeader(e);
|
|
596
596
|
}
|
|
597
597
|
registerSheetRowHeaderExtension(e, ...r) {
|
|
598
|
-
const t = this._getSheetRenderComponent(e,
|
|
598
|
+
const t = this._getSheetRenderComponent(e, E.ROW), i = t.register(...r);
|
|
599
599
|
return m(() => {
|
|
600
600
|
i.dispose(), t.makeDirty(!0);
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
registerSheetColumnHeaderExtension(e, ...r) {
|
|
604
|
-
const t = this._getSheetRenderComponent(e,
|
|
604
|
+
const t = this._getSheetRenderComponent(e, E.COLUMN), i = t.register(...r);
|
|
605
605
|
return m(() => {
|
|
606
606
|
i.dispose(), t.makeDirty(!0);
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
registerSheetMainExtension(e, ...r) {
|
|
610
|
-
const t = this._getSheetRenderComponent(e,
|
|
610
|
+
const t = this._getSheetRenderComponent(e, E.MAIN), i = t.register(...r);
|
|
611
611
|
return m(() => {
|
|
612
612
|
i.dispose(), t.makeDirty(!0);
|
|
613
613
|
});
|
|
@@ -648,11 +648,11 @@ class Te extends Q {
|
|
|
648
648
|
return this._injector.get(A).getProtectedRangeShadowStrategy$();
|
|
649
649
|
}
|
|
650
650
|
setPermissionDialogVisible(e) {
|
|
651
|
-
this._injector.get(
|
|
651
|
+
this._injector.get(de).setShowComponents(e);
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
Q.extend(Te);
|
|
655
|
-
class Ae extends
|
|
655
|
+
class Ae extends ne {
|
|
656
656
|
openSiderbar(e) {
|
|
657
657
|
return this._logDeprecation("openSiderbar"), this._injector.get(xe).open(e);
|
|
658
658
|
}
|
|
@@ -668,11 +668,11 @@ class Ae extends re {
|
|
|
668
668
|
}
|
|
669
669
|
customizeColumnHeader(e) {
|
|
670
670
|
const r = this._workbook.getUnitId();
|
|
671
|
-
this._getSheetRenderComponent(r,
|
|
671
|
+
this._getSheetRenderComponent(r, E.COLUMN).setCustomHeader(e);
|
|
672
672
|
}
|
|
673
673
|
customizeRowHeader(e) {
|
|
674
674
|
const r = this._workbook.getUnitId();
|
|
675
|
-
this._getSheetRenderComponent(r,
|
|
675
|
+
this._getSheetRenderComponent(r, E.ROW).setCustomHeader(e);
|
|
676
676
|
}
|
|
677
677
|
/**
|
|
678
678
|
* Get sheet render component from render by unitId and view key.
|
|
@@ -703,7 +703,7 @@ class Ae extends re {
|
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
onCellClick(e) {
|
|
706
|
-
const r = this._injector.get(
|
|
706
|
+
const r = this._injector.get(k);
|
|
707
707
|
return m(
|
|
708
708
|
r.currentClickedCell$.pipe(u((t) => !!t)).subscribe((t) => {
|
|
709
709
|
e(t);
|
|
@@ -711,25 +711,25 @@ class Ae extends re {
|
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
onCellHover(e) {
|
|
714
|
-
const r = this._injector.get(
|
|
714
|
+
const r = this._injector.get(k);
|
|
715
715
|
return m(
|
|
716
716
|
r.currentRichText$.pipe(u((t) => !!t)).subscribe(e)
|
|
717
717
|
);
|
|
718
718
|
}
|
|
719
719
|
onCellPointerDown(e) {
|
|
720
|
-
const r = this._injector.get(
|
|
720
|
+
const r = this._injector.get(k);
|
|
721
721
|
return m(
|
|
722
722
|
r.currentPointerDownCell$.subscribe(e)
|
|
723
723
|
);
|
|
724
724
|
}
|
|
725
725
|
onCellPointerUp(e) {
|
|
726
|
-
const r = this._injector.get(
|
|
726
|
+
const r = this._injector.get(k);
|
|
727
727
|
return m(
|
|
728
728
|
r.currentPointerUpCell$.subscribe(e)
|
|
729
729
|
);
|
|
730
730
|
}
|
|
731
731
|
onCellPointerMove(e) {
|
|
732
|
-
const r = this._injector.get(
|
|
732
|
+
const r = this._injector.get(k);
|
|
733
733
|
return m(
|
|
734
734
|
r.currentCellPosWithEvent$.pipe(u((t) => !!t)).subscribe((t) => {
|
|
735
735
|
e(t, t.event);
|
|
@@ -754,7 +754,7 @@ class Ae extends re {
|
|
|
754
754
|
}
|
|
755
755
|
startEditing() {
|
|
756
756
|
const e = this._injector.get(R);
|
|
757
|
-
return this._injector.get(
|
|
757
|
+
return this._injector.get(f).isVisible().visible ? !0 : e.syncExecuteCommand(I.id, {
|
|
758
758
|
eventType: L.Dblclick,
|
|
759
759
|
unitId: this._workbook.getUnitId(),
|
|
760
760
|
visible: !0
|
|
@@ -762,12 +762,12 @@ class Ae extends re {
|
|
|
762
762
|
}
|
|
763
763
|
async endEditing(e) {
|
|
764
764
|
const r = this._injector.get(R);
|
|
765
|
-
return this._injector.get(
|
|
765
|
+
return this._injector.get(f).isVisible().visible && r.syncExecuteCommand(I.id, {
|
|
766
766
|
eventType: L.Keyboard,
|
|
767
767
|
keycode: e ? B.ENTER : B.ESC,
|
|
768
768
|
visible: !1,
|
|
769
769
|
unitId: this._workbook.getUnitId()
|
|
770
|
-
}), await
|
|
770
|
+
}), await he(0), !0;
|
|
771
771
|
}
|
|
772
772
|
endEditingAsync(e = !0) {
|
|
773
773
|
return this.endEditing(e);
|
|
@@ -776,7 +776,7 @@ class Ae extends re {
|
|
|
776
776
|
return this.endEditingAsync(!1);
|
|
777
777
|
}
|
|
778
778
|
isCellEditing() {
|
|
779
|
-
return this._injector.get(
|
|
779
|
+
return this._injector.get(f).isVisible().visible;
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* Get scroll state of specified sheet.
|
|
@@ -808,20 +808,20 @@ class Ae extends re {
|
|
|
808
808
|
return t && t.with(y).showSelection(), this;
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
|
|
812
|
-
class je extends
|
|
811
|
+
ne.extend(Ae);
|
|
812
|
+
class je extends ie {
|
|
813
813
|
refreshCanvas() {
|
|
814
814
|
const e = this._injector.get(v), r = this._fWorkbook.id, t = e.getRenderById(r);
|
|
815
815
|
if (!t)
|
|
816
816
|
throw new Error(`Render Unit with unitId ${r} not found`);
|
|
817
|
-
t.with(
|
|
817
|
+
t.with(p).reCalculate();
|
|
818
818
|
const i = t.mainComponent;
|
|
819
819
|
if (!i)
|
|
820
820
|
throw new Error("Main component not found");
|
|
821
821
|
return i.makeDirty(), this;
|
|
822
822
|
}
|
|
823
823
|
highlightRanges(e, r, t) {
|
|
824
|
-
const i = this._injector.get(
|
|
824
|
+
const i = this._injector.get(re), o = [];
|
|
825
825
|
for (const s of e) {
|
|
826
826
|
const d = s.getRange(), h = i.addShapeWithNoFresh({ range: d, style: r, primary: t });
|
|
827
827
|
h && o.push(h);
|
|
@@ -847,21 +847,15 @@ class je extends ne {
|
|
|
847
847
|
}
|
|
848
848
|
getVisibleRange() {
|
|
849
849
|
const e = this._workbook.getUnitId(), t = this._injector.get(v).getRenderById(e);
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
if (!t) return
|
|
857
|
-
const
|
|
858
|
-
|
|
859
|
-
const d = s == null ? void 0 : s.getVisibleRanges();
|
|
860
|
-
if (!d) return i;
|
|
861
|
-
i = s.getVisibleRangeByViewport(Se.VIEW_MAIN);
|
|
862
|
-
for (const [h, g] of d)
|
|
863
|
-
me.indexOf(h) !== -1 && (i.startColumn = Math.min(i.startColumn, g.startColumn), i.startRow = Math.min(i.startRow, g.startRow), i.endColumn = Math.max(i.endColumn, g.endColumn), i.endRow = Math.max(i.endRow, g.endRow));
|
|
864
|
-
return i;
|
|
850
|
+
if (!t) return null;
|
|
851
|
+
const o = t.with(p).getCurrentSkeleton();
|
|
852
|
+
return o ? o.getVisibleRangeByViewport(ee.VIEW_MAIN) : null;
|
|
853
|
+
}
|
|
854
|
+
getVisibleRangesOfAllViewports() {
|
|
855
|
+
const e = this._workbook.getUnitId(), t = this._injector.get(v).getRenderById(e);
|
|
856
|
+
if (!t) return null;
|
|
857
|
+
const o = t.with(p).getCurrentSkeleton();
|
|
858
|
+
return o ? o.getVisibleRanges() : null;
|
|
865
859
|
}
|
|
866
860
|
scrollToCell(e, r, t) {
|
|
867
861
|
const i = this._workbook.getUnitId(), s = this._injector.get(v).getRenderById(i);
|
|
@@ -890,7 +884,7 @@ class je extends ne {
|
|
|
890
884
|
}
|
|
891
885
|
getSkeleton() {
|
|
892
886
|
var r, t;
|
|
893
|
-
const e = (r = this._injector.get(v).getRenderById(this._workbook.getUnitId())) == null ? void 0 : r.with(
|
|
887
|
+
const e = (r = this._injector.get(v).getRenderById(this._workbook.getUnitId())) == null ? void 0 : r.with(p);
|
|
894
888
|
return (t = e == null ? void 0 : e.getWorksheetSkeleton(this._worksheet.getSheetId())) == null ? void 0 : t.skeleton;
|
|
895
889
|
}
|
|
896
890
|
autoResizeColumn(e) {
|
|
@@ -932,12 +926,12 @@ class je extends ne {
|
|
|
932
926
|
customizeColumnHeader(e) {
|
|
933
927
|
var d, h;
|
|
934
928
|
const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId(), o = this._injector.get(v).getRenderById(r);
|
|
935
|
-
o && ((d = e.headerStyle) != null && d.size) && o.with(
|
|
929
|
+
o && ((d = e.headerStyle) != null && d.size) && o.with(p).setColumnHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, E.COLUMN).setCustomHeader(e, t);
|
|
936
930
|
}
|
|
937
931
|
customizeRowHeader(e) {
|
|
938
932
|
var d, h;
|
|
939
933
|
const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId(), o = this._injector.get(v).getRenderById(r);
|
|
940
|
-
o && ((d = e.headerStyle) != null && d.size) && o.with(
|
|
934
|
+
o && ((d = e.headerStyle) != null && d.size) && o.with(p).setRowHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, E.ROW).setCustomHeader(e, t);
|
|
941
935
|
}
|
|
942
936
|
setColumnHeaderHeight(e) {
|
|
943
937
|
const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId();
|
|
@@ -972,19 +966,19 @@ class je extends ne {
|
|
|
972
966
|
return s;
|
|
973
967
|
}
|
|
974
968
|
}
|
|
975
|
-
|
|
976
|
-
class $e extends
|
|
969
|
+
ie.extend(je);
|
|
970
|
+
class $e extends oe {
|
|
977
971
|
setPermissionDialogVisible(e) {
|
|
978
972
|
this._permissionService.setShowComponents(e);
|
|
979
973
|
}
|
|
980
974
|
}
|
|
981
|
-
|
|
975
|
+
oe.extend($e);
|
|
982
976
|
class We extends W {
|
|
983
977
|
onCellPointerMove(e) {
|
|
984
|
-
return m(this._injector.get(
|
|
978
|
+
return m(this._injector.get(k).currentPosition$.subscribe(e));
|
|
985
979
|
}
|
|
986
980
|
onCellPointerOver(e) {
|
|
987
|
-
return m(this._injector.get(
|
|
981
|
+
return m(this._injector.get(k).currentCell$.subscribe(e));
|
|
988
982
|
}
|
|
989
983
|
onCellDragOver(e) {
|
|
990
984
|
return m(this._injector.get(M).currentCell$.subscribe(e));
|
|
@@ -992,7 +986,7 @@ class We extends W {
|
|
|
992
986
|
onCellDrop(e) {
|
|
993
987
|
return m(this._injector.get(M).endCell$.subscribe(e));
|
|
994
988
|
}
|
|
995
|
-
onCellRender(e, r =
|
|
989
|
+
onCellRender(e, r = ge.Style, t = pe.DATA_VALIDATION) {
|
|
996
990
|
return this._injector.get(fe).intercept(ke.CELL_CONTENT, {
|
|
997
991
|
effect: r,
|
|
998
992
|
handler: (i, o, s) => (i && !i.customRender && e && (i.customRender = [...e]), s(i)),
|
|
@@ -1002,13 +996,13 @@ class We extends W {
|
|
|
1002
996
|
onBeforeCellEdit(e) {
|
|
1003
997
|
return this._injector.get(R).beforeCommandExecuted((r) => {
|
|
1004
998
|
const t = r.params;
|
|
1005
|
-
r.id ===
|
|
999
|
+
r.id === I.id && t.visible && e(t);
|
|
1006
1000
|
});
|
|
1007
1001
|
}
|
|
1008
1002
|
onAfterCellEdit(e) {
|
|
1009
1003
|
return this._injector.get(R).onCommandExecuted((r) => {
|
|
1010
1004
|
const t = r.params;
|
|
1011
|
-
r.id ===
|
|
1005
|
+
r.id === I.id && !t.visible && e(t);
|
|
1012
1006
|
});
|
|
1013
1007
|
}
|
|
1014
1008
|
}
|
|
@@ -1118,11 +1112,17 @@ class Oe {
|
|
|
1118
1112
|
return "SheetZoomChanged";
|
|
1119
1113
|
}
|
|
1120
1114
|
}
|
|
1121
|
-
|
|
1122
|
-
class Fe
|
|
1115
|
+
ve.extend(Oe);
|
|
1116
|
+
class Fe {
|
|
1117
|
+
get SHEET_VIEWPORT_KEY() {
|
|
1118
|
+
return ee;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
Se.extend(Fe);
|
|
1122
|
+
class ze extends se {
|
|
1123
1123
|
getCell() {
|
|
1124
1124
|
var d;
|
|
1125
|
-
const e = this._injector.get(v), r = this._injector.get(U), t = this._workbook.getUnitId(), i = this._worksheet.getSheetId(), o = e.getRenderById(t), s = (d = o == null ? void 0 : o.with(
|
|
1125
|
+
const e = this._injector.get(v), r = this._injector.get(U), t = this._workbook.getUnitId(), i = this._worksheet.getSheetId(), o = e.getRenderById(t), s = (d = o == null ? void 0 : o.with(p).getSkeletonParam(i)) == null ? void 0 : d.skeleton;
|
|
1126
1126
|
if (!s)
|
|
1127
1127
|
throw r.error("[Facade]: `FRange.getCell` can only be called in current worksheet"), new Error("`FRange.getCell` can only be called in current worksheet");
|
|
1128
1128
|
return s.getCellWithCoordByIndex(this._range.startRow, this._range.startColumn);
|
|
@@ -1133,7 +1133,7 @@ class Fe extends oe {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
generateHTML() {
|
|
1135
1135
|
var t;
|
|
1136
|
-
const r = this._injector.get(
|
|
1136
|
+
const r = this._injector.get(te).generateCopyContent(
|
|
1137
1137
|
this._workbook.getUnitId(),
|
|
1138
1138
|
this._worksheet.getSheetId(),
|
|
1139
1139
|
this._range
|
|
@@ -1194,7 +1194,7 @@ class Fe extends oe {
|
|
|
1194
1194
|
return o ? (t.add(o), t) : (t.dispose(), null);
|
|
1195
1195
|
}
|
|
1196
1196
|
highlight(e, r) {
|
|
1197
|
-
const t = this._injector.get(
|
|
1197
|
+
const t = this._injector.get(re), i = t.addShape({ range: this._range, style: e, primary: r });
|
|
1198
1198
|
if (!i)
|
|
1199
1199
|
throw new Error("Failed to highlight current range");
|
|
1200
1200
|
return m(() => {
|
|
@@ -1206,7 +1206,7 @@ class Fe extends oe {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
async autoFill(e, r) {
|
|
1208
1208
|
const t = this.getRange(), i = e.getRange();
|
|
1209
|
-
if (!
|
|
1209
|
+
if (!le.contains(i, t))
|
|
1210
1210
|
throw new Error("AutoFill target range must contain source range");
|
|
1211
1211
|
const { startRow: o, startColumn: s, endRow: d, endColumn: h } = t, { startRow: g, startColumn: l, endRow: a, endColumn: n } = i;
|
|
1212
1212
|
if (d - o !== a - g && h - s !== n - l)
|
|
@@ -1224,16 +1224,17 @@ class Fe extends oe {
|
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
|
|
1228
|
-
function q(
|
|
1229
|
-
const { componentKey: r, isVue3: t } =
|
|
1227
|
+
se.extend(ze);
|
|
1228
|
+
function q(w, e) {
|
|
1229
|
+
const { componentKey: r, isVue3: t } = w;
|
|
1230
1230
|
let i;
|
|
1231
1231
|
const o = new j();
|
|
1232
|
-
return typeof r == "string" ? i = r : (i = `External_${
|
|
1232
|
+
return typeof r == "string" ? i = r : (i = `External_${ue(6)}`, o.add(e.register(i, r, { framework: t ? "vue3" : "react" }))), {
|
|
1233
1233
|
key: i,
|
|
1234
1234
|
disposableCollection: o
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
1237
|
export {
|
|
1238
|
+
Fe as FSheetsUIEnum,
|
|
1238
1239
|
q as transformComponentKey
|
|
1239
1240
|
};
|