@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/esm/style.css CHANGED
@@ -6,6 +6,9 @@
6
6
  border: 0;
7
7
  cursor: pointer;
8
8
  }
9
+ .antv-s2-tooltip-operator .ant-menu {
10
+ font-size: 12px;
11
+ }
9
12
  .antv-s2-tooltip-operator .ant-menu-horizontal:not(.ant-menu-dark) {
10
13
  background: transparent;
11
14
  line-height: 36px;
@@ -19,7 +22,6 @@
19
22
  color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
20
23
  border: 0;
21
24
  user-select: none;
22
- padding: 4px;
23
25
  width: 100%;
24
26
  }
25
27
  .antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item {
@@ -118,52 +120,6 @@
118
120
  height: 12px;
119
121
  fill: var(--antv-s2-font);
120
122
  }
121
- @media only screen and (max-device-width: 480px) {
122
- .antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu {
123
- font-size: 12px;
124
- }
125
- .antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item {
126
- height: 36px;
127
- }
128
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,
129
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,
130
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,
131
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item {
132
- line-height: 36px;
133
- }
134
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
135
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
136
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,
137
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,
138
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,
139
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,
140
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,
141
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title {
142
- font-size: 12px;
143
- }
144
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
145
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
146
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
147
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
148
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
149
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
150
- .antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
151
- .antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active) {
152
- color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
153
- }
154
- .antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,
155
- .antv-s2-tooltip-operator-submenu-popup .ant-menu-item {
156
- font-size: 12px;
157
- }
158
- .antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),
159
- .antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active) {
160
- color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
161
- }
162
- .antv-s2-tooltip-operator-icon svg {
163
- width: 12px;
164
- height: 12px;
165
- }
166
- }
167
123
  .antv-s2-tooltip-container {
168
124
  position: fixed;
169
125
  user-select: text;
@@ -333,7 +289,7 @@
333
289
  width: 260px;
334
290
  min-height: 20px;
335
291
  position: relative;
336
- color: var(--antv-s2-font-70, #fff);
292
+ color: var(--antv-s2-font-70, rgba(0, 0, 0, 0.9));
337
293
  }
338
294
  .antv-s2-drill-down-header[data-v-8dd920ec] {
339
295
  display: flex;
@@ -366,9 +322,6 @@
366
322
  .antv-s2-drill-down-search .ant-input[data-v-8dd920ec]::placeholder {
367
323
  background-color: var(--antv-s2-block-background, #fff);
368
324
  }
369
- .antv-s2-drill-down-extra[data-v-8dd920ec] {
370
- margin: 4px 16px;
371
- }
372
325
  .antv-s2-drill-down-menu[data-v-8dd920ec] {
373
326
  max-height: 314px;
374
327
  overflow: hidden auto;
package/lib/index.js CHANGED
@@ -117,6 +117,48 @@ const EN_US = {
117
117
  冻结前: "Freeze the first",
118
118
  冻结后: "Freeze the last"
119
119
  };
120
+ const RU = {
121
+ 选择分析信息: "Выберите информацию для анализа",
122
+ 切换指标: "Индикатор переключения",
123
+ 确定: "Подтвердить",
124
+ 取消: "Отмена",
125
+ 重置: "Сбросить",
126
+ 请输入关键字搜索: "Пожалуйста, введите поиск по ключевым словам",
127
+ 搜索: "Поиск",
128
+ 恢复: "Восстановить",
129
+ "已选 {} 项": "Выбран(-но) {} элемент(-а/-ов)",
130
+ 所选项: "выбранные элементы",
131
+ 选择下钻维度: "Выберите параметры детализации",
132
+ 恢复默认: "Сбросить до первоначального состояния",
133
+ 搜索字段: "Поисковое поле",
134
+ // switcher
135
+ 行列切换: "Конфигурация отображения строк, столбцов и значений",
136
+ 行头: "Строки",
137
+ 列头: "Колонки",
138
+ 值: "Значения",
139
+ 展开子项: "Отобразить дочерние элементы",
140
+ // sort
141
+ 首字母: "Алфавитная сортировка",
142
+ 手动排序: "Ручная сортировка",
143
+ 其他字段: "Другое поле",
144
+ 高级排序: "Расширенная сортировка",
145
+ 设置顺序: "Установить сортировку",
146
+ 可选字段: "Необязательные поля",
147
+ "按以下规则进行排序(优先级由低到高)": "Порядок, определеяемый следующими правилами (от низкого приоритета к высокому)",
148
+ 按: "По",
149
+ 说明: "Описание: ",
150
+ // export
151
+ 复制原始数据: "Копировать строковые данные",
152
+ 复制格式化数据: "Копировать отформатированные данные",
153
+ 下载原始数据: "Скачать строковые данные",
154
+ 下载格式化数据: "Скачать отформатированные данные",
155
+ 操作成功: "Операция успешно выполнена",
156
+ 操作失败: "Операция завершилась неудачно",
157
+ // strategy
158
+ 时间: "Дата",
159
+ 指标: "Мера",
160
+ 目标值: "Целевое Значение"
161
+ };
120
162
  const ZH_CN = {
121
163
  选择分析信息: "选择分析信息",
122
164
  切换指标: "切换指标",
@@ -193,7 +235,8 @@ const ZH_CN = {
193
235
  };
194
236
  const Locale = {
195
237
  zh_CN: ZH_CN,
196
- en_US: EN_US
238
+ en_US: EN_US,
239
+ ru_RU: RU
197
240
  };
198
241
  const SHEET_COMPONENT_DEFAULT_OPTIONS = {
199
242
  tooltip: {
@@ -1906,7 +1949,7 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
1906
1949
  }
1907
1950
  ],
1908
1951
  belongsCell: "rowCell",
1909
- defaultHide: false,
1952
+ defaultHide: true,
1910
1953
  displayCondition: (partDrillDown == null ? void 0 : partDrillDown.displayCondition) || defaultPartDrillDownDisplayCondition
1911
1954
  };
1912
1955
  nextHeaderIcons.push(drillDownActionIcon);
@@ -2618,8 +2661,8 @@ const useCellEvent = (s2Ref, emit, eventName, emitName) => {
2618
2661
  };
2619
2662
  const useS2Event = (s2Ref, emit, eventName, emitName) => {
2620
2663
  var _a;
2621
- const handler = (params) => {
2622
- emit(emitName, params);
2664
+ const handler = (...params) => {
2665
+ emit(emitName, ...params);
2623
2666
  };
2624
2667
  (_a = s2Ref.value) == null ? void 0 : _a.on(eventName, handler);
2625
2668
  };
@@ -2653,6 +2696,8 @@ const useEvents = (s2Ref, emit) => {
2653
2696
  "rowCellAllCollapsed"
2654
2697
  );
2655
2698
  useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_SCROLL, "rowCellScroll");
2699
+ useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_RENDER, "rowCellRender");
2700
+ useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_SELECTED, "rowCellSelected");
2656
2701
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_HOVER, "colCellHover");
2657
2702
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_CLICK, "colCellClick");
2658
2703
  useCellEvent(
@@ -2672,6 +2717,8 @@ const useEvents = (s2Ref, emit) => {
2672
2717
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_MOUSE_MOVE, "colCellMouseMove");
2673
2718
  useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_EXPANDED, "colCellExpanded");
2674
2719
  useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_HIDDEN, "colCellHidden");
2720
+ useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_RENDER, "colCellRender");
2721
+ useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_SELECTED, "colCellSelected");
2675
2722
  useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_HOVER, "dataCellHover");
2676
2723
  useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_CLICK, "dataCellClick");
2677
2724
  useCellEvent(
@@ -2711,6 +2758,8 @@ const useEvents = (s2Ref, emit) => {
2711
2758
  s2.S2Event.DATA_CELL_SELECT_MOVE,
2712
2759
  "dataCellSelectMove"
2713
2760
  );
2761
+ useS2Event(s2Ref, emit, s2.S2Event.DATA_CELL_RENDER, "dataCellRender");
2762
+ useS2Event(s2Ref, emit, s2.S2Event.DATA_CELL_SELECTED, "dataCellSelected");
2714
2763
  useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_HOVER, "cornerCellHover");
2715
2764
  useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_CLICK, "cornerCellClick");
2716
2765
  useCellEvent(
@@ -2743,6 +2792,8 @@ const useEvents = (s2Ref, emit) => {
2743
2792
  s2.S2Event.CORNER_CELL_MOUSE_MOVE,
2744
2793
  "cornerCellMouseMove"
2745
2794
  );
2795
+ useS2Event(s2Ref, emit, s2.S2Event.CORNER_CELL_RENDER, "cornerCellRender");
2796
+ useS2Event(s2Ref, emit, s2.S2Event.CORNER_CELL_SELECTED, "cornerCellSelected");
2746
2797
  useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_HOVER, "mergedCellsHover");
2747
2798
  useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_CLICK, "mergedCellsClick");
2748
2799
  useCellEvent(
@@ -2775,6 +2826,13 @@ const useEvents = (s2Ref, emit) => {
2775
2826
  s2.S2Event.MERGED_CELLS_MOUSE_MOVE,
2776
2827
  "mergedCellsMouseMove"
2777
2828
  );
2829
+ useS2Event(s2Ref, emit, s2.S2Event.MERGED_CELLS_RENDER, "mergedCellsRender");
2830
+ useS2Event(
2831
+ s2Ref,
2832
+ emit,
2833
+ s2.S2Event.SERIES_NUMBER_CELL_RENDER,
2834
+ "seriesNumberCellRender"
2835
+ );
2778
2836
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_SORT, "rangeSort");
2779
2837
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_SORTED, "rangeSorted");
2780
2838
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_FILTER, "rangeFilter");
@@ -3586,7 +3644,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3586
3644
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3587
3645
  }
3588
3646
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3589
- const version = "@antv/s2-vue-v2.0.0-next.15";
3647
+ const version = "@antv/s2-vue-v2.0.0-next.16";
3590
3648
  exports.BaseSheet = BaseSheet;
3591
3649
  exports.CustomTooltip = CustomTooltip;
3592
3650
  exports.PivotSheet = PivotSheet;