@univerjs/sheets-filter-ui 0.1.12 → 0.1.13
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/lib/cjs/index.js +4 -4
- package/lib/es/index.js +1187 -1119
- package/lib/locale/en-US.json +53 -0
- package/lib/locale/ru-RU.json +53 -0
- package/lib/locale/zh-CN.json +53 -0
- package/lib/types/controllers/sheets-filter-permission.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-filter-ui.controller.d.ts +7 -3
- package/lib/types/index.d.ts +6 -1
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/umd/index.js +4 -4
- package/package.json +20 -18
- package/lib/types/locale/index.d.ts +0 -18
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sheets-filter": {
|
|
3
|
+
"toolbar": {
|
|
4
|
+
"smart-toggle-filter-tooltip": "Toggle Filter",
|
|
5
|
+
"clear-filter-criteria": "Clear Filter Conditions",
|
|
6
|
+
"re-calc-filter-conditions": "Re-calc Filter Conditions"
|
|
7
|
+
},
|
|
8
|
+
"command": {
|
|
9
|
+
"not-valid-filter-range": "The selected range only has one row and not valid for filter."
|
|
10
|
+
},
|
|
11
|
+
"shortcut": {
|
|
12
|
+
"smart-toggle-filter": "Toggle Filter"
|
|
13
|
+
},
|
|
14
|
+
"panel": {
|
|
15
|
+
"clear-filter": "Clear Filter",
|
|
16
|
+
"cancel": "Cancel",
|
|
17
|
+
"confirm": "Confirm",
|
|
18
|
+
"by-values": "By Values",
|
|
19
|
+
"by-conditions": "By Conditions",
|
|
20
|
+
"filter-only": "Filter Only",
|
|
21
|
+
"search-placeholder": "Use space to separate keywords",
|
|
22
|
+
"select-all": "Select All",
|
|
23
|
+
"input-values-placeholder": "Input Values",
|
|
24
|
+
"and": "AND",
|
|
25
|
+
"or": "OR",
|
|
26
|
+
"empty": "(empty)",
|
|
27
|
+
"?": "Use “?” to represent a single character.",
|
|
28
|
+
"*": "Use “*” to represent multiple characters."
|
|
29
|
+
},
|
|
30
|
+
"conditions": {
|
|
31
|
+
"none": "None",
|
|
32
|
+
"empty": "Is Empty",
|
|
33
|
+
"not-empty": "Is Not Empty",
|
|
34
|
+
"text-contains": "Text Contains",
|
|
35
|
+
"does-not-contain": "Text Does Not Contain",
|
|
36
|
+
"starts-with": "Text Starts With",
|
|
37
|
+
"ends-with": "Text Ends With",
|
|
38
|
+
"equals": "Text Equals",
|
|
39
|
+
"greater-than": "Greater Than",
|
|
40
|
+
"greater-than-or-equal": "Greater Than Or Equal To",
|
|
41
|
+
"less-than": "Less Than",
|
|
42
|
+
"less-than-or-equal": "Less Than Or Equal To",
|
|
43
|
+
"equal": "Equal",
|
|
44
|
+
"not-equal": "Not Equal",
|
|
45
|
+
"between": "Between",
|
|
46
|
+
"not-between": "Not Between",
|
|
47
|
+
"custom": "Custom"
|
|
48
|
+
},
|
|
49
|
+
"msg": {
|
|
50
|
+
"filter-header-forbidden": "You can't move the header row of a filter."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sheets-filter": {
|
|
3
|
+
"toolbar": {
|
|
4
|
+
"smart-toggle-filter-tooltip": "Переключить фильтр",
|
|
5
|
+
"clear-filter-criteria": "Очистить условия фильтра",
|
|
6
|
+
"re-calc-filter-conditions": "Пересчитать условия фильтра"
|
|
7
|
+
},
|
|
8
|
+
"command": {
|
|
9
|
+
"not-valid-filter-range": "Выбранный диапазон содержит только одну строку и не подходит для фильтра."
|
|
10
|
+
},
|
|
11
|
+
"shortcut": {
|
|
12
|
+
"smart-toggle-filter": "Переключить фильтр"
|
|
13
|
+
},
|
|
14
|
+
"panel": {
|
|
15
|
+
"clear-filter": "Очистить фильтр",
|
|
16
|
+
"cancel": "Отмена",
|
|
17
|
+
"confirm": "Подтвердить",
|
|
18
|
+
"by-values": "По значениям",
|
|
19
|
+
"by-conditions": "По условиям",
|
|
20
|
+
"filter-only": "Только фильтр",
|
|
21
|
+
"search-placeholder": "Используйте пробел для разделения ключевых слов",
|
|
22
|
+
"select-all": "Выбрать все",
|
|
23
|
+
"input-values-placeholder": "Введите значения",
|
|
24
|
+
"and": "И",
|
|
25
|
+
"or": "ИЛИ",
|
|
26
|
+
"empty": "(пусто)",
|
|
27
|
+
"?": "Используйте “?” для обозначения одного символа.",
|
|
28
|
+
"*": "Используйте “*” для обозначения нескольких символов."
|
|
29
|
+
},
|
|
30
|
+
"conditions": {
|
|
31
|
+
"none": "Нет",
|
|
32
|
+
"empty": "Пусто",
|
|
33
|
+
"not-empty": "Не пусто",
|
|
34
|
+
"text-contains": "Содержит текст",
|
|
35
|
+
"does-not-contain": "Не содержит текст",
|
|
36
|
+
"starts-with": "Начинается с",
|
|
37
|
+
"ends-with": "Заканчивается на",
|
|
38
|
+
"equals": "Равно",
|
|
39
|
+
"greater-than": "Больше чем",
|
|
40
|
+
"greater-than-or-equal": "Больше или равно",
|
|
41
|
+
"less-than": "Меньше чем",
|
|
42
|
+
"less-than-or-equal": "Меньше или равно",
|
|
43
|
+
"equal": "Равно",
|
|
44
|
+
"not-equal": "Не равно",
|
|
45
|
+
"between": "Между",
|
|
46
|
+
"not-between": "Не между",
|
|
47
|
+
"custom": "Пользовательский"
|
|
48
|
+
},
|
|
49
|
+
"msg": {
|
|
50
|
+
"filter-header-forbidden": "Вы не можете переместить строку заголовка фильтра."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sheets-filter": {
|
|
3
|
+
"toolbar": {
|
|
4
|
+
"smart-toggle-filter-tooltip": "筛选",
|
|
5
|
+
"clear-filter-criteria": "清除筛选条件",
|
|
6
|
+
"re-calc-filter-conditions": "重新计算"
|
|
7
|
+
},
|
|
8
|
+
"command": {
|
|
9
|
+
"not-valid-filter-range": "选中的区域只有一行,无法进行筛选"
|
|
10
|
+
},
|
|
11
|
+
"shortcut": {
|
|
12
|
+
"smart-toggle-filter": "切换筛选"
|
|
13
|
+
},
|
|
14
|
+
"panel": {
|
|
15
|
+
"clear-filter": "清除筛选",
|
|
16
|
+
"cancel": "取消",
|
|
17
|
+
"confirm": "确认",
|
|
18
|
+
"by-values": "按值",
|
|
19
|
+
"by-conditions": "按条件",
|
|
20
|
+
"filter-only": "仅筛选",
|
|
21
|
+
"search-placeholder": "使用空格分隔关键字",
|
|
22
|
+
"select-all": "全选",
|
|
23
|
+
"input-values-placeholder": "请输入",
|
|
24
|
+
"or": "或",
|
|
25
|
+
"and": "和",
|
|
26
|
+
"empty": "(空白)",
|
|
27
|
+
"?": "可用 ? 代表单个字符",
|
|
28
|
+
"*": "可用 * 代表任意多个字符"
|
|
29
|
+
},
|
|
30
|
+
"conditions": {
|
|
31
|
+
"none": "无",
|
|
32
|
+
"empty": "为空",
|
|
33
|
+
"not-empty": "不为空",
|
|
34
|
+
"text-contains": "文本包含",
|
|
35
|
+
"does-not-contain": "文本不包含",
|
|
36
|
+
"starts-with": "文本开头",
|
|
37
|
+
"ends-with": "文本结尾",
|
|
38
|
+
"equals": "文本相符",
|
|
39
|
+
"greater-than": "大于",
|
|
40
|
+
"greater-than-or-equal": "大于等于",
|
|
41
|
+
"less-than": "小于",
|
|
42
|
+
"less-than-or-equal": "小于等于",
|
|
43
|
+
"equal": "等于",
|
|
44
|
+
"not-equal": "不等于",
|
|
45
|
+
"between": "介于",
|
|
46
|
+
"not-between": "不介于",
|
|
47
|
+
"custom": "自定义"
|
|
48
|
+
},
|
|
49
|
+
"msg": {
|
|
50
|
+
"filter-header-forbidden": "无法移动筛选行头"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
2
|
+
import { MenuConfig } from '@univerjs/ui';
|
|
3
|
+
import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
|
4
|
+
import { SheetsFilterService } from '@univerjs/sheets-filter';
|
|
5
|
+
|
|
6
|
+
export interface IUniverSheetsFilterUIConfig {
|
|
7
|
+
menu: MenuConfig;
|
|
8
|
+
}
|
|
9
|
+
export declare const DefaultSheetFilterUiConfig: {};
|
|
10
|
+
export declare const FILTER_PANEL_POPUP_KEY = "FILTER_PANEL_POPUP";
|
|
11
|
+
/**
|
|
12
|
+
* This controller controls the UI of "filter" features. Menus, commands and filter panel etc. Except for the rendering.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SheetsFilterPermissionController extends Disposable {
|
|
15
|
+
private _sheetsFilterService;
|
|
16
|
+
private _localeService;
|
|
17
|
+
private readonly _commandService;
|
|
18
|
+
private readonly _sheetPermissionInterceptorBaseController;
|
|
19
|
+
constructor(_sheetsFilterService: SheetsFilterService, _localeService: LocaleService, _commandService: ICommandService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
|
|
20
|
+
private _commandExecutedListener;
|
|
21
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
|
|
2
|
-
import {
|
|
1
|
+
import { ICommandService, IContextService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager, IMenuService, IMessageService, IShortcutService, MenuConfig } from '@univerjs/ui';
|
|
3
3
|
import { Injector } from '@wendellhu/redi';
|
|
4
4
|
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
5
5
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { SheetsFilterService } from '@univerjs/sheets-filter';
|
|
6
7
|
import { SheetsFilterPanelService } from '../services/sheets-filter-panel.service';
|
|
7
8
|
|
|
8
9
|
export interface IUniverSheetsFilterUIConfig {
|
|
@@ -19,12 +20,15 @@ export declare class SheetsFilterUIController extends RxDisposable {
|
|
|
19
20
|
private readonly _componentManager;
|
|
20
21
|
private readonly _sheetsFilterPanelService;
|
|
21
22
|
private _sheetCanvasPopupService;
|
|
23
|
+
private _sheetsFilterService;
|
|
24
|
+
private _localeService;
|
|
22
25
|
private readonly _renderManagerService;
|
|
23
26
|
private readonly _shortcutService;
|
|
24
27
|
private readonly _commandService;
|
|
25
28
|
private readonly _menuService;
|
|
26
29
|
private readonly _contextService;
|
|
27
|
-
|
|
30
|
+
private readonly _messageService;
|
|
31
|
+
constructor(_config: Partial<IUniverSheetsFilterUIConfig>, _injector: Injector, _componentManager: ComponentManager, _sheetsFilterPanelService: SheetsFilterPanelService, _sheetCanvasPopupService: SheetCanvasPopManagerService, _sheetsFilterService: SheetsFilterService, _localeService: LocaleService, _renderManagerService: IRenderManagerService, _shortcutService: IShortcutService, _commandService: ICommandService, _menuService: IMenuService, _contextService: IContextService, _messageService: IMessageService);
|
|
28
32
|
dispose(): void;
|
|
29
33
|
private _initShortcuts;
|
|
30
34
|
private _initCommands;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,4 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export { UniverSheetsFilterUIPlugin } from './plugin';
|
|
17
|
-
export
|
|
17
|
+
export * as zhCN from './locale/zh-CN';
|
|
18
|
+
export * as enUS from './locale/en-US';
|
|
19
|
+
export * as ruRU from './locale/ru-RU';
|
|
20
|
+
export { OpenFilterPanelOperation } from './commands/sheets-filter.operation';
|
|
21
|
+
export type { IOpenFilterPanelOperationParams } from './commands/sheets-filter.operation';
|
|
22
|
+
export { SmartToggleSheetsFilterCommand } from './commands/sheets-filter.command';
|