@univerjs/sheets-filter-ui 0.2.2 → 0.2.4-alpha.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.
@@ -0,0 +1,53 @@
1
+ {
2
+ "sheets-filter": {
3
+ "toolbar": {
4
+ "smart-toggle-filter-tooltip": "Lọc",
5
+ "clear-filter-criteria": "Xóa điều kiện lọc",
6
+ "re-calc-filter-conditions": "Tính toán lại"
7
+ },
8
+ "command": {
9
+ "not-valid-filter-range": "Khu vực được chọn chỉ có một hàng, không thể lọc"
10
+ },
11
+ "shortcut": {
12
+ "smart-toggle-filter": "Chuyển đổi lọc"
13
+ },
14
+ "panel": {
15
+ "clear-filter": "Xóa lọc",
16
+ "cancel": "Hủy bỏ",
17
+ "confirm": "Xác nhận",
18
+ "by-values": "Theo giá trị",
19
+ "by-conditions": "Theo điều kiện",
20
+ "filter-only": "Chỉ lọc",
21
+ "search-placeholder": "Sử dụng khoảng trắng để tách các từ khóa",
22
+ "select-all": "Chọn tất cả",
23
+ "input-values-placeholder": "Vui lòng nhập",
24
+ "or": "hoặc",
25
+ "and": "và",
26
+ "empty": "(Trống)",
27
+ "?": "Sử dụng ? để đại diện cho một ký tự",
28
+ "*": "Sử dụng * để đại diện cho nhiều ký tự"
29
+ },
30
+ "conditions": {
31
+ "none": "Không",
32
+ "empty": "Trống",
33
+ "not-empty": "Không trống",
34
+ "text-contains": "Văn bản chứa",
35
+ "does-not-contain": "Văn bản không chứa",
36
+ "starts-with": "Văn bản bắt đầu với",
37
+ "ends-with": "Văn bản kết thúc với",
38
+ "equals": "Văn bản khớp",
39
+ "greater-than": "Lớn hơn",
40
+ "greater-than-or-equal": "Lớn hơn hoặc bằng",
41
+ "less-than": "Nhỏ hơn",
42
+ "less-than-or-equal": "Nhỏ hơn hoặc bằng",
43
+ "equal": "Bằng",
44
+ "not-equal": "Không bằng",
45
+ "between": "Giữa",
46
+ "not-between": "Không giữa",
47
+ "custom": "Tùy chỉnh"
48
+ },
49
+ "msg": {
50
+ "filter-header-forbidden": "Không thể di chuyển hàng đầu lọc"
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
+ }
@@ -1,9 +1,8 @@
1
- import { Workbook, ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
1
+ import { Workbook, ICommandService, Injector, RxDisposable, ThemeService } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { SheetInterceptorService } from '@univerjs/sheets';
4
4
  import { SheetsFilterService } from '@univerjs/sheets-filter';
5
- import { ISelectionRenderService, SheetSkeletonManagerService, SheetsRenderService } from '@univerjs/sheets-ui';
6
- import { Injector } from '@wendellhu/redi';
5
+ import { ISheetSelectionRenderService, SheetSkeletonManagerService, SheetsRenderService } from '@univerjs/sheets-ui';
7
6
 
8
7
  export declare class SheetsFilterRenderController extends RxDisposable implements IRenderModule {
9
8
  private readonly _context;
@@ -19,7 +18,7 @@ export declare class SheetsFilterRenderController extends RxDisposable implement
19
18
  private _filterRangeShape;
20
19
  private _buttonRenderDisposable;
21
20
  private _filterButtonShapes;
22
- constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetsFilterService: SheetsFilterService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _sheetsRenderService: SheetsRenderService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService);
21
+ constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetsFilterService: SheetsFilterService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _sheetsRenderService: SheetsRenderService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISheetSelectionRenderService);
23
22
  private _initRenderer;
24
23
  private _renderRange;
25
24
  private _renderButtons;
@@ -1,6 +1,5 @@
1
- import { ICommandService, IContextService, LocaleService } from '@univerjs/core';
1
+ import { ICommandService, IContextService, Injector, LocaleService } from '@univerjs/core';
2
2
  import { ComponentManager, IMenuService, IMessageService, IShortcutService, MenuConfig } from '@univerjs/ui';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
5
4
  import { IRenderManagerService } from '@univerjs/engine-render';
6
5
  import { SheetsFilterService } from '@univerjs/sheets-filter';
@@ -1,5 +1,5 @@
1
1
  import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
2
- import { IAccessor } from '@wendellhu/redi';
2
+ import { IAccessor } from '@univerjs/core';
3
3
 
4
4
  export declare function SmartToggleFilterMenuItemFactory(accessor: IAccessor): IMenuSelectorItem;
5
5
  export declare function ClearFilterCriteriaMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -1,5 +1,4 @@
1
- import { Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
2
  import { IUniverSheetsFilterUIConfig } from './controllers/sheets-filter-ui.controller';
4
3
 
5
4
  export declare class UniverSheetsFilterMobileUIPlugin extends Plugin {
@@ -1,5 +1,4 @@
1
- import { LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
3
2
  import { IUniverSheetsFilterUIConfig } from './controllers/sheets-filter-ui.controller';
4
3
 
5
4
  export declare class UniverSheetsFilterUIPlugin extends Plugin {
@@ -1,6 +1,5 @@
1
- import { Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
1
+ import { IDisposable, Nullable, Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
2
2
  import { SheetsFilterService, FilterColumn, FilterModel } from '@univerjs/sheets-filter';
3
- import { IDisposable, Injector } from '@wendellhu/redi';
4
3
  import { Observable } from 'rxjs';
5
4
  import { RefRangeService } from '@univerjs/sheets';
6
5
  import { FilterOperator, IFilterConditionFormParams, IFilterConditionItem } from '../models/conditions';
@@ -32,7 +31,7 @@ export interface ISheetsFilterPanelService {
32
31
  */
33
32
  terminate(): boolean;
34
33
  }
35
- export declare const ISheetsFilterPanelService: import('@wendellhu/redi').IdentifierDecorator<ISheetsFilterPanelService>;
34
+ export declare const ISheetsFilterPanelService: import('@univerjs/core').IdentifierDecorator<ISheetsFilterPanelService>;
36
35
  export interface IFilterByModel extends IDisposable {
37
36
  canApply$: Observable<boolean>;
38
37
  deltaCol(offset: number): void;