@univerjs-pro/sheets-pivot-ui 1.3.1 → 1.5.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/README.md +7 -7
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +17 -59
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/intercept.controller.d.ts +3 -1
- package/lib/types/controllers/sheets-pivot-render.controller.d.ts +6 -3
- package/lib/types/date-filter.d.ts +13 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +27 -0
- package/lib/types/type.d.ts +3 -1
- package/lib/types/views/components/PivotDateFilterDialog.d.ts +10 -0
- package/lib/types/views/components/PivotFilterOptions.d.ts +18 -0
- package/lib/types/views/components/PivotFilterPanel.d.ts +3 -2
- package/lib/types/views/components/PivotTableRangeSelector.d.ts +2 -1
- package/lib/types/views/components/util.d.ts +4 -2
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -21
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1014d5=_0x408f;function _0x408f(_0xe3ad85,_0x51641b){_0xe3ad85=_0xe3ad85-0xa7;const _0x4578e4=_0x4578();let _0x408f20=_0x4578e4[_0xe3ad85];return _0x408f20;}(function(_0x341eb1,_0xc60c64){const _0x4e1f25=_0x408f,_0x421b01=_0x341eb1();while(!![]){try{const _0x12e522=-parseInt(_0x4e1f25(0xf2))/0x1+-parseInt(_0x4e1f25(0xae))/0x2*(-parseInt(_0x4e1f25(0xdc))/0x3)+-parseInt(_0x4e1f25(0x123))/0x4*(-parseInt(_0x4e1f25(0xcf))/0x5)+parseInt(_0x4e1f25(0xd6))/0x6+parseInt(_0x4e1f25(0xe9))/0x7+-parseInt(_0x4e1f25(0xb2))/0x8+parseInt(_0x4e1f25(0xe3))/0x9;if(_0x12e522===_0xc60c64)break;else _0x421b01['push'](_0x421b01['shift']());}catch(_0x525717){_0x421b01['push'](_0x421b01['shift']());}}}(_0x4578,0xdbcdc));function _0x4578(){const _0x5c4156=['移除欄位','基本欄位','早於或等於','總計百分比','14811039OwctuN','年-月','會計數字格式可對齊同一欄中的貨幣符號和小數點。','母體標準差項:','加入篩選','群組項目','8715294yAhlOF','每欄達到此數量後,換到下一欄。','不等於','母體變異數','新增欄位填入列','Σ\x20值','月-日','不能與來源資料重疊','大於或等於','1604651cbFAqo','水平並排','加入列','變更日期分組模式?','由大至小排名','顯示列小計','最大值','合併儲存格中無法插入樞紐分析表','關閉多重篩選?','數值分組','目標區域已有資料,此操作將覆寫現有資料。是否繼續?','母體標準差','將欄位拖曳到下方區域','百分比','值顯示方式','垂直並排','自動設定結束日期','起始值','資料來源欄位','格式類型','小於或等於','上層列總計百分比','請選取同一欄位中的至少兩個項目。','值篩選','工作表','開始日期','標準差','資料大小無效','排列欄位','加入值','顯示列總計','群組頂端','日期格式會將日期和時間序列值顯示為日期。','數字格式','清除篩選','重複列標籤','貨幣類型','現有工作表','彙總方式','移動到欄','不介於','欄位設定','沒有相符的欄位','列小計位置','新增欄位填入欄','變異數','透過欄位選單將欄位加入下方區域','大綱式','基本項目','297268iAEMZY','新增欄位以篩選資料','列與欄的計算結果','群組名稱','來源欄位名稱:','樞紐分析表無法展開,因為它與\x20{0}\x20的合併儲存格重疊。','累計百分比','平均值','樞紐分析表','千位分隔符格式用於顯示一般數字,貨幣和會計格式則提供貨幣值專用格式。','列總計百分比','群組\x20{0}','小計與總計','此報表的所有篩選都將被清除;關聯報表中對應的共用交叉分析篩選器和時間軸篩選也將被清除。報表連線保持不變。','請選擇值欄位','表格式','顯示值相同的來源項目無法區分;請使用唯一的來源值。','報表版面配置','68332KWmbgv','負數類型','重新命名群組','計數項:','10702312fhWFEk','日期篩選','移動到列','分組依據','篩選欄位配置','上一個','插入樞紐分析表','數值計數項:','總和項:','最大值項:','水平並排時,此數量表示每列的篩選欄位數。','日期分組','允許每個欄位有多個篩選','後百分比','新工作表','資料來源範圍','年-月-日','日期分組模式','由小至大排名','移動到篩選','小時-分鐘','樞紐分析表無法展開,因為它會覆寫\x20{0}\x20中的資料。','篩選欄位','顯示欄小計','下一個','拖曳欄位填入列','搜尋欄位','樞紐分析表放置位置','小數位數','5adCKyA','結束日期','欄總計百分比','結束值','前若干項','母體變異數項:','刪除樞紐分析表','3011400klJgaM','拖入欄位以篩選資料','無法套用日期篩選,請檢查欄位、權限或現有交叉分析篩選器和時間軸篩選。','壓縮式','最小值項:','加入欄','33HOYZDQ','編輯樞紐分析表','乘積項:'];_0x4578=function(){return _0x5c4156;};return _0x4578();}const e={'sheets-pivot-ui':{'dateFilter':{'title':_0x1014d5(0xb3),'rule':'條件','equal':'等於','notEqual':_0x1014d5(0xeb),'after':'晚於','afterOrEqual':'晚於或等於','before':'早於','beforeOrEqual':_0x1014d5(0xe1),'between':'介於','notBetween':_0x1014d5(0x11a),'date':'日期','from':'開始','to':'結束','wholeDay':'按整日篩選','serial':'Excel\x20日期序列值','failed':_0x1014d5(0xd8)},'sheet':_0x1014d5(0x10a),'title':_0x1014d5(0x12b),'sourceRangeLabel':'資料來源','sourceRangePlaceholder':'資料來源已更新','sourceFieldTile':_0x1014d5(0x104),'sourceFieldDescription':_0x1014d5(0xfe),'searchFieldPlaceholder':_0x1014d5(0xcc),'noMatchingFields':_0x1014d5(0x11c),'filter':'篩選','column':'欄','row':'列','value':'值','multipleValue':_0x1014d5(0xee),'filterDesc':_0x1014d5(0xd7),'columnDesc':'拖曳欄位填入欄','rowDesc':_0x1014d5(0xcb),'valueDesc':_0x1014d5(0x125),'addToFilter':_0x1014d5(0xe7),'addToColumn':_0x1014d5(0xdb),'addToRow':_0x1014d5(0xf4),'addToValue':_0x1014d5(0x10f),'removeField':_0x1014d5(0xdf),'filterField':_0x1014d5(0xc8),'fieldSettings':'欄位設定','moveToRow':_0x1014d5(0xb4),'moveToColumn':_0x1014d5(0x119),'showValuesAs':{'title':_0x1014d5(0x100),'normal':'無計算','percentOfGrandTotal':_0x1014d5(0xe2),'percentOfRowTotal':_0x1014d5(0x12d),'percentOfColumnTotal':_0x1014d5(0xd1),'percentOfParentRowTotal':_0x1014d5(0x107),'percentOfParentColumnTotal':'上層欄總計百分比','index':'指數','percentOfParent':'上層總計百分比','percentOf':_0x1014d5(0xff),'differenceFrom':'差異','percentDifferenceFrom':'差異百分比','runningTotal':'累計','percentRunningTotal':_0x1014d5(0x129),'rankAscending':_0x1014d5(0xc4),'rankDescending':_0x1014d5(0xf6),'dialogTitle':_0x1014d5(0x100),'baseField':_0x1014d5(0xe0),'baseItem':_0x1014d5(0x122),'previous':_0x1014d5(0xb7),'next':_0x1014d5(0xca),'other':'其他','ok':'確定','cancel':'取消'},'valueFilter':{'title':_0x1014d5(0x109),'dialogTitle':_0x1014d5(0x109),'valueField':'值欄位','selectValueField':_0x1014d5(0xaa),'condition':'篩選條件','equal':'等於','notEqual':_0x1014d5(0xeb),'greaterThan':'大於','greaterThanOrEqual':_0x1014d5(0xf1),'lessThan':'小於','lessThanOrEqual':_0x1014d5(0x106),'between':'介於','notBetween':_0x1014d5(0x11a),'topCount':_0x1014d5(0xd3),'bottomCount':'後若干項','topPercent':'前百分比','bottomPercent':_0x1014d5(0xbf),'clear':_0x1014d5(0x114),'ok':'確定','cancel':'取消'},'mobile':{'edit':_0x1014d5(0xdd),'delete':_0x1014d5(0xd5),'sourceFieldDescription':_0x1014d5(0x120),'filterDesc':_0x1014d5(0x124),'columnDesc':_0x1014d5(0x11e),'rowDesc':_0x1014d5(0xed),'moveUp':'上移','moveDown':'下移','moveToFilter':_0x1014d5(0xc5),'moveToColumn':_0x1014d5(0x119),'moveToRow':_0x1014d5(0xb4),'moveToValue':'移動到值'},'numberGroup':{'title':_0x1014d5(0xfb),'autoStart':'自動設定起始值','autoEnd':'自動設定結束值','start':_0x1014d5(0x103),'end':_0x1014d5(0xd2),'interval':'間距'},'manualGroup':{'groupTitle':_0x1014d5(0xe8),'renameTitle':_0x1014d5(0xb0),'ungroupTitle':'取消群組','name':_0x1014d5(0x126),'defaultName':_0x1014d5(0xa7),'invalidSelection':_0x1014d5(0x108),'ambiguousMember':_0x1014d5(0xac)},'dateGroup':{'excelLikeTitle':'日期分組','groupBy':_0x1014d5(0xb5),'day':'日','second':'秒','start':_0x1014d5(0x10b),'end':_0x1014d5(0xd0),'autoStart':'自動設定開始日期','autoEnd':_0x1014d5(0x102),'daysInterval':'天數','title':_0x1014d5(0xbd),'year':'年','yearQuarter':'年-季','quarter':'季','yearMonth':_0x1014d5(0xe4),'month':'月','monthDate':_0x1014d5(0xef),'yearMonthDate':_0x1014d5(0xc2),'date':'日','hour':'小時','minute':'分鐘','hourMinute':_0x1014d5(0xc6)},'dialog':{'fieldName':'欄位名稱','sourceName':_0x1014d5(0x127),'summarizeBy':_0x1014d5(0x118),'format':_0x1014d5(0x113),'ok':'確定','cancel':'取消','filter':{'ascending':'升序','descending':'降序','selectAll':'全選','clearFilter':_0x1014d5(0x114),'blank':'(空白)','cancel':'取消','confirm':'確定'},'numfmt':{'general':'一般','accounting':'會計','currency':'貨幣','date':'日期','thousandthPercentile':'千位分隔符','fieldSetting':_0x1014d5(0x11b),'formatTypes':_0x1014d5(0x105),'confirm':'確定','cancel':'取消','generalDesc':'一般格式不包含任何特定的數字格式。','accountingDesc':_0x1014d5(0xe5),'currencyDesc':'貨幣格式用於顯示一般貨幣值,會計格式則可對齊同一欄中的小數點。','dateDesc':_0x1014d5(0x112),'thousandthPercentileDesc':_0x1014d5(0x12c),'decimalPlaces':_0x1014d5(0xce),'currencyTypes':_0x1014d5(0x116),'negativeNumberTypes':_0x1014d5(0xaf),'dateTypes':'日期類型'},'source':{'insertPivotTable':_0x1014d5(0xb8),'sourceData':_0x1014d5(0xc1),'position':_0x1014d5(0xcd),'newSheet':_0x1014d5(0xc0),'existingSheet':_0x1014d5(0x117),'intersect':_0x1014d5(0xf0)}},'subtotal':{'average':_0x1014d5(0x12a),'count':'計數','countNums':'數值計數','max':_0x1014d5(0xf8),'min':'最小值','product':'乘積','stdDev':_0x1014d5(0x10c),'stdDevp':_0x1014d5(0xfd),'sum':'總和','var':_0x1014d5(0x11f),'varp':_0x1014d5(0xec)},'subTotalText':'小計','grandTotalText':'總計','fieldPanel':_0x1014d5(0x11b),'configPanel':'進階選項','config':{'filteringSection':'篩選','allowMultipleFilters':_0x1014d5(0xbe),'multipleFiltersTitle':_0x1014d5(0xfa),'multipleFiltersClearWarning':_0x1014d5(0xa9),'dateGroupingMode':_0x1014d5(0xc3),'dateGroupingLegacy':'按日期組合','dateGroupingExcelLike':'按日期單位(Excel\x20式)','dateGroupingSwitchTitle':_0x1014d5(0xf5),'dateGroupingSwitchMessage':'切換模式時將移除現有日期群組。','totalsSection':_0x1014d5(0xa8),'showRowSubtotal':_0x1014d5(0xf7),'rowSubtotalPosition':_0x1014d5(0x11d),'rowSubtotalTop':_0x1014d5(0x111),'rowSubtotalBottom':'群組底端','showRowGrandTotal':_0x1014d5(0x110),'showColSubtotal':_0x1014d5(0xc9),'showColGrandTotal':'顯示欄總計','pageSection':_0x1014d5(0xb6),'pageWrap':'每欄的篩選欄位數','pageWrapDownThenOverHelp':_0x1014d5(0xea),'pageWrapOverThenDownHelp':_0x1014d5(0xbc),'pageDirection':_0x1014d5(0x10e),'pageDownThenOver':_0x1014d5(0x101),'pageOverThenDown':_0x1014d5(0xf3),'displaySection':'顯示','layout':_0x1014d5(0xad),'layoutTabular':_0x1014d5(0xab),'layoutCompact':_0x1014d5(0xd9),'layoutOutline':_0x1014d5(0x121),'repeatRowLabels':_0x1014d5(0x115),'repeatColLabels':'重複欄標籤'},'perform':{'blocked':_0x1014d5(0xc7),'blockedByMerge':_0x1014d5(0x128),'blockedByPivot':'樞紐分析表無法展開,因為它與\x20{0}\x20的另一張樞紐分析表重疊。','tips':'提示','info':_0x1014d5(0xfc),'confirm':'確認','cancel':'取消','rowColError':'無法變更所選儲存格,因為這會影響樞紐分析表。請使用欄位清單修改報表。如果您要插入或刪除儲存格,請先移動樞紐分析表再試一次。'},'msg':{'emptySourceRange':'請選擇資料來源','invalidSize':_0x1014d5(0x10d),'mergeCellError':_0x1014d5(0xf9),'editCellError':'無法編輯樞紐分析表中的儲存格','permissionError':'無法編輯受保護工作表中的樞紐分析表'},'averageName':'平均值項:','countName':_0x1014d5(0xb1),'countNumsName':_0x1014d5(0xb9),'maxName':_0x1014d5(0xbb),'minName':_0x1014d5(0xda),'productName':_0x1014d5(0xde),'stdDevName':'標準差項:','stdDevpName':_0x1014d5(0xe6),'sumName':_0x1014d5(0xba),'varName':'變異數項:','varpName':_0x1014d5(0xd4)}};export{e as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SheetsPivotTableService } from '@univerjs-pro/sheets-pivot';
|
|
2
2
|
import { Disposable, IConfigService, IConfirmService, Injector, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { SheetInterceptorService, SheetPermissionCheckController } from '@univerjs/sheets';
|
|
4
|
+
import { SheetsRenderService } from '@univerjs/sheets-ui';
|
|
4
5
|
export declare class SheetsPivotTableUIInterceptController extends Disposable {
|
|
5
6
|
private readonly _localeService;
|
|
6
7
|
private readonly _sheetInterceptorService;
|
|
@@ -9,8 +10,9 @@ export declare class SheetsPivotTableUIInterceptController extends Disposable {
|
|
|
9
10
|
private readonly _sheetsPivotTableService;
|
|
10
11
|
private readonly _configService;
|
|
11
12
|
private readonly _sheetPermissionCheckController;
|
|
13
|
+
private readonly _sheetsRenderService;
|
|
12
14
|
private _defaultOverride;
|
|
13
|
-
constructor(_localeService: LocaleService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _confirmService: IConfirmService, _sheetsPivotTableService: SheetsPivotTableService, _configService: IConfigService, _sheetPermissionCheckController: SheetPermissionCheckController);
|
|
15
|
+
constructor(_localeService: LocaleService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _confirmService: IConfirmService, _sheetsPivotTableService: SheetsPivotTableService, _configService: IConfigService, _sheetPermissionCheckController: SheetPermissionCheckController, _sheetsRenderService: SheetsRenderService);
|
|
14
16
|
private _getPivotAppliedRanges;
|
|
15
17
|
private _initUIInterceptListener;
|
|
16
18
|
}
|
|
@@ -2,8 +2,8 @@ import type { Workbook } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
|
|
4
4
|
import { Disposable, ICommandService, Injector, IPermissionService, LocaleService } from '@univerjs/core';
|
|
5
|
-
import { SheetPermissionCheckController } from '@univerjs/sheets';
|
|
6
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { SheetPermissionCheckController, SheetsSelectionsService } from '@univerjs/sheets';
|
|
6
|
+
import { CellAlertManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
7
7
|
export declare class SheetsPivotRenderController extends Disposable implements IRenderModule {
|
|
8
8
|
private readonly _context;
|
|
9
9
|
private readonly _injector;
|
|
@@ -14,8 +14,11 @@ export declare class SheetsPivotRenderController extends Disposable implements I
|
|
|
14
14
|
private readonly _sheetPermissionCheckController;
|
|
15
15
|
private readonly _permissionService;
|
|
16
16
|
private readonly _localeService;
|
|
17
|
+
private readonly _selectionsService;
|
|
18
|
+
private readonly _cellAlerts;
|
|
17
19
|
private _pivotButtonShapesArr;
|
|
18
|
-
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService, _sheetPermissionCheckController: SheetPermissionCheckController, _permissionService: IPermissionService, _localeService: LocaleService);
|
|
20
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService, _sheetPermissionCheckController: SheetPermissionCheckController, _permissionService: IPermissionService, _localeService: LocaleService, _selectionsService: SheetsSelectionsService, _cellAlerts: CellAlertManagerService);
|
|
21
|
+
private _initBlockedPivotAlert;
|
|
19
22
|
private _initButtonRender;
|
|
20
23
|
private _initSkeleton;
|
|
21
24
|
private _initListener;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPivotTableCustomFilter } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { DateSystem } from '@univerjs/core';
|
|
3
|
+
import { ST_PivotFilterOperatorEnum } from '@univerjs-pro/engine-pivot';
|
|
4
|
+
export interface IPivotDateFilterDraft {
|
|
5
|
+
operator: ST_PivotFilterOperatorEnum;
|
|
6
|
+
lower?: number;
|
|
7
|
+
upper?: number;
|
|
8
|
+
useWholeDay: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function getPivotDateFilterCondition(draft: IPivotDateFilterDraft): IPivotTableCustomFilter | undefined;
|
|
11
|
+
export declare function getPivotFilterCalendarDate(serial: number, dateSystem: DateSystem): Date | undefined;
|
|
12
|
+
export declare function replacePivotFilterCalendarDate(serial: number | undefined, date: Date, dateSystem: DateSystem): number | undefined;
|
|
13
|
+
export declare function replacePivotFilterTime(serial: number | undefined, date: Date): number | undefined;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { UniverSheetsPivotTableUIPlugin } from './plugin';
|
|
|
7
7
|
export type { IFilterItemInfo } from './type';
|
|
8
8
|
export type { IDropResult } from './views/components/PivotDnd';
|
|
9
9
|
export { DragDropContext, Draggable, Droppable } from './views/components/PivotDnd';
|
|
10
|
+
export { PivotFilterOptions } from './views/components/PivotFilterOptions';
|
|
10
11
|
export { PivotFilterPanel } from './views/components/PivotFilterPanel';
|
|
11
12
|
export type { IPivotFilterPanelProps } from './views/components/PivotFilterPanel';
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
declare const locale: {
|
|
2
2
|
'sheets-pivot-ui': {
|
|
3
|
+
dateFilter: {
|
|
4
|
+
title: string;
|
|
5
|
+
rule: string;
|
|
6
|
+
equal: string;
|
|
7
|
+
notEqual: string;
|
|
8
|
+
after: string;
|
|
9
|
+
afterOrEqual: string;
|
|
10
|
+
before: string;
|
|
11
|
+
beforeOrEqual: string;
|
|
12
|
+
between: string;
|
|
13
|
+
notBetween: string;
|
|
14
|
+
date: string;
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
wholeDay: string;
|
|
18
|
+
serial: string;
|
|
19
|
+
failed: string;
|
|
20
|
+
};
|
|
3
21
|
sheet: string;
|
|
4
22
|
title: string;
|
|
5
23
|
sourceRangeLabel: string;
|
|
@@ -191,6 +209,10 @@ declare const locale: {
|
|
|
191
209
|
fieldPanel: string;
|
|
192
210
|
configPanel: string;
|
|
193
211
|
config: {
|
|
212
|
+
filteringSection: string;
|
|
213
|
+
allowMultipleFilters: string;
|
|
214
|
+
multipleFiltersTitle: string;
|
|
215
|
+
multipleFiltersClearWarning: string;
|
|
194
216
|
dateGroupingMode: string;
|
|
195
217
|
dateGroupingLegacy: string;
|
|
196
218
|
dateGroupingExcelLike: string;
|
|
@@ -206,6 +228,8 @@ declare const locale: {
|
|
|
206
228
|
showColGrandTotal: string;
|
|
207
229
|
pageSection: string;
|
|
208
230
|
pageWrap: string;
|
|
231
|
+
pageWrapDownThenOverHelp: string;
|
|
232
|
+
pageWrapOverThenDownHelp: string;
|
|
209
233
|
pageDirection: string;
|
|
210
234
|
pageDownThenOver: string;
|
|
211
235
|
pageOverThenDown: string;
|
|
@@ -218,6 +242,9 @@ declare const locale: {
|
|
|
218
242
|
repeatColLabels: string;
|
|
219
243
|
};
|
|
220
244
|
perform: {
|
|
245
|
+
blocked: string;
|
|
246
|
+
blockedByMerge: string;
|
|
247
|
+
blockedByPivot: string;
|
|
221
248
|
tips: string;
|
|
222
249
|
info: string;
|
|
223
250
|
confirm: string;
|
package/lib/types/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPivotTableFilterInfo, IPivotTableSortInfo, PivotDataFieldDataTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { IPivotTableFilterInfo, IPivotTableSortInfo, PivotDataFieldDataTypeEnum, PivotTableConditionFilter } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, PositionType } from '@univerjs-pro/sheets-pivot';
|
|
3
3
|
import type { IRange } from '@univerjs/core';
|
|
4
4
|
export interface IOpenPivotTablePanelOperationParams {
|
|
@@ -46,6 +46,8 @@ export interface IOpenPivotTableFieldSettingDialogOperationParams {
|
|
|
46
46
|
dataFieldInfo: IPivotPanelSourceList;
|
|
47
47
|
}
|
|
48
48
|
export interface IFilterItemInfo {
|
|
49
|
+
conditionFilter?: PivotTableConditionFilter;
|
|
50
|
+
supportsDateFilter?: boolean;
|
|
49
51
|
tableFieldId: string;
|
|
50
52
|
pivotTableId: string;
|
|
51
53
|
items: string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IPivotTableCustomFilter } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { DateSystem } from '@univerjs/core';
|
|
3
|
+
export interface IPivotDateFilterDialogProps {
|
|
4
|
+
dateSystem: DateSystem;
|
|
5
|
+
defaultDate?: number;
|
|
6
|
+
currentFilter?: IPivotTableCustomFilter;
|
|
7
|
+
onConfirm: (filter: IPivotTableCustomFilter | undefined) => Promise<boolean>;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PivotDateFilterDialog({ dateSystem, defaultDate, currentFilter, onConfirm, onCancel }: IPivotDateFilterDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IPivotTableSnapshot } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
interface IPivotFilterOptionsProps {
|
|
3
|
+
scope: {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
} & ({
|
|
7
|
+
pivotTableId: string;
|
|
8
|
+
pivotChartId?: never;
|
|
9
|
+
} | {
|
|
10
|
+
pivotChartId: string;
|
|
11
|
+
pivotTableId?: never;
|
|
12
|
+
});
|
|
13
|
+
report: IPivotTableSnapshot | undefined;
|
|
14
|
+
getCurrentReport: () => IPivotTableSnapshot | undefined;
|
|
15
|
+
onChange: (allowMultipleFilters: boolean) => Promise<boolean>;
|
|
16
|
+
}
|
|
17
|
+
export declare function PivotFilterOptions(props: IPivotFilterOptionsProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPivotTableSortInfo } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { IPivotTableCustomFilter, IPivotTableSortInfo } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { IFilterItemInfo } from '../../type';
|
|
3
3
|
export interface IPivotFilterPanelProps {
|
|
4
4
|
unitId: string;
|
|
@@ -6,7 +6,8 @@ export interface IPivotFilterPanelProps {
|
|
|
6
6
|
filterItemInfo: IFilterItemInfo;
|
|
7
7
|
dialogId?: string;
|
|
8
8
|
onClose?: () => void;
|
|
9
|
-
onSetFilter?: (items: string[], isAll: boolean, partialItems?: string[]) => Promise<boolean>;
|
|
9
|
+
onSetFilter?: (items: string[], isAll: boolean, partialItems?: string[], clearAllFilters?: boolean) => Promise<boolean>;
|
|
10
10
|
onSetSort?: (info: IPivotTableSortInfo) => Promise<boolean>;
|
|
11
|
+
onSetDateFilter?: (filter: IPivotTableCustomFilter | undefined) => Promise<boolean>;
|
|
11
12
|
}
|
|
12
13
|
export declare function PivotFilterPanel(props: IPivotFilterPanelProps): import("react").JSX.Element | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IPivotTableRangeSelectorProps } from '../../type';
|
|
2
|
+
import { PIVOT_TABLE_RANGE_SELECTOR_COMPONENT } from '../../const';
|
|
2
3
|
export declare function PivotTableRangeSelector(props: IPivotTableRangeSelectorProps): import("react").JSX.Element;
|
|
3
4
|
export declare namespace PivotTableRangeSelector {
|
|
4
|
-
|
|
5
|
+
export { PIVOT_TABLE_RANGE_SELECTOR_COMPONENT as componentKey };
|
|
5
6
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { IPivotTableFilterInfo } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { IPivotTableFilterInfo, PivotTableConditionFilter } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { IPivotPanelDataInfo, IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
|
|
3
3
|
import type { ICommandService, IRange, Nullable, Worksheet } from '@univerjs/core';
|
|
4
4
|
import type { LocaleKey } from '../../locale/types';
|
|
5
|
-
import { PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
|
|
5
|
+
import { PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
|
|
6
6
|
import { PivotFilterStatus } from '../../const';
|
|
7
7
|
export declare const PivotDropId = "PivotDropId";
|
|
8
8
|
export declare const PivotMultipleValueId = "PivotMultipleValueId";
|
|
9
|
+
export declare function getPivotPlaceholderLabelKey(item: string, type: PivotDataFieldDataTypeEnum | undefined): LocaleKey | undefined;
|
|
9
10
|
export declare function formatPivotSourceFieldName(template: string, sourceFieldName: string): string;
|
|
10
11
|
interface IExecuteRemoveCommandCtx {
|
|
11
12
|
pivotTableId: string;
|
|
@@ -75,5 +76,6 @@ export declare const isPrefixName: (baseName: string, name: string, textInfo: Re
|
|
|
75
76
|
export declare const getPrefixName: (baseName: string, textInfo: Record<string, string>, subtotalType: PivotSubtotalTypeEnum) => string;
|
|
76
77
|
export declare function getPivotFilterStatus(filterInfo: Nullable<IPivotTableFilterInfo>, additionalParams: {
|
|
77
78
|
items?: string[];
|
|
79
|
+
conditionFilter?: PivotTableConditionFilter;
|
|
78
80
|
}): PivotFilterStatus;
|
|
79
81
|
export {};
|