@univerjs-pro/sheets-pivot-ui 1.2.0 → 1.3.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 +16 -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/commands/operations/set-pivot-date-group.operation.d.ts +2 -1
- package/lib/types/commands/operations/set-pivot-excel-date-group.operation.d.ts +9 -0
- package/lib/types/commands/operations/set-pivot-manual-groups.operation.d.ts +22 -0
- package/lib/types/commands/operations/set-pivot-number-group.operation.d.ts +14 -0
- package/lib/types/commands/operations/set-pivot-show-data-as.operation.d.ts +2 -1
- package/lib/types/const.d.ts +6 -0
- package/lib/types/locale/en-US.d.ts +31 -0
- package/lib/types/type.d.ts +3 -0
- package/lib/types/views/components/PivotExcelDateGroupDialog.d.ts +10 -0
- package/lib/types/views/components/PivotFilterPanel.d.ts +1 -1
- package/lib/types/views/components/PivotManualGroupDialog.d.ts +6 -0
- package/lib/types/views/components/PivotNumberGroupDialog.d.ts +10 -0
- package/lib/types/views/menu.d.ts +11 -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 +15 -15
package/lib/types/const.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ export declare const UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG = "UNIVER_SHEET_PIVO
|
|
|
10
10
|
export declare const UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG_ID = "UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG_ID";
|
|
11
11
|
export declare const UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG = "UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG";
|
|
12
12
|
export declare const UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG_ID = "UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG_ID";
|
|
13
|
+
export declare const UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG = "UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG";
|
|
14
|
+
export declare const UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG_ID = "UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG_ID";
|
|
15
|
+
export declare const UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG = "UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG";
|
|
16
|
+
export declare const UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG_ID = "UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG_ID";
|
|
17
|
+
export declare const UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG = "UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG";
|
|
18
|
+
export declare const UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG_ID = "UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG_ID";
|
|
13
19
|
export declare const SHEET_PIVOT_TABLE_ICON = "PivotTableIcon";
|
|
14
20
|
export declare const PIVOT_TABLE_RANGE_SELECTOR_COMPONENT = "univer.sheet.pivot-table-range-selector";
|
|
15
21
|
export declare const UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL = "UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL";
|
|
@@ -88,8 +88,27 @@ declare const locale: {
|
|
|
88
88
|
moveToRow: string;
|
|
89
89
|
moveToValue: string;
|
|
90
90
|
};
|
|
91
|
+
numberGroup: {
|
|
92
|
+
title: string;
|
|
93
|
+
autoStart: string;
|
|
94
|
+
autoEnd: string;
|
|
95
|
+
start: string;
|
|
96
|
+
end: string;
|
|
97
|
+
interval: string;
|
|
98
|
+
};
|
|
99
|
+
manualGroup: {
|
|
100
|
+
groupTitle: string;
|
|
101
|
+
renameTitle: string;
|
|
102
|
+
ungroupTitle: string;
|
|
103
|
+
name: string;
|
|
104
|
+
defaultName: string;
|
|
105
|
+
invalidSelection: string;
|
|
106
|
+
ambiguousMember: string;
|
|
107
|
+
};
|
|
91
108
|
dateGroup: {
|
|
92
109
|
title: string;
|
|
110
|
+
excelLikeTitle: string;
|
|
111
|
+
groupBy: string;
|
|
93
112
|
year: string;
|
|
94
113
|
yearQuarter: string;
|
|
95
114
|
quarter: string;
|
|
@@ -100,6 +119,13 @@ declare const locale: {
|
|
|
100
119
|
date: string;
|
|
101
120
|
hour: string;
|
|
102
121
|
minute: string;
|
|
122
|
+
day: string;
|
|
123
|
+
second: string;
|
|
124
|
+
start: string;
|
|
125
|
+
end: string;
|
|
126
|
+
autoStart: string;
|
|
127
|
+
autoEnd: string;
|
|
128
|
+
daysInterval: string;
|
|
103
129
|
hourMinute: string;
|
|
104
130
|
};
|
|
105
131
|
dialog: {
|
|
@@ -165,6 +191,11 @@ declare const locale: {
|
|
|
165
191
|
fieldPanel: string;
|
|
166
192
|
configPanel: string;
|
|
167
193
|
config: {
|
|
194
|
+
dateGroupingMode: string;
|
|
195
|
+
dateGroupingLegacy: string;
|
|
196
|
+
dateGroupingExcelLike: string;
|
|
197
|
+
dateGroupingSwitchTitle: string;
|
|
198
|
+
dateGroupingSwitchMessage: string;
|
|
168
199
|
totalsSection: string;
|
|
169
200
|
showRowSubtotal: string;
|
|
170
201
|
rowSubtotalPosition: string;
|
package/lib/types/type.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ export interface IFilterItemInfo {
|
|
|
50
50
|
pivotTableId: string;
|
|
51
51
|
items: string[];
|
|
52
52
|
itemTypes: PivotDataFieldDataTypeEnum[];
|
|
53
|
+
itemLabels?: Record<string, string>;
|
|
54
|
+
checkedItems?: string[];
|
|
55
|
+
partialItems?: string[];
|
|
53
56
|
format?: string;
|
|
54
57
|
filterInfo: IPivotTableFilterInfo | undefined;
|
|
55
58
|
sortInfo: IPivotTableSortInfo | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IExcelDateGrouping } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { DateSystem } from '@univerjs/core';
|
|
3
|
+
export interface IPivotExcelDateGroupDialogProps {
|
|
4
|
+
targetFieldName: string;
|
|
5
|
+
dateSystem: DateSystem;
|
|
6
|
+
grouping?: IExcelDateGrouping;
|
|
7
|
+
onConfirm: (grouping: IExcelDateGrouping) => Promise<void>;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PivotExcelDateGroupDialog({ targetFieldName, dateSystem, grouping, onConfirm, onCancel }: IPivotExcelDateGroupDialogProps): import("react").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface IPivotFilterPanelProps {
|
|
|
6
6
|
filterItemInfo: IFilterItemInfo;
|
|
7
7
|
dialogId?: string;
|
|
8
8
|
onClose?: () => void;
|
|
9
|
-
onSetFilter?: (items: string[], isAll: boolean) => Promise<boolean>;
|
|
9
|
+
onSetFilter?: (items: string[], isAll: boolean, partialItems?: string[]) => Promise<boolean>;
|
|
10
10
|
onSetSort?: (info: IPivotTableSortInfo) => Promise<boolean>;
|
|
11
11
|
}
|
|
12
12
|
export declare function PivotFilterPanel(props: IPivotFilterPanelProps): import("react").JSX.Element | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface IPivotManualGroupDialogProps {
|
|
2
|
+
name: string;
|
|
3
|
+
onConfirm: (name: string) => Promise<void>;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function PivotManualGroupDialog({ name, onConfirm, onCancel }: IPivotManualGroupDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INumberGrouping } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
|
+
export interface IPivotNumberGroupDialogProps {
|
|
4
|
+
targetFieldName: string;
|
|
5
|
+
grouping?: INumberGrouping;
|
|
6
|
+
defaults$: Observable<INumberGrouping | undefined>;
|
|
7
|
+
onConfirm: (grouping: INumberGrouping) => Promise<void>;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PivotNumberGroupDialog({ targetFieldName, grouping, defaults$, onConfirm, onCancel, }: IPivotNumberGroupDialogProps): import("react").JSX.Element;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import type { PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { IAccessor } from '@univerjs/core';
|
|
3
3
|
import type { IMenuItem } from '@univerjs/ui';
|
|
4
|
+
import { PivotShowAsTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
4
5
|
import type { IPivotShowDataAsRule } from '../commands/operations/set-pivot-show-data-as.operation';
|
|
5
6
|
import type { LocaleKey } from '../locale/types';
|
|
6
|
-
import { PivotShowAsTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
7
7
|
export declare const PIVOT_DATE_GROUP_MENU_ID = "sheet.pivot.context-menu.date-group";
|
|
8
8
|
export declare const PIVOT_DATE_GROUP_MENU_ITEM_PREFIX = "sheet.pivot.context-menu.date-group.";
|
|
9
|
+
export declare const PIVOT_EXCEL_DATE_GROUP_MENU_ID = "sheet.pivot.context-menu.excel-date-group";
|
|
10
|
+
export declare const PIVOT_NUMBER_GROUP_MENU_ID = "sheet.pivot.context-menu.number-group";
|
|
11
|
+
export declare const PIVOT_MANUAL_GROUP_MENU_ID = "sheet.pivot.context-menu.manual-group";
|
|
12
|
+
export declare const PIVOT_MANUAL_RENAME_MENU_ID = "sheet.pivot.context-menu.manual-rename";
|
|
13
|
+
export declare const PIVOT_MANUAL_UNGROUP_MENU_ID = "sheet.pivot.context-menu.manual-ungroup";
|
|
9
14
|
export declare const PIVOT_SHOW_DATA_AS_MENU_ID = "sheet.pivot.context-menu.show-data-as";
|
|
10
15
|
export declare const PIVOT_SHOW_DATA_AS_MENU_ITEM_PREFIX = "sheet.pivot.context-menu.show-data-as.";
|
|
11
16
|
export declare const PIVOT_VALUE_FILTER_MENU_ID = "sheet.pivot.context-menu.value-filter";
|
|
12
17
|
export declare function sheetsPivotTableToolbarMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
13
18
|
export declare function sheetsPivotDateGroupContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
19
|
+
export declare function sheetsPivotExcelDateGroupContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
20
|
+
export declare function sheetsPivotNumberGroupContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
21
|
+
export declare function sheetsPivotManualGroupContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
22
|
+
export declare function sheetsPivotManualRenameContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
23
|
+
export declare function sheetsPivotManualUngroupContextMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
14
24
|
export declare function sheetsPivotDateGroupItemMenuFactory(dateType: PivotDateGroupFieldDateTypeEnum): (accessor: IAccessor) => IMenuItem<LocaleKey>;
|
|
15
25
|
export declare function getPivotDateGroupMenuItemId(dateType: PivotDateGroupFieldDateTypeEnum): string;
|
|
16
26
|
export declare const PIVOT_DATE_GROUP_MENU_FACTORIES: {
|