@univerjs-pro/sheets-pivot-ui 1.3.1 → 1.4.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/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 +12 -0
- 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/date-filter.d.ts +13 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +22 -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 +2 -1
- 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
|
+
function _0x2306(_0x52736b,_0xf2f5f5){_0x52736b=_0x52736b-0x6d;const _0x1ce64f=_0x1ce6();let _0x230669=_0x1ce64f[_0x52736b];return _0x230669;}function _0x1ce6(){const _0x39793d=['最小值','資料大小無效','小時-分鐘','資料來源欄位','42tamjXT','篩選欄位配置','允許每個欄位有多個篩選','結束日期','欄位設定','45MWrWwH','欄位名稱','後若干項','母體標準差項:','自動設定起始值','群組項目','747PzoxOE','值欄位','無計算','新工作表','工作表','彙總方式','數值分組','平均值','基本欄位','群組名稱','先向右再向下','分組依據','變更日期分組模式?','切換模式時將移除現有日期群組。','Σ\x20值','群組底端','顯示欄總計','變異數項:','上層列總計百分比','最大值','最大值項:','重新命名群組','大綱式','表格式','變異數','平均值項:','新增欄位填入欄','母體變異數','51438aJClQf','搜尋欄位','顯示列總計','結束值','無法套用日期篩選,請檢查欄位、權限或現有交叉分析篩選器和時間軸篩選。','無法編輯樞紐分析表中的儲存格','一般格式不包含任何特定的數字格式。','自動設定結束日期','關閉多重篩選?','母體標準差','請選擇值欄位','請選取同一欄位中的至少兩個項目。','早於或等於','沒有相符的欄位','乘積項:','月-日','標準差項:','格式類型','15002arbcrQ','千位分隔符格式用於顯示一般數字,貨幣和會計格式則提供貨幣值專用格式。','日期篩選','群組\x20{0}','移動到列','顯示列小計','112073kdGcnV','開始日期','百分比','篩選條件','64mqQIky','由大至小排名','差異百分比','進階選項','加入值','總和項:','1432926LKbbHO','資料來源已更新','重複列標籤','上一個','下一個','合併儲存格中無法插入樞紐分析表','晚於或等於','樞紐分析表','由小至大排名','貨幣格式用於顯示一般貨幣值,會計格式則可對齊同一欄中的小數點。','千位分隔符','列小計位置','新增欄位填入列','後百分比','無法編輯受保護工作表中的樞紐分析表','95184MxOOlR','數值計數項:','值篩選','無法變更所選儲存格,因為這會影響樞紐分析表。請使用欄位清單修改報表。如果您要插入或刪除儲存格,請先移動樞紐分析表再試一次。','Excel\x20式','20yhpqAi','拖曳欄位填入欄','起始值','資料來源範圍','群組頂端','不等於','35EakIRN','5184bjGmcp','清除篩選','加入列','日期分組模式','最小值項:','數字格式','每列欄位數','12KUSYZI','小計與總計','插入樞紐分析表','年-月-日','年-季','(空白)','負數類型','Excel\x20日期序列值','數值計數','標準差','此報表的所有篩選都將被清除;關聯報表中對應的共用交叉分析篩選器和時間軸篩選也將被清除。報表連線保持不變。','刪除樞紐分析表','日期類型','前若干項','樞紐分析表放置位置','移動到欄','自動設定開始日期','顯示欄小計','年-月','資料來源','大於或等於','自動設定結束值'];_0x1ce6=function(){return _0x39793d;};return _0x1ce6();}const _0x5b2ecb=_0x2306;(function(_0x33a341,_0x56a90a){const _0x1bdbe9=_0x2306,_0x424029=_0x33a341();while(!![]){try{const _0x54bcd3=-parseInt(_0x1bdbe9(0xd1))/0x1*(-parseInt(_0x1bdbe9(0xa7))/0x2)+parseInt(_0x1bdbe9(0xd2))/0x3*(parseInt(_0x1bdbe9(0xb1))/0x4)+parseInt(_0x1bdbe9(0x73))/0x5*(-parseInt(_0x1bdbe9(0x95))/0x6)+parseInt(_0x1bdbe9(0x6e))/0x7*(-parseInt(_0x1bdbe9(0xc6))/0x8)+-parseInt(_0x1bdbe9(0x79))/0x9*(-parseInt(_0x1bdbe9(0xcb))/0xa)+parseInt(_0x1bdbe9(0xb7))/0xb+-parseInt(_0x1bdbe9(0xd9))/0xc*(parseInt(_0x1bdbe9(0xad))/0xd);if(_0x54bcd3===_0x56a90a)break;else _0x424029['push'](_0x424029['shift']());}catch(_0x548c0e){_0x424029['push'](_0x424029['shift']());}}}(_0x1ce6,0x40519));const e={'sheets-pivot-ui':{'dateFilter':{'title':_0x5b2ecb(0xa9),'rule':'條件','equal':'等於','notEqual':'不等於','after':'晚於','afterOrEqual':_0x5b2ecb(0xbd),'before':'早於','beforeOrEqual':_0x5b2ecb(0xa1),'between':'介於','notBetween':'不介於','date':'日期','from':'開始','to':'結束','wholeDay':'按整日篩選','serial':_0x5b2ecb(0xe0),'failed':_0x5b2ecb(0x99)},'sheet':_0x5b2ecb(0x7d),'title':_0x5b2ecb(0xbe),'sourceRangeLabel':_0x5b2ecb(0xec),'sourceRangePlaceholder':_0x5b2ecb(0xb8),'sourceFieldTile':_0x5b2ecb(0x6d),'sourceFieldDescription':'將欄位拖曳到下方區域','searchFieldPlaceholder':_0x5b2ecb(0x96),'noMatchingFields':_0x5b2ecb(0xa2),'filter':'篩選','column':'欄','row':'列','value':'值','multipleValue':_0x5b2ecb(0x87),'filterDesc':'拖入欄位以篩選資料','columnDesc':_0x5b2ecb(0xcc),'rowDesc':'拖曳欄位填入列','valueDesc':'列與欄的計算結果','addToFilter':'加入篩選','addToColumn':'加入欄','addToRow':_0x5b2ecb(0xd4),'addToValue':_0x5b2ecb(0xb5),'removeField':'移除欄位','filterField':'篩選欄位','fieldSettings':'欄位設定','moveToRow':_0x5b2ecb(0xab),'moveToColumn':'移動到欄','showValuesAs':{'title':'值顯示方式','normal':_0x5b2ecb(0x7b),'percentOfGrandTotal':'總計百分比','percentOfRowTotal':'列總計百分比','percentOfColumnTotal':'欄總計百分比','percentOfParentRowTotal':_0x5b2ecb(0x8b),'percentOfParentColumnTotal':'上層欄總計百分比','index':'指數','percentOfParent':'上層總計百分比','percentOf':_0x5b2ecb(0xaf),'differenceFrom':'差異','percentDifferenceFrom':_0x5b2ecb(0xb3),'runningTotal':'累計','percentRunningTotal':'累計百分比','rankAscending':_0x5b2ecb(0xbf),'rankDescending':_0x5b2ecb(0xb2),'dialogTitle':'值顯示方式','baseField':_0x5b2ecb(0x81),'baseItem':'基本項目','previous':_0x5b2ecb(0xba),'next':_0x5b2ecb(0xbb),'other':'其他','ok':'確定','cancel':'取消'},'valueFilter':{'title':_0x5b2ecb(0xc8),'dialogTitle':_0x5b2ecb(0xc8),'valueField':_0x5b2ecb(0x7a),'selectValueField':_0x5b2ecb(0x9f),'condition':_0x5b2ecb(0xb0),'equal':'等於','notEqual':_0x5b2ecb(0xd0),'greaterThan':'大於','greaterThanOrEqual':_0x5b2ecb(0xed),'lessThan':'小於','lessThanOrEqual':'小於或等於','between':'介於','notBetween':'不介於','topCount':_0x5b2ecb(0xe6),'bottomCount':_0x5b2ecb(0x75),'topPercent':'前百分比','bottomPercent':_0x5b2ecb(0xc4),'clear':'清除篩選','ok':'確定','cancel':'取消'},'mobile':{'edit':'編輯樞紐分析表','delete':_0x5b2ecb(0xe4),'sourceFieldDescription':'透過欄位選單將欄位加入下方區域','filterDesc':'新增欄位以篩選資料','columnDesc':_0x5b2ecb(0x93),'rowDesc':_0x5b2ecb(0xc3),'moveUp':'上移','moveDown':'下移','moveToFilter':'移動到篩選','moveToColumn':_0x5b2ecb(0xe8),'moveToRow':_0x5b2ecb(0xab),'moveToValue':'移動到值'},'numberGroup':{'title':_0x5b2ecb(0x7f),'autoStart':_0x5b2ecb(0x77),'autoEnd':_0x5b2ecb(0xee),'start':_0x5b2ecb(0xcd),'end':_0x5b2ecb(0x98),'interval':'間距'},'manualGroup':{'groupTitle':_0x5b2ecb(0x78),'renameTitle':_0x5b2ecb(0x8e),'ungroupTitle':'取消群組','name':_0x5b2ecb(0x82),'defaultName':_0x5b2ecb(0xaa),'invalidSelection':_0x5b2ecb(0xa0),'ambiguousMember':'顯示值相同的來源項目無法區分;請使用唯一的來源值。'},'dateGroup':{'excelLikeTitle':'日期分組','groupBy':_0x5b2ecb(0x84),'day':'日','second':'秒','start':_0x5b2ecb(0xae),'end':_0x5b2ecb(0x71),'autoStart':_0x5b2ecb(0xe9),'autoEnd':_0x5b2ecb(0x9c),'daysInterval':'天數','title':'日期分組','year':'年','yearQuarter':_0x5b2ecb(0xdd),'quarter':'季','yearMonth':_0x5b2ecb(0xeb),'month':'月','monthDate':_0x5b2ecb(0xa4),'yearMonthDate':_0x5b2ecb(0xdc),'date':'日','hour':'小時','minute':'分鐘','hourMinute':_0x5b2ecb(0xf1)},'dialog':{'fieldName':_0x5b2ecb(0x74),'sourceName':'來源欄位名稱:','summarizeBy':_0x5b2ecb(0x7e),'format':_0x5b2ecb(0xd7),'ok':'確定','cancel':'取消','filter':{'ascending':'升序','descending':'降序','selectAll':'全選','clearFilter':_0x5b2ecb(0xd3),'blank':_0x5b2ecb(0xde),'cancel':'取消','confirm':'確定'},'numfmt':{'general':'一般','accounting':'會計','currency':'貨幣','date':'日期','thousandthPercentile':_0x5b2ecb(0xc1),'fieldSetting':_0x5b2ecb(0x72),'formatTypes':_0x5b2ecb(0xa6),'confirm':'確定','cancel':'取消','generalDesc':_0x5b2ecb(0x9b),'accountingDesc':'會計數字格式可對齊同一欄中的貨幣符號和小數點。','currencyDesc':_0x5b2ecb(0xc0),'dateDesc':'日期格式會將日期和時間序列值顯示為日期。','thousandthPercentileDesc':_0x5b2ecb(0xa8),'decimalPlaces':'小數位數','currencyTypes':'貨幣類型','negativeNumberTypes':_0x5b2ecb(0xdf),'dateTypes':_0x5b2ecb(0xe5)},'source':{'insertPivotTable':_0x5b2ecb(0xdb),'sourceData':_0x5b2ecb(0xce),'position':_0x5b2ecb(0xe7),'newSheet':_0x5b2ecb(0x7c),'existingSheet':'現有工作表','intersect':'不能與來源資料重疊'}},'subtotal':{'average':_0x5b2ecb(0x80),'count':'計數','countNums':_0x5b2ecb(0xe1),'max':_0x5b2ecb(0x8c),'min':_0x5b2ecb(0xef),'product':'乘積','stdDev':_0x5b2ecb(0xe2),'stdDevp':_0x5b2ecb(0x9e),'sum':'總和','var':_0x5b2ecb(0x91),'varp':_0x5b2ecb(0x94)},'subTotalText':'小計','grandTotalText':'總計','fieldPanel':_0x5b2ecb(0x72),'configPanel':_0x5b2ecb(0xb4),'config':{'filteringSection':'篩選','allowMultipleFilters':_0x5b2ecb(0x70),'multipleFiltersTitle':_0x5b2ecb(0x9d),'multipleFiltersClearWarning':_0x5b2ecb(0xe3),'dateGroupingMode':_0x5b2ecb(0xd5),'dateGroupingLegacy':'舊版','dateGroupingExcelLike':_0x5b2ecb(0xca),'dateGroupingSwitchTitle':_0x5b2ecb(0x85),'dateGroupingSwitchMessage':_0x5b2ecb(0x86),'totalsSection':_0x5b2ecb(0xda),'showRowSubtotal':_0x5b2ecb(0xac),'rowSubtotalPosition':_0x5b2ecb(0xc2),'rowSubtotalTop':_0x5b2ecb(0xcf),'rowSubtotalBottom':_0x5b2ecb(0x88),'showRowGrandTotal':_0x5b2ecb(0x97),'showColSubtotal':_0x5b2ecb(0xea),'showColGrandTotal':_0x5b2ecb(0x89),'pageSection':_0x5b2ecb(0x6f),'pageWrap':_0x5b2ecb(0xd8),'pageDirection':'排列方向','pageDownThenOver':'先向下再向右','pageOverThenDown':_0x5b2ecb(0x83),'displaySection':'顯示','layout':'報表版面配置','layoutTabular':_0x5b2ecb(0x90),'layoutCompact':'壓縮式','layoutOutline':_0x5b2ecb(0x8f),'repeatRowLabels':_0x5b2ecb(0xb9),'repeatColLabels':'重複欄標籤'},'perform':{'tips':'提示','info':'目標區域已有資料,此操作將覆寫現有資料。是否繼續?','confirm':'確認','cancel':'取消','rowColError':_0x5b2ecb(0xc9)},'msg':{'emptySourceRange':'請選擇資料來源','invalidSize':_0x5b2ecb(0xf0),'mergeCellError':_0x5b2ecb(0xbc),'editCellError':_0x5b2ecb(0x9a),'permissionError':_0x5b2ecb(0xc5)},'averageName':_0x5b2ecb(0x92),'countName':'計數項:','countNumsName':_0x5b2ecb(0xc7),'maxName':_0x5b2ecb(0x8d),'minName':_0x5b2ecb(0xd6),'productName':_0x5b2ecb(0xa3),'stdDevName':_0x5b2ecb(0xa5),'stdDevpName':_0x5b2ecb(0x76),'sumName':_0x5b2ecb(0xb6),'varName':_0x5b2ecb(0x8a),'varpName':'母體變異數項:'}};export{e as default};
|
|
@@ -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;
|
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,4 +1,4 @@
|
|
|
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';
|
|
@@ -75,5 +75,6 @@ export declare const isPrefixName: (baseName: string, name: string, textInfo: Re
|
|
|
75
75
|
export declare const getPrefixName: (baseName: string, textInfo: Record<string, string>, subtotalType: PivotSubtotalTypeEnum) => string;
|
|
76
76
|
export declare function getPivotFilterStatus(filterInfo: Nullable<IPivotTableFilterInfo>, additionalParams: {
|
|
77
77
|
items?: string[];
|
|
78
|
+
conditionFilter?: PivotTableConditionFilter;
|
|
78
79
|
}): PivotFilterStatus;
|
|
79
80
|
export {};
|