@univerjs/sheets-data-validation-ui 0.23.0 → 0.24.0-insiders.20260528-29f582d
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 +54 -56
- package/lib/cjs/locale/ar-SA.js +94 -0
- package/lib/cjs/locale/ca-ES.js +6 -86
- package/lib/cjs/locale/de-DE.js +94 -0
- package/lib/cjs/locale/en-US.js +6 -86
- package/lib/cjs/locale/es-ES.js +6 -86
- package/lib/cjs/locale/fa-IR.js +6 -86
- package/lib/cjs/locale/fr-FR.js +6 -86
- package/lib/cjs/locale/id-ID.js +94 -0
- package/lib/cjs/locale/it-IT.js +94 -0
- package/lib/cjs/locale/ja-JP.js +6 -86
- package/lib/cjs/locale/ko-KR.js +6 -86
- package/lib/cjs/locale/pl-PL.js +94 -0
- package/lib/cjs/locale/pt-BR.js +94 -0
- package/lib/cjs/locale/ru-RU.js +6 -86
- package/lib/cjs/locale/sk-SK.js +6 -86
- package/lib/cjs/locale/vi-VN.js +6 -86
- package/lib/cjs/locale/zh-CN.js +6 -86
- package/lib/cjs/locale/zh-HK.js +94 -0
- package/lib/cjs/locale/zh-TW.js +6 -86
- package/lib/es/index.js +54 -56
- package/lib/es/locale/ar-SA.js +93 -0
- package/lib/es/locale/ca-ES.js +6 -86
- package/lib/es/locale/de-DE.js +93 -0
- package/lib/es/locale/en-US.js +6 -86
- package/lib/es/locale/es-ES.js +6 -86
- package/lib/es/locale/fa-IR.js +6 -86
- package/lib/es/locale/fr-FR.js +6 -86
- package/lib/es/locale/id-ID.js +93 -0
- package/lib/es/locale/it-IT.js +93 -0
- package/lib/es/locale/ja-JP.js +6 -86
- package/lib/es/locale/ko-KR.js +6 -86
- package/lib/es/locale/pl-PL.js +93 -0
- package/lib/es/locale/pt-BR.js +93 -0
- package/lib/es/locale/ru-RU.js +6 -86
- package/lib/es/locale/sk-SK.js +6 -86
- package/lib/es/locale/vi-VN.js +6 -86
- package/lib/es/locale/zh-CN.js +6 -86
- package/lib/es/locale/zh-HK.js +93 -0
- package/lib/es/locale/zh-TW.js +6 -86
- package/lib/index.js +54 -56
- package/lib/locale/ar-SA.js +93 -0
- package/lib/locale/ca-ES.js +6 -86
- package/lib/locale/de-DE.js +93 -0
- package/lib/locale/en-US.js +6 -86
- package/lib/locale/es-ES.js +6 -86
- package/lib/locale/fa-IR.js +6 -86
- package/lib/locale/fr-FR.js +6 -86
- package/lib/locale/id-ID.js +93 -0
- package/lib/locale/it-IT.js +93 -0
- package/lib/locale/ja-JP.js +6 -86
- package/lib/locale/ko-KR.js +6 -86
- package/lib/locale/pl-PL.js +93 -0
- package/lib/locale/pt-BR.js +93 -0
- package/lib/locale/ru-RU.js +6 -86
- package/lib/locale/sk-SK.js +6 -86
- package/lib/locale/vi-VN.js +6 -86
- package/lib/locale/zh-CN.js +6 -86
- package/lib/locale/zh-HK.js +93 -0
- package/lib/locale/zh-TW.js +6 -86
- 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 +6 -78
- 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 +1 -1
- 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 +14 -14
- package/LICENSE +0 -176
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-TW.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-data-validation-ui": {
|
|
4
4
|
title: "資料驗證",
|
|
5
5
|
validFail: {
|
|
6
6
|
value: "請輸入一個合法值",
|
|
@@ -38,79 +38,11 @@ const locale = { dataValidation: {
|
|
|
38
38
|
showInfo: "顯示所選儲存格的提示文字",
|
|
39
39
|
allowBlank: "忽略空值"
|
|
40
40
|
},
|
|
41
|
-
operators: {
|
|
42
|
-
between: "介於",
|
|
43
|
-
greaterThan: "大於",
|
|
44
|
-
greaterThanOrEqual: "大於或等於",
|
|
45
|
-
lessThan: "小於",
|
|
46
|
-
lessThanOrEqual: "小於或等於",
|
|
47
|
-
equal: "等於",
|
|
48
|
-
notEqual: "不等於",
|
|
49
|
-
notBetween: "未介於",
|
|
50
|
-
legal: "是合法類型"
|
|
51
|
-
},
|
|
52
|
-
ruleName: {
|
|
53
|
-
between: "介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
54
|
-
greaterThan: "大於 {FORMULA1}",
|
|
55
|
-
greaterThanOrEqual: "大於或等於 {FORMULA1}",
|
|
56
|
-
lessThan: "小於 {FORMULA1}",
|
|
57
|
-
lessThanOrEqual: "小於或等於 {FORMULA1}",
|
|
58
|
-
equal: "等於 {FORMULA1}",
|
|
59
|
-
notEqual: "不等於 {FORMULA1}",
|
|
60
|
-
notBetween: "在 {FORMULA1} 和 {FORMULA2} 範圍之外",
|
|
61
|
-
legal: "是一個合法的 {TYPE}"
|
|
62
|
-
},
|
|
63
|
-
errorMsg: {
|
|
64
|
-
between: "值必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
65
|
-
greaterThan: "值必須大於 {FORMULA1}",
|
|
66
|
-
greaterThanOrEqual: "值必須大於或等於 {FORMULA1}",
|
|
67
|
-
lessThan: "值必須小於 {FORMULA1}",
|
|
68
|
-
lessThanOrEqual: "值必須小於或等於 {FORMULA1}",
|
|
69
|
-
equal: "值必須等於 {FORMULA1}",
|
|
70
|
-
notEqual: "值必須不等於 {FORMULA1}",
|
|
71
|
-
notBetween: "值必須在 {FORMULA1} 和 {FORMULA2} 範圍之外",
|
|
72
|
-
legal: "值必須是一個合法的 {TYPE}"
|
|
73
|
-
},
|
|
74
41
|
any: {
|
|
75
42
|
title: "任意值",
|
|
76
43
|
error: "此儲存格的內容違反了驗證規則"
|
|
77
44
|
},
|
|
78
|
-
date: {
|
|
79
|
-
title: "日期",
|
|
80
|
-
operators: {
|
|
81
|
-
between: "介於",
|
|
82
|
-
greaterThan: "晚於",
|
|
83
|
-
greaterThanOrEqual: "晚於或等於",
|
|
84
|
-
lessThan: "早於",
|
|
85
|
-
lessThanOrEqual: "早於或等於",
|
|
86
|
-
equal: "等於",
|
|
87
|
-
notEqual: "不等於",
|
|
88
|
-
notBetween: "未介於",
|
|
89
|
-
legal: "是合法日期"
|
|
90
|
-
},
|
|
91
|
-
ruleName: {
|
|
92
|
-
between: "介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
93
|
-
greaterThan: "晚於 {FORMULA1}",
|
|
94
|
-
greaterThanOrEqual: "晚於或等於 {FORMULA1}",
|
|
95
|
-
lessThan: "早於 {FORMULA1}",
|
|
96
|
-
lessThanOrEqual: "早於或等於 {FORMULA1}",
|
|
97
|
-
equal: "等於 {FORMULA1}",
|
|
98
|
-
notEqual: "不等於 {FORMULA1}",
|
|
99
|
-
notBetween: "在 {FORMULA1} 和 {FORMULA2} 範圍之外",
|
|
100
|
-
legal: "是一個合法的日期"
|
|
101
|
-
},
|
|
102
|
-
errorMsg: {
|
|
103
|
-
between: "日期必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
104
|
-
greaterThan: "日期必須晚於 {FORMULA1}",
|
|
105
|
-
greaterThanOrEqual: "日期必須晚於或等於 {FORMULA1}",
|
|
106
|
-
lessThan: "日期必須早於 {FORMULA1}",
|
|
107
|
-
lessThanOrEqual: "早於或等於 {FORMULA1}",
|
|
108
|
-
equal: "日期必須等於 {FORMULA1}",
|
|
109
|
-
notEqual: "日期必須不等於 {FORMULA1}",
|
|
110
|
-
notBetween: "日期必須在 {FORMULA1} 和 {FORMULA2} 範圍之外",
|
|
111
|
-
legal: "值必須是一個合法的日期"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
45
|
+
date: { title: "日期" },
|
|
114
46
|
list: {
|
|
115
47
|
title: "下拉選單",
|
|
116
48
|
name: "值必須是列表中的值",
|
|
@@ -128,19 +60,7 @@ const locale = { dataValidation: {
|
|
|
128
60
|
title: "下拉式選單-多選",
|
|
129
61
|
dropdown: "多選"
|
|
130
62
|
},
|
|
131
|
-
textLength: {
|
|
132
|
-
title: "文字長度",
|
|
133
|
-
errorMsg: {
|
|
134
|
-
between: "文字長度必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
135
|
-
greaterThan: "文字長度必須大於 {FORMULA1}",
|
|
136
|
-
greaterThanOrEqual: "文字長度必須大於或等於 {FORMULA1}",
|
|
137
|
-
lessThan: "文字長度必須小於 {FORMULA1}",
|
|
138
|
-
lessThanOrEqual: "文字長度必須小於或等於 {FORMULA1}",
|
|
139
|
-
equal: "文字長度必須等於 {FORMULA1}",
|
|
140
|
-
notEqual: "文字長度必須不等於 {FORMULA1}",
|
|
141
|
-
notBetween: "文字長度必須在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
63
|
+
textLength: { title: "文字長度" },
|
|
144
64
|
decimal: { title: "數字" },
|
|
145
65
|
whole: { title: "整數" },
|
|
146
66
|
checkbox: {
|
|
@@ -153,8 +73,7 @@ const locale = { dataValidation: {
|
|
|
153
73
|
custom: {
|
|
154
74
|
title: "自訂公式",
|
|
155
75
|
error: "此儲存格的內容違反了驗證規則",
|
|
156
|
-
validFail: "請輸入合法的公式"
|
|
157
|
-
ruleName: "自訂公式 {FORMULA1}"
|
|
76
|
+
validFail: "請輸入合法的公式"
|
|
158
77
|
},
|
|
159
78
|
alert: {
|
|
160
79
|
title: "提示",
|
|
@@ -167,7 +86,8 @@ const locale = { dataValidation: {
|
|
|
167
86
|
text: "純文字",
|
|
168
87
|
label: "顯示樣式"
|
|
169
88
|
},
|
|
170
|
-
showTime: { label: "展示時間選擇" }
|
|
89
|
+
showTime: { label: "展示時間選擇" },
|
|
90
|
+
permission: { dialog: { setStyleErr: "該範圍已被保護,目前無設定樣式權限。如需設定樣式,請聯絡建立者。 " } }
|
|
171
91
|
} };
|
|
172
92
|
|
|
173
93
|
//#endregion
|
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CellValueType, ColorKit, CommandType, DEFAULT_STYLES, DataValidationErrorStyle, DataValidationRenderMode, DataValidationStatus, DataValidationType, DependentOn, Disposable, DisposableCollection, HorizontalAlign, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, ObjectMatrix, Optional, Plugin, Range, Rectangle, RedoCommand, RxDisposable, ThemeService, UndoCommand, UniverInstanceType, VerticalAlign, WrapStrategy, bufferDebounceTime, dateKit, debounce, generateRandomId, isFormulaString, isUnitRangesEqual, merge, numfmt, queryObjectMatrix, sequenceExecute, shallowEqual, toDisposable } from "@univerjs/core";
|
|
1
|
+
import { CellValueType, ColorKit, CommandType, DEFAULT_STYLES, DataValidationErrorStyle, DataValidationRenderMode, DataValidationStatus, DataValidationType, DependentOn, Disposable, DisposableCollection, HorizontalAlign, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, ObjectMatrix, Optional, Plugin, Range, Rectangle, RedoCommand, RxDisposable, ThemeService, UndoCommand, UniverInstanceType, VerticalAlign, WrapStrategy, awaitTime, bufferDebounceTime, dateKit, debounce, generateRandomId, isFormulaString, isUnitRangesEqual, merge, numfmt, queryObjectMatrix, sequenceExecute, shallowEqual, toDisposable } from "@univerjs/core";
|
|
2
2
|
import { CURSOR_TYPE, CheckboxShape, DeviceInputEventType, DocSimpleSkeleton, FontCache, IRenderManagerService, Rect, Shape, Text, Transform, fixLineWidthByScale, getCurrentTypeOfRenderer, getFontStyleString } from "@univerjs/engine-render";
|
|
3
|
-
import { AUTO_FILL_APPLY_TYPE, AutoFillTools, IAutoFillService, INTERCEPTOR_POINT, InterceptCellContentPriority, RangeProtectionPermissionEditPoint, SetRangeValuesCommand, SetWorksheetActiveOperation, SheetInterceptorService, SheetPermissionCheckController, SheetsSelectionsService, VALIDATE_CELL, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellStylePermission, checkRangesEditablePermission, getSheetCommandTarget, rangeToDiscreteRange } from "@univerjs/sheets";
|
|
4
|
-
import { AddSheetDataValidationCommand, BASE_FORMULA_INPUT_NAME as BASE_FORMULA_INPUT_NAME$1, CHECKBOX_FORMULA_1, CHECKBOX_FORMULA_2, CHECKBOX_FORMULA_INPUT_NAME, CUSTOM_FORMULA_INPUT_NAME, DATA_VALIDATION_PLUGIN_NAME, DataValidationCacheService, DataValidationFormulaController, DataValidationFormulaService, LIST_FORMULA_INPUT_NAME, RemoveSheetAllDataValidationCommand, RemoveSheetDataValidationCommand, SheetDataValidationModel, SheetsDataValidationValidatorService, UniverSheetsDataValidationPlugin, UpdateSheetDataValidationOptionsCommand, UpdateSheetDataValidationRangeCommand, UpdateSheetDataValidationSettingCommand, createDefaultNewRule,
|
|
3
|
+
import { AUTO_FILL_APPLY_TYPE, AutoFillTools, IAutoFillService, INTERCEPTOR_POINT, InterceptCellContentPriority, RangeProtectionPermissionEditPoint, SetRangeValuesCommand, SetWorksheetActiveOperation, SheetInterceptorService, SheetPermissionCheckController, SheetsSelectionsService, VALIDATE_CELL, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellStylePermission, checkRangesEditablePermission, deserializeListOptions, getSheetCommandTarget, rangeToDiscreteRange, serializeListOptions } from "@univerjs/sheets";
|
|
4
|
+
import { AddSheetDataValidationCommand, BASE_FORMULA_INPUT_NAME as BASE_FORMULA_INPUT_NAME$1, CHECKBOX_FORMULA_1, CHECKBOX_FORMULA_2, CHECKBOX_FORMULA_INPUT_NAME, CUSTOM_FORMULA_INPUT_NAME, DATA_VALIDATION_PLUGIN_NAME, DataValidationCacheService, DataValidationFormulaController, DataValidationFormulaService, LIST_FORMULA_INPUT_NAME, RemoveSheetAllDataValidationCommand, RemoveSheetDataValidationCommand, SheetDataValidationModel, SheetsDataValidationValidatorService, UniverSheetsDataValidationPlugin, UpdateSheetDataValidationOptionsCommand, UpdateSheetDataValidationRangeCommand, UpdateSheetDataValidationSettingCommand, createDefaultNewRule, getCellValueOrigin, getDataValidationCellValue, getDataValidationDiffMutations, getFormulaResult, isLegalFormulaResult, transformCheckboxValue } from "@univerjs/sheets-data-validation";
|
|
5
5
|
import { DataValidationModel, DataValidatorDropdownType, DataValidatorRegistryScope, DataValidatorRegistryService, TWO_FORMULA_OPERATOR_COUNT, getRuleOptions, getRuleSetting } from "@univerjs/data-validation";
|
|
6
6
|
import { ComponentManager, IDialogService, IMenuManagerService, ISidebarService, IZenZoneService, KeyCode, MenuItemType, RibbonDataGroup, getMenuHiddenObservable, useDependency, useEvent, useObservable, useSidebarClick } from "@univerjs/ui";
|
|
7
7
|
import { BehaviorSubject, Subject, bufferTime, debounceTime, distinctUntilChanged, filter, of } from "rxjs";
|
|
@@ -16,7 +16,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
16
16
|
|
|
17
17
|
//#region package.json
|
|
18
18
|
var name = "@univerjs/sheets-data-validation-ui";
|
|
19
|
-
var version = "0.
|
|
19
|
+
var version = "0.24.0-insiders.20260528-29f582d";
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
|
|
@@ -209,7 +209,7 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
|
|
|
209
209
|
if (await this._sheetsDataValidationValidatorService.validatorCell(unitId, subUnitId, row, col) === DataValidationStatus.VALID) return next(Promise.resolve(true));
|
|
210
210
|
this._dialogService.open({
|
|
211
211
|
width: 368,
|
|
212
|
-
title: { title: this._localeService.t("
|
|
212
|
+
title: { title: this._localeService.t("sheets-data-validation-ui.alert.title") },
|
|
213
213
|
id: "reject-input-dialog",
|
|
214
214
|
children: { title: validator.getRuleFinalError(rule, {
|
|
215
215
|
row,
|
|
@@ -220,7 +220,7 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
|
|
|
220
220
|
footer: { title: createElement(Button, {
|
|
221
221
|
variant: "primary",
|
|
222
222
|
onClick: () => this._dialogService.close("reject-input-dialog")
|
|
223
|
-
}, this._localeService.t("
|
|
223
|
+
}, this._localeService.t("sheets-data-validation-ui.alert.ok")) },
|
|
224
224
|
onClose: () => {
|
|
225
225
|
this._dialogService.close("reject-input-dialog");
|
|
226
226
|
}
|
|
@@ -231,13 +231,13 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
|
|
|
231
231
|
showReject(title) {
|
|
232
232
|
this._dialogService.open({
|
|
233
233
|
width: 368,
|
|
234
|
-
title: { title: this._localeService.t("
|
|
234
|
+
title: { title: this._localeService.t("sheets-data-validation-ui.alert.title") },
|
|
235
235
|
id: "reject-input-dialog",
|
|
236
236
|
children: { title },
|
|
237
237
|
footer: { title: createElement(Button, {
|
|
238
238
|
variant: "primary",
|
|
239
239
|
onClick: () => this._dialogService.close("reject-input-dialog")
|
|
240
|
-
}, this._localeService.t("
|
|
240
|
+
}, this._localeService.t("sheets-data-validation-ui.alert.ok")) },
|
|
241
241
|
onClose: () => {
|
|
242
242
|
this._dialogService.close("reject-input-dialog");
|
|
243
243
|
}
|
|
@@ -305,7 +305,7 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
305
305
|
}));
|
|
306
306
|
}
|
|
307
307
|
_getDropdownByCell(unitId, subUnitId, row, col) {
|
|
308
|
-
const workbook = unitId ? this._univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_SHEET) : this._univerInstanceService.
|
|
308
|
+
const workbook = unitId ? this._univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
|
|
309
309
|
if (!workbook) return;
|
|
310
310
|
const worksheet = subUnitId ? workbook.getSheetBySheetId(subUnitId) : workbook.getActiveSheet();
|
|
311
311
|
if (!worksheet) return;
|
|
@@ -650,7 +650,7 @@ const OpenValidationPanelOperation = {
|
|
|
650
650
|
});
|
|
651
651
|
const disposable = sidebarService.open({
|
|
652
652
|
id: DATA_VALIDATION_PANEL,
|
|
653
|
-
header: { title: isAdd ? "
|
|
653
|
+
header: { title: isAdd ? "sheets-data-validation-ui.panel.addTitle" : "sheets-data-validation-ui.panel.title" },
|
|
654
654
|
children: { label: DATA_VALIDATION_PANEL },
|
|
655
655
|
width: 312,
|
|
656
656
|
onClose: () => dataValidationPanelService.close()
|
|
@@ -778,7 +778,7 @@ let DataValidationAlertController = class DataValidationAlertController extends
|
|
|
778
778
|
}
|
|
779
779
|
this._cellAlertManagerService.showAlert({
|
|
780
780
|
type: CellAlertType.ERROR,
|
|
781
|
-
title: this._localeService.t("
|
|
781
|
+
title: this._localeService.t("sheets-data-validation-ui.error.title"),
|
|
782
782
|
message: validator === null || validator === void 0 ? void 0 : validator.getRuleFinalError(rule, cellPos.location),
|
|
783
783
|
location: cellPos.location,
|
|
784
784
|
width: 200,
|
|
@@ -1086,7 +1086,7 @@ let DataValidationPermissionController = class DataValidationPermissionControlle
|
|
|
1086
1086
|
workbookTypes: [WorkbookEditablePermission],
|
|
1087
1087
|
rangeTypes: [RangeProtectionPermissionEditPoint],
|
|
1088
1088
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission]
|
|
1089
|
-
}, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
|
|
1089
|
+
}, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-data-validation-ui.permission.dialog.setStyleErr"));
|
|
1090
1090
|
}
|
|
1091
1091
|
if (command.id === UpdateSheetDataValidationRangeCommand.id) {
|
|
1092
1092
|
const { unitId, subUnitId, ranges } = command.params;
|
|
@@ -1094,7 +1094,7 @@ let DataValidationPermissionController = class DataValidationPermissionControlle
|
|
|
1094
1094
|
workbookTypes: [WorkbookEditablePermission],
|
|
1095
1095
|
rangeTypes: [RangeProtectionPermissionEditPoint],
|
|
1096
1096
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission]
|
|
1097
|
-
}, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
|
|
1097
|
+
}, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-data-validation-ui.permission.dialog.setStyleErr"));
|
|
1098
1098
|
}
|
|
1099
1099
|
}));
|
|
1100
1100
|
}
|
|
@@ -1113,7 +1113,7 @@ function dataValidationMenuFactory(accessor) {
|
|
|
1113
1113
|
id: DATA_VALIDATION_MENU_ID,
|
|
1114
1114
|
type: MenuItemType.SUBITEMS,
|
|
1115
1115
|
icon: "DataValidationIcon",
|
|
1116
|
-
tooltip: "
|
|
1116
|
+
tooltip: "sheets-data-validation-ui.title",
|
|
1117
1117
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1118
1118
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
1119
1119
|
workbookTypes: [WorkbookEditablePermission],
|
|
@@ -1125,14 +1125,14 @@ function dataValidationMenuFactory(accessor) {
|
|
|
1125
1125
|
function openDataValidationMenuFactory(_accessor) {
|
|
1126
1126
|
return {
|
|
1127
1127
|
id: OpenValidationPanelOperation.id,
|
|
1128
|
-
title: "
|
|
1128
|
+
title: "sheets-data-validation-ui.panel.title",
|
|
1129
1129
|
type: MenuItemType.BUTTON
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
1132
|
function addDataValidationMenuFactory(_accessor) {
|
|
1133
1133
|
return {
|
|
1134
1134
|
id: AddSheetDataValidationAndOpenCommand.id,
|
|
1135
|
-
title: "
|
|
1135
|
+
title: "sheets-data-validation-ui.panel.add",
|
|
1136
1136
|
type: MenuItemType.BUTTON
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
@@ -1477,14 +1477,14 @@ function DataValidationOptions(props) {
|
|
|
1477
1477
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
1478
1478
|
className: "univer-mb-3 univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-text-gray-900 dark:!univer-text-white",
|
|
1479
1479
|
onClick: () => setShow(!show),
|
|
1480
|
-
children: [localeService.t("
|
|
1480
|
+
children: [localeService.t("sheets-data-validation-ui.panel.options"), show ? /* @__PURE__ */ jsx(MoreUpIcon, { className: "univer-ml-1" }) : /* @__PURE__ */ jsx(MoreDownIcon, { className: "univer-ml-1" })]
|
|
1481
1481
|
}), show && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1482
1482
|
ExtraOptions ? /* @__PURE__ */ jsx(ExtraOptions, {
|
|
1483
1483
|
value,
|
|
1484
1484
|
onChange
|
|
1485
1485
|
}) : null,
|
|
1486
1486
|
/* @__PURE__ */ jsx(FormLayout, {
|
|
1487
|
-
label: localeService.t("
|
|
1487
|
+
label: localeService.t("sheets-data-validation-ui.panel.invalid"),
|
|
1488
1488
|
children: /* @__PURE__ */ jsxs(RadioGroup, {
|
|
1489
1489
|
value: `${(_value$errorStyle = value.errorStyle) !== null && _value$errorStyle !== void 0 ? _value$errorStyle : DataValidationErrorStyle.WARNING}`,
|
|
1490
1490
|
onChange: (errorStyle) => onChange({
|
|
@@ -1493,22 +1493,22 @@ function DataValidationOptions(props) {
|
|
|
1493
1493
|
}),
|
|
1494
1494
|
children: [/* @__PURE__ */ jsx(Radio, {
|
|
1495
1495
|
value: `${DataValidationErrorStyle.WARNING}`,
|
|
1496
|
-
children: localeService.t("
|
|
1496
|
+
children: localeService.t("sheets-data-validation-ui.panel.showWarning")
|
|
1497
1497
|
}), /* @__PURE__ */ jsx(Radio, {
|
|
1498
1498
|
value: `${DataValidationErrorStyle.STOP}`,
|
|
1499
|
-
children: localeService.t("
|
|
1499
|
+
children: localeService.t("sheets-data-validation-ui.panel.rejectInput")
|
|
1500
1500
|
})]
|
|
1501
1501
|
})
|
|
1502
1502
|
}),
|
|
1503
1503
|
/* @__PURE__ */ jsx(FormLayout, {
|
|
1504
|
-
label: localeService.t("
|
|
1504
|
+
label: localeService.t("sheets-data-validation-ui.panel.messageInfo"),
|
|
1505
1505
|
children: /* @__PURE__ */ jsx(Checkbox, {
|
|
1506
1506
|
checked: value.showErrorMessage,
|
|
1507
1507
|
onChange: () => onChange({
|
|
1508
1508
|
...value,
|
|
1509
1509
|
showErrorMessage: !value.showErrorMessage
|
|
1510
1510
|
}),
|
|
1511
|
-
children: localeService.t("
|
|
1511
|
+
children: localeService.t("sheets-data-validation-ui.panel.showInfo")
|
|
1512
1512
|
})
|
|
1513
1513
|
}),
|
|
1514
1514
|
value.showErrorMessage ? /* @__PURE__ */ jsx(FormLayout, { children: /* @__PURE__ */ jsx(Input, {
|
|
@@ -1533,7 +1533,7 @@ function getSheetIdByName(univerInstanceService, unitId, name) {
|
|
|
1533
1533
|
var _univerInstanceServic;
|
|
1534
1534
|
return ((_univerInstanceServic = univerInstanceService.getUnit(unitId)) === null || _univerInstanceServic === void 0 || (_univerInstanceServic = _univerInstanceServic.getSheetBySheetName(name)) === null || _univerInstanceServic === void 0 ? void 0 : _univerInstanceServic.getSheetId()) || "";
|
|
1535
1535
|
}
|
|
1536
|
-
return ((_univerInstanceServic2 = univerInstanceService.
|
|
1536
|
+
return ((_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetName(name)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getSheetId()) || "";
|
|
1537
1537
|
}
|
|
1538
1538
|
function DataValidationDetail() {
|
|
1539
1539
|
var _validators$sort, _localRule$allowBlank;
|
|
@@ -1721,8 +1721,8 @@ function DataValidationDetail() {
|
|
|
1721
1721
|
className: "univer-py-2",
|
|
1722
1722
|
children: [
|
|
1723
1723
|
/* @__PURE__ */ jsx(FormLayout, {
|
|
1724
|
-
label: localeService.t("
|
|
1725
|
-
error: !localRule.ranges.length || isRangeError ? localeService.t("
|
|
1724
|
+
label: localeService.t("sheets-data-validation-ui.panel.range"),
|
|
1725
|
+
error: !localRule.ranges.length || isRangeError ? localeService.t("sheets-data-validation-ui.panel.rangeError") : "",
|
|
1726
1726
|
children: /* @__PURE__ */ jsx(RangeSelector, {
|
|
1727
1727
|
selectorRef: rangeSelectorInstance,
|
|
1728
1728
|
unitId,
|
|
@@ -1741,7 +1741,7 @@ function DataValidationDetail() {
|
|
|
1741
1741
|
})
|
|
1742
1742
|
}),
|
|
1743
1743
|
/* @__PURE__ */ jsx(FormLayout, {
|
|
1744
|
-
label: localeService.t("
|
|
1744
|
+
label: localeService.t("sheets-data-validation-ui.panel.type"),
|
|
1745
1745
|
children: /* @__PURE__ */ jsx(Select, {
|
|
1746
1746
|
className: "univer-w-full",
|
|
1747
1747
|
value: localRule.type,
|
|
@@ -1753,13 +1753,13 @@ function DataValidationDetail() {
|
|
|
1753
1753
|
})
|
|
1754
1754
|
}),
|
|
1755
1755
|
(operators === null || operators === void 0 ? void 0 : operators.length) ? /* @__PURE__ */ jsx(FormLayout, {
|
|
1756
|
-
label: localeService.t("
|
|
1756
|
+
label: localeService.t("sheets-data-validation-ui.panel.operator"),
|
|
1757
1757
|
children: /* @__PURE__ */ jsx(Select, {
|
|
1758
1758
|
className: "univer-w-full",
|
|
1759
1759
|
value: `${localRule.operator}`,
|
|
1760
1760
|
options: [{
|
|
1761
1761
|
value: "",
|
|
1762
|
-
label: localeService.t("
|
|
1762
|
+
label: localeService.t("data-validation.operators.legal")
|
|
1763
1763
|
}, ...operators.map((op, i) => ({
|
|
1764
1764
|
value: `${op}`,
|
|
1765
1765
|
label: operatorNames[i]
|
|
@@ -1799,7 +1799,7 @@ function DataValidationDetail() {
|
|
|
1799
1799
|
allowBlank: !((_localRule$allowBlank2 = localRule.allowBlank) !== null && _localRule$allowBlank2 !== void 0 ? _localRule$allowBlank2 : true)
|
|
1800
1800
|
});
|
|
1801
1801
|
},
|
|
1802
|
-
children: localeService.t("
|
|
1802
|
+
children: localeService.t("sheets-data-validation-ui.panel.allowBlank")
|
|
1803
1803
|
}) }),
|
|
1804
1804
|
/* @__PURE__ */ jsx(DataValidationOptions, {
|
|
1805
1805
|
value: options,
|
|
@@ -1811,12 +1811,12 @@ function DataValidationDetail() {
|
|
|
1811
1811
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
1812
1812
|
className: "univer-ml-3",
|
|
1813
1813
|
onClick: handleDelete,
|
|
1814
|
-
children: localeService.t("
|
|
1814
|
+
children: localeService.t("sheets-data-validation-ui.panel.removeRule")
|
|
1815
1815
|
}), /* @__PURE__ */ jsx(Button, {
|
|
1816
1816
|
className: "univer-ml-3",
|
|
1817
1817
|
variant: "primary",
|
|
1818
1818
|
onClick: handleOk,
|
|
1819
|
-
children: localeService.t("
|
|
1819
|
+
children: localeService.t("sheets-data-validation-ui.panel.done")
|
|
1820
1820
|
})]
|
|
1821
1821
|
})
|
|
1822
1822
|
]
|
|
@@ -1952,7 +1952,7 @@ function DataValidationList(props) {
|
|
|
1952
1952
|
});
|
|
1953
1953
|
};
|
|
1954
1954
|
const getDvRulesByPermissionCorrect = (rules) => {
|
|
1955
|
-
const workbook = univerInstanceService.
|
|
1955
|
+
const workbook = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
|
|
1956
1956
|
const worksheet = workbook.getActiveSheet();
|
|
1957
1957
|
const unitId = workbook.getUnitId();
|
|
1958
1958
|
const subUnitId = worksheet.getSheetId();
|
|
@@ -1988,11 +1988,11 @@ function DataValidationList(props) {
|
|
|
1988
1988
|
className: "univer-mt-4 univer-flex univer-flex-row univer-justify-end univer-gap-2",
|
|
1989
1989
|
children: [rules.length && !hasDisableRule ? /* @__PURE__ */ jsx(Button, {
|
|
1990
1990
|
onClick: handleRemoveAll,
|
|
1991
|
-
children: localeService.t("
|
|
1991
|
+
children: localeService.t("sheets-data-validation-ui.panel.removeAll")
|
|
1992
1992
|
}) : null, /* @__PURE__ */ jsx(Button, {
|
|
1993
1993
|
variant: "primary",
|
|
1994
1994
|
onClick: handleAddRule,
|
|
1995
|
-
children: localeService.t("
|
|
1995
|
+
children: localeService.t("sheets-data-validation-ui.panel.add")
|
|
1996
1996
|
})]
|
|
1997
1997
|
})]
|
|
1998
1998
|
});
|
|
@@ -2025,7 +2025,7 @@ const BaseFormulaInput = (props) => {
|
|
|
2025
2025
|
error: formula1Res,
|
|
2026
2026
|
children: /* @__PURE__ */ jsx(Input, {
|
|
2027
2027
|
className: "univer-w-full",
|
|
2028
|
-
placeholder: localeService.t("
|
|
2028
|
+
placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
|
|
2029
2029
|
value: value === null || value === void 0 ? void 0 : value.formula1,
|
|
2030
2030
|
onChange: (newValue) => {
|
|
2031
2031
|
onChange === null || onChange === void 0 || onChange({
|
|
@@ -2037,13 +2037,13 @@ const BaseFormulaInput = (props) => {
|
|
|
2037
2037
|
}),
|
|
2038
2038
|
/* @__PURE__ */ jsx("div", {
|
|
2039
2039
|
className: "-univer-mt-2 univer-mb-1 univer-text-sm univer-text-gray-400",
|
|
2040
|
-
children: localeService.t("
|
|
2040
|
+
children: localeService.t("sheets-data-validation-ui.panel.formulaAnd")
|
|
2041
2041
|
}),
|
|
2042
2042
|
/* @__PURE__ */ jsx(FormLayout, {
|
|
2043
2043
|
error: formula2Res,
|
|
2044
2044
|
children: /* @__PURE__ */ jsx(Input, {
|
|
2045
2045
|
className: "univer-w-full",
|
|
2046
|
-
placeholder: localeService.t("
|
|
2046
|
+
placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
|
|
2047
2047
|
value: value === null || value === void 0 ? void 0 : value.formula2,
|
|
2048
2048
|
onChange: (newValue) => {
|
|
2049
2049
|
onChange === null || onChange === void 0 || onChange({
|
|
@@ -2058,7 +2058,7 @@ const BaseFormulaInput = (props) => {
|
|
|
2058
2058
|
error: formula1Res,
|
|
2059
2059
|
children: /* @__PURE__ */ jsx(Input, {
|
|
2060
2060
|
className: "univer-w-full",
|
|
2061
|
-
placeholder: localeService.t("
|
|
2061
|
+
placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
|
|
2062
2062
|
value: value === null || value === void 0 ? void 0 : value.formula1,
|
|
2063
2063
|
onChange: (newValue) => {
|
|
2064
2064
|
onChange === null || onChange === void 0 || onChange({ formula1: newValue });
|
|
@@ -2089,14 +2089,14 @@ function CheckboxFormulaInput(props) {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
},
|
|
2092
|
-
children: localeService.t("
|
|
2092
|
+
children: localeService.t("sheets-data-validation-ui.checkbox.tips")
|
|
2093
2093
|
}) }),
|
|
2094
2094
|
checked ? /* @__PURE__ */ jsx(FormLayout, {
|
|
2095
|
-
label: localeService.t("
|
|
2095
|
+
label: localeService.t("sheets-data-validation-ui.checkbox.checked"),
|
|
2096
2096
|
error: formula1Res,
|
|
2097
2097
|
children: /* @__PURE__ */ jsx(Input, {
|
|
2098
2098
|
className: "univer-w-full",
|
|
2099
|
-
placeholder: localeService.t("
|
|
2099
|
+
placeholder: localeService.t("sheets-data-validation-ui.panel.valuePlaceholder"),
|
|
2100
2100
|
value: value === null || value === void 0 ? void 0 : value.formula1,
|
|
2101
2101
|
onChange: (newValue) => {
|
|
2102
2102
|
onChange === null || onChange === void 0 || onChange({
|
|
@@ -2107,11 +2107,11 @@ function CheckboxFormulaInput(props) {
|
|
|
2107
2107
|
})
|
|
2108
2108
|
}) : null,
|
|
2109
2109
|
checked ? /* @__PURE__ */ jsx(FormLayout, {
|
|
2110
|
-
label: localeService.t("
|
|
2110
|
+
label: localeService.t("sheets-data-validation-ui.checkbox.unchecked"),
|
|
2111
2111
|
error: formula2Res,
|
|
2112
2112
|
children: /* @__PURE__ */ jsx(Input, {
|
|
2113
2113
|
className: "univer-w-full",
|
|
2114
|
-
placeholder: localeService.t("
|
|
2114
|
+
placeholder: localeService.t("sheets-data-validation-ui.panel.valuePlaceholder"),
|
|
2115
2115
|
value: value === null || value === void 0 ? void 0 : value.formula2,
|
|
2116
2116
|
onChange: (newValue) => {
|
|
2117
2117
|
onChange === null || onChange === void 0 || onChange({
|
|
@@ -2265,9 +2265,7 @@ function ListFormulaInput(props) {
|
|
|
2265
2265
|
const onChange = useEvent(_onChange);
|
|
2266
2266
|
useEffect(() => {
|
|
2267
2267
|
(async () => {
|
|
2268
|
-
await
|
|
2269
|
-
setTimeout(() => resolve(true), 100);
|
|
2270
|
-
});
|
|
2268
|
+
await awaitTime(100);
|
|
2271
2269
|
const rule = dataValidationModel.getRuleById(unitId, subUnitId, ruleId);
|
|
2272
2270
|
if (isFormulaString(rule === null || rule === void 0 ? void 0 : rule.formula1) && listValidator && rule) setRefOptions(await listValidator.getListAsync(rule, unitId, subUnitId));
|
|
2273
2271
|
})();
|
|
@@ -2384,7 +2382,7 @@ function ListFormulaInput(props) {
|
|
|
2384
2382
|
formula2
|
|
2385
2383
|
});
|
|
2386
2384
|
setFormulaStr("=");
|
|
2387
|
-
setLocalError(localeService.t("
|
|
2385
|
+
setLocalError(localeService.t("sheets-data-validation-ui.validFail.formulaError"));
|
|
2388
2386
|
}
|
|
2389
2387
|
});
|
|
2390
2388
|
const formulaEditorRef = useRef(null);
|
|
@@ -2402,7 +2400,7 @@ function ListFormulaInput(props) {
|
|
|
2402
2400
|
dataValidationPanelService
|
|
2403
2401
|
]);
|
|
2404
2402
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FormLayout, {
|
|
2405
|
-
label: localeService.t("
|
|
2403
|
+
label: localeService.t("sheets-data-validation-ui.list.options"),
|
|
2406
2404
|
children: /* @__PURE__ */ jsxs(RadioGroup, {
|
|
2407
2405
|
value: isFormulaStr,
|
|
2408
2406
|
onChange: (v) => {
|
|
@@ -2415,10 +2413,10 @@ function ListFormulaInput(props) {
|
|
|
2415
2413
|
},
|
|
2416
2414
|
children: [/* @__PURE__ */ jsx(Radio, {
|
|
2417
2415
|
value: "0",
|
|
2418
|
-
children: localeService.t("
|
|
2416
|
+
children: localeService.t("sheets-data-validation-ui.list.customOptions")
|
|
2419
2417
|
}), /* @__PURE__ */ jsx(Radio, {
|
|
2420
2418
|
value: "1",
|
|
2421
|
-
children: localeService.t("
|
|
2419
|
+
children: localeService.t("sheets-data-validation-ui.list.refOptions")
|
|
2422
2420
|
})]
|
|
2423
2421
|
})
|
|
2424
2422
|
}), isFormulaStr === "1" ? /* @__PURE__ */ jsxs(FormLayout, {
|
|
@@ -2468,7 +2466,7 @@ function ListFormulaInput(props) {
|
|
|
2468
2466
|
}), /* @__PURE__ */ jsxs("a", {
|
|
2469
2467
|
className: "univer-text-primary univer-flex univer-w-fit univer-cursor-pointer univer-flex-row univer-items-center univer-rounded univer-p-1 univer-px-2 univer-text-sm hover:univer-bg-primary-50 dark:hover:!univer-bg-gray-800",
|
|
2470
2468
|
onClick: handleAdd,
|
|
2471
|
-
children: [/* @__PURE__ */ jsx(IncreaseIcon, { className: "univer-mr-1" }), localeService.t("
|
|
2469
|
+
children: [/* @__PURE__ */ jsx(IncreaseIcon, { className: "univer-mr-1" }), localeService.t("sheets-data-validation-ui.list.add")]
|
|
2472
2470
|
})]
|
|
2473
2471
|
})
|
|
2474
2472
|
})] });
|
|
@@ -2491,7 +2489,7 @@ function ListRenderModeInput(props) {
|
|
|
2491
2489
|
const { value, onChange } = props;
|
|
2492
2490
|
const localeService = useDependency(LocaleService);
|
|
2493
2491
|
return /* @__PURE__ */ jsx(FormLayout, {
|
|
2494
|
-
label: localeService.t("
|
|
2492
|
+
label: localeService.t("sheets-data-validation-ui.renderMode.label"),
|
|
2495
2493
|
children: /* @__PURE__ */ jsxs(RadioGroup, {
|
|
2496
2494
|
value: `${(_value$renderMode = value.renderMode) !== null && _value$renderMode !== void 0 ? _value$renderMode : DataValidationRenderMode.CUSTOM}`,
|
|
2497
2495
|
onChange: (renderMode) => onChange({
|
|
@@ -2501,15 +2499,15 @@ function ListRenderModeInput(props) {
|
|
|
2501
2499
|
children: [
|
|
2502
2500
|
/* @__PURE__ */ jsx(Radio, {
|
|
2503
2501
|
value: `${DataValidationRenderMode.CUSTOM}`,
|
|
2504
|
-
children: localeService.t("
|
|
2502
|
+
children: localeService.t("sheets-data-validation-ui.renderMode.chip")
|
|
2505
2503
|
}),
|
|
2506
2504
|
/* @__PURE__ */ jsx(Radio, {
|
|
2507
2505
|
value: `${DataValidationRenderMode.ARROW}`,
|
|
2508
|
-
children: localeService.t("
|
|
2506
|
+
children: localeService.t("sheets-data-validation-ui.renderMode.arrow")
|
|
2509
2507
|
}),
|
|
2510
2508
|
/* @__PURE__ */ jsx(Radio, {
|
|
2511
2509
|
value: `${DataValidationRenderMode.TEXT}`,
|
|
2512
|
-
children: localeService.t("
|
|
2510
|
+
children: localeService.t("sheets-data-validation-ui.renderMode.text")
|
|
2513
2511
|
})
|
|
2514
2512
|
]
|
|
2515
2513
|
})
|
|
@@ -2535,7 +2533,7 @@ function DateShowTimeOption(props) {
|
|
|
2535
2533
|
}
|
|
2536
2534
|
});
|
|
2537
2535
|
},
|
|
2538
|
-
children: localeService.t("
|
|
2536
|
+
children: localeService.t("sheets-data-validation-ui.showTime.label")
|
|
2539
2537
|
}) });
|
|
2540
2538
|
}
|
|
2541
2539
|
DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "sheets-data-validation-ui": {
|
|
3
|
+
title: "التحقق من صحة البيانات",
|
|
4
|
+
validFail: {
|
|
5
|
+
value: "يُرجى إدخال قيمة",
|
|
6
|
+
common: "يُرجى إدخال قيمة أو صيغة",
|
|
7
|
+
number: "يُرجى إدخال رقم أو صيغة",
|
|
8
|
+
formula: "يُرجى إدخال صيغة",
|
|
9
|
+
integer: "يُرجى إدخال عدد صحيح أو صيغة",
|
|
10
|
+
date: "يُرجى إدخال تاريخ أو صيغة",
|
|
11
|
+
list: "يُرجى إدخال خيارات",
|
|
12
|
+
listInvalid: "يجب أن يكون مصدر القائمة قائمة مفصولة بالفواصل أو مرجعًا لصف أو عمود واحد",
|
|
13
|
+
checkboxEqual: "أدخل قيمًا مختلفة لمحتويات الخلية المحددة وغير المحددة.",
|
|
14
|
+
formulaError: "يحتوي نطاق المرجع على بيانات غير مرئية، يُرجى إعادة ضبط النطاق",
|
|
15
|
+
listIntersects: "لا يمكن أن يتقاطع النطاق المحدد مع نطاق القواعد",
|
|
16
|
+
primitive: "الصيغ غير مسموح بها للقيم المخصصة المحددة وغير المحددة."
|
|
17
|
+
},
|
|
18
|
+
panel: {
|
|
19
|
+
title: "إدارة التحقق من صحة البيانات",
|
|
20
|
+
addTitle: "إنشاء تحقق جديد من صحة البيانات",
|
|
21
|
+
removeAll: "إزالة الكل",
|
|
22
|
+
add: "إضافة قاعدة",
|
|
23
|
+
range: "النطاقات",
|
|
24
|
+
type: "النوع",
|
|
25
|
+
options: "خيارات متقدمة",
|
|
26
|
+
operator: "المشغل",
|
|
27
|
+
removeRule: "إزالة",
|
|
28
|
+
done: "تم",
|
|
29
|
+
formulaPlaceholder: "يُرجى إدخال قيمة أو صيغة",
|
|
30
|
+
valuePlaceholder: "يُرجى إدخال قيمة",
|
|
31
|
+
formulaAnd: "و",
|
|
32
|
+
invalid: "غير صالح",
|
|
33
|
+
showWarning: "إظهار التحذير",
|
|
34
|
+
rejectInput: "رفض الإدخال",
|
|
35
|
+
messageInfo: "رسالة مساعدة",
|
|
36
|
+
showInfo: "إظهار نص المساعدة للخلية المحددة",
|
|
37
|
+
rangeError: "النطاقات غير قانونية",
|
|
38
|
+
allowBlank: "السماح بالقيم الفارغة"
|
|
39
|
+
},
|
|
40
|
+
any: {
|
|
41
|
+
title: "أي قيمة",
|
|
42
|
+
error: "محتوى هذه الخلية ينتهك قاعدة التحقق"
|
|
43
|
+
},
|
|
44
|
+
date: { title: "تاريخ" },
|
|
45
|
+
list: {
|
|
46
|
+
title: "قائمة منسدلة",
|
|
47
|
+
name: "القيمة تحتوي على واحدة من النطاق",
|
|
48
|
+
error: "يجب أن يكون الإدخال ضمن النطاق المحدد",
|
|
49
|
+
emptyError: "يُرجى إدخال قيمة",
|
|
50
|
+
add: "إضافة",
|
|
51
|
+
dropdown: "تحديد",
|
|
52
|
+
options: "خيارات",
|
|
53
|
+
customOptions: "مخصص",
|
|
54
|
+
refOptions: "من نطاق",
|
|
55
|
+
formulaError: "يجب أن يكون مصدر القائمة قائمة بيانات مفصولة بالفواصل، أو مرجعًا لصف أو عمود واحد.",
|
|
56
|
+
edit: "تحرير"
|
|
57
|
+
},
|
|
58
|
+
listMultiple: {
|
|
59
|
+
title: "قائمة منسدلة - متعددة",
|
|
60
|
+
dropdown: "تحديد متعدد"
|
|
61
|
+
},
|
|
62
|
+
textLength: { title: "طول النص" },
|
|
63
|
+
decimal: { title: "رقم" },
|
|
64
|
+
whole: { title: "عدد صحيح" },
|
|
65
|
+
checkbox: {
|
|
66
|
+
title: "خانة اختيار",
|
|
67
|
+
error: "محتوى هذه الخلية ينتهك قاعدة التحقق",
|
|
68
|
+
tips: "استخدم قيمًا مخصصة داخل الخلايا",
|
|
69
|
+
checked: "القيمة المحددة",
|
|
70
|
+
unchecked: "القيمة غير المحددة"
|
|
71
|
+
},
|
|
72
|
+
custom: {
|
|
73
|
+
title: "صيغة مخصصة",
|
|
74
|
+
error: "محتوى هذه الخلية ينتهك قاعدة التحقق",
|
|
75
|
+
validFail: "يُرجى إدخال صيغة صالحة"
|
|
76
|
+
},
|
|
77
|
+
alert: {
|
|
78
|
+
title: "خطأ",
|
|
79
|
+
ok: "موافق"
|
|
80
|
+
},
|
|
81
|
+
error: { title: "غير صالح:" },
|
|
82
|
+
renderMode: {
|
|
83
|
+
arrow: "سهم",
|
|
84
|
+
chip: "رقاقة",
|
|
85
|
+
text: "نص عادي",
|
|
86
|
+
label: "نمط العرض"
|
|
87
|
+
},
|
|
88
|
+
showTime: { label: "إظهار منتقي الوقت" },
|
|
89
|
+
permission: { dialog: { setStyleErr: "النطاق محمي، وليس لديك الإذن بتعيين الأنماط. لتعيين الأنماط، يُرجى التواصل مع المنشئ." } }
|
|
90
|
+
} };
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
export { locale as default };
|