@univerjs-pro/bases-dashboard-ui 1.0.0-rc.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 +13 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/cs-CZ.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/nl-NL.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/th-TH.js +1 -0
- package/lib/cjs/locale/tr-TR.js +1 -0
- package/lib/cjs/locale/uk-UA.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-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/cs-CZ.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.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/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/nl-NL.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/th-TH.js +1 -0
- package/lib/es/locale/tr-TR.js +1 -0
- package/lib/es/locale/uk-UA.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-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/cs-CZ.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/nl-NL.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/th-TH.js +1 -0
- package/lib/locale/tr-TR.js +1 -0
- package/lib/locale/uk-UA.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/components/BaseDashboardView.d.ts +2 -0
- package/lib/types/components/BasePivotChart.d.ts +6 -0
- package/lib/types/components/BasePivotChartEditor.d.ts +78 -0
- package/lib/types/components/BasePivotInspector.d.ts +10 -0
- package/lib/types/components/BasePivotPanel.d.ts +11 -0
- package/lib/types/components/BasePivotTable.d.ts +21 -0
- package/lib/types/components/BasePivotView.d.ts +2 -0
- package/lib/types/components/DashboardChartInspector.d.ts +11 -0
- package/lib/types/components/DashboardFormulaShapeInspector.d.ts +13 -0
- package/lib/types/components/DashboardFormulaShapeWidget.d.ts +7 -0
- package/lib/types/components/DashboardGrid.d.ts +15 -0
- package/lib/types/components/DashboardInspector.d.ts +20 -0
- package/lib/types/components/DashboardPivotChartWidget.d.ts +10 -0
- package/lib/types/components/DashboardTableFilter.d.ts +13 -0
- package/lib/types/components/DashboardTextWidget.d.ts +5 -0
- package/lib/types/components/DashboardWidgetActions.d.ts +6 -0
- package/lib/types/config/config.d.ts +5 -0
- package/lib/types/controllers/base-dashboard-ui.controller.d.ts +6 -0
- package/lib/types/hooks/use-base-targets-editable.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/cs-CZ.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +240 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/nl-NL.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/th-TH.d.ts +3 -0
- package/lib/types/locale/tr-TR.d.ts +3 -0
- package/lib/types/locale/types.d.ts +7 -0
- package/lib/types/locale/uk-UA.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/plugin.d.ts +14 -0
- package/lib/types/services/base-dashboard-chart-render.service.d.ts +16 -0
- package/lib/types/services/base-dashboard-dom-chart-host.d.ts +16 -0
- package/lib/types/services/base-pivot-chart-ui.service.d.ts +7 -0
- package/lib/types/utils/dashboard-formula-shape.d.ts +14 -0
- package/lib/types/utils/dashboard-grid.d.ts +8 -0
- package/lib/types/utils/dashboard-image.d.ts +3 -0
- package/lib/types/utils/dashboard-text.d.ts +11 -0
- package/lib/umd/index.js +1 -0
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/cs-CZ.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/nl-NL.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/th-TH.js +1 -0
- package/lib/umd/locale/tr-TR.js +1 -0
- package/lib/umd/locale/uk-UA.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-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
declare const locale: {
|
|
2
|
+
'bases-dashboard-ui': {
|
|
3
|
+
chart: {
|
|
4
|
+
chartTypes: {
|
|
5
|
+
line: string;
|
|
6
|
+
column: string;
|
|
7
|
+
columnStacked: string;
|
|
8
|
+
columnPercentStacked: string;
|
|
9
|
+
bar: string;
|
|
10
|
+
barStacked: string;
|
|
11
|
+
barPercentStacked: string;
|
|
12
|
+
pie: string;
|
|
13
|
+
donut: string;
|
|
14
|
+
pieOfPie: string;
|
|
15
|
+
barOfPie: string;
|
|
16
|
+
area: string;
|
|
17
|
+
areaStacked: string;
|
|
18
|
+
areaPercentStacked: string;
|
|
19
|
+
radar: string;
|
|
20
|
+
scatter: string;
|
|
21
|
+
combination: string;
|
|
22
|
+
wordCloud: string;
|
|
23
|
+
funnel: string;
|
|
24
|
+
bubble: string;
|
|
25
|
+
relation: string;
|
|
26
|
+
waterfall: string;
|
|
27
|
+
pareto: string;
|
|
28
|
+
sankey: string;
|
|
29
|
+
heatmap: string;
|
|
30
|
+
boxplot: string;
|
|
31
|
+
candlestick: string;
|
|
32
|
+
histogram: string;
|
|
33
|
+
treemap: string;
|
|
34
|
+
sunburst: string;
|
|
35
|
+
gauge: string;
|
|
36
|
+
chord: string;
|
|
37
|
+
};
|
|
38
|
+
common: {
|
|
39
|
+
editChart: string;
|
|
40
|
+
setup: string;
|
|
41
|
+
customize: string;
|
|
42
|
+
switchRowColumn: string;
|
|
43
|
+
chartStyle: string;
|
|
44
|
+
chartAndAxisTitles: string;
|
|
45
|
+
series: string;
|
|
46
|
+
heatmap: string;
|
|
47
|
+
legend: string;
|
|
48
|
+
horizontalAxis: string;
|
|
49
|
+
verticalAxis: string;
|
|
50
|
+
rightVerticalAxis: string;
|
|
51
|
+
trendline: string;
|
|
52
|
+
};
|
|
53
|
+
section: {
|
|
54
|
+
waterfall: string;
|
|
55
|
+
paretoBar: string;
|
|
56
|
+
paretoLine: string;
|
|
57
|
+
pie: string;
|
|
58
|
+
wordCloud: string;
|
|
59
|
+
radar: string;
|
|
60
|
+
funnel: string;
|
|
61
|
+
relation: string;
|
|
62
|
+
lineAndArea: string;
|
|
63
|
+
gridlinesAndTicks: string;
|
|
64
|
+
indicatorLine: string;
|
|
65
|
+
candlestick: string;
|
|
66
|
+
histogram: string;
|
|
67
|
+
treemap: string;
|
|
68
|
+
sunburst: string;
|
|
69
|
+
gauge: string;
|
|
70
|
+
chord: string;
|
|
71
|
+
};
|
|
72
|
+
waterfall: {
|
|
73
|
+
subtotal: string;
|
|
74
|
+
positive: string;
|
|
75
|
+
negative: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
pivot: {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
defaultName: string;
|
|
82
|
+
chartConfiguration: string;
|
|
83
|
+
pivotConfiguration: string;
|
|
84
|
+
chartType: string;
|
|
85
|
+
display: string;
|
|
86
|
+
chartAndTable: string;
|
|
87
|
+
chartOnly: string;
|
|
88
|
+
tableOnly: string;
|
|
89
|
+
orientation: string;
|
|
90
|
+
seriesByColumn: string;
|
|
91
|
+
seriesByRow: string;
|
|
92
|
+
fieldHint: string;
|
|
93
|
+
unused: string;
|
|
94
|
+
rows: string;
|
|
95
|
+
columns: string;
|
|
96
|
+
values: string;
|
|
97
|
+
filters: string;
|
|
98
|
+
dataSource: string;
|
|
99
|
+
fields: string;
|
|
100
|
+
options: string;
|
|
101
|
+
sourceFields: string;
|
|
102
|
+
searchFields: string;
|
|
103
|
+
addToRow: string;
|
|
104
|
+
addToColumn: string;
|
|
105
|
+
addToValue: string;
|
|
106
|
+
addToFilter: string;
|
|
107
|
+
dropFieldsHere: string;
|
|
108
|
+
removeField: string;
|
|
109
|
+
filterField: string;
|
|
110
|
+
fieldSettings: string;
|
|
111
|
+
ascending: string;
|
|
112
|
+
descending: string;
|
|
113
|
+
selectAll: string;
|
|
114
|
+
blank: string;
|
|
115
|
+
clearFilter: string;
|
|
116
|
+
grandTotal: string;
|
|
117
|
+
cancel: string;
|
|
118
|
+
confirm: string;
|
|
119
|
+
displayName: string;
|
|
120
|
+
summarizeBy: string;
|
|
121
|
+
sum: string;
|
|
122
|
+
count: string;
|
|
123
|
+
countNumbers: string;
|
|
124
|
+
average: string;
|
|
125
|
+
max: string;
|
|
126
|
+
min: string;
|
|
127
|
+
product: string;
|
|
128
|
+
stdDev: string;
|
|
129
|
+
stdDevPopulation: string;
|
|
130
|
+
variance: string;
|
|
131
|
+
variancePopulation: string;
|
|
132
|
+
numberFormat: string;
|
|
133
|
+
layout: string;
|
|
134
|
+
layoutTabular: string;
|
|
135
|
+
layoutCompact: string;
|
|
136
|
+
layoutOutline: string;
|
|
137
|
+
repeatRowLabels: string;
|
|
138
|
+
repeatColumnLabels: string;
|
|
139
|
+
showRowSubtotal: string;
|
|
140
|
+
showRowGrandTotal: string;
|
|
141
|
+
showColumnSubtotal: string;
|
|
142
|
+
showColumnGrandTotal: string;
|
|
143
|
+
rowSubtotalPosition: string;
|
|
144
|
+
top: string;
|
|
145
|
+
bottom: string;
|
|
146
|
+
valuePosition: string;
|
|
147
|
+
pageWrap: string;
|
|
148
|
+
pageDirection: string;
|
|
149
|
+
downThenAcross: string;
|
|
150
|
+
acrossThenDown: string;
|
|
151
|
+
calculating: string;
|
|
152
|
+
calculationFailed: string;
|
|
153
|
+
};
|
|
154
|
+
dashboard: {
|
|
155
|
+
add: string;
|
|
156
|
+
configure: string;
|
|
157
|
+
delete: string;
|
|
158
|
+
new: string;
|
|
159
|
+
rename: string;
|
|
160
|
+
search: string;
|
|
161
|
+
section: string;
|
|
162
|
+
defaultName: string;
|
|
163
|
+
addWidget: string;
|
|
164
|
+
pivotChart: string;
|
|
165
|
+
tableFilter: string;
|
|
166
|
+
text: string;
|
|
167
|
+
image: string;
|
|
168
|
+
formulaShape: string;
|
|
169
|
+
widgetActions: string;
|
|
170
|
+
editWidget: string;
|
|
171
|
+
deleteWidget: string;
|
|
172
|
+
resizeWidget: string;
|
|
173
|
+
undo: string;
|
|
174
|
+
redo: string;
|
|
175
|
+
fullScreen: string;
|
|
176
|
+
};
|
|
177
|
+
dashboardInspector: {
|
|
178
|
+
alignment: string;
|
|
179
|
+
autoFit: string;
|
|
180
|
+
backgroundColor: string;
|
|
181
|
+
backgroundImage: string;
|
|
182
|
+
center: string;
|
|
183
|
+
close: string;
|
|
184
|
+
compact: string;
|
|
185
|
+
contain: string;
|
|
186
|
+
cover: string;
|
|
187
|
+
currency: string;
|
|
188
|
+
currencyCode: string;
|
|
189
|
+
custom: string;
|
|
190
|
+
data: string;
|
|
191
|
+
dataSource: string;
|
|
192
|
+
decimalPlaces: string;
|
|
193
|
+
description: string;
|
|
194
|
+
dragWidget: string;
|
|
195
|
+
editData: string;
|
|
196
|
+
editFormula: string;
|
|
197
|
+
formula: string;
|
|
198
|
+
general: string;
|
|
199
|
+
grouped: string;
|
|
200
|
+
left: string;
|
|
201
|
+
loading: string;
|
|
202
|
+
number: string;
|
|
203
|
+
numberFormat: string;
|
|
204
|
+
percent: string;
|
|
205
|
+
removeImage: string;
|
|
206
|
+
replaceImage: string;
|
|
207
|
+
repeat: string;
|
|
208
|
+
originalSize: string;
|
|
209
|
+
reset: string;
|
|
210
|
+
right: string;
|
|
211
|
+
sourceUnavailable: string;
|
|
212
|
+
style: string;
|
|
213
|
+
textColor: string;
|
|
214
|
+
textSize: string;
|
|
215
|
+
uploadImage: string;
|
|
216
|
+
delete: string;
|
|
217
|
+
newCondition: string;
|
|
218
|
+
clear: string;
|
|
219
|
+
checked: string;
|
|
220
|
+
unchecked: string;
|
|
221
|
+
selectOption: string;
|
|
222
|
+
enterValue: string;
|
|
223
|
+
};
|
|
224
|
+
operators: {
|
|
225
|
+
is: string;
|
|
226
|
+
isNot: string;
|
|
227
|
+
contains: string;
|
|
228
|
+
notContains: string;
|
|
229
|
+
isEmpty: string;
|
|
230
|
+
isNotEmpty: string;
|
|
231
|
+
greaterThan: string;
|
|
232
|
+
greaterThanOrEqual: string;
|
|
233
|
+
lessThan: string;
|
|
234
|
+
lessThanOrEqual: string;
|
|
235
|
+
before: string;
|
|
236
|
+
after: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export default locale;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LocaleLeafKeys } from '@univerjs/core';
|
|
2
|
+
import type enUS from './en-US';
|
|
3
|
+
export type LocaleKey = LocaleLeafKeys<typeof enUS>;
|
|
4
|
+
type LocaleKeySuffix<TKey, TPrefix extends string> = TKey extends `${TPrefix}${infer TSuffix}` ? TSuffix : never;
|
|
5
|
+
export type ChartLocaleKeySuffix = LocaleKeySuffix<LocaleKey, 'bases-dashboard-ui.chart.'>;
|
|
6
|
+
export type DashboardInspectorLocaleKeySuffix = LocaleKeySuffix<LocaleKey, 'bases-dashboard-ui.dashboardInspector.'>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IUniverBaseDashboardUIConfig } from './config/config';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
export declare class UniverBaseDashboardUIPlugin extends Plugin {
|
|
4
|
+
private readonly _config;
|
|
5
|
+
protected readonly _injector: Injector;
|
|
6
|
+
private readonly _configService;
|
|
7
|
+
static type: UniverInstanceType;
|
|
8
|
+
static pluginName: string;
|
|
9
|
+
static packageName: string;
|
|
10
|
+
static version: string;
|
|
11
|
+
constructor(_config: IUniverBaseDashboardUIConfig | undefined, _injector: Injector, _configService: IConfigService);
|
|
12
|
+
onStarting(): void;
|
|
13
|
+
onReady(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChartRuntimeStyle, IChartHostStyle, IChartModelBinding, IChartRenderInstance } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartThemeService, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
3
|
+
import { LocaleService } from '@univerjs/core';
|
|
4
|
+
export declare class BaseDashboardChartRenderService {
|
|
5
|
+
private readonly _localeService;
|
|
6
|
+
private readonly _chartThemeService;
|
|
7
|
+
private readonly _renderModelManager;
|
|
8
|
+
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, _renderModelManager: IChartRenderModelManagerService);
|
|
9
|
+
createDomChartInstance(): IChartRenderInstance;
|
|
10
|
+
createRenderInput(runtime: IChartModelBinding): {
|
|
11
|
+
config: NonNullable<IChartModelBinding['model']['config']>;
|
|
12
|
+
style: ChartRuntimeStyle;
|
|
13
|
+
};
|
|
14
|
+
private _createContext;
|
|
15
|
+
}
|
|
16
|
+
export declare function applyDashboardChartHostStyle(host: HTMLElement, style: IChartHostStyle): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IChartHostRect, IChartHostStyle, IDomChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartRenderMode } from '@univerjs-pro/engine-chart';
|
|
3
|
+
import { Disposable } from '@univerjs/core';
|
|
4
|
+
export declare class BaseDashboardDomChartHost extends Disposable implements IDomChartHost {
|
|
5
|
+
readonly chartId: string;
|
|
6
|
+
private readonly _element;
|
|
7
|
+
readonly mode = ChartRenderMode.Dom;
|
|
8
|
+
constructor(chartId: string, _element: HTMLElement);
|
|
9
|
+
getRect(): IChartHostRect;
|
|
10
|
+
setStyle(style: IChartHostStyle): void;
|
|
11
|
+
ensureMount(): Promise<HTMLElement>;
|
|
12
|
+
checkMounted(): boolean;
|
|
13
|
+
syncLayout(): void;
|
|
14
|
+
markReady(): void;
|
|
15
|
+
markNotReady(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IChartModelBinding } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartUIService, ChartViewStateRegistry } from '@univerjs-pro/chart-ui';
|
|
3
|
+
export declare class BasePivotChartUIService extends ChartUIService<IChartModelBinding, never> {
|
|
4
|
+
readonly activeRuntimeModel: null;
|
|
5
|
+
constructor(viewStates: ChartViewStateRegistry);
|
|
6
|
+
executeChartUpdateConfig(_params: never): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseDashboardFormulaShapeNumberFormat, IBaseDashboardFormulaShapeAppearance, IBaseDashboardFormulaShapeWidget } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
export declare const DASHBOARD_FORMULA_SHAPE_DEFAULT_APPEARANCE: {
|
|
3
|
+
readonly alignment: "left";
|
|
4
|
+
readonly currency: "USD";
|
|
5
|
+
readonly decimalPlaces: 0;
|
|
6
|
+
readonly fontSize: 40;
|
|
7
|
+
readonly fontSizeMode: "auto";
|
|
8
|
+
readonly numberFormat: "general";
|
|
9
|
+
};
|
|
10
|
+
export type ResolvedDashboardFormulaShapeAppearance = Required<Omit<IBaseDashboardFormulaShapeAppearance, 'backgroundColor' | 'backgroundImage' | 'textColor'>> & Pick<IBaseDashboardFormulaShapeAppearance, 'backgroundColor' | 'backgroundImage' | 'textColor'>;
|
|
11
|
+
export declare function resolveDashboardFormulaShapeAppearance(widget: IBaseDashboardFormulaShapeWidget): ResolvedDashboardFormulaShapeAppearance;
|
|
12
|
+
export declare function updateDashboardFormulaShapeAppearance(widget: IBaseDashboardFormulaShapeWidget, patch: Partial<IBaseDashboardFormulaShapeAppearance>): IBaseDashboardFormulaShapeWidget;
|
|
13
|
+
export declare function createDashboardFormulaShapeNumberFormatPattern(format: BaseDashboardFormulaShapeNumberFormat, decimalPlaces: number, currency: string): string;
|
|
14
|
+
export declare function formatDashboardFormulaShapeValue(displayText: string, value: unknown, appearance: IBaseDashboardFormulaShapeAppearance): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IBaseDashboardLayout } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
export declare const DASHBOARD_EDGE_SCROLL_THRESHOLD = 56;
|
|
3
|
+
export declare const DASHBOARD_EDGE_SCROLL_MAX_SPEED = 22;
|
|
4
|
+
export type DashboardResizeDirection = 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw';
|
|
5
|
+
export declare function resizeDashboardLayout(layout: IBaseDashboardLayout, direction: DashboardResizeDirection, columnDelta: number, rowDelta: number): IBaseDashboardLayout;
|
|
6
|
+
export declare function normalizeDashboardLayout(layout: IBaseDashboardLayout): IBaseDashboardLayout;
|
|
7
|
+
export declare function resolveDashboardLayouts(layouts: ReadonlyMap<string, IBaseDashboardLayout>, activeId: string, activeLayout: IBaseDashboardLayout): Map<string, IBaseDashboardLayout>;
|
|
8
|
+
export declare function getDashboardEdgeScrollDelta(pointerY: number, top: number, bottom: number, threshold?: number, maxSpeed?: number): number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IBaseDashboardTextAppearance, IBaseDashboardTextWidget } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { IDocumentData } from '@univerjs/core';
|
|
3
|
+
export declare const DASHBOARD_TEXT_DEFAULT_APPEARANCE: {
|
|
4
|
+
readonly alignment: "left";
|
|
5
|
+
readonly fontSize: 18;
|
|
6
|
+
readonly fontSizeMode: "auto";
|
|
7
|
+
};
|
|
8
|
+
export type ResolvedDashboardTextAppearance = Required<Pick<IBaseDashboardTextAppearance, 'alignment' | 'fontSize' | 'fontSizeMode'>> & Pick<IBaseDashboardTextAppearance, 'backgroundColor' | 'textColor'>;
|
|
9
|
+
export declare function resolveDashboardTextAppearance(widget: IBaseDashboardTextWidget): ResolvedDashboardTextAppearance;
|
|
10
|
+
export declare function getDashboardTextDocumentText(document: IDocumentData): string;
|
|
11
|
+
export declare function updateDashboardTextDocument(document: IDocumentData, text: string): IDocumentData;
|