@univerjs/sheets-filter-ui 0.24.0 → 0.25.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.
- package/lib/cjs/index.js +58 -59
- package/lib/cjs/locale/ar-SA.js +77 -0
- package/lib/cjs/locale/ca-ES.js +1 -3
- package/lib/cjs/locale/de-DE.js +77 -0
- package/lib/cjs/locale/en-US.js +1 -3
- package/lib/cjs/locale/es-ES.js +1 -3
- package/lib/cjs/locale/fa-IR.js +1 -3
- package/lib/cjs/locale/fr-FR.js +1 -3
- package/lib/cjs/locale/id-ID.js +77 -0
- package/lib/cjs/locale/it-IT.js +77 -0
- package/lib/cjs/locale/ja-JP.js +1 -3
- package/lib/cjs/locale/ko-KR.js +1 -3
- package/lib/cjs/locale/pl-PL.js +77 -0
- package/lib/cjs/locale/pt-BR.js +77 -0
- package/lib/cjs/locale/ru-RU.js +1 -3
- package/lib/cjs/locale/sk-SK.js +1 -3
- package/lib/cjs/locale/vi-VN.js +1 -3
- package/lib/cjs/locale/zh-CN.js +1 -3
- package/lib/cjs/locale/zh-HK.js +77 -0
- package/lib/cjs/locale/zh-TW.js +1 -3
- package/lib/es/index.js +59 -60
- package/lib/es/locale/ar-SA.js +76 -0
- package/lib/es/locale/ca-ES.js +1 -3
- package/lib/es/locale/de-DE.js +76 -0
- package/lib/es/locale/en-US.js +1 -3
- package/lib/es/locale/es-ES.js +1 -3
- package/lib/es/locale/fa-IR.js +1 -3
- package/lib/es/locale/fr-FR.js +1 -3
- package/lib/es/locale/id-ID.js +76 -0
- package/lib/es/locale/it-IT.js +76 -0
- package/lib/es/locale/ja-JP.js +1 -3
- package/lib/es/locale/ko-KR.js +1 -3
- package/lib/es/locale/pl-PL.js +76 -0
- package/lib/es/locale/pt-BR.js +76 -0
- package/lib/es/locale/ru-RU.js +1 -3
- package/lib/es/locale/sk-SK.js +1 -3
- package/lib/es/locale/vi-VN.js +1 -3
- package/lib/es/locale/zh-CN.js +1 -3
- package/lib/es/locale/zh-HK.js +76 -0
- package/lib/es/locale/zh-TW.js +1 -3
- package/lib/index.js +59 -60
- package/lib/locale/ar-SA.js +76 -0
- package/lib/locale/ca-ES.js +1 -3
- package/lib/locale/de-DE.js +76 -0
- package/lib/locale/en-US.js +1 -3
- package/lib/locale/es-ES.js +1 -3
- package/lib/locale/fa-IR.js +1 -3
- package/lib/locale/fr-FR.js +1 -3
- package/lib/locale/id-ID.js +76 -0
- package/lib/locale/it-IT.js +76 -0
- package/lib/locale/ja-JP.js +1 -3
- package/lib/locale/ko-KR.js +1 -3
- package/lib/locale/pl-PL.js +76 -0
- package/lib/locale/pt-BR.js +76 -0
- package/lib/locale/ru-RU.js +1 -3
- package/lib/locale/sk-SK.js +1 -3
- package/lib/locale/vi-VN.js +1 -3
- package/lib/locale/zh-CN.js +1 -3
- package/lib/locale/zh-HK.js +76 -0
- package/lib/locale/zh-TW.js +1 -3
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +1 -7
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanNumber, ColorKit, CommandType, DependentOn, Disposable, ICommandService, IConfigService, IContextService, ILogService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, Optional, Plugin, Quantity, RxDisposable, ThemeService, Tools, UniverInstanceType, VerticalAlign, createIdentifier, extractPureTextFromCell, fromCallback, isNumeric, merge, numfmt, registerDependencies, touchDependencies } from "@univerjs/core";
|
|
2
|
-
import { ClearSheetsFilterCriteriaCommand, CustomFilterOperator, FILTER_MUTATIONS, FilterBy, ReCalcSheetsFilterCommand, ReCalcSheetsFilterMutation,
|
|
2
|
+
import { ClearSheetsFilterCriteriaCommand, CustomFilterOperator, FILTER_MUTATIONS, FilterBy, ReCalcSheetsFilterCommand, ReCalcSheetsFilterMutation, RemoveSheetsFilterMutation, SetSheetsFilterCriteriaCommand, SetSheetsFilterCriteriaMutation, SetSheetsFilterRangeMutation, SheetsFilterService, SheetsFilterSyncController, SmartToggleSheetsFilterCommand, UniverSheetsFilterPlugin } from "@univerjs/sheets-filter";
|
|
3
3
|
import { IEditorBridgeService, ISheetSelectionRenderService, SelectionControl, SetCellEditVisibleOperation, SheetCanvasPopManagerService, SheetSkeletonManagerService, SheetsRenderService, SheetsUIPart, getCoordByCell, getCurrentRangeDisable$, getObservableWithExclusiveRange$, whenSheetEditorFocused } from "@univerjs/sheets-ui";
|
|
4
4
|
import { ComponentContainer, ComponentManager, ILayoutService, IMenuManagerService, IMessageService, IShortcutService, KeyCode, MenuItemType, MetaKeys, RibbonDataGroup, getMenuHiddenObservable, useComponentsOfPart, useDependency, useObservable } from "@univerjs/ui";
|
|
5
5
|
import { COLOR_BLACK_RGB, IRenderManagerService, Rect, Shape } from "@univerjs/engine-render";
|
|
@@ -15,7 +15,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
let FilterConditionItems;
|
|
16
16
|
(function(_FilterConditionItems) {
|
|
17
17
|
const NONE = _FilterConditionItems.NONE = {
|
|
18
|
-
label: "sheets-filter.conditions.none",
|
|
18
|
+
label: "sheets-filter-ui.conditions.none",
|
|
19
19
|
operator: "none",
|
|
20
20
|
order: 1,
|
|
21
21
|
numOfParameters: 0,
|
|
@@ -34,7 +34,7 @@ let FilterConditionItems;
|
|
|
34
34
|
const ALL_CONDITIONS = _FilterConditionItems.ALL_CONDITIONS = [
|
|
35
35
|
NONE,
|
|
36
36
|
_FilterConditionItems.EMPTY = {
|
|
37
|
-
label: "sheets-filter.conditions.empty",
|
|
37
|
+
label: "sheets-filter-ui.conditions.empty",
|
|
38
38
|
operator: "empty",
|
|
39
39
|
order: 1,
|
|
40
40
|
numOfParameters: 0,
|
|
@@ -52,7 +52,7 @@ let FilterConditionItems;
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
_FilterConditionItems.NOT_EMPTY = {
|
|
55
|
-
label: "sheets-filter.conditions.not-empty",
|
|
55
|
+
label: "sheets-filter-ui.conditions.not-empty",
|
|
56
56
|
operator: "notEmpty",
|
|
57
57
|
order: 1,
|
|
58
58
|
numOfParameters: 0,
|
|
@@ -73,7 +73,7 @@ let FilterConditionItems;
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
_FilterConditionItems.TEXT_CONTAINS = {
|
|
76
|
-
label: "sheets-filter.conditions.text-contains",
|
|
76
|
+
label: "sheets-filter-ui.conditions.text-contains",
|
|
77
77
|
operator: "contains",
|
|
78
78
|
order: 0,
|
|
79
79
|
numOfParameters: 1,
|
|
@@ -103,7 +103,7 @@ let FilterConditionItems;
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
_FilterConditionItems.DOES_NOT_CONTAIN = {
|
|
106
|
-
label: "sheets-filter.conditions.does-not-contain",
|
|
106
|
+
label: "sheets-filter-ui.conditions.does-not-contain",
|
|
107
107
|
operator: "doesNotContain",
|
|
108
108
|
order: 0,
|
|
109
109
|
numOfParameters: 1,
|
|
@@ -132,7 +132,7 @@ let FilterConditionItems;
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
_FilterConditionItems.STARTS_WITH = {
|
|
135
|
-
label: "sheets-filter.conditions.starts-with",
|
|
135
|
+
label: "sheets-filter-ui.conditions.starts-with",
|
|
136
136
|
operator: "startsWith",
|
|
137
137
|
order: 0,
|
|
138
138
|
numOfParameters: 1,
|
|
@@ -158,7 +158,7 @@ let FilterConditionItems;
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
_FilterConditionItems.ENDS_WITH = {
|
|
161
|
-
label: "sheets-filter.conditions.ends-with",
|
|
161
|
+
label: "sheets-filter-ui.conditions.ends-with",
|
|
162
162
|
operator: "endsWith",
|
|
163
163
|
order: 0,
|
|
164
164
|
numOfParameters: 1,
|
|
@@ -184,7 +184,7 @@ let FilterConditionItems;
|
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
_FilterConditionItems.EQUALS = {
|
|
187
|
-
label: "sheets-filter.conditions.equals",
|
|
187
|
+
label: "sheets-filter-ui.conditions.equals",
|
|
188
188
|
operator: "equals",
|
|
189
189
|
order: 0,
|
|
190
190
|
numOfParameters: 1,
|
|
@@ -215,7 +215,7 @@ let FilterConditionItems;
|
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
_FilterConditionItems.GREATER_THAN = {
|
|
218
|
-
label: "sheets-filter.conditions.greater-than",
|
|
218
|
+
label: "sheets-filter-ui.conditions.greater-than",
|
|
219
219
|
operator: CustomFilterOperator.GREATER_THAN,
|
|
220
220
|
numOfParameters: 1,
|
|
221
221
|
order: 0,
|
|
@@ -243,7 +243,7 @@ let FilterConditionItems;
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
_FilterConditionItems.GREATER_THAN_OR_EQUAL = {
|
|
246
|
-
label: "sheets-filter.conditions.greater-than-or-equal",
|
|
246
|
+
label: "sheets-filter-ui.conditions.greater-than-or-equal",
|
|
247
247
|
operator: CustomFilterOperator.GREATER_THAN_OR_EQUAL,
|
|
248
248
|
numOfParameters: 1,
|
|
249
249
|
order: 0,
|
|
@@ -271,7 +271,7 @@ let FilterConditionItems;
|
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
_FilterConditionItems.LESS_THAN = {
|
|
274
|
-
label: "sheets-filter.conditions.less-than",
|
|
274
|
+
label: "sheets-filter-ui.conditions.less-than",
|
|
275
275
|
operator: CustomFilterOperator.LESS_THAN,
|
|
276
276
|
numOfParameters: 1,
|
|
277
277
|
order: 0,
|
|
@@ -299,7 +299,7 @@ let FilterConditionItems;
|
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
301
|
_FilterConditionItems.LESS_THAN_OR_EQUAL = {
|
|
302
|
-
label: "sheets-filter.conditions.less-than-or-equal",
|
|
302
|
+
label: "sheets-filter-ui.conditions.less-than-or-equal",
|
|
303
303
|
operator: CustomFilterOperator.LESS_THAN_OR_EQUAL,
|
|
304
304
|
numOfParameters: 1,
|
|
305
305
|
order: 0,
|
|
@@ -327,7 +327,7 @@ let FilterConditionItems;
|
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
329
|
_FilterConditionItems.EQUAL = {
|
|
330
|
-
label: "sheets-filter.conditions.equal",
|
|
330
|
+
label: "sheets-filter-ui.conditions.equal",
|
|
331
331
|
operator: CustomFilterOperator.EQUAL,
|
|
332
332
|
numOfParameters: 1,
|
|
333
333
|
order: 0,
|
|
@@ -355,7 +355,7 @@ let FilterConditionItems;
|
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
_FilterConditionItems.NOT_EQUAL = {
|
|
358
|
-
label: "sheets-filter.conditions.not-equal",
|
|
358
|
+
label: "sheets-filter-ui.conditions.not-equal",
|
|
359
359
|
operator: CustomFilterOperator.NOT_EQUALS,
|
|
360
360
|
numOfParameters: 1,
|
|
361
361
|
order: 0,
|
|
@@ -383,7 +383,7 @@ let FilterConditionItems;
|
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
385
|
_FilterConditionItems.BETWEEN = {
|
|
386
|
-
label: "sheets-filter.conditions.between",
|
|
386
|
+
label: "sheets-filter-ui.conditions.between",
|
|
387
387
|
operator: "between",
|
|
388
388
|
order: 1,
|
|
389
389
|
numOfParameters: 2,
|
|
@@ -436,7 +436,7 @@ let FilterConditionItems;
|
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
_FilterConditionItems.NOT_BETWEEN = {
|
|
439
|
-
label: "sheets-filter.conditions.not-between",
|
|
439
|
+
label: "sheets-filter-ui.conditions.not-between",
|
|
440
440
|
operator: "notBetween",
|
|
441
441
|
order: 1,
|
|
442
442
|
numOfParameters: 2,
|
|
@@ -483,7 +483,7 @@ let FilterConditionItems;
|
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
485
|
_FilterConditionItems.CUSTOM = {
|
|
486
|
-
label: "sheets-filter.conditions.custom",
|
|
486
|
+
label: "sheets-filter-ui.conditions.custom",
|
|
487
487
|
operator: "custom",
|
|
488
488
|
order: 1,
|
|
489
489
|
numOfParameters: 2,
|
|
@@ -598,7 +598,7 @@ function statisticFilterByValueItems(items) {
|
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
//#endregion
|
|
601
|
-
//#region \0@oxc-project+runtime@0.
|
|
601
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
602
602
|
function __decorateParam(paramIndex, decorator) {
|
|
603
603
|
return function(target, key) {
|
|
604
604
|
decorator(target, key, paramIndex);
|
|
@@ -606,7 +606,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
//#endregion
|
|
609
|
-
//#region \0@oxc-project+runtime@0.
|
|
609
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
610
610
|
function __decorate(decorators, target, key, desc) {
|
|
611
611
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
612
612
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -699,7 +699,7 @@ function getFilterTreeByValueItems(filters, localeService, iterateRange, workshe
|
|
|
699
699
|
if (!monthItem) {
|
|
700
700
|
var _yearItem$children2;
|
|
701
701
|
monthItem = {
|
|
702
|
-
title: localeService.t(`sheets-filter.date.${month}`),
|
|
702
|
+
title: localeService.t(`sheets-filter-ui.date.${month}`),
|
|
703
703
|
key: `${year}-${month}`,
|
|
704
704
|
children: [],
|
|
705
705
|
count: 0,
|
|
@@ -754,7 +754,7 @@ function getFilterTreeByValueItems(filters, localeService, iterateRange, workshe
|
|
|
754
754
|
const initialBlankChecked = isNeedClearCheckedStatus ? false : filters ? blankChecked : true;
|
|
755
755
|
if (emptyCount > 0) {
|
|
756
756
|
const item = {
|
|
757
|
-
title: localeService.t("sheets-filter.panel.empty"),
|
|
757
|
+
title: localeService.t("sheets-filter-ui.panel.empty"),
|
|
758
758
|
count: emptyCount,
|
|
759
759
|
leaf: true,
|
|
760
760
|
checked: initialBlankChecked,
|
|
@@ -836,7 +836,7 @@ function searchTree(items, searchKeywords) {
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
//#endregion
|
|
839
|
-
//#region \0@oxc-project+runtime@0.
|
|
839
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
840
840
|
function _typeof(o) {
|
|
841
841
|
"@babel/helpers - typeof";
|
|
842
842
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -847,7 +847,7 @@ function _typeof(o) {
|
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region \0@oxc-project+runtime@0.
|
|
850
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
851
851
|
function toPrimitive(t, r) {
|
|
852
852
|
if ("object" != _typeof(t) || !t) return t;
|
|
853
853
|
var e = t[Symbol.toPrimitive];
|
|
@@ -860,14 +860,14 @@ function toPrimitive(t, r) {
|
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
//#endregion
|
|
863
|
-
//#region \0@oxc-project+runtime@0.
|
|
863
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
864
864
|
function toPropertyKey(t) {
|
|
865
865
|
var i = toPrimitive(t, "string");
|
|
866
866
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
//#endregion
|
|
870
|
-
//#region \0@oxc-project+runtime@0.
|
|
870
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
871
871
|
function _defineProperty(e, r, t) {
|
|
872
872
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
873
873
|
value: t,
|
|
@@ -1219,7 +1219,10 @@ let ByValuesModel = _ByValuesModel = class ByValuesModel extends Disposable {
|
|
|
1219
1219
|
}), startWith(void 0)), this._rawFilterItems$]).pipe(map(([searchString, items]) => {
|
|
1220
1220
|
if (!searchString) return items;
|
|
1221
1221
|
return searchTree(items, searchString.toLowerCase().split(/\s+/).filter((s) => !!s));
|
|
1222
|
-
})), this._manuallyUpdateFilterItems$).pipe(shareReplay(
|
|
1222
|
+
})), this._manuallyUpdateFilterItems$).pipe(shareReplay({
|
|
1223
|
+
bufferSize: 1,
|
|
1224
|
+
refCount: true
|
|
1225
|
+
}));
|
|
1223
1226
|
this.canApply$ = this.filterItems$.pipe(map((items) => {
|
|
1224
1227
|
return statisticFilterByValueItems(items).checked > 0;
|
|
1225
1228
|
}));
|
|
@@ -1514,7 +1517,7 @@ const ChangeFilterByOperation = {
|
|
|
1514
1517
|
//#endregion
|
|
1515
1518
|
//#region package.json
|
|
1516
1519
|
var name = "@univerjs/sheets-filter-ui";
|
|
1517
|
-
var version = "0.
|
|
1520
|
+
var version = "0.25.0";
|
|
1518
1521
|
|
|
1519
1522
|
//#endregion
|
|
1520
1523
|
//#region src/config/config.ts
|
|
@@ -1568,7 +1571,7 @@ let SheetsFilterPermissionController = class SheetsFilterPermissionController ex
|
|
|
1568
1571
|
worksheetTypes: [WorksheetViewPermission, WorksheetFilterPermission]
|
|
1569
1572
|
});
|
|
1570
1573
|
}
|
|
1571
|
-
if (!permission) this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
1574
|
+
if (!permission) this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("sheets-filter-ui.permission.filterErr"));
|
|
1572
1575
|
}
|
|
1573
1576
|
if (command.id === OpenFilterPanelOperation.id) {
|
|
1574
1577
|
var _this$_sheetsFilterSe2;
|
|
@@ -1582,7 +1585,7 @@ let SheetsFilterPermissionController = class SheetsFilterPermissionController ex
|
|
|
1582
1585
|
if (!this._sheetPermissionCheckPermission.permissionCheckWithRanges({
|
|
1583
1586
|
rangeTypes: [RangeProtectionPermissionViewPoint],
|
|
1584
1587
|
worksheetTypes: [WorksheetFilterPermission, WorksheetViewPermission]
|
|
1585
|
-
}, [colRange], unitId, subUnitId)) this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
1588
|
+
}, [colRange], unitId, subUnitId)) this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("sheets-filter-ui.permission.filterErr"));
|
|
1586
1589
|
}
|
|
1587
1590
|
}
|
|
1588
1591
|
}));
|
|
@@ -1929,7 +1932,7 @@ function SmartToggleFilterMenuItemFactory(accessor) {
|
|
|
1929
1932
|
id: SmartToggleSheetsFilterCommand.id,
|
|
1930
1933
|
type: MenuItemType.BUTTON_SELECTOR,
|
|
1931
1934
|
icon: "FilterIcon",
|
|
1932
|
-
tooltip: "sheets-filter.toolbar.smart-toggle-filter-tooltip",
|
|
1935
|
+
tooltip: "sheets-filter-ui.toolbar.smart-toggle-filter-tooltip",
|
|
1933
1936
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1934
1937
|
activated$: sheetsFilterService.activeFilterModel$.pipe(map((model) => !!model)),
|
|
1935
1938
|
disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
|
|
@@ -1943,7 +1946,7 @@ function ClearFilterCriteriaMenuItemFactory(accessor) {
|
|
|
1943
1946
|
return {
|
|
1944
1947
|
id: ClearSheetsFilterCriteriaCommand.id,
|
|
1945
1948
|
type: MenuItemType.BUTTON,
|
|
1946
|
-
title: "sheets-filter.toolbar.clear-filter-criteria",
|
|
1949
|
+
title: "sheets-filter-ui.toolbar.clear-filter-criteria",
|
|
1947
1950
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1948
1951
|
disabled$: sheetsFilterService.activeFilterModel$.pipe(switchMap((model) => {
|
|
1949
1952
|
var _model$hasCriteria$$p;
|
|
@@ -1956,7 +1959,7 @@ function ReCalcFilterMenuItemFactory(accessor) {
|
|
|
1956
1959
|
return {
|
|
1957
1960
|
id: ReCalcSheetsFilterCommand.id,
|
|
1958
1961
|
type: MenuItemType.BUTTON,
|
|
1959
|
-
title: "sheets-filter.toolbar.re-calc-filter-conditions",
|
|
1962
|
+
title: "sheets-filter-ui.toolbar.re-calc-filter-conditions",
|
|
1960
1963
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1961
1964
|
disabled$: sheetsFilterService.activeFilterModel$.pipe(switchMap((model) => {
|
|
1962
1965
|
var _model$hasCriteria$$p2;
|
|
@@ -2005,7 +2008,7 @@ function FilterByColor(props) {
|
|
|
2005
2008
|
children: [
|
|
2006
2009
|
cellFillColors.length > 1 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
2007
2010
|
className: "univer-mb-2 univer-text-sm univer-text-gray-900 dark:!univer-text-white",
|
|
2008
|
-
children: localeService.t("sheets-filter.panel.filter-by-cell-fill-color")
|
|
2011
|
+
children: localeService.t("sheets-filter-ui.panel.filter-by-cell-fill-color")
|
|
2009
2012
|
}), /* @__PURE__ */ jsx("div", {
|
|
2010
2013
|
className: "univer-grid univer-grid-cols-8 univer-items-center univer-justify-start univer-gap-2",
|
|
2011
2014
|
children: cellFillColors.map((color, index) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -2020,7 +2023,7 @@ function FilterByColor(props) {
|
|
|
2020
2023
|
})] }),
|
|
2021
2024
|
cellTextColors.length > 1 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
2022
2025
|
className: "univer-mb-2 univer-text-sm univer-text-gray-900 dark:!univer-text-white",
|
|
2023
|
-
children: localeService.t("sheets-filter.panel.filter-by-cell-text-color")
|
|
2026
|
+
children: localeService.t("sheets-filter-ui.panel.filter-by-cell-text-color")
|
|
2024
2027
|
}), /* @__PURE__ */ jsx("div", {
|
|
2025
2028
|
className: "univer-grid univer-grid-cols-8 univer-items-center univer-justify-start univer-gap-2",
|
|
2026
2029
|
children: cellTextColors.map((color, index) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -2034,7 +2037,7 @@ function FilterByColor(props) {
|
|
|
2034
2037
|
})] }),
|
|
2035
2038
|
cellFillColors.length <= 1 && cellTextColors.length <= 1 && /* @__PURE__ */ jsx("div", {
|
|
2036
2039
|
className: "univer-flex univer-size-full univer-items-center univer-justify-center univer-text-sm univer-text-gray-900 dark:!univer-text-gray-200",
|
|
2037
|
-
children: localeService.t("sheets-filter.panel.filter-by-color-none")
|
|
2040
|
+
children: localeService.t("sheets-filter-ui.panel.filter-by-color-none")
|
|
2038
2041
|
})
|
|
2039
2042
|
]
|
|
2040
2043
|
})
|
|
@@ -2070,7 +2073,7 @@ function FilterByCondition(props) {
|
|
|
2070
2073
|
const onFormParamsChange = useCallback((diffParams) => {
|
|
2071
2074
|
model.onConditionFormChange(diffParams);
|
|
2072
2075
|
}, [model]);
|
|
2073
|
-
const placeholder = localeService.t("sheets-filter.panel.input-values-placeholder");
|
|
2076
|
+
const placeholder = localeService.t("sheets-filter-ui.panel.input-values-placeholder");
|
|
2074
2077
|
function renderSecondaryCondition(operator, val, name) {
|
|
2075
2078
|
const shouldRenderInput = FilterConditionItems.getItemByOperator(operator).numOfParameters === 1;
|
|
2076
2079
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2079,10 +2082,10 @@ function FilterByCondition(props) {
|
|
|
2079
2082
|
onChange: onRadioChange,
|
|
2080
2083
|
children: [/* @__PURE__ */ jsx(Radio, {
|
|
2081
2084
|
value: "AND",
|
|
2082
|
-
children: localeService.t("sheets-filter.panel.and")
|
|
2085
|
+
children: localeService.t("sheets-filter-ui.panel.and")
|
|
2083
2086
|
}), /* @__PURE__ */ jsx(Radio, {
|
|
2084
2087
|
value: "OR",
|
|
2085
|
-
children: localeService.t("sheets-filter.panel.or")
|
|
2088
|
+
children: localeService.t("sheets-filter-ui.panel.or")
|
|
2086
2089
|
})]
|
|
2087
2090
|
}),
|
|
2088
2091
|
/* @__PURE__ */ jsx(Select, {
|
|
@@ -2115,9 +2118,9 @@ function FilterByCondition(props) {
|
|
|
2115
2118
|
"data-u-comp": "sheets-filter-panel-conditions-desc",
|
|
2116
2119
|
className: "univer-mt-2 univer-text-xs univer-text-gray-500",
|
|
2117
2120
|
children: [
|
|
2118
|
-
localeService.t("sheets-filter.panel.?"),
|
|
2121
|
+
localeService.t("sheets-filter-ui.panel.?"),
|
|
2119
2122
|
/* @__PURE__ */ jsx("br", {}),
|
|
2120
|
-
localeService.t("sheets-filter.panel.*")
|
|
2123
|
+
localeService.t("sheets-filter-ui.panel.*")
|
|
2121
2124
|
]
|
|
2122
2125
|
})
|
|
2123
2126
|
]
|
|
@@ -2216,7 +2219,7 @@ function FilterByValue(props) {
|
|
|
2216
2219
|
const localeService = useDependency(LocaleService);
|
|
2217
2220
|
const searchText = useObservable(model.searchString$, "", true);
|
|
2218
2221
|
const items = useObservable(model.filterItems$, void 0, true);
|
|
2219
|
-
const filterOnly = localeService.t("sheets-filter.panel.filter-only");
|
|
2222
|
+
const filterOnly = localeService.t("sheets-filter-ui.panel.filter-only");
|
|
2220
2223
|
const stat = statisticFilterByValueItems(items);
|
|
2221
2224
|
const allChecked = stat.checked > 0 && stat.unchecked === 0;
|
|
2222
2225
|
const indeterminate = stat.checked > 0 && stat.unchecked > 0;
|
|
@@ -2241,7 +2244,7 @@ function FilterByValue(props) {
|
|
|
2241
2244
|
children: [/* @__PURE__ */ jsx(Input, {
|
|
2242
2245
|
autoFocus: true,
|
|
2243
2246
|
value: searchText,
|
|
2244
|
-
placeholder: localeService.t("sheets-filter.panel.search-placeholder"),
|
|
2247
|
+
placeholder: localeService.t("sheets-filter-ui.panel.search-placeholder"),
|
|
2245
2248
|
onChange: onSearchValueChange
|
|
2246
2249
|
}), /* @__PURE__ */ jsxs("div", {
|
|
2247
2250
|
"data-u-comp": "sheets-filter-panel",
|
|
@@ -2262,7 +2265,7 @@ function FilterByValue(props) {
|
|
|
2262
2265
|
/* @__PURE__ */ jsx("span", {
|
|
2263
2266
|
"data-u-comp": "sheets-filter-panel-values-item-text",
|
|
2264
2267
|
className: "univer-mx-1 univer-inline-block univer-flex-shrink univer-truncate univer-text-gray-900 dark:!univer-text-white",
|
|
2265
|
-
children: `${localeService.t("sheets-filter.panel.select-all")}`
|
|
2268
|
+
children: `${localeService.t("sheets-filter-ui.panel.select-all")}`
|
|
2266
2269
|
}),
|
|
2267
2270
|
/* @__PURE__ */ jsx("span", {
|
|
2268
2271
|
"data-u-comp": "sheets-filter-panel-values-item-count",
|
|
@@ -2345,15 +2348,15 @@ function FilterSyncSwitch() {
|
|
|
2345
2348
|
className: "univer-mt-2 univer-flex univer-items-center univer-justify-between univer-text-sm univer-text-gray-900 dark:!univer-text-gray-200",
|
|
2346
2349
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2347
2350
|
className: "univer-flex univer-items-center univer-gap-1",
|
|
2348
|
-
children: [/* @__PURE__ */ jsx("span", { children: localeService.t("sheets-filter.sync.title") }), /* @__PURE__ */ jsx(Tooltip, {
|
|
2349
|
-
title: enabled ? localeService.t("sheets-filter.sync.statusTips.off") : localeService.t("sheets-filter.sync.statusTips.on"),
|
|
2351
|
+
children: [/* @__PURE__ */ jsx("span", { children: localeService.t("sheets-filter-ui.sync.title") }), /* @__PURE__ */ jsx(Tooltip, {
|
|
2352
|
+
title: enabled ? localeService.t("sheets-filter-ui.sync.statusTips.off") : localeService.t("sheets-filter-ui.sync.statusTips.on"),
|
|
2350
2353
|
asChild: true,
|
|
2351
2354
|
children: /* @__PURE__ */ jsx(InfoIcon, { className: "univer-block" })
|
|
2352
2355
|
})]
|
|
2353
2356
|
}), /* @__PURE__ */ jsx(Switch, {
|
|
2354
2357
|
defaultChecked: enabled,
|
|
2355
2358
|
onChange: (checked) => {
|
|
2356
|
-
const message = checked ? localeService.t("sheets-filter.sync.switchTips.on") : localeService.t("sheets-filter.sync.switchTips.off");
|
|
2359
|
+
const message = checked ? localeService.t("sheets-filter-ui.sync.switchTips.on") : localeService.t("sheets-filter-ui.sync.switchTips.off");
|
|
2357
2360
|
sheetsFilterSyncController.setEnabled(checked);
|
|
2358
2361
|
messageService.show({
|
|
2359
2362
|
content: message,
|
|
@@ -2431,18 +2434,18 @@ function FilterPanel() {
|
|
|
2431
2434
|
variant: "link",
|
|
2432
2435
|
onClick: onClearCriteria,
|
|
2433
2436
|
disabled: clearFilterDisabled,
|
|
2434
|
-
children: localeService.t("sheets-filter.panel.clear-filter")
|
|
2437
|
+
children: localeService.t("sheets-filter-ui.panel.clear-filter")
|
|
2435
2438
|
}), /* @__PURE__ */ jsxs("span", {
|
|
2436
2439
|
className: "univer-flex univer-gap-2",
|
|
2437
2440
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
2438
2441
|
variant: "default",
|
|
2439
2442
|
onClick: onCancel,
|
|
2440
|
-
children: localeService.t("sheets-filter.panel.cancel")
|
|
2443
|
+
children: localeService.t("sheets-filter-ui.panel.cancel")
|
|
2441
2444
|
}), /* @__PURE__ */ jsx(Button, {
|
|
2442
2445
|
disabled: !canApply,
|
|
2443
2446
|
variant: "primary",
|
|
2444
2447
|
onClick: onApply,
|
|
2445
|
-
children: localeService.t("sheets-filter.panel.confirm")
|
|
2448
|
+
children: localeService.t("sheets-filter-ui.panel.confirm")
|
|
2446
2449
|
})]
|
|
2447
2450
|
})]
|
|
2448
2451
|
})
|
|
@@ -2452,15 +2455,15 @@ function FilterPanel() {
|
|
|
2452
2455
|
function useFilterByOptions(localeService) {
|
|
2453
2456
|
return useMemo(() => [
|
|
2454
2457
|
{
|
|
2455
|
-
label: localeService.t("sheets-filter.panel.by-values"),
|
|
2458
|
+
label: localeService.t("sheets-filter-ui.panel.by-values"),
|
|
2456
2459
|
value: FilterBy.VALUES
|
|
2457
2460
|
},
|
|
2458
2461
|
{
|
|
2459
|
-
label: localeService.t("sheets-filter.panel.by-colors"),
|
|
2462
|
+
label: localeService.t("sheets-filter-ui.panel.by-colors"),
|
|
2460
2463
|
value: FilterBy.COLORS
|
|
2461
2464
|
},
|
|
2462
2465
|
{
|
|
2463
|
-
label: localeService.t("sheets-filter.panel.by-conditions"),
|
|
2466
|
+
label: localeService.t("sheets-filter-ui.panel.by-conditions"),
|
|
2464
2467
|
value: FilterBy.CONDITIONS
|
|
2465
2468
|
}
|
|
2466
2469
|
], [localeService.getCurrentLocale(), localeService]);
|
|
@@ -2471,9 +2474,10 @@ function useFilterByOptions(localeService) {
|
|
|
2471
2474
|
const SmartToggleFilterShortcut = {
|
|
2472
2475
|
id: SmartToggleSheetsFilterCommand.id,
|
|
2473
2476
|
binding: KeyCode.L | MetaKeys.CTRL_COMMAND | MetaKeys.SHIFT,
|
|
2474
|
-
description: "sheets-filter.shortcut.smart-toggle-filter",
|
|
2477
|
+
description: "sheets-filter-ui.shortcut.smart-toggle-filter",
|
|
2475
2478
|
preconditions: whenSheetEditorFocused,
|
|
2476
|
-
group: "4_sheet-edit"
|
|
2479
|
+
group: "4_sheet-edit",
|
|
2480
|
+
groupTitle: "sheets-ui.shortcut.sheet-edit"
|
|
2477
2481
|
};
|
|
2478
2482
|
|
|
2479
2483
|
//#endregion
|
|
@@ -2511,11 +2515,6 @@ let SheetsFilterUIDesktopController = class SheetsFilterUIDesktopController exte
|
|
|
2511
2515
|
_initCommands() {
|
|
2512
2516
|
[
|
|
2513
2517
|
SmartToggleSheetsFilterCommand,
|
|
2514
|
-
RemoveSheetFilterCommand,
|
|
2515
|
-
SetSheetFilterRangeCommand,
|
|
2516
|
-
SetSheetsFilterCriteriaCommand,
|
|
2517
|
-
ClearSheetsFilterCriteriaCommand,
|
|
2518
|
-
ReCalcSheetsFilterCommand,
|
|
2519
2518
|
ChangeFilterByOperation,
|
|
2520
2519
|
OpenFilterPanelOperation,
|
|
2521
2520
|
CloseFilterPanelOperation
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "sheets-filter-ui": {
|
|
3
|
+
toolbar: {
|
|
4
|
+
"smart-toggle-filter-tooltip": "تبديل التصفية",
|
|
5
|
+
"clear-filter-criteria": "مسح شروط التصفية",
|
|
6
|
+
"re-calc-filter-conditions": "إعادة حساب شروط التصفية"
|
|
7
|
+
},
|
|
8
|
+
shortcut: { "smart-toggle-filter": "تبديل التصفية" },
|
|
9
|
+
panel: {
|
|
10
|
+
"clear-filter": "مسح التصفية",
|
|
11
|
+
cancel: "إلغاء",
|
|
12
|
+
confirm: "تأكيد",
|
|
13
|
+
"by-values": "حسب القيم",
|
|
14
|
+
"by-colors": "حسب الألوان",
|
|
15
|
+
"filter-by-cell-fill-color": "تصفية حسب لون تعبئة الخلية",
|
|
16
|
+
"filter-by-cell-text-color": "تصفية حسب لون نص الخلية",
|
|
17
|
+
"filter-by-color-none": "يحتوي العمود على لون واحد فقط",
|
|
18
|
+
"by-conditions": "حسب الشروط",
|
|
19
|
+
"filter-only": "تصفية فقط",
|
|
20
|
+
"search-placeholder": "استخدم المسافة لفصل الكلمات المفتاحية",
|
|
21
|
+
"select-all": "تحديد الكل",
|
|
22
|
+
"input-values-placeholder": "إدخال القيم",
|
|
23
|
+
and: "و",
|
|
24
|
+
or: "أو",
|
|
25
|
+
empty: "(فارغ)",
|
|
26
|
+
"?": "استخدم \"؟\" لتمثيل حرف واحد.",
|
|
27
|
+
"*": "استخدم \"*\" لتمثيل عدة أحرف."
|
|
28
|
+
},
|
|
29
|
+
conditions: {
|
|
30
|
+
none: "لا شيء",
|
|
31
|
+
empty: "فارغ",
|
|
32
|
+
"not-empty": "غير فارغ",
|
|
33
|
+
"text-contains": "النص يحتوي على",
|
|
34
|
+
"does-not-contain": "النص لا يحتوي على",
|
|
35
|
+
"starts-with": "النص يبدأ بـ",
|
|
36
|
+
"ends-with": "النص ينتهي بـ",
|
|
37
|
+
equals: "النص يساوي",
|
|
38
|
+
"greater-than": "أكبر من",
|
|
39
|
+
"greater-than-or-equal": "أكبر من أو يساوي",
|
|
40
|
+
"less-than": "أقل من",
|
|
41
|
+
"less-than-or-equal": "أقل من أو يساوي",
|
|
42
|
+
equal: "يساوي",
|
|
43
|
+
"not-equal": "لا يساوي",
|
|
44
|
+
between: "بين",
|
|
45
|
+
"not-between": "ليس بين",
|
|
46
|
+
custom: "مخصص"
|
|
47
|
+
},
|
|
48
|
+
date: {
|
|
49
|
+
1: "يناير",
|
|
50
|
+
2: "فبراير",
|
|
51
|
+
3: "مارس",
|
|
52
|
+
4: "أبريل",
|
|
53
|
+
5: "مايو",
|
|
54
|
+
6: "يونيو",
|
|
55
|
+
7: "يوليو",
|
|
56
|
+
8: "أغسطس",
|
|
57
|
+
9: "سبتمبر",
|
|
58
|
+
10: "أكتوبر",
|
|
59
|
+
11: "نوفمبر",
|
|
60
|
+
12: "ديسمبر"
|
|
61
|
+
},
|
|
62
|
+
sync: {
|
|
63
|
+
title: "التصفية مرئية للجميع",
|
|
64
|
+
statusTips: {
|
|
65
|
+
on: "عند التفعيل، سيرى جميع المتعاونين نتائج التصفية",
|
|
66
|
+
off: "عند الإيقاف، سترى نتائج التصفية أنت فقط"
|
|
67
|
+
},
|
|
68
|
+
switchTips: {
|
|
69
|
+
on: "\"التصفية مرئية للجميع\" مفعّلة، سيرى جميع المتعاونين نتائج التصفية",
|
|
70
|
+
off: "\"التصفية مرئية للجميع\" غير مفعّلة، سترى نتائج التصفية أنت فقط"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} };
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { locale as default };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
|
-
const locale = { "sheets-filter": {
|
|
2
|
+
const locale = { "sheets-filter-ui": {
|
|
3
3
|
toolbar: {
|
|
4
4
|
"smart-toggle-filter-tooltip": "Alterna el filtre",
|
|
5
5
|
"clear-filter-criteria": "Neteja les condicions del filtre",
|
|
6
6
|
"re-calc-filter-conditions": "Recalcula les condicions del filtre"
|
|
7
7
|
},
|
|
8
|
-
command: { "not-valid-filter-range": "L’interval seleccionat només té una fila i no és vàlid per filtrar." },
|
|
9
8
|
shortcut: { "smart-toggle-filter": "Alterna el filtre" },
|
|
10
9
|
panel: {
|
|
11
10
|
"clear-filter": "Neteja el filtre",
|
|
@@ -46,7 +45,6 @@ const locale = { "sheets-filter": {
|
|
|
46
45
|
"not-between": "No entre",
|
|
47
46
|
custom: "Personalitzat"
|
|
48
47
|
},
|
|
49
|
-
msg: { "filter-header-forbidden": "No pots moure la fila de capçalera d’un filtre." },
|
|
50
48
|
date: {
|
|
51
49
|
1: "Gener",
|
|
52
50
|
2: "Febrer",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/locale/de-DE.ts
|
|
2
|
+
const locale = { "sheets-filter-ui": {
|
|
3
|
+
toolbar: {
|
|
4
|
+
"smart-toggle-filter-tooltip": "Filter ein-/ausschalten",
|
|
5
|
+
"clear-filter-criteria": "Filterbedingungen löschen",
|
|
6
|
+
"re-calc-filter-conditions": "Filterbedingungen neu berechnen"
|
|
7
|
+
},
|
|
8
|
+
shortcut: { "smart-toggle-filter": "Filter ein-/ausschalten" },
|
|
9
|
+
panel: {
|
|
10
|
+
"clear-filter": "Filter löschen",
|
|
11
|
+
cancel: "Abbrechen",
|
|
12
|
+
confirm: "Bestätigen",
|
|
13
|
+
"by-values": "Nach Werten",
|
|
14
|
+
"by-colors": "Nach Farben",
|
|
15
|
+
"filter-by-cell-fill-color": "Nach Zellenfüllfarbe filtern",
|
|
16
|
+
"filter-by-cell-text-color": "Nach Zellentextfarbe filtern",
|
|
17
|
+
"filter-by-color-none": "Die Spalte enthält nur eine Farbe",
|
|
18
|
+
"by-conditions": "Nach Bedingungen",
|
|
19
|
+
"filter-only": "Nur filtern",
|
|
20
|
+
"search-placeholder": "Verwenden Sie Leerzeichen, um Schlüsselwörter zu trennen",
|
|
21
|
+
"select-all": "Alle auswählen",
|
|
22
|
+
"input-values-placeholder": "Werte eingeben",
|
|
23
|
+
and: "UND",
|
|
24
|
+
or: "ODER",
|
|
25
|
+
empty: "(leer)",
|
|
26
|
+
"?": "Verwenden Sie \"?\" für ein einzelnes Zeichen.",
|
|
27
|
+
"*": "Verwenden Sie \"*\" für mehrere Zeichen."
|
|
28
|
+
},
|
|
29
|
+
conditions: {
|
|
30
|
+
none: "Keine",
|
|
31
|
+
empty: "Ist leer",
|
|
32
|
+
"not-empty": "Ist nicht leer",
|
|
33
|
+
"text-contains": "Text enthält",
|
|
34
|
+
"does-not-contain": "Text enthält nicht",
|
|
35
|
+
"starts-with": "Text beginnt mit",
|
|
36
|
+
"ends-with": "Text endet mit",
|
|
37
|
+
equals: "Text ist gleich",
|
|
38
|
+
"greater-than": "Größer als",
|
|
39
|
+
"greater-than-or-equal": "Größer als oder gleich",
|
|
40
|
+
"less-than": "Kleiner als",
|
|
41
|
+
"less-than-or-equal": "Kleiner als oder gleich",
|
|
42
|
+
equal: "Gleich",
|
|
43
|
+
"not-equal": "Ungleich",
|
|
44
|
+
between: "Zwischen",
|
|
45
|
+
"not-between": "Nicht zwischen",
|
|
46
|
+
custom: "Benutzerdefiniert"
|
|
47
|
+
},
|
|
48
|
+
date: {
|
|
49
|
+
1: "Januar",
|
|
50
|
+
2: "Februar",
|
|
51
|
+
3: "März",
|
|
52
|
+
4: "April",
|
|
53
|
+
5: "Mai",
|
|
54
|
+
6: "Juni",
|
|
55
|
+
7: "Juli",
|
|
56
|
+
8: "August",
|
|
57
|
+
9: "September",
|
|
58
|
+
10: "Oktober",
|
|
59
|
+
11: "November",
|
|
60
|
+
12: "Dezember"
|
|
61
|
+
},
|
|
62
|
+
sync: {
|
|
63
|
+
title: "Filter ist für alle sichtbar",
|
|
64
|
+
statusTips: {
|
|
65
|
+
on: "Wenn eingeschaltet, sehen alle Bearbeiter die Filterergebnisse",
|
|
66
|
+
off: "Wenn ausgeschaltet, sehen nur Sie die Filterergebnisse"
|
|
67
|
+
},
|
|
68
|
+
switchTips: {
|
|
69
|
+
on: "\"Filter ist für alle sichtbar\" ist eingeschaltet, alle Bearbeiter sehen die Filterergebnisse",
|
|
70
|
+
off: "\"Filter ist für alle sichtbar\" ist ausgeschaltet, nur Sie sehen die Filterergebnisse"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} };
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { locale as default };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
const locale = { "sheets-filter": {
|
|
17
|
+
const locale = { "sheets-filter-ui": {
|
|
18
18
|
toolbar: {
|
|
19
19
|
"smart-toggle-filter-tooltip": "Toggle Filter",
|
|
20
20
|
"clear-filter-criteria": "Clear Filter Conditions",
|
|
21
21
|
"re-calc-filter-conditions": "Re-calc Filter Conditions"
|
|
22
22
|
},
|
|
23
|
-
command: { "not-valid-filter-range": "The selected range only has one row and not valid for filter." },
|
|
24
23
|
shortcut: { "smart-toggle-filter": "Toggle Filter" },
|
|
25
24
|
panel: {
|
|
26
25
|
"clear-filter": "Clear Filter",
|
|
@@ -61,7 +60,6 @@ const locale = { "sheets-filter": {
|
|
|
61
60
|
"not-between": "Not Between",
|
|
62
61
|
custom: "Custom"
|
|
63
62
|
},
|
|
64
|
-
msg: { "filter-header-forbidden": "You can't move the header row of a filter." },
|
|
65
63
|
date: {
|
|
66
64
|
1: "January",
|
|
67
65
|
2: "February",
|