@univerjs/sheets-filter-ui 0.4.1 → 0.4.2-nightly.202410301606

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.
@@ -1,53 +1,56 @@
1
- {
1
+ const locale = {
2
2
  "sheets-filter": {
3
- "toolbar": {
3
+ toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Переключить фильтр",
5
5
  "clear-filter-criteria": "Очистить условия фильтра",
6
6
  "re-calc-filter-conditions": "Пересчитать условия фильтра"
7
7
  },
8
- "command": {
8
+ command: {
9
9
  "not-valid-filter-range": "Выбранный диапазон содержит только одну строку и не подходит для фильтра."
10
10
  },
11
- "shortcut": {
11
+ shortcut: {
12
12
  "smart-toggle-filter": "Переключить фильтр"
13
13
  },
14
- "panel": {
14
+ panel: {
15
15
  "clear-filter": "Очистить фильтр",
16
- "cancel": "Отмена",
17
- "confirm": "Подтвердить",
16
+ cancel: "Отмена",
17
+ confirm: "Подтвердить",
18
18
  "by-values": "По значениям",
19
19
  "by-conditions": "По условиям",
20
20
  "filter-only": "Только фильтр",
21
21
  "search-placeholder": "Используйте пробел для разделения ключевых слов",
22
22
  "select-all": "Выбрать все",
23
23
  "input-values-placeholder": "Введите значения",
24
- "and": "И",
25
- "or": "ИЛИ",
26
- "empty": "(пусто)",
24
+ and: "И",
25
+ or: "ИЛИ",
26
+ empty: "(пусто)",
27
27
  "?": "Используйте “?” для обозначения одного символа.",
28
28
  "*": "Используйте “*” для обозначения нескольких символов."
29
29
  },
30
- "conditions": {
31
- "none": "Нет",
32
- "empty": "Пусто",
30
+ conditions: {
31
+ none: "Нет",
32
+ empty: "Пусто",
33
33
  "not-empty": "Не пусто",
34
34
  "text-contains": "Содержит текст",
35
35
  "does-not-contain": "Не содержит текст",
36
36
  "starts-with": "Начинается с",
37
37
  "ends-with": "Заканчивается на",
38
- "equals": "Равно",
38
+ equals: "Равно",
39
39
  "greater-than": "Больше чем",
40
40
  "greater-than-or-equal": "Больше или равно",
41
41
  "less-than": "Меньше чем",
42
42
  "less-than-or-equal": "Меньше или равно",
43
- "equal": "Равно",
43
+ equal: "Равно",
44
44
  "not-equal": "Не равно",
45
- "between": "Между",
45
+ between: "Между",
46
46
  "not-between": "Не между",
47
- "custom": "Пользовательский"
47
+ custom: "Пользовательский"
48
48
  },
49
- "msg": {
49
+ msg: {
50
50
  "filter-header-forbidden": "Вы не можете переместить строку заголовка фильтра."
51
51
  }
52
52
  }
53
- }
53
+ };
54
+ export {
55
+ locale as default
56
+ };
@@ -1,53 +1,56 @@
1
- {
1
+ const locale = {
2
2
  "sheets-filter": {
3
- "toolbar": {
3
+ toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Lọc",
5
5
  "clear-filter-criteria": "Xóa điều kiện lọc",
6
6
  "re-calc-filter-conditions": "Tính toán lại"
7
7
  },
8
- "command": {
8
+ command: {
9
9
  "not-valid-filter-range": "Khu vực được chọn chỉ có một hàng, không thể lọc"
10
10
  },
11
- "shortcut": {
11
+ shortcut: {
12
12
  "smart-toggle-filter": "Chuyển đổi lọc"
13
13
  },
14
- "panel": {
14
+ panel: {
15
15
  "clear-filter": "Xóa lọc",
16
- "cancel": "Hủy bỏ",
17
- "confirm": "Xác nhận",
16
+ cancel: "Hủy bỏ",
17
+ confirm: "Xác nhận",
18
18
  "by-values": "Theo giá trị",
19
19
  "by-conditions": "Theo điều kiện",
20
20
  "filter-only": "Chỉ lọc",
21
21
  "search-placeholder": "Sử dụng khoảng trắng để tách các từ khóa",
22
22
  "select-all": "Chọn tất cả",
23
23
  "input-values-placeholder": "Vui lòng nhập",
24
- "or": "hoặc",
25
- "and": "và",
26
- "empty": "(Trống)",
24
+ or: "hoặc",
25
+ and: "và",
26
+ empty: "(Trống)",
27
27
  "?": "Sử dụng ? để đại diện cho một ký tự",
28
28
  "*": "Sử dụng * để đại diện cho nhiều ký tự"
29
29
  },
30
- "conditions": {
31
- "none": "Không",
32
- "empty": "Trống",
30
+ conditions: {
31
+ none: "Không",
32
+ empty: "Trống",
33
33
  "not-empty": "Không trống",
34
34
  "text-contains": "Văn bản chứa",
35
35
  "does-not-contain": "Văn bản không chứa",
36
36
  "starts-with": "Văn bản bắt đầu với",
37
37
  "ends-with": "Văn bản kết thúc với",
38
- "equals": "Văn bản khớp",
38
+ equals: "Văn bản khớp",
39
39
  "greater-than": "Lớn hơn",
40
40
  "greater-than-or-equal": "Lớn hơn hoặc bằng",
41
41
  "less-than": "Nhỏ hơn",
42
42
  "less-than-or-equal": "Nhỏ hơn hoặc bằng",
43
- "equal": "Bằng",
43
+ equal: "Bằng",
44
44
  "not-equal": "Không bằng",
45
- "between": "Giữa",
45
+ between: "Giữa",
46
46
  "not-between": "Không giữa",
47
- "custom": "Tùy chỉnh"
47
+ custom: "Tùy chỉnh"
48
48
  },
49
- "msg": {
49
+ msg: {
50
50
  "filter-header-forbidden": "Không thể di chuyển hàng đầu lọc"
51
51
  }
52
52
  }
53
- }
53
+ };
54
+ export {
55
+ locale as default
56
+ };
@@ -1,53 +1,56 @@
1
- {
1
+ const locale = {
2
2
  "sheets-filter": {
3
- "toolbar": {
3
+ toolbar: {
4
4
  "smart-toggle-filter-tooltip": "筛选",
5
5
  "clear-filter-criteria": "清除筛选条件",
6
6
  "re-calc-filter-conditions": "重新计算"
7
7
  },
8
- "command": {
8
+ command: {
9
9
  "not-valid-filter-range": "选中的区域只有一行,无法进行筛选"
10
10
  },
11
- "shortcut": {
11
+ shortcut: {
12
12
  "smart-toggle-filter": "切换筛选"
13
13
  },
14
- "panel": {
14
+ panel: {
15
15
  "clear-filter": "清除筛选",
16
- "cancel": "取消",
17
- "confirm": "确认",
16
+ cancel: "取消",
17
+ confirm: "确认",
18
18
  "by-values": "按值",
19
19
  "by-conditions": "按条件",
20
20
  "filter-only": "仅筛选",
21
21
  "search-placeholder": "使用空格分隔关键字",
22
22
  "select-all": "全选",
23
23
  "input-values-placeholder": "请输入",
24
- "or": "或",
25
- "and": "和",
26
- "empty": "(空白)",
24
+ or: "或",
25
+ and: "和",
26
+ empty: "(空白)",
27
27
  "?": "可用 ? 代表单个字符",
28
28
  "*": "可用 * 代表任意多个字符"
29
29
  },
30
- "conditions": {
31
- "none": "无",
32
- "empty": "为空",
30
+ conditions: {
31
+ none: "无",
32
+ empty: "为空",
33
33
  "not-empty": "不为空",
34
34
  "text-contains": "文本包含",
35
35
  "does-not-contain": "文本不包含",
36
36
  "starts-with": "文本开头",
37
37
  "ends-with": "文本结尾",
38
- "equals": "文本相符",
38
+ equals: "文本相符",
39
39
  "greater-than": "大于",
40
40
  "greater-than-or-equal": "大于等于",
41
41
  "less-than": "小于",
42
42
  "less-than-or-equal": "小于等于",
43
- "equal": "等于",
43
+ equal: "等于",
44
44
  "not-equal": "不等于",
45
- "between": "介于",
45
+ between: "介于",
46
46
  "not-between": "不介于",
47
- "custom": "自定义"
47
+ custom: "自定义"
48
48
  },
49
- "msg": {
49
+ msg: {
50
50
  "filter-header-forbidden": "无法移动筛选行头"
51
51
  }
52
52
  }
53
- }
53
+ };
54
+ export {
55
+ locale as default
56
+ };
@@ -1,53 +1,56 @@
1
- {
1
+ const locale = {
2
2
  "sheets-filter": {
3
- "toolbar": {
3
+ toolbar: {
4
4
  "smart-toggle-filter-tooltip": "篩選",
5
5
  "clear-filter-criteria": "清除篩選條件",
6
6
  "re-calc-filter-conditions": "重新計算"
7
7
  },
8
- "command": {
8
+ command: {
9
9
  "not-valid-filter-range": "選取的區域只有一行,無法進行篩選"
10
10
  },
11
- "shortcut": {
11
+ shortcut: {
12
12
  "smart-toggle-filter": "切換篩選"
13
13
  },
14
- "panel": {
14
+ panel: {
15
15
  "clear-filter": "清除篩選",
16
- "cancel": "取消",
17
- "confirm": "確認",
16
+ cancel: "取消",
17
+ confirm: "確認",
18
18
  "by-values": "按值",
19
19
  "by-conditions": "按條件",
20
20
  "filter-only": "僅篩選",
21
21
  "search-placeholder": "使用空格分隔關鍵字",
22
22
  "select-all": "全選",
23
23
  "input-values-placeholder": "請輸入",
24
- "or": "或",
25
- "and": "和",
26
- "empty": "(空白)",
24
+ or: "或",
25
+ and: "和",
26
+ empty: "(空白)",
27
27
  "?": "可用 ? 代表單一字元",
28
28
  "*": "可用 * 代表任意多個字元"
29
29
  },
30
- "conditions": {
31
- "none": "無",
32
- "empty": "為空",
30
+ conditions: {
31
+ none: "無",
32
+ empty: "為空",
33
33
  "not-empty": "不為空",
34
34
  "text-contains": "文字包含",
35
35
  "does-not-contain": "文本不包含",
36
36
  "starts-with": "文字開頭",
37
37
  "ends-with": "文本結尾",
38
- "equals": "文字相符",
38
+ equals: "文字相符",
39
39
  "greater-than": "大於",
40
40
  "greater-than-or-equal": "大於等於",
41
41
  "less-than": "小於",
42
42
  "less-than-or-equal": "小於等於",
43
- "equal": "等於",
43
+ equal: "等於",
44
44
  "not-equal": "不等於",
45
- "between": "介於",
45
+ between: "介於",
46
46
  "not-between": "不介於",
47
- "custom": "自訂"
47
+ custom: "自訂"
48
48
  },
49
- "msg": {
49
+ msg: {
50
50
  "filter-header-forbidden": "無法移動篩選行頭"
51
51
  }
52
52
  }
53
- }
53
+ };
54
+ export {
55
+ locale as default
56
+ };
@@ -1,8 +1,8 @@
1
+ import { MenuConfig } from '@univerjs/ui';
1
2
  import { Disposable, ICommandService, Injector, LocaleService } from '@univerjs/core';
2
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
3
4
  import { SheetsFilterService } from '@univerjs/sheets-filter';
4
5
  import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
5
- import { MenuConfig } from '@univerjs/ui';
6
6
  export interface IUniverSheetsFilterUIConfig {
7
7
  menu: MenuConfig;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { ICommandService, IContextService, Injector, LocaleService } from '@univerjs/core';
2
- import { ComponentManager, IMenuManagerService, IMessageService, IShortcutService } from '@univerjs/ui';
3
- import { SheetCanvasPopManagerService, SheetsRenderService } from '@univerjs/sheets-ui';
4
2
  import { IRenderManagerService } from '@univerjs/engine-render';
5
3
  import { SheetsFilterService } from '@univerjs/sheets-filter';
4
+ import { SheetCanvasPopManagerService, SheetsRenderService } from '@univerjs/sheets-ui';
5
+ import { ComponentManager, IMenuManagerService, IMessageService, IShortcutService } from '@univerjs/ui';
6
6
  import { SheetsFilterPanelService } from '../services/sheets-filter-panel.service';
7
7
  import { SheetsFilterUIMobileController } from './sheets-filter-ui-mobile.controller';
8
8
  export declare const FILTER_PANEL_POPUP_KEY = "FILTER_PANEL_POPUP";
@@ -1,5 +1,5 @@
1
- import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
2
1
  import { IAccessor } from '@univerjs/core';
2
+ import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
3
3
  export declare function SmartToggleFilterMenuItemFactory(accessor: IAccessor): IMenuSelectorItem;
4
4
  export declare function ClearFilterCriteriaMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
5
5
  export declare function ReCalcFilterMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -16,5 +16,4 @@
16
16
  export { UniverSheetsFilterUIPlugin } from './filter-ui-desktop.plugin';
17
17
  export { UniverSheetsFilterMobileUIPlugin } from './filter-ui-mobile.plugin';
18
18
  export { UniverSheetsFilterUIWorkerPlugin } from './worker/plugin';
19
- export { ClearSheetsFilterCriteriaCommand, type ISetSheetFilterRangeCommandParams, type ISetSheetsFilterCriteriaCommandParams, ReCalcSheetsFilterCommand, RemoveSheetFilterCommand, SetSheetFilterRangeCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand, } from './commands/commands/sheets-filter.command';
20
19
  export { ChangeFilterByOperation, CloseFilterPanelOperation, type IOpenFilterPanelOperationParams, OpenFilterPanelOperation, } from './commands/operations/sheets-filter.operation';
@@ -1,8 +1,8 @@
1
1
  import { IDisposable, Nullable, Disposable, ICommandService, Injector } from '@univerjs/core';
2
2
  import { FilterColumn, FilterModel } from '@univerjs/sheets-filter';
3
3
  import { Observable } from 'rxjs';
4
- import { RefRangeService } from '@univerjs/sheets';
5
4
  import { FilterOperator, IFilterConditionFormParams, IFilterConditionItem } from '../models/conditions';
5
+ import { RefRangeService } from '@univerjs/sheets';
6
6
  export declare enum FilterBy {
7
7
  VALUES = 0,
8
8
  CONDITIONS = 1
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Meta } from '@storybook/react';
2
+ import { default as React } from 'react';
3
3
  import { FilterPanel } from './SheetsFilterPanel';
4
4
  declare const meta: Meta<typeof FilterPanel>;
5
5
  export default meta;