@univerjs-pro/bases-dashboard-ui 1.0.0-rc.0 → 1.0.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 +42 -0
- 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/cs-CZ.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/nl-NL.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/th-TH.js +1 -1
- package/lib/cjs/locale/tr-TR.js +1 -1
- package/lib/cjs/locale/uk-UA.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/cs-CZ.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/nl-NL.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/th-TH.js +1 -1
- package/lib/es/locale/tr-TR.js +1 -1
- package/lib/es/locale/uk-UA.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.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/cs-CZ.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/nl-NL.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/th-TH.js +1 -1
- package/lib/locale/tr-TR.js +1 -1
- package/lib/locale/uk-UA.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/components/mobile/BaseDashboardView.d.ts +2 -0
- package/lib/types/components/mobile/BasePivotChartEditor.d.ts +78 -0
- package/lib/types/components/mobile/BasePivotInspector.d.ts +10 -0
- package/lib/types/components/mobile/BasePivotPanel.d.ts +11 -0
- package/lib/types/components/mobile/BasePivotView.d.ts +2 -0
- package/lib/types/components/mobile/DashboardChartInspector.d.ts +11 -0
- package/lib/types/components/mobile/DashboardFormulaShapeInspector.d.ts +13 -0
- package/lib/types/components/mobile/DashboardGrid.d.ts +12 -0
- package/lib/types/components/mobile/DashboardInspector.d.ts +20 -0
- package/lib/types/components/mobile/DashboardMobileControls.d.ts +8 -0
- package/lib/types/components/mobile/DashboardTableFilter.d.ts +13 -0
- package/lib/types/components/mobile/DashboardWidgetActions.d.ts +8 -0
- package/lib/types/controllers/mobile/base-dashboard-ui.controller.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +5 -0
- package/lib/types/locale/types.d.ts +0 -4
- package/lib/types/mobile-plugin.d.ts +14 -0
- 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/cs-CZ.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/nl-NL.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/th-TH.js +1 -1
- package/lib/umd/locale/tr-TR.js +1 -1
- package/lib/umd/locale/uk-UA.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 +20 -19
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x11e3(){const _0x1092bd=['箱线图','移除字段','条形图','桑基图','14990787aFklsr','词云图','删除仪表盘','百分比堆叠面积图','堆叠面积图','删除组件','百分比','小数位数','背景图片','重复行标签','11764648PNLYsU','右纵轴','访问权限','对齐方式','3408372HNMwpD','小于或等于','雷达图','按行生成系列','百分比堆叠条形图','标准偏差','自动适应','堆叠条形图','汇总方式','筛选字段','图表和坐标轴标题','完整显示','仪表图','显示列总计','K\x20线图','紧凑格式','添加到列','添加组件','11KdVMei','先向右再向下','图表类型','显示方式','在透视视图中修改数据','原始尺寸','值字段位置','添加到行','清除筛选','数据表筛选器','筛选器布局方向','切换行列','图表和表格','平均值','累积占比系列','新建仪表盘','每行筛选器数量','删除图片','直方图','仪表盘\x20{0}','7CDyhmx','仅表格','百分比堆叠\x20·\x20柱状图','右对齐','覆盖填充','搜索数据表和仪表盘','仅图表','烛台图','8516PwLXGq','和弦图','54465910fFlbeK','搜索字段','调整组件大小','瀑布图','树状图','图表样式','旭日图','显示名称','面积图','将字段拖到此处','375NQrsPm','添加到筛选器','大于或等于','135126DthiEQ','未使用','上传图片','总体方差','表格形式','仪表盘','折线图','重复列标签','环形图','数据源','排列图','数据方向','公式形状','气泡图','自定义样式','总体标准偏差','组合图','散点图','漏斗图','按列生成系列','透视视图','(空白)','无法计算透视结果。','关系图','200TzUxNc','替换图片','数字格式','不包含','左对齐','背景色','子母饼图','最大值','类型与数据','编辑公式','热力图','将数据表字段分配到透视区域。','透视分析','7519800DRIhvG','柱状图系列','最小值','矩形树图'];_0x11e3=function(){return _0x1092bd;};return _0x11e3();}const _0x33637c=_0x47e9;(function(_0x4a84d7,_0x18cd43){const _0xa51f2b=_0x47e9,_0x5a684a=_0x4a84d7();while(!![]){try{const _0x389255=parseInt(_0xa51f2b(0x111))/0x1*(parseInt(_0xa51f2b(0x138))/0x2)+-parseInt(_0xa51f2b(0xe3))/0x3+parseInt(_0xa51f2b(0x145))/0x4+-parseInt(_0xa51f2b(0x11d))/0x5*(-parseInt(_0xa51f2b(0x120))/0x6)+-parseInt(_0xa51f2b(0x109))/0x7*(-parseInt(_0xa51f2b(0xdf))/0x8)+parseInt(_0xa51f2b(0xd5))/0x9+parseInt(_0xa51f2b(0x113))/0xa*(-parseInt(_0xa51f2b(0xf5))/0xb);if(_0x389255===_0x18cd43)break;else _0x5a684a['push'](_0x5a684a['shift']());}catch(_0x1d0738){_0x5a684a['push'](_0x5a684a['shift']());}}}(_0x11e3,0xedd36));function _0x47e9(_0x4cd4da,_0x34b5ec){_0x4cd4da=_0x4cd4da-0xcf;const _0x11e327=_0x11e3();let _0x47e93e=_0x11e327[_0x4cd4da];return _0x47e93e;}const e={'bases-dashboard-ui':{'mobile':{'permissions':_0x33637c(0xe1),'moveUp':'上移','moveDown':'下移'},'chart':{'chartTypes':{'line':_0x33637c(0x126),'column':'柱状图','columnStacked':'堆叠\x20·\x20柱状图','columnPercentStacked':_0x33637c(0x10b),'bar':_0x33637c(0xd3),'barStacked':_0x33637c(0xea),'barPercentStacked':_0x33637c(0xe7),'pie':'饼图','donut':_0x33637c(0x128),'pieOfPie':_0x33637c(0x13e),'barOfPie':'复合饼图','area':_0x33637c(0x11b),'areaStacked':_0x33637c(0xd9),'areaPercentStacked':_0x33637c(0xd8),'radar':'雷达图','scatter':_0x33637c(0x131),'combination':_0x33637c(0x130),'wordCloud':_0x33637c(0xd6),'funnel':_0x33637c(0x132),'bubble':_0x33637c(0x12d),'relation':_0x33637c(0x137),'waterfall':_0x33637c(0x116),'pareto':_0x33637c(0x12a),'sankey':_0x33637c(0xd4),'heatmap':_0x33637c(0x142),'boxplot':_0x33637c(0xd1),'candlestick':_0x33637c(0xf1),'histogram':_0x33637c(0x107),'treemap':_0x33637c(0xd0),'sunburst':_0x33637c(0x119),'gauge':_0x33637c(0x125),'chord':_0x33637c(0x112)},'common':{'editChart':'图表','setup':_0x33637c(0x140),'customize':_0x33637c(0x12e),'switchRowColumn':_0x33637c(0x100),'chartStyle':_0x33637c(0x118),'chartAndAxisTitles':_0x33637c(0xed),'series':'系列','heatmap':_0x33637c(0x142),'legend':'图例','horizontalAxis':'横轴','verticalAxis':'纵轴','rightVerticalAxis':_0x33637c(0xe0),'trendline':'趋势线'},'section':{'waterfall':_0x33637c(0x116),'paretoBar':_0x33637c(0x146),'paretoLine':_0x33637c(0x103),'pie':'饼图','wordCloud':'词云','radar':_0x33637c(0xe5),'funnel':_0x33637c(0x132),'relation':_0x33637c(0x137),'lineAndArea':'折线图\x20/\x20面积图','gridlinesAndTicks':'网格线和刻度线','indicatorLine':'指示线','candlestick':_0x33637c(0x110),'histogram':_0x33637c(0x107),'treemap':_0x33637c(0x117),'sunburst':_0x33637c(0x119),'gauge':_0x33637c(0xef),'chord':'和弦图'},'waterfall':{'subtotal':'小计','positive':'正值','negative':'负值'}},'pivot':{'grandTotal':'总计','name':_0x33637c(0x134),'description':'使用透视表和图表分析当前数据表','defaultName':_0x33637c(0x144),'chartConfiguration':'图表','pivotConfiguration':'透视表','chartType':_0x33637c(0xf7),'display':_0x33637c(0xf8),'chartAndTable':_0x33637c(0x101),'chartOnly':_0x33637c(0x10f),'tableOnly':_0x33637c(0x10a),'orientation':_0x33637c(0x12b),'seriesByColumn':_0x33637c(0x133),'seriesByRow':_0x33637c(0xe6),'fieldHint':_0x33637c(0x143),'unused':_0x33637c(0x121),'rows':'行','columns':'列','values':'值','filters':'筛选器','dataSource':'数据源','fields':'字段','options':'选项','sourceFields':'源字段','searchFields':_0x33637c(0x114),'addToRow':_0x33637c(0xfc),'addToColumn':_0x33637c(0xf3),'addToValue':'添加到值','addToFilter':_0x33637c(0x11e),'dropFieldsHere':_0x33637c(0x11c),'removeField':_0x33637c(0xd2),'filterField':_0x33637c(0xec),'fieldSettings':'字段设置','ascending':'升序','descending':'降序','selectAll':'全选','blank':_0x33637c(0x135),'clearFilter':_0x33637c(0xfd),'cancel':'取消','confirm':'确定','displayName':_0x33637c(0x11a),'summarizeBy':_0x33637c(0xeb),'sum':'求和','count':'计数','countNumbers':'数值计数','average':_0x33637c(0x102),'max':_0x33637c(0x13f),'min':_0x33637c(0xcf),'product':'乘积','stdDev':_0x33637c(0xe8),'stdDevPopulation':_0x33637c(0x12f),'variance':'方差','variancePopulation':_0x33637c(0x123),'numberFormat':'数字格式','layout':'布局','layoutTabular':_0x33637c(0x124),'layoutCompact':'紧凑形式','layoutOutline':'大纲形式','repeatRowLabels':_0x33637c(0xde),'repeatColumnLabels':_0x33637c(0x127),'showRowSubtotal':'显示行小计','showRowGrandTotal':'显示行总计','showColumnSubtotal':'显示列小计','showColumnGrandTotal':_0x33637c(0xf0),'rowSubtotalPosition':'行小计位置','top':'顶部','bottom':'底部','valuePosition':_0x33637c(0xfb),'pageWrap':_0x33637c(0x105),'pageDirection':_0x33637c(0xff),'downThenAcross':'先向下再向右','acrossThenDown':_0x33637c(0xf6),'calculating':'正在计算透视结果…','calculationFailed':_0x33637c(0x136)},'dashboard':{'add':'添加仪表盘','configure':'配置仪表盘\x20{0}','delete':_0x33637c(0xd7),'new':_0x33637c(0x104),'rename':'重命名仪表盘','search':_0x33637c(0x10e),'section':_0x33637c(0x125),'defaultName':_0x33637c(0x108),'addWidget':_0x33637c(0xf4),'pivotChart':'透视图表','tableFilter':_0x33637c(0xfe),'text':'文字','image':'图片','formulaShape':_0x33637c(0x12c),'widgetActions':'组件操作','editWidget':'修改','deleteWidget':_0x33637c(0xda),'resizeWidget':_0x33637c(0x115),'undo':'撤销','redo':'重做','fullScreen':'全屏'},'dashboardInspector':{'alignment':_0x33637c(0xe2),'autoFit':_0x33637c(0xe9),'backgroundColor':_0x33637c(0x13d),'backgroundImage':_0x33637c(0xdd),'center':'居中','close':'关闭设置','compact':_0x33637c(0xf2),'contain':_0x33637c(0xee),'cover':_0x33637c(0x10d),'currency':'货币','currencyCode':'币种','custom':'自定义','data':'数据','dataSource':_0x33637c(0x129),'decimalPlaces':_0x33637c(0xdc),'description':'描述','dragWidget':'拖拽组件','editData':_0x33637c(0xf9),'editFormula':_0x33637c(0x141),'formula':'公式','general':'常规','grouped':'千分位','left':_0x33637c(0x13c),'loading':'正在加载图表…','number':'数字','numberFormat':_0x33637c(0x13a),'percent':_0x33637c(0xdb),'removeImage':_0x33637c(0x106),'replaceImage':_0x33637c(0x139),'repeat':'重复','originalSize':_0x33637c(0xfa),'reset':'重置','right':_0x33637c(0x10c),'sourceUnavailable':'数据源不可用','style':'样式','textColor':'文字颜色','textSize':'字号','uploadImage':_0x33637c(0x122),'delete':'删除','newCondition':'新增条件','clear':'清除','checked':'已勾选','unchecked':'未勾选','selectOption':'请选择选项','enterValue':'请输入值'},'operators':{'is':'是','isNot':'不是','contains':'包含','notContains':_0x33637c(0x13b),'isEmpty':'为空','isNotEmpty':'不为空','greaterThan':'大于','greaterThanOrEqual':_0x33637c(0x11f),'lessThan':'小于','lessThanOrEqual':_0x33637c(0xe4),'before':'早于','after':'晚于'}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x134868=_0x47c6;(function(_0x142324,_0x292a12){const _0x17f1cc=_0x47c6,_0x472516=_0x142324();while(!![]){try{const _0x1d8964=-parseInt(_0x17f1cc(0xe7))/0x1+parseInt(_0x17f1cc(0xf7))/0x2*(parseInt(_0x17f1cc(0xc8))/0x3)+parseInt(_0x17f1cc(0xe8))/0x4+-parseInt(_0x17f1cc(0x10a))/0x5+parseInt(_0x17f1cc(0xd6))/0x6+-parseInt(_0x17f1cc(0xf5))/0x7+-parseInt(_0x17f1cc(0x132))/0x8;if(_0x1d8964===_0x292a12)break;else _0x472516['push'](_0x472516['shift']());}catch(_0x4aa99e){_0x472516['push'](_0x472516['shift']());}}}(_0x20ce,0x2206e));function _0x20ce(){const _0x5c2845=['圖表與座標軸標題','44HtbiVO','調整元件大小','設定儀表板\x20{0}','自定义','樞紐分析','关闭设置','正在計算樞紐分析結果…','總體變異數','数据源不可用','子母餅圖','資料表篩選器','儀表板','对齐方式','上传图片','排列圖','折線圖\x20/\x20面積圖','篩選器','不空白','百分比','323000HAnkEN','瀑布圖','複合餅圖','数字格式','過濾字段','(空白)','原始尺寸','右縱軸','圖表及表格','左对齐','圖表樣式','數據來源','自訂圖表','顯示方式','在透视视图中修改数据','右对齐','資料方向','儀表盤','小数位数','背景色','請選擇選項','替换图片','漏斗圖','新增到行','變異數','未勾選','來源字段','按欄建立數列','穿過,然後向下','累積占比系列','趨勢線','指示線','矩形樹圖','重複列標籤','旭日圖','拖拽组件','新增儀表板','數字格式','產品展示','長條圖系列','1284160lizObc','未使用','標準差','樞紐分析檢視','箱型圖','選擇全部','百分比堆疊面積圖','堆疊\x20·\x20柱狀圖','新增到列','文字颜色','折線圖','散點圖','全螢幕','向下,然後穿過','新建儀表板','顯示名稱','完整显示','儀表板\x20{0}','網格線和刻度線','K\x20線圖','樞紐分析表','堆疊條形圖','無法計算樞紐分析結果。','行小計位置','9066pRUmaI','只顯示圖表','直方圖','清除篩選','整體標準差','新增到過濾器','編輯圖表','大於或等於','和弦圖','面積圖','將資料表欄位指派至樞紐分析區域。','存取權限','詞雲圖','條形圖','1295130fzEgcB','關係圖','顯示行總計','顯示行小計','刪除儀表板','每行過濾器','樹狀圖','切換列或欄','背景图片','删除图片','圖表類型','熱力圖','樞紐分析圖','重新命名儀表板','刪除元件','自动适应','新增條件','17818tZTASy','851772UPuMxg','千分位','只顯示表格','百分比堆疊\x20·\x20柱狀圖','將字段拖到此處','請輸入值','使用樞紐分析表及圖表分析目前資料表','燭台圖','總結為','環形圖','雷達圖','已勾選','小於或等於','790790MCmyPm'];_0x20ce=function(){return _0x5c2845;};return _0x20ce();}const e={'bases-dashboard-ui':{'mobile':{'permissions':_0x134868(0xd3),'moveUp':'上移','moveDown':'下移'},'chart':{'chartTypes':{'line':_0x134868(0x13c),'column':'柱狀圖','columnStacked':_0x134868(0x139),'columnPercentStacked':_0x134868(0xeb),'bar':_0x134868(0xd5),'barStacked':_0x134868(0xc5),'barPercentStacked':'百分比堆疊條形圖','pie':'餅圖','donut':_0x134868(0xf1),'pieOfPie':_0x134868(0x100),'barOfPie':_0x134868(0x10c),'area':_0x134868(0xd1),'areaStacked':'堆疊面積圖','areaPercentStacked':_0x134868(0x138),'radar':'雷達圖','scatter':_0x134868(0x13d),'combination':'組合圖','wordCloud':_0x134868(0xd4),'funnel':_0x134868(0x120),'bubble':'氣泡圖','relation':_0x134868(0xd7),'waterfall':_0x134868(0x10b),'pareto':_0x134868(0x105),'sankey':'桑基圖','heatmap':'熱力圖','boxplot':_0x134868(0x136),'candlestick':_0x134868(0x145),'histogram':'直方圖','treemap':_0x134868(0x12a),'sunburst':'旭日圖','gauge':_0x134868(0x11b),'chord':_0x134868(0xd0)},'common':{'editChart':_0x134868(0xce),'setup':'設定圖表','customize':_0x134868(0x116),'switchRowColumn':_0x134868(0xdd),'chartStyle':_0x134868(0x114),'chartAndAxisTitles':_0x134868(0xf6),'series':'系列','heatmap':_0x134868(0xe1),'legend':'圖例','horizontalAxis':'橫軸','verticalAxis':'縱軸','rightVerticalAxis':_0x134868(0x111),'trendline':_0x134868(0x128)},'section':{'waterfall':_0x134868(0x10b),'paretoBar':_0x134868(0x131),'paretoLine':_0x134868(0x127),'pie':'餅圖','wordCloud':'詞雲','radar':_0x134868(0xf2),'funnel':_0x134868(0x120),'relation':_0x134868(0xd7),'lineAndArea':_0x134868(0x106),'gridlinesAndTicks':_0x134868(0x144),'indicatorLine':_0x134868(0x129),'candlestick':_0x134868(0xef),'histogram':_0x134868(0xca),'treemap':_0x134868(0xdc),'sunburst':_0x134868(0x12c),'gauge':'儀表圖','chord':_0x134868(0xd0)},'waterfall':{'subtotal':'小計','positive':'正值','negative':'負值'}},'pivot':{'grandTotal':'總計','dataSource':_0x134868(0x115),'fields':'領域','options':'選項','sourceFields':_0x134868(0x124),'searchFields':'搜尋字段','addToRow':_0x134868(0x121),'addToColumn':_0x134868(0x13a),'addToValue':'添加到值','addToFilter':_0x134868(0xcd),'dropFieldsHere':_0x134868(0xec),'removeField':'刪除字段','filterField':_0x134868(0x10e),'fieldSettings':'字段設定','ascending':'升序','descending':'降序','selectAll':_0x134868(0x137),'blank':_0x134868(0x10f),'clearFilter':_0x134868(0xcb),'cancel':'取消','confirm':'確認','displayName':_0x134868(0x141),'summarizeBy':_0x134868(0xf0),'sum':'總和','count':'計數','countNumbers':'數數','average':'平均','max':'最大','min':'最低','product':_0x134868(0x130),'stdDev':_0x134868(0x134),'stdDevPopulation':_0x134868(0xcc),'variance':_0x134868(0x122),'variancePopulation':_0x134868(0xfe),'numberFormat':_0x134868(0x12f),'layout':'佈局','layoutTabular':'表格','layoutCompact':'緊湊型','layoutOutline':'概要','repeatRowLabels':'重複行標籤','repeatColumnLabels':_0x134868(0x12b),'showRowSubtotal':_0x134868(0xd9),'showRowGrandTotal':_0x134868(0xd8),'showColumnSubtotal':'顯示列小計','showColumnGrandTotal':'顯示列總計','rowSubtotalPosition':_0x134868(0xc7),'top':'頂部','bottom':'底部','valuePosition':'值欄位位置','pageWrap':_0x134868(0xdb),'pageDirection':'濾波器佈置方向','downThenAcross':_0x134868(0x13f),'acrossThenDown':_0x134868(0x126),'name':_0x134868(0x135),'description':_0x134868(0xee),'defaultName':_0x134868(0xfb),'chartConfiguration':'圖表','pivotConfiguration':_0x134868(0xc4),'chartType':_0x134868(0xe0),'display':_0x134868(0x117),'chartAndTable':_0x134868(0x112),'chartOnly':_0x134868(0xc9),'tableOnly':_0x134868(0xea),'orientation':_0x134868(0x11a),'seriesByColumn':_0x134868(0x125),'seriesByRow':'按列建立數列','fieldHint':_0x134868(0xd2),'unused':_0x134868(0x133),'rows':'列','columns':'欄','values':'值','filters':_0x134868(0x107),'calculating':_0x134868(0xfd),'calculationFailed':_0x134868(0xc6)},'dashboard':{'add':_0x134868(0x12e),'configure':_0x134868(0xf9),'delete':_0x134868(0xda),'new':_0x134868(0x140),'rename':_0x134868(0xe3),'search':'搜尋資料表及儀表板','section':_0x134868(0x102),'defaultName':_0x134868(0x143),'addWidget':'新增元件','pivotChart':_0x134868(0xe2),'tableFilter':_0x134868(0x101),'text':'文字','image':'圖片','formulaShape':'公式圖形','widgetActions':'元件操作','editWidget':'修改','deleteWidget':_0x134868(0xe4),'resizeWidget':_0x134868(0xf8),'undo':'復原','redo':'重做','fullScreen':_0x134868(0x13e)},'dashboardInspector':{'alignment':_0x134868(0x103),'autoFit':_0x134868(0xe5),'backgroundColor':_0x134868(0x11d),'backgroundImage':_0x134868(0xde),'center':'居中','close':_0x134868(0xfc),'compact':'紧凑格式','contain':_0x134868(0x142),'cover':'覆盖填充','currency':'货币','currencyCode':'币种','custom':_0x134868(0xfa),'data':'数据','dataSource':'数据源','decimalPlaces':_0x134868(0x11c),'description':'描述','dragWidget':_0x134868(0x12d),'editData':_0x134868(0x118),'editFormula':'编辑公式','formula':'公式','general':'常规','grouped':_0x134868(0xe9),'left':_0x134868(0x113),'loading':'正在加载图表…','number':'数字','numberFormat':_0x134868(0x10d),'percent':_0x134868(0x109),'removeImage':_0x134868(0xdf),'replaceImage':_0x134868(0x11f),'repeat':'重複','originalSize':_0x134868(0x110),'reset':'重置','right':_0x134868(0x119),'sourceUnavailable':_0x134868(0xff),'style':'样式','textColor':_0x134868(0x13b),'textSize':'字号','uploadImage':_0x134868(0x104),'delete':'刪除','newCondition':_0x134868(0xe6),'clear':'清除','checked':_0x134868(0xf3),'unchecked':_0x134868(0x123),'selectOption':_0x134868(0x11e),'enterValue':_0x134868(0xed)},'operators':{'is':'是','isNot':'不是','contains':'包含','notContains':'不包含','isEmpty':'空白','isNotEmpty':_0x134868(0x108),'greaterThan':'大於','greaterThanOrEqual':_0x134868(0xcf),'lessThan':'小於','lessThanOrEqual':_0x134868(0xf4),'before':'早於','after':'晚於'}}};function _0x47c6(_0x5bdeaf,_0x5d1bfa){_0x5bdeaf=_0x5bdeaf-0xc4;const _0x20ce50=_0x20ce();let _0x47c679=_0x20ce50[_0x5bdeaf];return _0x47c679;}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8a8118=_0x2260;(function(_0x34a611,_0x7795f7){const _0x317180=_0x2260,_0xdc65ac=_0x34a611();while(!![]){try{const _0x466ef0=parseInt(_0x317180(0xf6))/0x1*(-parseInt(_0x317180(0xe7))/0x2)+parseInt(_0x317180(0x116))/0x3*(parseInt(_0x317180(0xe6))/0x4)+-parseInt(_0x317180(0x11e))/0x5*(-parseInt(_0x317180(0x115))/0x6)+parseInt(_0x317180(0x111))/0x7+-parseInt(_0x317180(0x138))/0x8+-parseInt(_0x317180(0x123))/0x9+parseInt(_0x317180(0x108))/0xa;if(_0x466ef0===_0x7795f7)break;else _0xdc65ac['push'](_0xdc65ac['shift']());}catch(_0x3c8f07){_0xdc65ac['push'](_0xdc65ac['shift']());}}}(_0x313e,0x2452e));function _0x2260(_0x3ab79d,_0x122cff){_0x3ab79d=_0x3ab79d-0xd9;const _0x313e20=_0x313e();let _0x226062=_0x313e20[_0x3ab79d];return _0x226062;}const e={'bases-dashboard-ui':{'mobile':{'permissions':_0x8a8118(0xe5),'moveUp':'上移','moveDown':'下移'},'chart':{'chartTypes':{'line':_0x8a8118(0xe2),'column':_0x8a8118(0x127),'columnStacked':_0x8a8118(0x145),'columnPercentStacked':'百分比堆疊\x20·\x20柱狀圖','bar':_0x8a8118(0xf4),'barStacked':_0x8a8118(0x140),'barPercentStacked':_0x8a8118(0xf5),'pie':'餅圖','donut':'環形圖','pieOfPie':_0x8a8118(0x136),'barOfPie':'複合餅圖','area':_0x8a8118(0x12b),'areaStacked':_0x8a8118(0x103),'areaPercentStacked':_0x8a8118(0x11c),'radar':_0x8a8118(0x131),'scatter':_0x8a8118(0x106),'combination':'組合圖','wordCloud':_0x8a8118(0xdf),'funnel':_0x8a8118(0x12f),'bubble':_0x8a8118(0x13f),'relation':_0x8a8118(0xef),'waterfall':_0x8a8118(0xdd),'pareto':'排列圖','sankey':_0x8a8118(0x125),'heatmap':'熱力圖','boxplot':_0x8a8118(0xf1),'candlestick':_0x8a8118(0x133),'histogram':_0x8a8118(0x124),'treemap':_0x8a8118(0xf2),'sunburst':_0x8a8118(0xdb),'gauge':_0x8a8118(0x12e),'chord':_0x8a8118(0xfd)},'common':{'editChart':_0x8a8118(0x13d),'setup':_0x8a8118(0xda),'customize':_0x8a8118(0x102),'switchRowColumn':'切換列或欄','chartStyle':'圖表樣式','chartAndAxisTitles':_0x8a8118(0x14b),'series':'系列','heatmap':_0x8a8118(0x122),'legend':'圖例','horizontalAxis':'橫軸','verticalAxis':'縱軸','rightVerticalAxis':'右縱軸','trendline':'趨勢線'},'section':{'waterfall':_0x8a8118(0xdd),'paretoBar':_0x8a8118(0x149),'paretoLine':_0x8a8118(0x132),'pie':'餅圖','wordCloud':'詞雲','radar':_0x8a8118(0x131),'funnel':_0x8a8118(0x12f),'relation':_0x8a8118(0xef),'lineAndArea':_0x8a8118(0x10b),'gridlinesAndTicks':_0x8a8118(0xff),'indicatorLine':_0x8a8118(0xf9),'candlestick':_0x8a8118(0x101),'histogram':_0x8a8118(0x124),'treemap':_0x8a8118(0x146),'sunburst':_0x8a8118(0xdb),'gauge':'儀表圖','chord':_0x8a8118(0xfd)},'waterfall':{'subtotal':'小計','positive':'正值','negative':'負值'}},'pivot':{'grandTotal':'總計','name':'樞紐分析檢視','description':'使用樞紐分析表與圖表分析目前資料表','defaultName':'樞紐分析','chartConfiguration':'圖表','pivotConfiguration':'樞紐分析表','chartType':'圖表類型','display':'顯示方式','chartAndTable':'圖表與表格','chartOnly':'僅圖表','tableOnly':_0x8a8118(0x117),'orientation':'資料方向','seriesByColumn':_0x8a8118(0x13b),'seriesByRow':'依列建立數列','fieldHint':_0x8a8118(0xee),'unused':_0x8a8118(0x120),'rows':'列','columns':'欄','values':'值','filters':_0x8a8118(0x128),'dataSource':_0x8a8118(0x110),'fields':'欄位','options':'選項','sourceFields':_0x8a8118(0x11f),'searchFields':'搜尋欄位','addToRow':_0x8a8118(0xfc),'addToColumn':_0x8a8118(0x148),'addToValue':_0x8a8118(0xfb),'addToFilter':'新增至篩選器','dropFieldsHere':_0x8a8118(0x12a),'removeField':_0x8a8118(0x107),'filterField':_0x8a8118(0x142),'fieldSettings':'欄位設定','ascending':'升冪','descending':'降冪','selectAll':'全選','blank':'(空白)','clearFilter':'清除篩選','cancel':'取消','confirm':'確定','displayName':'顯示名稱','summarizeBy':'彙總方式','sum':'總和','count':'計數','countNumbers':_0x8a8118(0xdc),'average':'平均值','max':'最大值','min':_0x8a8118(0xe1),'product':'乘積','stdDev':_0x8a8118(0x129),'stdDevPopulation':_0x8a8118(0x139),'variance':_0x8a8118(0x118),'variancePopulation':_0x8a8118(0x137),'numberFormat':_0x8a8118(0xf7),'layout':_0x8a8118(0x112),'layoutTabular':'表格式','layoutCompact':_0x8a8118(0x11a),'layoutOutline':_0x8a8118(0x10c),'repeatRowLabels':_0x8a8118(0x11b),'repeatColumnLabels':'重複欄標籤','showRowSubtotal':_0x8a8118(0x143),'showRowGrandTotal':'顯示列總計','showColumnSubtotal':'顯示欄小計','showColumnGrandTotal':_0x8a8118(0x144),'rowSubtotalPosition':'列小計位置','top':'頂端','bottom':'底端','valuePosition':'值欄位位置','pageWrap':_0x8a8118(0x13e),'pageDirection':_0x8a8118(0x105),'downThenAcross':_0x8a8118(0x10f),'acrossThenDown':_0x8a8118(0xe4),'calculating':_0x8a8118(0xfa),'calculationFailed':'無法計算樞紐分析結果。'},'dashboard':{'add':_0x8a8118(0x12c),'configure':'設定儀表板\x20{0}','delete':_0x8a8118(0x147),'new':'新建儀表板','rename':_0x8a8118(0x119),'search':_0x8a8118(0xf0),'section':_0x8a8118(0x12e),'defaultName':_0x8a8118(0xe8),'addWidget':'新增元件','pivotChart':'樞紐分析圖','tableFilter':_0x8a8118(0x14a),'text':'文字','image':'圖片','formulaShape':_0x8a8118(0x13c),'widgetActions':_0x8a8118(0x135),'editWidget':'修改','deleteWidget':_0x8a8118(0x11d),'resizeWidget':'調整元件大小','undo':'復原','redo':'重做','fullScreen':'全螢幕'},'dashboardInspector':{'alignment':_0x8a8118(0xfe),'autoFit':'自动适应','backgroundColor':_0x8a8118(0x14c),'backgroundImage':'背景图片','center':'居中','close':_0x8a8118(0x130),'compact':_0x8a8118(0x134),'contain':_0x8a8118(0x104),'cover':_0x8a8118(0x13a),'currency':'货币','currencyCode':'币种','custom':_0x8a8118(0x141),'data':'数据','dataSource':'数据源','decimalPlaces':_0x8a8118(0x14d),'description':'描述','dragWidget':_0x8a8118(0x10a),'editData':_0x8a8118(0x10e),'editFormula':_0x8a8118(0xf3),'formula':'公式','general':'常规','grouped':_0x8a8118(0xe0),'left':_0x8a8118(0x113),'loading':_0x8a8118(0x126),'number':'数字','numberFormat':_0x8a8118(0x109),'percent':_0x8a8118(0x121),'removeImage':_0x8a8118(0xed),'replaceImage':_0x8a8118(0xe9),'repeat':'重複','originalSize':_0x8a8118(0xe3),'reset':'重置','right':_0x8a8118(0xf8),'sourceUnavailable':_0x8a8118(0x10d),'style':'样式','textColor':'文字颜色','textSize':'字号','uploadImage':_0x8a8118(0xec),'delete':'刪除','newCondition':_0x8a8118(0x12d),'clear':'清除','checked':_0x8a8118(0xea),'unchecked':_0x8a8118(0xde),'selectOption':'請選擇選項','enterValue':_0x8a8118(0x114)},'operators':{'is':'是','isNot':'不是','contains':'包含','notContains':_0x8a8118(0xd9),'isEmpty':'空白','isNotEmpty':_0x8a8118(0xeb),'greaterThan':'大於','greaterThanOrEqual':'大於或等於','lessThan':'小於','lessThanOrEqual':_0x8a8118(0x100),'before':'早於','after':'晚於'}}};export{e as default};function _0x313e(){const _0x48e2a0=['關係圖','搜尋資料表與儀表板','箱型圖','矩形樹圖','编辑公式','條形圖','百分比堆疊條形圖','61445GSpUef','數字格式','右对齐','指示線','正在計算樞紐分析結果…','新增至值','新增至列','和弦圖','对齐方式','網格線和刻度線','小於或等於','燭台圖','自訂圖表','堆疊面積圖','完整显示','篩選器版面方向','散點圖','移除欄位','476280ZfOhax','数字格式','拖拽组件','折線圖\x20/\x20面積圖','大綱格式','数据源不可用','在透视视图中修改数据','先向下再向右','資料來源','906402iWLdBN','版面配置','左对齐','請輸入值','149862BNNtIb','12CcTNXD','僅表格','變異數','重新命名儀表板','精簡格式','重複列標籤','百分比堆疊面積圖','刪除元件','55lSHjpJ','來源欄位','未使用','百分比','熱力圖','915255DrCDVK','直方圖','桑基圖','正在加载图表…','柱狀圖','篩選器','標準差','將欄位拖曳至此','面積圖','新增儀表板','新增條件','儀表板','漏斗圖','关闭设置','雷達圖','累積占比系列','K\x20線圖','紧凑格式','元件操作','子母餅圖','母體變異數','2215064CVhIPI','母體標準差','覆盖填充','依欄建立數列','公式圖形','編輯圖表','每列篩選器數量','氣泡圖','堆疊條形圖','自定义','篩選欄位','顯示列小計','顯示欄總計','堆疊\x20·\x20柱狀圖','樹狀圖','刪除儀表板','新增至欄','長條圖系列','資料表篩選器','圖表與座標軸標題','背景色','小数位数','不包含','設定圖表','旭日圖','數值計數','瀑布圖','未勾選','詞雲圖','千分位','最小值','折線圖','原始尺寸','先向右再向下','存取權限','136944aWQdBD','2kzLHMD','儀表板\x20{0}','替换图片','已勾選','不空白','上传图片','删除图片','將資料表欄位指派至樞紐分析區域。'];_0x313e=function(){return _0x48e2a0;};return _0x313e();}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { IBasePivotChartConfig, IBasePivotViewConfig } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { IChartModelBinding, IChartModelUpdate } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IBasePivotChartEditorProps {
|
|
4
|
+
config: IBasePivotViewConfig;
|
|
5
|
+
runtime: IChartModelBinding;
|
|
6
|
+
tableName: string;
|
|
7
|
+
onChange: (patch: Partial<IBasePivotViewConfig>) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const BASE_PIVOT_CHART_DEFAULT_VALUES: {
|
|
10
|
+
readonly axis: {
|
|
11
|
+
readonly primaryGridLineVisible: false;
|
|
12
|
+
readonly secondaryGridLineVisible: true;
|
|
13
|
+
readonly color: string;
|
|
14
|
+
readonly dateAxisRotation: number;
|
|
15
|
+
readonly gridlineWidth: number;
|
|
16
|
+
readonly labelFontSize: number;
|
|
17
|
+
readonly labelRotation: number;
|
|
18
|
+
readonly labelVisible: boolean;
|
|
19
|
+
readonly reverse: boolean;
|
|
20
|
+
readonly tickLength: string;
|
|
21
|
+
readonly tickPosition: import("@univerjs-pro/engine-chart").ChartAxisTickPosition;
|
|
22
|
+
readonly tickVisible: boolean;
|
|
23
|
+
readonly tickWidth: string;
|
|
24
|
+
};
|
|
25
|
+
readonly funnel: import("@univerjs-pro/chart-ui").IChartFunnelDefaultValues;
|
|
26
|
+
readonly heatmap: import("@univerjs-pro/chart-ui").IChartHeatmapDefaultValues;
|
|
27
|
+
readonly indicatorLine: import("@univerjs-pro/chart-ui").IChartIndicatorLineDefaultValues;
|
|
28
|
+
readonly legend: import("@univerjs-pro/chart-ui").IChartLegendDefaultValues;
|
|
29
|
+
readonly lineAndArea: import("@univerjs-pro/chart-ui").IChartLineAndAreaDefaultValues;
|
|
30
|
+
readonly pareto: import("@univerjs-pro/chart-ui").IChartParetoDefaultValues;
|
|
31
|
+
readonly pie: import("@univerjs-pro/chart-ui").IChartPieDefaultValues;
|
|
32
|
+
readonly radar: import("@univerjs-pro/chart-ui").IChartRadarDefaultValues;
|
|
33
|
+
readonly relation: {
|
|
34
|
+
readonly useValueAsSymbolSize: true;
|
|
35
|
+
readonly circularLabelRotation: boolean;
|
|
36
|
+
readonly emphasisEnabled: boolean;
|
|
37
|
+
readonly force: {
|
|
38
|
+
gravity: number;
|
|
39
|
+
repulsion: number;
|
|
40
|
+
};
|
|
41
|
+
readonly layout: import("@univerjs-pro/engine-chart").RelationChartLayoutEnum;
|
|
42
|
+
readonly nodeShape: import("@univerjs-pro/engine-chart").LinePointShape;
|
|
43
|
+
};
|
|
44
|
+
readonly series: {
|
|
45
|
+
readonly radarFillOpacity: 0.2;
|
|
46
|
+
readonly rightAxis: {
|
|
47
|
+
readonly ltr: false;
|
|
48
|
+
readonly rtl: boolean;
|
|
49
|
+
};
|
|
50
|
+
readonly borderDashType: import("@univerjs-pro/engine-chart").ChartBorderDashType;
|
|
51
|
+
readonly borderOpacity: number;
|
|
52
|
+
readonly borderWidth: number;
|
|
53
|
+
readonly color: string;
|
|
54
|
+
readonly labelContentType: import("@univerjs-pro/engine-chart").LabelContentType;
|
|
55
|
+
readonly labelFontSize: number;
|
|
56
|
+
readonly labelPosition: import("@univerjs-pro/engine-chart").SeriesLabelPosition;
|
|
57
|
+
readonly labelVisible: boolean;
|
|
58
|
+
readonly lineOrAreaBorderWidth: number;
|
|
59
|
+
readonly pointShape: import("@univerjs-pro/engine-chart").LinePointShape;
|
|
60
|
+
readonly pointSize: number;
|
|
61
|
+
readonly radarBorderWidth: number;
|
|
62
|
+
readonly scatterPointSize: number;
|
|
63
|
+
readonly seriesFillOpacity: number;
|
|
64
|
+
};
|
|
65
|
+
readonly style: import("@univerjs-pro/chart-ui").IChartStyleDefaultValues;
|
|
66
|
+
readonly titles: import("@univerjs-pro/chart-ui").IChartTitleDefaultValues;
|
|
67
|
+
readonly trendline: import("@univerjs-pro/chart-ui").IChartTrendlineDefaultValues;
|
|
68
|
+
readonly waterfall: {
|
|
69
|
+
readonly useSubtotal: true;
|
|
70
|
+
readonly stackType: import("@univerjs-pro/engine-chart").WaterfallStackTypeEnum;
|
|
71
|
+
};
|
|
72
|
+
readonly waterfallStyle: import("@univerjs-pro/chart-ui").IChartWaterfallStyleDefaultValues;
|
|
73
|
+
readonly wordCloud: import("@univerjs-pro/chart-ui").IChartWordCloudDefaultValues;
|
|
74
|
+
};
|
|
75
|
+
export declare function BasePivotChartEditor(props: IBasePivotChartEditorProps): import("react").JSX.Element;
|
|
76
|
+
export declare function applyBasePivotChartConfigUpdate(chart: IBasePivotChartConfig, update: IChartModelUpdate): IBasePivotChartConfig;
|
|
77
|
+
export declare function BasePivotGradientFillField(): import("react").JSX.Element;
|
|
78
|
+
export declare function BasePivotChartStylePanel(): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IBasePivotViewConfig } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { IChartModelBinding } from '@univerjs-pro/engine-chart';
|
|
3
|
+
import type { ITableSnapshot } from '@univerjs/core';
|
|
4
|
+
export interface IBasePivotInspectorProps {
|
|
5
|
+
config: IBasePivotViewConfig;
|
|
6
|
+
runtime: IChartModelBinding | null;
|
|
7
|
+
table: ITableSnapshot;
|
|
8
|
+
onChange: (patch: Partial<IBasePivotViewConfig>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function BasePivotInspector({ config, onChange, runtime, table }: IBasePivotInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IBasePivotViewConfig } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { PivotTable } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import type { ITableSnapshot } from '@univerjs/core';
|
|
4
|
+
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
5
|
+
export interface IBasePivotPanelProps {
|
|
6
|
+
config: IBasePivotViewConfig;
|
|
7
|
+
table: ITableSnapshot;
|
|
8
|
+
onChange: (patch: Partial<IBasePivotViewConfig>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function BasePivotPanel(props: IBasePivotPanelProps): import("react").JSX.Element;
|
|
11
|
+
export declare function addBasePivotSourceField(pivotTable: PivotTable, dataFieldId: string, area: PivotTableFiledAreaEnum, index: number): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IBaseDashboardPivotChartWidget, IBaseDashboardWidget, IBasePivotChartConfig } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { IChartModelBinding } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IDashboardChartInspectorProps {
|
|
4
|
+
onChange: (widget: IBaseDashboardWidget) => Promise<unknown>;
|
|
5
|
+
onEditData: () => void;
|
|
6
|
+
runtime: IChartModelBinding;
|
|
7
|
+
sourceChart: IBasePivotChartConfig;
|
|
8
|
+
sourceName: string;
|
|
9
|
+
widget: IBaseDashboardPivotChartWidget;
|
|
10
|
+
}
|
|
11
|
+
export declare function DashboardChartInspector({ onChange, onEditData, runtime, sourceChart, sourceName, widget }: IDashboardChartInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseDashboardFormulaShapeWidget, IBaseDashboardWidget } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { BaseDataModel, ImageSourceType } from '@univerjs/core';
|
|
3
|
+
export interface ISelectedDashboardBackgroundImage {
|
|
4
|
+
source: string;
|
|
5
|
+
sourceType: ImageSourceType;
|
|
6
|
+
}
|
|
7
|
+
export interface IDashboardFormulaShapeInspectorProps {
|
|
8
|
+
base: BaseDataModel;
|
|
9
|
+
onChange: (widget: IBaseDashboardWidget) => Promise<unknown>;
|
|
10
|
+
onSelectBackgroundImage: () => Promise<ISelectedDashboardBackgroundImage | null>;
|
|
11
|
+
widget: IBaseDashboardFormulaShapeWidget;
|
|
12
|
+
}
|
|
13
|
+
export declare function DashboardFormulaShapeInspector({ base, onChange, onSelectBackgroundImage, widget }: IDashboardFormulaShapeInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IBaseDashboardSnapshot, IBaseDashboardWidget } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface IDashboardGridProps {
|
|
4
|
+
dashboard: IBaseDashboardSnapshot;
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
selectedWidgetId?: string;
|
|
7
|
+
renderWidget: (widget: IBaseDashboardWidget) => ReactNode;
|
|
8
|
+
renderWidgetActions?: (widget: IBaseDashboardWidget) => ReactNode;
|
|
9
|
+
widgetLabel: (widget: IBaseDashboardWidget) => string;
|
|
10
|
+
onSelectWidget?: (widgetId?: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DashboardGrid({ dashboard, editable, onSelectWidget, renderWidget, renderWidgetActions, selectedWidgetId, widgetLabel }: IDashboardGridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IBaseDashboardWidget } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import type { IChartModelBinding } from '@univerjs-pro/engine-chart';
|
|
3
|
+
import type { BaseDataModel, ImageSourceType } from '@univerjs/core';
|
|
4
|
+
import type { ISelectedDashboardBackgroundImage } from './DashboardFormulaShapeInspector';
|
|
5
|
+
export interface ISelectedDashboardImage {
|
|
6
|
+
name: string;
|
|
7
|
+
source: string;
|
|
8
|
+
sourceType: ImageSourceType;
|
|
9
|
+
}
|
|
10
|
+
export interface IDashboardInspectorProps {
|
|
11
|
+
base: BaseDataModel;
|
|
12
|
+
chartRuntime?: IChartModelBinding;
|
|
13
|
+
onChange: (widget: IBaseDashboardWidget) => Promise<unknown>;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
onSelectBackgroundImage: () => Promise<ISelectedDashboardBackgroundImage | null>;
|
|
16
|
+
onSelectImage: () => Promise<ISelectedDashboardImage | null>;
|
|
17
|
+
unitId: string;
|
|
18
|
+
widget: IBaseDashboardWidget;
|
|
19
|
+
}
|
|
20
|
+
export declare function DashboardInspector({ base, chartRuntime, onChange, onClose, onSelectBackgroundImage, onSelectImage, unitId, widget }: IDashboardInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { MobileDialog, MobileDropdownMenu, MobileSelect } from '@univerjs/design';
|
|
3
|
+
export declare function DashboardMobileControls({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function DashboardSelect(props: ComponentProps<typeof MobileSelect>): import("react").JSX.Element;
|
|
7
|
+
export declare function DashboardDropdownMenu(props: ComponentProps<typeof MobileDropdownMenu>): import("react").JSX.Element;
|
|
8
|
+
export declare function DashboardDialog(props: ComponentProps<typeof MobileDialog>): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseMenuFieldItem } from '@univerjs-pro/bases-ui';
|
|
2
|
+
import type { IFilterConfig } from '@univerjs/core';
|
|
3
|
+
export interface IDashboardFilterWidgetProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
fields: IBaseMenuFieldItem[];
|
|
6
|
+
filter: IFilterConfig | null | undefined;
|
|
7
|
+
onChange: (filter: IFilterConfig) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface IDashboardFilterInspectorProps extends IDashboardFilterWidgetProps {
|
|
10
|
+
onClear: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DashboardFilterWidget({ disabled, fields, filter, onChange }: IDashboardFilterWidgetProps): import("react").JSX.Element;
|
|
13
|
+
export declare function DashboardFilterInspector({ fields, filter, onChange, onClear }: IDashboardFilterInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface IDashboardWidgetActionsProps {
|
|
2
|
+
onDelete: () => void;
|
|
3
|
+
onEdit: () => void;
|
|
4
|
+
onMoveUp?: () => void;
|
|
5
|
+
onMoveDown?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function DashboardWidgetActions({ onDelete, onEdit, onMoveUp, onMoveDown }: IDashboardWidgetActionsProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseDashboardResourceService } from '@univerjs-pro/bases-dashboard';
|
|
2
|
+
import { IBaseDashboardUIExtensionRegistryService, IBaseViewUIRegistryService } from '@univerjs-pro/bases-ui';
|
|
3
|
+
import { Disposable, ICommandService, IPermissionService, LocaleService } from '@univerjs/core';
|
|
4
|
+
export declare class BaseDashboardMobileUIController extends Disposable {
|
|
5
|
+
constructor(dashboardRegistry: IBaseDashboardUIExtensionRegistryService, viewRegistry: IBaseViewUIRegistryService, resourceService: BaseDashboardResourceService, commandService: ICommandService, permissionService: IPermissionService, localeService: LocaleService);
|
|
6
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { LocaleLeafKeys } from '@univerjs/core';
|
|
2
2
|
import type enUS from './en-US';
|
|
3
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 UniverBaseDashboardMobileUIPlugin 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
|
+
}
|