@antv/s2-vue 2.0.0-next.15 → 2.0.0-next.16
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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +578 -160
- package/esm/index.js +63 -5
- package/esm/index.js.map +1 -1
- package/esm/style.css +4 -51
- package/lib/index.js +63 -5
- package/lib/index.js.map +1 -1
- package/lib/style.css +4 -51
- package/package.json +1 -1
package/esm/index.js
CHANGED
|
@@ -115,6 +115,48 @@ const EN_US = {
|
|
|
115
115
|
冻结前: "Freeze the first",
|
|
116
116
|
冻结后: "Freeze the last"
|
|
117
117
|
};
|
|
118
|
+
const RU = {
|
|
119
|
+
选择分析信息: "Выберите информацию для анализа",
|
|
120
|
+
切换指标: "Индикатор переключения",
|
|
121
|
+
确定: "Подтвердить",
|
|
122
|
+
取消: "Отмена",
|
|
123
|
+
重置: "Сбросить",
|
|
124
|
+
请输入关键字搜索: "Пожалуйста, введите поиск по ключевым словам",
|
|
125
|
+
搜索: "Поиск",
|
|
126
|
+
恢复: "Восстановить",
|
|
127
|
+
"已选 {} 项": "Выбран(-но) {} элемент(-а/-ов)",
|
|
128
|
+
所选项: "выбранные элементы",
|
|
129
|
+
选择下钻维度: "Выберите параметры детализации",
|
|
130
|
+
恢复默认: "Сбросить до первоначального состояния",
|
|
131
|
+
搜索字段: "Поисковое поле",
|
|
132
|
+
// switcher
|
|
133
|
+
行列切换: "Конфигурация отображения строк, столбцов и значений",
|
|
134
|
+
行头: "Строки",
|
|
135
|
+
列头: "Колонки",
|
|
136
|
+
值: "Значения",
|
|
137
|
+
展开子项: "Отобразить дочерние элементы",
|
|
138
|
+
// sort
|
|
139
|
+
首字母: "Алфавитная сортировка",
|
|
140
|
+
手动排序: "Ручная сортировка",
|
|
141
|
+
其他字段: "Другое поле",
|
|
142
|
+
高级排序: "Расширенная сортировка",
|
|
143
|
+
设置顺序: "Установить сортировку",
|
|
144
|
+
可选字段: "Необязательные поля",
|
|
145
|
+
"按以下规则进行排序(优先级由低到高)": "Порядок, определеяемый следующими правилами (от низкого приоритета к высокому)",
|
|
146
|
+
按: "По",
|
|
147
|
+
说明: "Описание: ",
|
|
148
|
+
// export
|
|
149
|
+
复制原始数据: "Копировать строковые данные",
|
|
150
|
+
复制格式化数据: "Копировать отформатированные данные",
|
|
151
|
+
下载原始数据: "Скачать строковые данные",
|
|
152
|
+
下载格式化数据: "Скачать отформатированные данные",
|
|
153
|
+
操作成功: "Операция успешно выполнена",
|
|
154
|
+
操作失败: "Операция завершилась неудачно",
|
|
155
|
+
// strategy
|
|
156
|
+
时间: "Дата",
|
|
157
|
+
指标: "Мера",
|
|
158
|
+
目标值: "Целевое Значение"
|
|
159
|
+
};
|
|
118
160
|
const ZH_CN = {
|
|
119
161
|
选择分析信息: "选择分析信息",
|
|
120
162
|
切换指标: "切换指标",
|
|
@@ -191,7 +233,8 @@ const ZH_CN = {
|
|
|
191
233
|
};
|
|
192
234
|
const Locale = {
|
|
193
235
|
zh_CN: ZH_CN,
|
|
194
|
-
en_US: EN_US
|
|
236
|
+
en_US: EN_US,
|
|
237
|
+
ru_RU: RU
|
|
195
238
|
};
|
|
196
239
|
const SHEET_COMPONENT_DEFAULT_OPTIONS = {
|
|
197
240
|
tooltip: {
|
|
@@ -1904,7 +1947,7 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
|
|
|
1904
1947
|
}
|
|
1905
1948
|
],
|
|
1906
1949
|
belongsCell: "rowCell",
|
|
1907
|
-
defaultHide:
|
|
1950
|
+
defaultHide: true,
|
|
1908
1951
|
displayCondition: (partDrillDown == null ? void 0 : partDrillDown.displayCondition) || defaultPartDrillDownDisplayCondition
|
|
1909
1952
|
};
|
|
1910
1953
|
nextHeaderIcons.push(drillDownActionIcon);
|
|
@@ -2616,8 +2659,8 @@ const useCellEvent = (s2Ref, emit, eventName, emitName) => {
|
|
|
2616
2659
|
};
|
|
2617
2660
|
const useS2Event = (s2Ref, emit, eventName, emitName) => {
|
|
2618
2661
|
var _a;
|
|
2619
|
-
const handler = (params) => {
|
|
2620
|
-
emit(emitName, params);
|
|
2662
|
+
const handler = (...params) => {
|
|
2663
|
+
emit(emitName, ...params);
|
|
2621
2664
|
};
|
|
2622
2665
|
(_a = s2Ref.value) == null ? void 0 : _a.on(eventName, handler);
|
|
2623
2666
|
};
|
|
@@ -2651,6 +2694,8 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2651
2694
|
"rowCellAllCollapsed"
|
|
2652
2695
|
);
|
|
2653
2696
|
useS2Event(s2Ref, emit, S2Event.ROW_CELL_SCROLL, "rowCellScroll");
|
|
2697
|
+
useS2Event(s2Ref, emit, S2Event.ROW_CELL_RENDER, "rowCellRender");
|
|
2698
|
+
useS2Event(s2Ref, emit, S2Event.ROW_CELL_SELECTED, "rowCellSelected");
|
|
2654
2699
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_HOVER, "colCellHover");
|
|
2655
2700
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_CLICK, "colCellClick");
|
|
2656
2701
|
useCellEvent(
|
|
@@ -2670,6 +2715,8 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2670
2715
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_MOUSE_MOVE, "colCellMouseMove");
|
|
2671
2716
|
useS2Event(s2Ref, emit, S2Event.COL_CELL_EXPANDED, "colCellExpanded");
|
|
2672
2717
|
useS2Event(s2Ref, emit, S2Event.COL_CELL_HIDDEN, "colCellHidden");
|
|
2718
|
+
useS2Event(s2Ref, emit, S2Event.COL_CELL_RENDER, "colCellRender");
|
|
2719
|
+
useS2Event(s2Ref, emit, S2Event.COL_CELL_SELECTED, "colCellSelected");
|
|
2673
2720
|
useCellEvent(s2Ref, emit, S2Event.DATA_CELL_HOVER, "dataCellHover");
|
|
2674
2721
|
useCellEvent(s2Ref, emit, S2Event.DATA_CELL_CLICK, "dataCellClick");
|
|
2675
2722
|
useCellEvent(
|
|
@@ -2709,6 +2756,8 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2709
2756
|
S2Event.DATA_CELL_SELECT_MOVE,
|
|
2710
2757
|
"dataCellSelectMove"
|
|
2711
2758
|
);
|
|
2759
|
+
useS2Event(s2Ref, emit, S2Event.DATA_CELL_RENDER, "dataCellRender");
|
|
2760
|
+
useS2Event(s2Ref, emit, S2Event.DATA_CELL_SELECTED, "dataCellSelected");
|
|
2712
2761
|
useCellEvent(s2Ref, emit, S2Event.CORNER_CELL_HOVER, "cornerCellHover");
|
|
2713
2762
|
useCellEvent(s2Ref, emit, S2Event.CORNER_CELL_CLICK, "cornerCellClick");
|
|
2714
2763
|
useCellEvent(
|
|
@@ -2741,6 +2790,8 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2741
2790
|
S2Event.CORNER_CELL_MOUSE_MOVE,
|
|
2742
2791
|
"cornerCellMouseMove"
|
|
2743
2792
|
);
|
|
2793
|
+
useS2Event(s2Ref, emit, S2Event.CORNER_CELL_RENDER, "cornerCellRender");
|
|
2794
|
+
useS2Event(s2Ref, emit, S2Event.CORNER_CELL_SELECTED, "cornerCellSelected");
|
|
2744
2795
|
useCellEvent(s2Ref, emit, S2Event.MERGED_CELLS_HOVER, "mergedCellsHover");
|
|
2745
2796
|
useCellEvent(s2Ref, emit, S2Event.MERGED_CELLS_CLICK, "mergedCellsClick");
|
|
2746
2797
|
useCellEvent(
|
|
@@ -2773,6 +2824,13 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2773
2824
|
S2Event.MERGED_CELLS_MOUSE_MOVE,
|
|
2774
2825
|
"mergedCellsMouseMove"
|
|
2775
2826
|
);
|
|
2827
|
+
useS2Event(s2Ref, emit, S2Event.MERGED_CELLS_RENDER, "mergedCellsRender");
|
|
2828
|
+
useS2Event(
|
|
2829
|
+
s2Ref,
|
|
2830
|
+
emit,
|
|
2831
|
+
S2Event.SERIES_NUMBER_CELL_RENDER,
|
|
2832
|
+
"seriesNumberCellRender"
|
|
2833
|
+
);
|
|
2776
2834
|
useS2Event(s2Ref, emit, S2Event.RANGE_SORT, "rangeSort");
|
|
2777
2835
|
useS2Event(s2Ref, emit, S2Event.RANGE_SORTED, "rangeSorted");
|
|
2778
2836
|
useS2Event(s2Ref, emit, S2Event.RANGE_FILTER, "rangeFilter");
|
|
@@ -3584,7 +3642,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3584
3642
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
|
|
3585
3643
|
}
|
|
3586
3644
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3587
|
-
const version = "@antv/s2-vue-v2.0.0-next.
|
|
3645
|
+
const version = "@antv/s2-vue-v2.0.0-next.16";
|
|
3588
3646
|
export {
|
|
3589
3647
|
BaseSheet,
|
|
3590
3648
|
CustomTooltip,
|