@univerjs-pro/sheets-sparkline-ui 0.5.1-nightly.202412231606
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 +31 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/index.css +1 -0
- package/lib/types/commands/operations/open-sparkline-panel.operation.d.ts +6 -0
- package/lib/types/commands/operations/open-sparkline-selector.operation.d.ts +4 -0
- package/lib/types/common/const.d.ts +5 -0
- package/lib/types/controllers/menu.d.ts +13 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/sheet-sparkline-auto-fill.controller.d.ts +11 -0
- package/lib/types/controllers/sheet-sparkline-clipboard.controller.d.ts +9 -0
- package/lib/types/controllers/sheet-sparkline-menu.controller.d.ts +9 -0
- package/lib/types/controllers/sheet-sparkline-permission.controller.d.ts +14 -0
- package/lib/types/controllers/sheet-sparkline-render.controller.d.ts +14 -0
- package/lib/types/controllers/sheet-sparkline-selection.controller.d.ts +21 -0
- package/lib/types/controllers/util.d.ts +7 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +79 -0
- package/lib/types/locale/fa-IR.d.ts +79 -0
- package/lib/types/locale/fr-FR.d.ts +79 -0
- package/lib/types/locale/ru-RU.d.ts +79 -0
- package/lib/types/locale/vi-VN.d.ts +79 -0
- package/lib/types/locale/zh-CN.d.ts +79 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/plugin.d.ts +20 -0
- package/lib/types/type.d.ts +16 -0
- package/lib/types/util.d.ts +4 -0
- package/lib/types/views/SparklineAdvancedSetting.d.ts +7 -0
- package/lib/types/views/SparklineBasicSetting.d.ts +17 -0
- package/lib/types/views/SparklinePanel.d.ts +10 -0
- package/lib/types/views/SparklineSelector.d.ts +3 -0
- package/lib/types/views/collapse/index.d.ts +8 -0
- package/lib/types/views/color-picker-control/index.d.ts +6 -0
- package/lib/types/views/util.d.ts +7 -0
- package/lib/umd/index.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +106 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IAccessor } from '@univerjs/core';
|
2
|
+
import { IMenuButtonItem, IMenuSelectorItem, MenuItemType } from '@univerjs/ui';
|
3
|
+
export declare const SHEET_SPARKLINE_CONTEXT_MENU_ID = "sheet.sparkline.context-menu-id";
|
4
|
+
export declare function SheetSparklineMenuFactory(accessor: IAccessor): IMenuButtonItem;
|
5
|
+
export declare function SheetSparklineContextMenu(accessor: IAccessor): IMenuSelectorItem<string>;
|
6
|
+
export declare function SheetRemoveSparklineContextMenuFactory(accessor: IAccessor): {
|
7
|
+
id: string;
|
8
|
+
type: MenuItemType;
|
9
|
+
title: string;
|
10
|
+
tooltip: string;
|
11
|
+
disabled$: import('rxjs').Observable<boolean>;
|
12
|
+
};
|
13
|
+
export declare function SheetSparklinePanelMenuFactory(accessor: IAccessor): IMenuButtonItem;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SparklineDataSourceModel } from '@univerjs-pro/sheets-sparkline';
|
2
|
+
import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
3
|
+
import { IAutoFillService } from '@univerjs/sheets-ui';
|
4
|
+
export declare class SheetSparklineAutoFillController extends Disposable {
|
5
|
+
private _injector;
|
6
|
+
private _univerInstanceService;
|
7
|
+
private _autoFillService;
|
8
|
+
private _sparklineDataSourceModel;
|
9
|
+
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _autoFillService: IAutoFillService, _sparklineDataSourceModel: SparklineDataSourceModel);
|
10
|
+
private _initAutoFillWithSparkline;
|
11
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { SparklineDataSourceModel } from '@univerjs-pro/sheets-sparkline';
|
2
|
+
import { Disposable } from '@univerjs/core';
|
3
|
+
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
4
|
+
export declare class SheetSparklineController extends Disposable {
|
5
|
+
private _sheetClipboardService;
|
6
|
+
private _sparklineDataSourceModel;
|
7
|
+
constructor(_sheetClipboardService: ISheetClipboardService, _sparklineDataSourceModel: SparklineDataSourceModel);
|
8
|
+
private _initClipboardWithSparkline;
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
2
|
+
import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
|
3
|
+
export declare class SheetsSparklineMenuController extends Disposable {
|
4
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
5
|
+
private readonly _componentManager;
|
6
|
+
constructor(_menuManagerService: IMenuManagerService, _componentManager: ComponentManager);
|
7
|
+
private _initComponents;
|
8
|
+
private _initMenu;
|
9
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
2
|
+
import { SheetsSelectionsService } from '@univerjs/sheets';
|
3
|
+
import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
4
|
+
import { SparklineDataSourceModel } from '@univerjs-pro/sheets-sparkline';
|
5
|
+
export declare class SheetSparklinePermissionController extends Disposable {
|
6
|
+
private _commandService;
|
7
|
+
private _localeService;
|
8
|
+
private _sheetPermissionCheckController;
|
9
|
+
private _sheetsSelectionsService;
|
10
|
+
private _univerInstanceService;
|
11
|
+
private _sparklineDataSourceModel;
|
12
|
+
constructor(_commandService: ICommandService, _localeService: LocaleService, _sheetPermissionCheckController: SheetPermissionInterceptorBaseController, _sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sparklineDataSourceModel: SparklineDataSourceModel);
|
13
|
+
private _initPermissionWithSparkline;
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
2
|
+
import { SparklineDataSourceModel } from '@univerjs-pro/sheets-sparkline';
|
3
|
+
import { Disposable } from '@univerjs/core';
|
4
|
+
import { RangeProtectionCache } from '@univerjs/sheets';
|
5
|
+
import { SheetGraphicsRenderController } from '@univerjs/sheets-graphics';
|
6
|
+
export declare class SheetSparklineRenderController extends Disposable implements IRenderModule {
|
7
|
+
private readonly _context;
|
8
|
+
private _sparklineDataSourceModel;
|
9
|
+
private _sheetGraphicsRenderController;
|
10
|
+
private _rangeProtectionCache;
|
11
|
+
constructor(_context: IRenderContext, _sparklineDataSourceModel: SparklineDataSourceModel, _sheetGraphicsRenderController: SheetGraphicsRenderController, _rangeProtectionCache: RangeProtectionCache);
|
12
|
+
private _registerRenderer;
|
13
|
+
private _initSkeleton;
|
14
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { IObjectMatrixPrimitiveType, IRange, Worksheet, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { SparklineDataSourceModel } from '@univerjs-pro/sheets-sparkline';
|
3
|
+
import { RangeProtectionCache, SheetsSelectionsService } from '@univerjs/sheets';
|
4
|
+
import { IMarkSelectionService } from '@univerjs/sheets-ui';
|
5
|
+
import { IDialogService, ISidebarService } from '@univerjs/ui';
|
6
|
+
export declare class SheetSparklineSelectionController extends Disposable {
|
7
|
+
private _sheetSelectionService;
|
8
|
+
private _univerInstanceService;
|
9
|
+
private _sparklineDataSourceModel;
|
10
|
+
private _sidebarService;
|
11
|
+
private _markSelectionService;
|
12
|
+
private _rangeProtectionCache;
|
13
|
+
private _commandService;
|
14
|
+
private _dialogService;
|
15
|
+
private _targetIds;
|
16
|
+
private _sourceIds;
|
17
|
+
constructor(_sheetSelectionService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sparklineDataSourceModel: SparklineDataSourceModel, _sidebarService: ISidebarService, _markSelectionService: IMarkSelectionService, _rangeProtectionCache: RangeProtectionCache, _commandService: ICommandService, _dialogService: IDialogService);
|
18
|
+
private _initWorksheetChange;
|
19
|
+
private _initSelectionMove;
|
20
|
+
}
|
21
|
+
export declare function findRanges(matrix: IObjectMatrixPrimitiveType<IRange>, worksheet: Worksheet): IRange[];
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ISparklineAnchorData, ISparklineGroupConfig, ISparklineGroupExtra } from '@univerjs-pro/sheets-sparkline';
|
2
|
+
import { ISelectionCellWithMergeInfo } from '@univerjs/core';
|
3
|
+
import { UniverRenderingContext } from '@univerjs/engine-render';
|
4
|
+
export declare const renderLineSparkline: (ctx: UniverRenderingContext, coordInfo: ISelectionCellWithMergeInfo, config: ISparklineGroupConfig, anchorCell: ISparklineAnchorData, extra?: ISparklineGroupExtra) => void;
|
5
|
+
export declare const renderBarChart: (ctx: UniverRenderingContext, coordInfo: ISelectionCellWithMergeInfo, config: ISparklineGroupConfig, anchorCell: ISparklineAnchorData, extra?: ISparklineGroupExtra) => void;
|
6
|
+
export declare const renderProfitAndLossChart: (ctx: UniverRenderingContext, coordInfo: ISelectionCellWithMergeInfo, config: ISparklineGroupConfig, anchorCell: ISparklineAnchorData, extra?: ISparklineGroupExtra) => void;
|
7
|
+
export declare const renderPieSparkline: (ctx: UniverRenderingContext, coordInfo: ISelectionCellWithMergeInfo, config: ISparklineGroupConfig, anchorCell: ISparklineAnchorData, extra?: ISparklineGroupExtra) => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { UniverSheetSparklineUIPlugin } from './plugin';
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets.sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets.sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets.sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets.sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets.sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
'sheets-sparkline': {
|
3
|
+
title: string;
|
4
|
+
remove: string;
|
5
|
+
edit: string;
|
6
|
+
panel: {
|
7
|
+
title: string;
|
8
|
+
basic: string;
|
9
|
+
advanced: string;
|
10
|
+
sourceAndPosition: string;
|
11
|
+
type: string;
|
12
|
+
line: string;
|
13
|
+
bar: string;
|
14
|
+
pie: string;
|
15
|
+
profitAndLoss: string;
|
16
|
+
theme: string;
|
17
|
+
standard: string;
|
18
|
+
custom: string;
|
19
|
+
specialty: string;
|
20
|
+
distinctive: string;
|
21
|
+
soft: string;
|
22
|
+
fresh: string;
|
23
|
+
adjustStyle: string;
|
24
|
+
sparklineColor: string;
|
25
|
+
lineWidth: string;
|
26
|
+
gradient: string;
|
27
|
+
radius: string;
|
28
|
+
marker: string;
|
29
|
+
highPoint: string;
|
30
|
+
lowPoint: string;
|
31
|
+
firstPoint: string;
|
32
|
+
lastPoint: string;
|
33
|
+
negativePoint: string;
|
34
|
+
markersPoint: string;
|
35
|
+
manager: string;
|
36
|
+
removeItem: string;
|
37
|
+
removeGroup: string;
|
38
|
+
composeManager: string;
|
39
|
+
compose: string;
|
40
|
+
unCompose: string;
|
41
|
+
horizontal: string;
|
42
|
+
showZeroAxis: string;
|
43
|
+
axisColor: string;
|
44
|
+
reverse: string;
|
45
|
+
vertical: string;
|
46
|
+
min: string;
|
47
|
+
itemMin: string;
|
48
|
+
groupMin: string;
|
49
|
+
customMin: string;
|
50
|
+
max: string;
|
51
|
+
itemMax: string;
|
52
|
+
groupMax: string;
|
53
|
+
customMax: string;
|
54
|
+
moreSetting: string;
|
55
|
+
showHidden: string;
|
56
|
+
showEmptyAs: string;
|
57
|
+
showNonNumAs: string;
|
58
|
+
spacing: string;
|
59
|
+
zeroValue: string;
|
60
|
+
connectWithLine: string;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
selector: {
|
64
|
+
title: string;
|
65
|
+
changeType: string;
|
66
|
+
sparkline: string;
|
67
|
+
sparklineGroup: string;
|
68
|
+
setSource: string;
|
69
|
+
setTarget: string;
|
70
|
+
confirm: string;
|
71
|
+
cancel: string;
|
72
|
+
targetError: string;
|
73
|
+
singleSourceError: string;
|
74
|
+
multSourceError: string;
|
75
|
+
resetSourceError: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
export default locale;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { MenuConfig } from '@univerjs/ui';
|
2
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
3
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
4
|
+
interface ISheetsSparklineConfig {
|
5
|
+
menu?: MenuConfig;
|
6
|
+
}
|
7
|
+
export declare class UniverSheetSparklineUIPlugin extends Plugin {
|
8
|
+
private readonly _config;
|
9
|
+
private readonly _configService;
|
10
|
+
protected _injector: Injector;
|
11
|
+
private readonly _commandService;
|
12
|
+
private readonly _renderManagerService;
|
13
|
+
static pluginName: string;
|
14
|
+
static type: UniverInstanceType;
|
15
|
+
constructor(_config: Partial<ISheetsSparklineConfig> | undefined, _configService: IConfigService, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService);
|
16
|
+
onStarting(): void;
|
17
|
+
onRendered(): void;
|
18
|
+
private _initRegisterCommand;
|
19
|
+
}
|
20
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRange, ISelectionCell } from '@univerjs/core';
|
2
|
+
export interface ISparklineSelectorReturns {
|
3
|
+
sourceRanges: IRange[];
|
4
|
+
targetRanges: IRange[];
|
5
|
+
}
|
6
|
+
export interface ISparklineResetCtx {
|
7
|
+
groupId: string;
|
8
|
+
primary: ISelectionCell;
|
9
|
+
}
|
10
|
+
export interface ISparklineSelectorProps {
|
11
|
+
sourceRanges: IRange[];
|
12
|
+
targetRanges?: IRange[];
|
13
|
+
onConfirm: (info: ISparklineSelectorReturns) => void;
|
14
|
+
onCancel: () => void;
|
15
|
+
resetCtx?: ISparklineResetCtx;
|
16
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IRange, ObjectMatrix } from '@univerjs/core';
|
2
|
+
export declare function isTargetRangesValid(resetType: 'item' | 'group' | 'none', sourceRanges: IRange[], targetRanges?: IRange[]): boolean;
|
3
|
+
export declare function countCells(ranges: IRange[]): number;
|
4
|
+
export declare function getSparklinePlacement(sourceRange: IRange, targetRanges: IRange[]): ObjectMatrix<string>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ISparklinePanelCtx } from './SparklinePanel';
|
2
|
+
import { ISparklineGroup } from '@univerjs-pro/sheets-sparkline';
|
3
|
+
import { default as React } from 'react';
|
4
|
+
export declare const SparklineAdvancedSetting: ({ config, ctx }: {
|
5
|
+
config: ISparklineGroup;
|
6
|
+
ctx: ISparklinePanelCtx;
|
7
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ISparklineGroup, ISparklinePointConfig, ISparklinePoints, SparklineTypeEnum } from '@univerjs-pro/sheets-sparkline';
|
2
|
+
import { ISparklinePanelCtx } from './SparklinePanel';
|
3
|
+
import { default as React } from 'react';
|
4
|
+
interface ISparklineMarkItemProps {
|
5
|
+
onCheckboxChange: (v: boolean, type: keyof ISparklinePoints) => void;
|
6
|
+
onColorChange: (v: string, type: keyof ISparklinePoints) => void;
|
7
|
+
type: keyof ISparklinePoints;
|
8
|
+
text: string;
|
9
|
+
config?: ISparklinePointConfig;
|
10
|
+
chartType: SparklineTypeEnum;
|
11
|
+
}
|
12
|
+
export declare const SparklineMarkItem: (props: ISparklineMarkItemProps) => React.JSX.Element;
|
13
|
+
export declare const SparklineBasicSetting: ({ config, ctx }: {
|
14
|
+
config: ISparklineGroup;
|
15
|
+
ctx: ISparklinePanelCtx;
|
16
|
+
}) => React.JSX.Element;
|
17
|
+
export {};
|