@univerjs/sheets-data-validation-ui 1.3.1 → 1.5.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/README.md +5 -5
- package/lib/cjs/index.js +68 -121
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/index.js +73 -126
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/index.js +73 -126
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/menu/dv.menu.d.ts +1 -1
- package/lib/types/views/components/DateShowTimeOption.d.ts +3 -1
- package/lib/types/views/components/ListRenderModeInput.d.ts +3 -1
- package/lib/umd/index.js +1 -1
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs/sheets-data-validation-ui` | `UniverSheetsDataValidationUi` | Yes | Yes | No |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-data-validation-ui` | `UniverSheetsDataValidationUi` | Yes | Yes | No | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs/sheets-data-validation-ui
|
|
|
20
20
|
npm install @univerjs/sheets-data-validation-ui
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import '@univerjs/sheets-data-validation-ui/lib/index.css';
|
|
29
29
|
import EnUS from '@univerjs/sheets-data-validation-ui/locale/en-US';
|
package/lib/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@ let _univerjs_icons = require("@univerjs/icons");
|
|
|
15
15
|
let _univerjs_engine_formula = require("@univerjs/engine-formula");
|
|
16
16
|
let _univerjs_sheets_formula_ui = require("@univerjs/sheets-formula-ui");
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
19
19
|
function _typeof(o) {
|
|
20
20
|
"@babel/helpers - typeof";
|
|
21
21
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -25,28 +25,25 @@ function _typeof(o) {
|
|
|
25
25
|
}, _typeof(o);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function toPrimitive(t, r) {
|
|
28
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
29
|
+
function toPrimitive(t, e) {
|
|
31
30
|
if ("object" != _typeof(t) || !t) return t;
|
|
32
|
-
var
|
|
33
|
-
if (void 0 !==
|
|
34
|
-
var i =
|
|
31
|
+
var r;
|
|
32
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
33
|
+
var i = r.call(t, e || "default");
|
|
35
34
|
if ("object" != _typeof(i)) return i;
|
|
36
35
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
37
36
|
}
|
|
38
|
-
return ("string" ===
|
|
37
|
+
return ("string" === e ? String : Number)(t);
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
40
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
43
41
|
function toPropertyKey(t) {
|
|
44
42
|
var i = toPrimitive(t, "string");
|
|
45
43
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
46
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
50
47
|
function _defineProperty(e, r, t) {
|
|
51
48
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
52
49
|
value: t,
|
|
@@ -56,16 +53,14 @@ function _defineProperty(e, r, t) {
|
|
|
56
53
|
}) : e[r] = t, e;
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
|
|
60
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
56
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
|
|
61
57
|
function __decorateParam(paramIndex, decorator) {
|
|
62
58
|
return function(target, key) {
|
|
63
59
|
decorator(target, key, paramIndex);
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
|
|
68
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
63
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
|
|
69
64
|
function __decorate(decorators, target, key, desc) {
|
|
70
65
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
71
66
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -73,8 +68,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
73
68
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
|
|
77
|
-
//#region src/services/data-validation-panel.service.ts
|
|
71
|
+
// src/services/data-validation-panel.service.ts
|
|
78
72
|
let DataValidationPanelService = class DataValidationPanelService extends _univerjs_core.Disposable {
|
|
79
73
|
get activeRule() {
|
|
80
74
|
return this._activeRule;
|
|
@@ -139,14 +133,12 @@ let DataValidationPanelService = class DataValidationPanelService extends _unive
|
|
|
139
133
|
};
|
|
140
134
|
DataValidationPanelService = __decorate([__decorateParam(0, _univerjs_core.IUniverInstanceService), __decorateParam(1, _univerjs_ui.ISidebarService)], DataValidationPanelService);
|
|
141
135
|
|
|
142
|
-
|
|
143
|
-
//#region src/config/config.ts
|
|
136
|
+
// src/config/config.ts
|
|
144
137
|
const SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY = "sheets-data-validation-ui.config";
|
|
145
138
|
const configSymbol = Symbol(SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY);
|
|
146
139
|
const defaultPluginConfig = {};
|
|
147
140
|
|
|
148
|
-
|
|
149
|
-
//#region src/const.ts
|
|
141
|
+
// src/const.ts
|
|
150
142
|
/**
|
|
151
143
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
152
144
|
*
|
|
@@ -165,8 +157,7 @@ const defaultPluginConfig = {};
|
|
|
165
157
|
const DROP_DOWN_DEFAULT_COLOR = "gray.100";
|
|
166
158
|
const DROP_DOWN_ICON_COLOR = "gray.600";
|
|
167
159
|
|
|
168
|
-
|
|
169
|
-
//#region src/controllers/dv-reject-input.controller.ts
|
|
160
|
+
// src/controllers/dv-reject-input.controller.ts
|
|
170
161
|
let DataValidationRejectInputController = class DataValidationRejectInputController extends _univerjs_core.Disposable {
|
|
171
162
|
constructor(_sheetInterceptorService, _dataValidationModel, _dataValidatorRegistryService, _dialogService, _localeService, _sheetsDataValidationValidatorService) {
|
|
172
163
|
super();
|
|
@@ -235,8 +226,7 @@ DataValidationRejectInputController = __decorate([
|
|
|
235
226
|
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetsDataValidationValidatorService))
|
|
236
227
|
], DataValidationRejectInputController);
|
|
237
228
|
|
|
238
|
-
|
|
239
|
-
//#region src/services/dropdown-manager.service.ts
|
|
229
|
+
// src/services/dropdown-manager.service.ts
|
|
240
230
|
function getExceptionalDateLabel(parts, patternType) {
|
|
241
231
|
if (!parts || parts.day !== 0 && !(parts.year === 1900 && parts.month === 2 && parts.day === 29)) return;
|
|
242
232
|
const date = `${String(parts.year).padStart(4, "0")}-${String(parts.month).padStart(2, "0")}-${String(parts.day).padStart(2, "0")}`;
|
|
@@ -299,7 +289,8 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
299
289
|
if (!workbook) return;
|
|
300
290
|
const worksheet = subUnitId ? workbook.getSheetBySheetId(subUnitId) : workbook.getActiveSheet();
|
|
301
291
|
if (!worksheet) return;
|
|
302
|
-
const
|
|
292
|
+
const mergeCell = worksheet.getMergedCell(row, col);
|
|
293
|
+
const rule = this._dataValidationModel.getRuleByLocation(workbook.getUnitId(), worksheet.getSheetId(), (mergeCell === null || mergeCell === void 0 ? void 0 : mergeCell.startRow) ?? row, (mergeCell === null || mergeCell === void 0 ? void 0 : mergeCell.startColumn) ?? col);
|
|
303
294
|
if (!rule) return;
|
|
304
295
|
const validator = this._dataValidatorRegistryService.getValidatorItem(rule.type);
|
|
305
296
|
return validator === null || validator === void 0 ? void 0 : validator.dropdownType;
|
|
@@ -680,8 +671,7 @@ DataValidationDropdownManagerService = __decorate([
|
|
|
680
671
|
__decorateParam(9, _univerjs_core.IConfigService)
|
|
681
672
|
], DataValidationDropdownManagerService);
|
|
682
673
|
|
|
683
|
-
|
|
684
|
-
//#region src/commands/operations/data-validation.operation.ts
|
|
674
|
+
// src/commands/operations/data-validation.operation.ts
|
|
685
675
|
const DATA_VALIDATION_PANEL = "DataValidationPanel";
|
|
686
676
|
const OpenValidationPanelOperation = {
|
|
687
677
|
id: "data-validation.operation.open-validation-panel",
|
|
@@ -758,8 +748,7 @@ const HideDataValidationDropdown = {
|
|
|
758
748
|
}
|
|
759
749
|
};
|
|
760
750
|
|
|
761
|
-
|
|
762
|
-
//#region src/commands/commands/data-validation-ui.command.ts
|
|
751
|
+
// src/commands/commands/data-validation-ui.command.ts
|
|
763
752
|
function createRule(accessor, rule) {
|
|
764
753
|
const defaultRule = (0, _univerjs_sheets_data_validation.createDefaultNewRule)(accessor);
|
|
765
754
|
return {
|
|
@@ -827,8 +816,7 @@ const AddSheetDataValidationAndOpenCommand = {
|
|
|
827
816
|
}
|
|
828
817
|
};
|
|
829
818
|
|
|
830
|
-
|
|
831
|
-
//#region src/views/components/DropdownPresets.tsx
|
|
819
|
+
// src/views/components/DropdownPresets.tsx
|
|
832
820
|
const DROPDOWN_PRESETS_COMPONENT = "SHEETS_DATA_VALIDATION_DROPDOWN_PRESETS";
|
|
833
821
|
function DropdownPresets({ onChange }) {
|
|
834
822
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -870,8 +858,7 @@ function DropdownPresets({ onChange }) {
|
|
|
870
858
|
});
|
|
871
859
|
}
|
|
872
860
|
|
|
873
|
-
|
|
874
|
-
//#region src/menu/dv.menu.ts
|
|
861
|
+
// src/menu/dv.menu.ts
|
|
875
862
|
const DATA_VALIDATION_MENU_ID = "sheet.menu.data-validation";
|
|
876
863
|
const QUICK_DROPDOWN_MENU_ID = "sheet.menu.quick-dropdown";
|
|
877
864
|
const QUICK_DATE_MENU_ID = "sheet.menu.quick-date";
|
|
@@ -1018,8 +1005,10 @@ function quickDateMenuFactory(accessor) {
|
|
|
1018
1005
|
...getQuickDataValidationMenuState(accessor)
|
|
1019
1006
|
};
|
|
1020
1007
|
}
|
|
1021
|
-
function openDataValidationMenuFactory() {
|
|
1008
|
+
function openDataValidationMenuFactory(accessor) {
|
|
1009
|
+
const sidebarService = accessor.get(_univerjs_ui.ISidebarService);
|
|
1022
1010
|
return {
|
|
1011
|
+
activated$: (0, rxjs.defer)(() => sidebarService.sidebarOptions$.pipe((0, rxjs.startWith)(sidebarService.options), (0, rxjs.map)((options) => options.visible === true && options.id === "DataValidationPanel"), (0, rxjs.distinctUntilChanged)())),
|
|
1023
1012
|
id: OpenValidationPanelOperation.id,
|
|
1024
1013
|
title: "sheets-data-validation-ui.panel.title",
|
|
1025
1014
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
@@ -1034,8 +1023,7 @@ function addDataValidationMenuFactory() {
|
|
|
1034
1023
|
};
|
|
1035
1024
|
}
|
|
1036
1025
|
|
|
1037
|
-
|
|
1038
|
-
//#region src/menu/schema.ts
|
|
1026
|
+
// src/menu/schema.ts
|
|
1039
1027
|
const menuSchema = {
|
|
1040
1028
|
[_univerjs_ui.RibbonInsertGroup.CELL]: {
|
|
1041
1029
|
[InsertQuickSheetDataValidationCommand.id]: {
|
|
@@ -1069,13 +1057,11 @@ const menuSchema = {
|
|
|
1069
1057
|
} }
|
|
1070
1058
|
};
|
|
1071
1059
|
|
|
1072
|
-
|
|
1073
|
-
//#region package.json
|
|
1060
|
+
// package.json
|
|
1074
1061
|
var name = "@univerjs/sheets-data-validation-ui";
|
|
1075
|
-
var version = "1.
|
|
1062
|
+
var version = "1.5.0";
|
|
1076
1063
|
|
|
1077
|
-
|
|
1078
|
-
//#region src/controllers/dv-alert.controller.ts
|
|
1064
|
+
// src/controllers/dv-alert.controller.ts
|
|
1079
1065
|
const ALERT_KEY = "SHEET_DATA_VALIDATION_ALERT";
|
|
1080
1066
|
let DataValidationAlertController = class DataValidationAlertController extends _univerjs_core.Disposable {
|
|
1081
1067
|
constructor(_hoverManagerService, _cellAlertManagerService, _univerInstanceService, _localeService, _dataValidationModel, _dataValidationCacheService) {
|
|
@@ -1200,8 +1186,7 @@ DataValidationAlertController = __decorate([
|
|
|
1200
1186
|
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.DataValidationCacheService))
|
|
1201
1187
|
], DataValidationAlertController);
|
|
1202
1188
|
|
|
1203
|
-
|
|
1204
|
-
//#region src/controllers/dv-auto-fill.controller.ts
|
|
1189
|
+
// src/controllers/dv-auto-fill.controller.ts
|
|
1205
1190
|
let DataValidationAutoFillController = class DataValidationAutoFillController extends _univerjs_core.Disposable {
|
|
1206
1191
|
constructor(_autoFillService, _sheetDataValidationModel, _injector) {
|
|
1207
1192
|
super();
|
|
@@ -1281,8 +1266,7 @@ DataValidationAutoFillController = __decorate([
|
|
|
1281
1266
|
__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.Injector))
|
|
1282
1267
|
], DataValidationAutoFillController);
|
|
1283
1268
|
|
|
1284
|
-
|
|
1285
|
-
//#region src/controllers/dv-copy-paste.controller.ts
|
|
1269
|
+
// src/controllers/dv-copy-paste.controller.ts
|
|
1286
1270
|
const specialPastes = [
|
|
1287
1271
|
_univerjs_sheets_ui.PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_COL_WIDTH,
|
|
1288
1272
|
_univerjs_sheets_ui.PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_VALUE,
|
|
@@ -1360,7 +1344,7 @@ let DataValidationCopyPasteController = class DataValidationCopyPasteController
|
|
|
1360
1344
|
const targetVirtualRange = targetVirtualization.ranges[0];
|
|
1361
1345
|
const repeatRange = (0, _univerjs_sheets_ui.getRepeatRange)(sourceVirtualRange, targetVirtualRange, true);
|
|
1362
1346
|
const clearTargetRanges = targetVirtualization.mapRange(targetVirtualRange);
|
|
1363
|
-
const getTargetRanges = (sourceRanges) => repeatRange.flatMap(({ startRange }) => sourceRanges.flatMap((sourceRange) => targetVirtualization.mapRange(_univerjs_core.Rectangle.
|
|
1347
|
+
const getTargetRanges = (sourceRanges) => repeatRange.flatMap(({ startRange }) => sourceRanges.flatMap((sourceRange) => targetVirtualization.mapRange(_univerjs_core.Rectangle.moveOffset(sourceRange, startRange.startColumn, startRange.startRow))));
|
|
1364
1348
|
if (pastedUnitId !== copyUnitId || pastedSubUnitId !== copySubUnitId) {
|
|
1365
1349
|
const ruleMatrix = this._sheetDataValidationModel.getRuleObjectMatrix(pastedUnitId, pastedSubUnitId).clone();
|
|
1366
1350
|
const additionRules = /* @__PURE__ */ new Map();
|
|
@@ -1421,8 +1405,7 @@ DataValidationCopyPasteController = __decorate([
|
|
|
1421
1405
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_core.IUniverInstanceService))
|
|
1422
1406
|
], DataValidationCopyPasteController);
|
|
1423
1407
|
|
|
1424
|
-
|
|
1425
|
-
//#region src/controllers/dv-permission.controller.ts
|
|
1408
|
+
// src/controllers/dv-permission.controller.ts
|
|
1426
1409
|
let DataValidationPermissionController = class DataValidationPermissionController extends _univerjs_core.Disposable {
|
|
1427
1410
|
constructor(_localeService, _commandService, _sheetPermissionCheckController) {
|
|
1428
1411
|
super();
|
|
@@ -1458,8 +1441,7 @@ DataValidationPermissionController = __decorate([
|
|
|
1458
1441
|
__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetPermissionCheckController))
|
|
1459
1442
|
], DataValidationPermissionController);
|
|
1460
1443
|
|
|
1461
|
-
|
|
1462
|
-
//#region src/controllers/dv-rerender.controller.ts
|
|
1444
|
+
// src/controllers/dv-rerender.controller.ts
|
|
1463
1445
|
let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderController extends _univerjs_core.Disposable {
|
|
1464
1446
|
constructor(_context, _sheetDataValidationModel, _sheetSkeletonManagerService) {
|
|
1465
1447
|
super();
|
|
@@ -1487,8 +1469,7 @@ let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderC
|
|
|
1487
1469
|
};
|
|
1488
1470
|
SheetsDataValidationReRenderController = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel)), __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetSkeletonManagerService))], SheetsDataValidationReRenderController);
|
|
1489
1471
|
|
|
1490
|
-
|
|
1491
|
-
//#region src/controllers/mobile/components.controller.ts
|
|
1472
|
+
// src/controllers/mobile/components.controller.ts
|
|
1492
1473
|
/**
|
|
1493
1474
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1494
1475
|
*
|
|
@@ -1518,8 +1499,7 @@ let MobileComponentsController = class MobileComponentsController extends _unive
|
|
|
1518
1499
|
};
|
|
1519
1500
|
MobileComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], MobileComponentsController);
|
|
1520
1501
|
|
|
1521
|
-
|
|
1522
|
-
//#region src/controllers/dv-render.controller.ts
|
|
1502
|
+
// src/controllers/dv-render.controller.ts
|
|
1523
1503
|
const INVALID_MARK$1 = { tr: {
|
|
1524
1504
|
size: 6,
|
|
1525
1505
|
color: "#fe4b4b"
|
|
@@ -1718,8 +1698,7 @@ function recalculateAutoHeight(infos, autoHeightController, commandService) {
|
|
|
1718
1698
|
}
|
|
1719
1699
|
}
|
|
1720
1700
|
|
|
1721
|
-
|
|
1722
|
-
//#region src/controllers/mobile/dv-render.controller.ts
|
|
1701
|
+
// src/controllers/mobile/dv-render.controller.ts
|
|
1723
1702
|
const INVALID_MARK = { tr: {
|
|
1724
1703
|
size: 6,
|
|
1725
1704
|
color: "#fe4b4b"
|
|
@@ -1827,8 +1806,7 @@ SheetsDataValidationMobileRenderController = __decorate([
|
|
|
1827
1806
|
__decorateParam(6, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.DataValidationCacheService))
|
|
1828
1807
|
], SheetsDataValidationMobileRenderController);
|
|
1829
1808
|
|
|
1830
|
-
|
|
1831
|
-
//#region src/views/widgets/checkbox-widget.ts
|
|
1809
|
+
// src/views/widgets/checkbox-widget.ts
|
|
1832
1810
|
const MARGIN_H$2 = 6;
|
|
1833
1811
|
let CheckboxRender = class CheckboxRender {
|
|
1834
1812
|
_calc(cellInfo, style) {
|
|
@@ -2001,8 +1979,7 @@ CheckboxRender = __decorate([
|
|
|
2001
1979
|
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
|
|
2002
1980
|
], CheckboxRender);
|
|
2003
1981
|
|
|
2004
|
-
|
|
2005
|
-
//#region src/views/validator-views/sheet-validator-view.ts
|
|
1982
|
+
// src/views/validator-views/sheet-validator-view.ts
|
|
2006
1983
|
let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
|
|
2007
1984
|
constructor(injector) {
|
|
2008
1985
|
this.injector = injector;
|
|
@@ -2014,8 +1991,7 @@ let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
|
|
|
2014
1991
|
};
|
|
2015
1992
|
BaseSheetDataValidatorView = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], BaseSheetDataValidatorView);
|
|
2016
1993
|
|
|
2017
|
-
|
|
2018
|
-
//#region src/views/validator-views/checkbox-validator-view.ts
|
|
1994
|
+
// src/views/validator-views/checkbox-validator-view.ts
|
|
2019
1995
|
/**
|
|
2020
1996
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2021
1997
|
*
|
|
@@ -2040,8 +2016,7 @@ var CheckboxValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2040
2016
|
}
|
|
2041
2017
|
};
|
|
2042
2018
|
|
|
2043
|
-
|
|
2044
|
-
//#region src/views/validator-views/custom-validator-view.ts
|
|
2019
|
+
// src/views/validator-views/custom-validator-view.ts
|
|
2045
2020
|
/**
|
|
2046
2021
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2047
2022
|
*
|
|
@@ -2065,8 +2040,7 @@ var CustomFormulaValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2065
2040
|
}
|
|
2066
2041
|
};
|
|
2067
2042
|
|
|
2068
|
-
|
|
2069
|
-
//#region src/views/components/DateShowTimeOption.tsx
|
|
2043
|
+
// src/views/components/DateShowTimeOption.tsx
|
|
2070
2044
|
const DATE_SHOW_TIME_OPTION = "DATE_SHOW_TIME_OPTION";
|
|
2071
2045
|
function DateShowTimeOption(props) {
|
|
2072
2046
|
var _value$bizInfo;
|
|
@@ -2088,8 +2062,7 @@ function DateShowTimeOption(props) {
|
|
|
2088
2062
|
}
|
|
2089
2063
|
DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
|
|
2090
2064
|
|
|
2091
|
-
|
|
2092
|
-
//#region src/views/validator-views/date-validator-view.ts
|
|
2065
|
+
// src/views/validator-views/date-validator-view.ts
|
|
2093
2066
|
/**
|
|
2094
2067
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2095
2068
|
*
|
|
@@ -2115,8 +2088,7 @@ var DateValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2115
2088
|
}
|
|
2116
2089
|
};
|
|
2117
2090
|
|
|
2118
|
-
|
|
2119
|
-
//#region src/views/validator-views/decimal-validator-view.ts
|
|
2091
|
+
// src/views/validator-views/decimal-validator-view.ts
|
|
2120
2092
|
/**
|
|
2121
2093
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2122
2094
|
*
|
|
@@ -2140,8 +2112,7 @@ var DecimalValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2140
2112
|
}
|
|
2141
2113
|
};
|
|
2142
2114
|
|
|
2143
|
-
|
|
2144
|
-
//#region src/views/widgets/shape/layout.ts
|
|
2115
|
+
// src/views/widgets/shape/layout.ts
|
|
2145
2116
|
const MARGIN_H$1 = 4;
|
|
2146
2117
|
const MARGIN_V$1 = 4;
|
|
2147
2118
|
function getDropdownItemSize(text, fontStyle) {
|
|
@@ -2202,8 +2173,7 @@ function layoutDropdowns(items, fontStyle, cellWidth, cellHeight) {
|
|
|
2202
2173
|
};
|
|
2203
2174
|
}
|
|
2204
2175
|
|
|
2205
|
-
|
|
2206
|
-
//#region src/views/widgets/shape/dropdown.ts
|
|
2176
|
+
// src/views/widgets/shape/dropdown.ts
|
|
2207
2177
|
const RADIUS = 8;
|
|
2208
2178
|
var Dropdown$1 = class extends _univerjs_engine_render.Shape {
|
|
2209
2179
|
static drawWith(ctx, props) {
|
|
@@ -2224,8 +2194,7 @@ var Dropdown$1 = class extends _univerjs_engine_render.Shape {
|
|
|
2224
2194
|
}
|
|
2225
2195
|
};
|
|
2226
2196
|
|
|
2227
|
-
|
|
2228
|
-
//#region src/views/widgets/dropdown-multiple-widget.ts
|
|
2197
|
+
// src/views/widgets/dropdown-multiple-widget.ts
|
|
2229
2198
|
const downPath$1 = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
|
|
2230
2199
|
let DropdownMultipleWidget = class DropdownMultipleWidget {
|
|
2231
2200
|
constructor(_commandService, _univerInstanceService, _renderManagerService, _dataValidationModel) {
|
|
@@ -2414,8 +2383,7 @@ DropdownMultipleWidget = __decorate([
|
|
|
2414
2383
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
|
|
2415
2384
|
], DropdownMultipleWidget);
|
|
2416
2385
|
|
|
2417
|
-
|
|
2418
|
-
//#region src/views/validator-views/list-multiple-view.ts
|
|
2386
|
+
// src/views/validator-views/list-multiple-view.ts
|
|
2419
2387
|
/**
|
|
2420
2388
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2421
2389
|
*
|
|
@@ -2440,8 +2408,7 @@ var ListMultipleValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2440
2408
|
}
|
|
2441
2409
|
};
|
|
2442
2410
|
|
|
2443
|
-
|
|
2444
|
-
//#region src/views/components/ListRenderModeInput.tsx
|
|
2411
|
+
// src/views/components/ListRenderModeInput.tsx
|
|
2445
2412
|
const LIST_RENDER_MODE_OPTION_INPUT = "LIST_RENDER_MODE_OPTION_INPUT";
|
|
2446
2413
|
function ListRenderModeInput(props) {
|
|
2447
2414
|
const { value, onChange } = props;
|
|
@@ -2473,8 +2440,7 @@ function ListRenderModeInput(props) {
|
|
|
2473
2440
|
}
|
|
2474
2441
|
ListRenderModeInput.componentKey = LIST_RENDER_MODE_OPTION_INPUT;
|
|
2475
2442
|
|
|
2476
|
-
|
|
2477
|
-
//#region src/views/widgets/dropdown-widget.ts
|
|
2443
|
+
// src/views/widgets/dropdown-widget.ts
|
|
2478
2444
|
/**
|
|
2479
2445
|
* padding in Capsule
|
|
2480
2446
|
*/
|
|
@@ -2781,8 +2747,7 @@ DropdownWidget = __decorate([
|
|
|
2781
2747
|
__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
|
|
2782
2748
|
], DropdownWidget);
|
|
2783
2749
|
|
|
2784
|
-
|
|
2785
|
-
//#region src/views/validator-views/list-validator-view.ts
|
|
2750
|
+
// src/views/validator-views/list-validator-view.ts
|
|
2786
2751
|
var ListValidatorView = class extends BaseSheetDataValidatorView {
|
|
2787
2752
|
constructor(..._args) {
|
|
2788
2753
|
super(..._args);
|
|
@@ -2794,8 +2759,7 @@ var ListValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2794
2759
|
}
|
|
2795
2760
|
};
|
|
2796
2761
|
|
|
2797
|
-
|
|
2798
|
-
//#region src/views/validator-views/text-length-validator.view.ts
|
|
2762
|
+
// src/views/validator-views/text-length-validator.view.ts
|
|
2799
2763
|
/**
|
|
2800
2764
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2801
2765
|
*
|
|
@@ -2819,8 +2783,7 @@ var TextLengthValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2819
2783
|
}
|
|
2820
2784
|
};
|
|
2821
2785
|
|
|
2822
|
-
|
|
2823
|
-
//#region src/views/validator-views/whole-validator-view.ts
|
|
2786
|
+
// src/views/validator-views/whole-validator-view.ts
|
|
2824
2787
|
/**
|
|
2825
2788
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2826
2789
|
*
|
|
@@ -2844,8 +2807,7 @@ var WholeValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2844
2807
|
}
|
|
2845
2808
|
};
|
|
2846
2809
|
|
|
2847
|
-
|
|
2848
|
-
//#region src/controllers/ui.controller.ts
|
|
2810
|
+
// src/controllers/ui.controller.ts
|
|
2849
2811
|
let SheetsDataValidationUIController = class SheetsDataValidationUIController extends _univerjs_core.RxDisposable {
|
|
2850
2812
|
constructor(_injector, _dataValidatorRegistryService) {
|
|
2851
2813
|
super();
|
|
@@ -2877,8 +2839,7 @@ let SheetsDataValidationUIController = class SheetsDataValidationUIController ex
|
|
|
2877
2839
|
};
|
|
2878
2840
|
SheetsDataValidationUIController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_data_validation.DataValidatorRegistryService))], SheetsDataValidationUIController);
|
|
2879
2841
|
|
|
2880
|
-
|
|
2881
|
-
//#region src/mobile-plugin.ts
|
|
2842
|
+
// src/mobile-plugin.ts
|
|
2882
2843
|
let UniverSheetsDataValidationMobileUIPlugin = class UniverSheetsDataValidationMobileUIPlugin extends _univerjs_core.Plugin {
|
|
2883
2844
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
2884
2845
|
super();
|
|
@@ -2937,8 +2898,7 @@ UniverSheetsDataValidationMobileUIPlugin = __decorate([
|
|
|
2937
2898
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
2938
2899
|
], UniverSheetsDataValidationMobileUIPlugin);
|
|
2939
2900
|
|
|
2940
|
-
|
|
2941
|
-
//#region src/views/components/DataValidationOptions.tsx
|
|
2901
|
+
// src/views/components/DataValidationOptions.tsx
|
|
2942
2902
|
function DataValidationOptions(props) {
|
|
2943
2903
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
2944
2904
|
const componentManager = (0, _univerjs_ui.useDependency)(_univerjs_ui.ComponentManager);
|
|
@@ -2992,8 +2952,7 @@ function DataValidationOptions(props) {
|
|
|
2992
2952
|
] })] });
|
|
2993
2953
|
}
|
|
2994
2954
|
|
|
2995
|
-
|
|
2996
|
-
//#region src/views/components/DataValidationDetail.tsx
|
|
2955
|
+
// src/views/components/DataValidationDetail.tsx
|
|
2997
2956
|
const debounceExecuteFactory = (commandService) => (0, _univerjs_core.debounce)(async (id, params, options, callback) => {
|
|
2998
2957
|
const res = await commandService.executeCommand(id, params, options);
|
|
2999
2958
|
callback === null || callback === void 0 || callback(res);
|
|
@@ -3306,8 +3265,7 @@ function DataValidationDetailInner(props) {
|
|
|
3306
3265
|
});
|
|
3307
3266
|
}
|
|
3308
3267
|
|
|
3309
|
-
|
|
3310
|
-
//#region src/views/components/DataValidationItem.tsx
|
|
3268
|
+
// src/views/components/DataValidationItem.tsx
|
|
3311
3269
|
const DataValidationItem = (props) => {
|
|
3312
3270
|
const { rule, onClick, unitId, subUnitId, disable } = props;
|
|
3313
3271
|
const validatorRegistry = (0, _univerjs_ui.useDependency)(_univerjs_data_validation.DataValidatorRegistryService);
|
|
@@ -3387,8 +3345,7 @@ const DataValidationItem = (props) => {
|
|
|
3387
3345
|
});
|
|
3388
3346
|
};
|
|
3389
3347
|
|
|
3390
|
-
|
|
3391
|
-
//#region src/views/components/DataValidationList.tsx
|
|
3348
|
+
// src/views/components/DataValidationList.tsx
|
|
3392
3349
|
function DataValidationList(props) {
|
|
3393
3350
|
const sheetDataValidationModel = (0, _univerjs_ui.useDependency)(_univerjs_sheets_data_validation.SheetDataValidationModel);
|
|
3394
3351
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
@@ -3469,8 +3426,7 @@ function DataValidationList(props) {
|
|
|
3469
3426
|
});
|
|
3470
3427
|
}
|
|
3471
3428
|
|
|
3472
|
-
|
|
3473
|
-
//#region src/views/components/DataValidationPanel.tsx
|
|
3429
|
+
// src/views/components/DataValidationPanel.tsx
|
|
3474
3430
|
const DataValidationPanel = () => {
|
|
3475
3431
|
const dataValidationPanelService = (0, _univerjs_ui.useDependency)(DataValidationPanelService);
|
|
3476
3432
|
const activeRule = (0, _univerjs_ui.useObservable)(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule);
|
|
@@ -3481,8 +3437,7 @@ const DataValidationPanel = () => {
|
|
|
3481
3437
|
return activeRule && (activeRule.subUnitId === worksheet.getSheetId() || activeRule.subUnitId === dataValidationPanelService.getFocusFormulaEditorActiveRuleSubUnitId()) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationDetail, {}, activeRule.rule.uid) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationList, { workbook });
|
|
3482
3438
|
};
|
|
3483
3439
|
|
|
3484
|
-
|
|
3485
|
-
//#region src/views/components/formula-input/BaseFormulaInput.tsx
|
|
3440
|
+
// src/views/components/formula-input/BaseFormulaInput.tsx
|
|
3486
3441
|
const BaseFormulaInput = (props) => {
|
|
3487
3442
|
const { isTwoFormula = false, value, onChange, showError, validResult } = props;
|
|
3488
3443
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -3535,8 +3490,7 @@ const BaseFormulaInput = (props) => {
|
|
|
3535
3490
|
});
|
|
3536
3491
|
};
|
|
3537
3492
|
|
|
3538
|
-
|
|
3539
|
-
//#region src/views/components/formula-input/CheckboxFormulaInput.tsx
|
|
3493
|
+
// src/views/components/formula-input/CheckboxFormulaInput.tsx
|
|
3540
3494
|
function CheckboxFormulaInput(props) {
|
|
3541
3495
|
const { value, onChange, showError, validResult } = props;
|
|
3542
3496
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -3592,8 +3546,7 @@ function CheckboxFormulaInput(props) {
|
|
|
3592
3546
|
] });
|
|
3593
3547
|
}
|
|
3594
3548
|
|
|
3595
|
-
|
|
3596
|
-
//#region src/views/components/formula-input/CustomFormulaInput.tsx
|
|
3549
|
+
// src/views/components/formula-input/CustomFormulaInput.tsx
|
|
3597
3550
|
function CustomFormulaInput(props) {
|
|
3598
3551
|
const { unitId, subUnitId, value, onChange, showError, validResult } = props;
|
|
3599
3552
|
const formula1Res = showError ? validResult === null || validResult === void 0 ? void 0 : validResult.formula1 : void 0;
|
|
@@ -3626,8 +3579,7 @@ function CustomFormulaInput(props) {
|
|
|
3626
3579
|
});
|
|
3627
3580
|
}
|
|
3628
3581
|
|
|
3629
|
-
|
|
3630
|
-
//#region src/views/components/formula-input/utils.ts
|
|
3582
|
+
// src/views/components/formula-input/utils.ts
|
|
3631
3583
|
/**
|
|
3632
3584
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3633
3585
|
*
|
|
@@ -3657,8 +3609,7 @@ function buildCustomListFormulaPayload(items, defaultColor) {
|
|
|
3657
3609
|
};
|
|
3658
3610
|
}
|
|
3659
3611
|
|
|
3660
|
-
|
|
3661
|
-
//#region src/views/components/formula-input/ListFormulaInput.tsx
|
|
3612
|
+
// src/views/components/formula-input/ListFormulaInput.tsx
|
|
3662
3613
|
const DEFAULT_COLOR_PRESET = [
|
|
3663
3614
|
"#FFFFFF",
|
|
3664
3615
|
"#FEE7E7",
|
|
@@ -3954,8 +3905,7 @@ function ListFormulaInput(props) {
|
|
|
3954
3905
|
})] });
|
|
3955
3906
|
}
|
|
3956
3907
|
|
|
3957
|
-
|
|
3958
|
-
//#region src/views/components/formula-input/index.ts
|
|
3908
|
+
// src/views/components/formula-input/index.ts
|
|
3959
3909
|
const FORMULA_INPUTS = [
|
|
3960
3910
|
[_univerjs_sheets_data_validation.CUSTOM_FORMULA_INPUT_NAME, CustomFormulaInput],
|
|
3961
3911
|
[_univerjs_sheets_data_validation.BASE_FORMULA_INPUT_NAME, BaseFormulaInput],
|
|
@@ -3963,8 +3913,7 @@ const FORMULA_INPUTS = [
|
|
|
3963
3913
|
[_univerjs_sheets_data_validation.CHECKBOX_FORMULA_INPUT_NAME, CheckboxFormulaInput]
|
|
3964
3914
|
];
|
|
3965
3915
|
|
|
3966
|
-
|
|
3967
|
-
//#region src/controllers/components.controller.ts
|
|
3916
|
+
// src/controllers/components.controller.ts
|
|
3968
3917
|
/**
|
|
3969
3918
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3970
3919
|
*
|
|
@@ -4010,8 +3959,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
4010
3959
|
};
|
|
4011
3960
|
ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
|
|
4012
3961
|
|
|
4013
|
-
|
|
4014
|
-
//#region src/plugin.ts
|
|
3962
|
+
// src/plugin.ts
|
|
4015
3963
|
let UniverSheetsDataValidationUIPlugin = class UniverSheetsDataValidationUIPlugin extends _univerjs_core.Plugin {
|
|
4016
3964
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
4017
3965
|
super();
|
|
@@ -4078,7 +4026,6 @@ UniverSheetsDataValidationUIPlugin = __decorate([
|
|
|
4078
4026
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
4079
4027
|
], UniverSheetsDataValidationUIPlugin);
|
|
4080
4028
|
|
|
4081
|
-
//#endregion
|
|
4082
4029
|
exports.DATA_VALIDATION_PANEL = DATA_VALIDATION_PANEL;
|
|
4083
4030
|
Object.defineProperty(exports, "DataValidationPanelService", {
|
|
4084
4031
|
enumerable: true,
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "sheets-data-validation-ui": {
|
|
3
3
|
title: "التحقق من صحة البيانات",
|
|
4
4
|
ribbon: {
|
|
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
|
|
|
72
72
|
permission: { dialog: { setStyleErr: "النطاق محمي، وليس لديك الإذن بتعيين الأنماط. لتعيين الأنماط، يُرجى التواصل مع المنشئ." } }
|
|
73
73
|
} };
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-data-validation-ui": {
|
|
3
3
|
title: "Validació de dades",
|
|
4
4
|
ribbon: {
|
|
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
|
|
|
72
72
|
permission: { dialog: { setStyleErr: "L'interval està protegit i no teniu permís per establir estils. Per establir estils, contacteu amb el creador." } }
|
|
73
73
|
} };
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
module.exports = locale;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "sheets-data-validation-ui": {
|
|
3
3
|
title: "Datenüberprüfung",
|
|
4
4
|
ribbon: {
|
|
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
|
|
|
72
72
|
permission: { dialog: { setStyleErr: "Der Bereich ist geschützt und Sie haben keine Berechtigung, Stile festzulegen. Um Stile festzulegen, wenden Sie sich bitte an den Ersteller." } }
|
|
73
73
|
} };
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -87,5 +87,4 @@ const locale = { "sheets-data-validation-ui": {
|
|
|
87
87
|
permission: { dialog: { setStyleErr: "The range is protected, and you do not have permission to set styles. To set styles, please contact the creator." } }
|
|
88
88
|
} };
|
|
89
89
|
|
|
90
|
-
//#endregion
|
|
91
90
|
module.exports = locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-data-validation-ui": {
|
|
3
3
|
title: "Validación de datos",
|
|
4
4
|
ribbon: {
|
|
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
|
|
|
72
72
|
permission: { dialog: { setStyleErr: "El rango está protegido y no tienes permiso para establecer estilos. Para establecer estilos, contacta al creador." } }
|
|
73
73
|
} };
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
module.exports = locale;
|