@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/lib/es/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import { CanceledError, CellValueType, ColorKit, CommandType, DEFAULT_STYLES, Da
|
|
|
2
2
|
import { DataValidationModel, DataValidatorDropdownType, DataValidatorRegistryScope, DataValidatorRegistryService, TWO_FORMULA_OPERATOR_COUNT, UniverDataValidationPlugin, getRuleOptions, getRuleSetting } from "@univerjs/data-validation";
|
|
3
3
|
import { AUTO_FILL_APPLY_TYPE, AutoFillTools, IAutoFillService, INTERCEPTOR_POINT, InterceptCellContentPriority, RangeProtectionPermissionEditPoint, SetRangeValuesCommand, SetWorksheetActiveOperation, SheetInterceptorService, SheetPermissionCheckController, SheetsSelectionsService, UniverSheetsPlugin, VALIDATE_CELL, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellStylePermission, checkRangesEditablePermission, deserializeListOptions, getSheetCommandTarget, rangeToDiscreteRange, serializeListOptions } from "@univerjs/sheets";
|
|
4
4
|
import { ComponentManager, IDialogService, IMenuManagerService, ISidebarService, IconManager, KeyCode, MenuItemType, RibbonDataGroup, RibbonInsertGroup, UniverMobileUIPlugin, getMenuHiddenObservable, useDependency, useEvent, useObservable, useSidebarClick } from "@univerjs/ui";
|
|
5
|
-
import { BehaviorSubject, Subject, auditTime, bufferTime, debounceTime, distinctUntilChanged, filter, map, noop, of, startWith, switchMap, takeUntil, tap } from "rxjs";
|
|
5
|
+
import { BehaviorSubject, Subject, auditTime, bufferTime, debounceTime, defer, distinctUntilChanged, filter, map, noop, of, startWith, switchMap, takeUntil, tap } from "rxjs";
|
|
6
6
|
import { CURSOR_TYPE, CheckboxShape, DeviceInputEventType, DocSimpleSkeleton, FontCache, IRenderManagerService, Rect, Shape, Text, Transform, UniverRenderEnginePlugin, fixLineWidthByScale, getCurrentTypeOfRenderer, getFontStyleString } from "@univerjs/engine-render";
|
|
7
7
|
import { AddSheetDataValidationCommand, BASE_FORMULA_INPUT_NAME, CHECKBOX_FORMULA_1, CHECKBOX_FORMULA_2, CHECKBOX_FORMULA_INPUT_NAME, CUSTOM_FORMULA_INPUT_NAME, ClearRangeDataValidationCommand, 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";
|
|
8
8
|
import { getPatternType } from "@univerjs/sheets-numfmt";
|
|
9
9
|
import { AutoHeightController, COPY_TYPE, CellAlertManagerService, CellAlertType, HoverManagerService, IEditorBridgeService, IMarkSelectionService, ISheetCellDropdownManagerService, ISheetClipboardService, PREDEFINED_HOOK_NAME_PASTE, SetCellEditVisibleOperation, SheetSkeletonManagerService, UniverSheetsMobileUIPlugin, UniverSheetsUIPlugin, getCurrentRangeDisable$, getRepeatRange, virtualizeDiscreteRanges } from "@univerjs/sheets-ui";
|
|
10
|
-
import { ActionRow, Button, Checkbox, DraggableList, Dropdown, FormLayout, Input, Radio, RadioGroup, Select, Separator, borderClassName, clsx } from "@univerjs/design";
|
|
10
|
+
import { ActionRow, Button, Checkbox, DraggableList, Dropdown as Dropdown$1, FormLayout, Input, Radio, RadioGroup, Select, Separator, borderClassName, clsx } from "@univerjs/design";
|
|
11
11
|
import { createElement, useEffect, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { CheckboxIcon, DataValidationIcon, DatePickerIcon, DeleteIcon, DropdownListIcon, GripVerticalIcon, IncreaseIcon, MoreDownIcon, MoreUpIcon } from "@univerjs/icons";
|
|
14
14
|
import { deserializeRangeWithSheet, serializeRange } from "@univerjs/engine-formula";
|
|
15
15
|
import { FormulaEditor, RangeSelector } from "@univerjs/sheets-formula-ui";
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
18
18
|
function _typeof(o) {
|
|
19
19
|
"@babel/helpers - typeof";
|
|
20
20
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -24,28 +24,25 @@ function _typeof(o) {
|
|
|
24
24
|
}, _typeof(o);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function toPrimitive(t, r) {
|
|
27
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
28
|
+
function toPrimitive(t, e) {
|
|
30
29
|
if ("object" != _typeof(t) || !t) return t;
|
|
31
|
-
var
|
|
32
|
-
if (void 0 !==
|
|
33
|
-
var i =
|
|
30
|
+
var r;
|
|
31
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
32
|
+
var i = r.call(t, e || "default");
|
|
34
33
|
if ("object" != _typeof(i)) return i;
|
|
35
34
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36
35
|
}
|
|
37
|
-
return ("string" ===
|
|
36
|
+
return ("string" === e ? String : Number)(t);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
39
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
42
40
|
function toPropertyKey(t) {
|
|
43
41
|
var i = toPrimitive(t, "string");
|
|
44
42
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
45
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
49
46
|
function _defineProperty(e, r, t) {
|
|
50
47
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
51
48
|
value: t,
|
|
@@ -55,16 +52,14 @@ function _defineProperty(e, r, t) {
|
|
|
55
52
|
}) : e[r] = t, e;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
55
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
|
|
60
56
|
function __decorateParam(paramIndex, decorator) {
|
|
61
57
|
return function(target, key) {
|
|
62
58
|
decorator(target, key, paramIndex);
|
|
63
59
|
};
|
|
64
60
|
}
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
62
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
|
|
68
63
|
function __decorate(decorators, target, key, desc) {
|
|
69
64
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
70
65
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -72,8 +67,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
72
67
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
73
68
|
}
|
|
74
69
|
|
|
75
|
-
|
|
76
|
-
//#region src/services/data-validation-panel.service.ts
|
|
70
|
+
// src/services/data-validation-panel.service.ts
|
|
77
71
|
let DataValidationPanelService = class DataValidationPanelService extends Disposable {
|
|
78
72
|
get activeRule() {
|
|
79
73
|
return this._activeRule;
|
|
@@ -138,14 +132,12 @@ let DataValidationPanelService = class DataValidationPanelService extends Dispos
|
|
|
138
132
|
};
|
|
139
133
|
DataValidationPanelService = __decorate([__decorateParam(0, IUniverInstanceService), __decorateParam(1, ISidebarService)], DataValidationPanelService);
|
|
140
134
|
|
|
141
|
-
|
|
142
|
-
//#region src/config/config.ts
|
|
135
|
+
// src/config/config.ts
|
|
143
136
|
const SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY = "sheets-data-validation-ui.config";
|
|
144
137
|
const configSymbol = Symbol(SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY);
|
|
145
138
|
const defaultPluginConfig = {};
|
|
146
139
|
|
|
147
|
-
|
|
148
|
-
//#region src/const.ts
|
|
140
|
+
// src/const.ts
|
|
149
141
|
/**
|
|
150
142
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
151
143
|
*
|
|
@@ -164,8 +156,7 @@ const defaultPluginConfig = {};
|
|
|
164
156
|
const DROP_DOWN_DEFAULT_COLOR = "gray.100";
|
|
165
157
|
const DROP_DOWN_ICON_COLOR = "gray.600";
|
|
166
158
|
|
|
167
|
-
|
|
168
|
-
//#region src/controllers/dv-reject-input.controller.ts
|
|
159
|
+
// src/controllers/dv-reject-input.controller.ts
|
|
169
160
|
let DataValidationRejectInputController = class DataValidationRejectInputController extends Disposable {
|
|
170
161
|
constructor(_sheetInterceptorService, _dataValidationModel, _dataValidatorRegistryService, _dialogService, _localeService, _sheetsDataValidationValidatorService) {
|
|
171
162
|
super();
|
|
@@ -234,8 +225,7 @@ DataValidationRejectInputController = __decorate([
|
|
|
234
225
|
__decorateParam(5, Inject(SheetsDataValidationValidatorService))
|
|
235
226
|
], DataValidationRejectInputController);
|
|
236
227
|
|
|
237
|
-
|
|
238
|
-
//#region src/services/dropdown-manager.service.ts
|
|
228
|
+
// src/services/dropdown-manager.service.ts
|
|
239
229
|
function getExceptionalDateLabel(parts, patternType) {
|
|
240
230
|
if (!parts || parts.day !== 0 && !(parts.year === 1900 && parts.month === 2 && parts.day === 29)) return;
|
|
241
231
|
const date = `${String(parts.year).padStart(4, "0")}-${String(parts.month).padStart(2, "0")}-${String(parts.day).padStart(2, "0")}`;
|
|
@@ -298,7 +288,8 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
298
288
|
if (!workbook) return;
|
|
299
289
|
const worksheet = subUnitId ? workbook.getSheetBySheetId(subUnitId) : workbook.getActiveSheet();
|
|
300
290
|
if (!worksheet) return;
|
|
301
|
-
const
|
|
291
|
+
const mergeCell = worksheet.getMergedCell(row, col);
|
|
292
|
+
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);
|
|
302
293
|
if (!rule) return;
|
|
303
294
|
const validator = this._dataValidatorRegistryService.getValidatorItem(rule.type);
|
|
304
295
|
return validator === null || validator === void 0 ? void 0 : validator.dropdownType;
|
|
@@ -679,8 +670,7 @@ DataValidationDropdownManagerService = __decorate([
|
|
|
679
670
|
__decorateParam(9, IConfigService)
|
|
680
671
|
], DataValidationDropdownManagerService);
|
|
681
672
|
|
|
682
|
-
|
|
683
|
-
//#region src/commands/operations/data-validation.operation.ts
|
|
673
|
+
// src/commands/operations/data-validation.operation.ts
|
|
684
674
|
const DATA_VALIDATION_PANEL = "DataValidationPanel";
|
|
685
675
|
const OpenValidationPanelOperation = {
|
|
686
676
|
id: "data-validation.operation.open-validation-panel",
|
|
@@ -757,8 +747,7 @@ const HideDataValidationDropdown = {
|
|
|
757
747
|
}
|
|
758
748
|
};
|
|
759
749
|
|
|
760
|
-
|
|
761
|
-
//#region src/commands/commands/data-validation-ui.command.ts
|
|
750
|
+
// src/commands/commands/data-validation-ui.command.ts
|
|
762
751
|
function createRule(accessor, rule) {
|
|
763
752
|
const defaultRule = createDefaultNewRule(accessor);
|
|
764
753
|
return {
|
|
@@ -826,8 +815,7 @@ const AddSheetDataValidationAndOpenCommand = {
|
|
|
826
815
|
}
|
|
827
816
|
};
|
|
828
817
|
|
|
829
|
-
|
|
830
|
-
//#region src/views/components/DropdownPresets.tsx
|
|
818
|
+
// src/views/components/DropdownPresets.tsx
|
|
831
819
|
const DROPDOWN_PRESETS_COMPONENT = "SHEETS_DATA_VALIDATION_DROPDOWN_PRESETS";
|
|
832
820
|
function DropdownPresets({ onChange }) {
|
|
833
821
|
const localeService = useDependency(LocaleService);
|
|
@@ -869,8 +857,7 @@ function DropdownPresets({ onChange }) {
|
|
|
869
857
|
});
|
|
870
858
|
}
|
|
871
859
|
|
|
872
|
-
|
|
873
|
-
//#region src/menu/dv.menu.ts
|
|
860
|
+
// src/menu/dv.menu.ts
|
|
874
861
|
const DATA_VALIDATION_MENU_ID = "sheet.menu.data-validation";
|
|
875
862
|
const QUICK_DROPDOWN_MENU_ID = "sheet.menu.quick-dropdown";
|
|
876
863
|
const QUICK_DATE_MENU_ID = "sheet.menu.quick-date";
|
|
@@ -1017,8 +1004,10 @@ function quickDateMenuFactory(accessor) {
|
|
|
1017
1004
|
...getQuickDataValidationMenuState(accessor)
|
|
1018
1005
|
};
|
|
1019
1006
|
}
|
|
1020
|
-
function openDataValidationMenuFactory() {
|
|
1007
|
+
function openDataValidationMenuFactory(accessor) {
|
|
1008
|
+
const sidebarService = accessor.get(ISidebarService);
|
|
1021
1009
|
return {
|
|
1010
|
+
activated$: defer(() => sidebarService.sidebarOptions$.pipe(startWith(sidebarService.options), map((options) => options.visible === true && options.id === "DataValidationPanel"), distinctUntilChanged())),
|
|
1022
1011
|
id: OpenValidationPanelOperation.id,
|
|
1023
1012
|
title: "sheets-data-validation-ui.panel.title",
|
|
1024
1013
|
type: MenuItemType.BUTTON,
|
|
@@ -1033,8 +1022,7 @@ function addDataValidationMenuFactory() {
|
|
|
1033
1022
|
};
|
|
1034
1023
|
}
|
|
1035
1024
|
|
|
1036
|
-
|
|
1037
|
-
//#region src/menu/schema.ts
|
|
1025
|
+
// src/menu/schema.ts
|
|
1038
1026
|
const menuSchema = {
|
|
1039
1027
|
[RibbonInsertGroup.CELL]: {
|
|
1040
1028
|
[InsertQuickSheetDataValidationCommand.id]: {
|
|
@@ -1068,13 +1056,11 @@ const menuSchema = {
|
|
|
1068
1056
|
} }
|
|
1069
1057
|
};
|
|
1070
1058
|
|
|
1071
|
-
|
|
1072
|
-
//#region package.json
|
|
1059
|
+
// package.json
|
|
1073
1060
|
var name = "@univerjs/sheets-data-validation-ui";
|
|
1074
|
-
var version = "1.
|
|
1061
|
+
var version = "1.5.0";
|
|
1075
1062
|
|
|
1076
|
-
|
|
1077
|
-
//#region src/controllers/dv-alert.controller.ts
|
|
1063
|
+
// src/controllers/dv-alert.controller.ts
|
|
1078
1064
|
const ALERT_KEY = "SHEET_DATA_VALIDATION_ALERT";
|
|
1079
1065
|
let DataValidationAlertController = class DataValidationAlertController extends Disposable {
|
|
1080
1066
|
constructor(_hoverManagerService, _cellAlertManagerService, _univerInstanceService, _localeService, _dataValidationModel, _dataValidationCacheService) {
|
|
@@ -1199,8 +1185,7 @@ DataValidationAlertController = __decorate([
|
|
|
1199
1185
|
__decorateParam(5, Inject(DataValidationCacheService))
|
|
1200
1186
|
], DataValidationAlertController);
|
|
1201
1187
|
|
|
1202
|
-
|
|
1203
|
-
//#region src/controllers/dv-auto-fill.controller.ts
|
|
1188
|
+
// src/controllers/dv-auto-fill.controller.ts
|
|
1204
1189
|
let DataValidationAutoFillController = class DataValidationAutoFillController extends Disposable {
|
|
1205
1190
|
constructor(_autoFillService, _sheetDataValidationModel, _injector) {
|
|
1206
1191
|
super();
|
|
@@ -1280,8 +1265,7 @@ DataValidationAutoFillController = __decorate([
|
|
|
1280
1265
|
__decorateParam(2, Inject(Injector))
|
|
1281
1266
|
], DataValidationAutoFillController);
|
|
1282
1267
|
|
|
1283
|
-
|
|
1284
|
-
//#region src/controllers/dv-copy-paste.controller.ts
|
|
1268
|
+
// src/controllers/dv-copy-paste.controller.ts
|
|
1285
1269
|
const specialPastes = [
|
|
1286
1270
|
PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_COL_WIDTH,
|
|
1287
1271
|
PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_VALUE,
|
|
@@ -1359,7 +1343,7 @@ let DataValidationCopyPasteController = class DataValidationCopyPasteController
|
|
|
1359
1343
|
const targetVirtualRange = targetVirtualization.ranges[0];
|
|
1360
1344
|
const repeatRange = getRepeatRange(sourceVirtualRange, targetVirtualRange, true);
|
|
1361
1345
|
const clearTargetRanges = targetVirtualization.mapRange(targetVirtualRange);
|
|
1362
|
-
const getTargetRanges = (sourceRanges) => repeatRange.flatMap(({ startRange }) => sourceRanges.flatMap((sourceRange) => targetVirtualization.mapRange(Rectangle.
|
|
1346
|
+
const getTargetRanges = (sourceRanges) => repeatRange.flatMap(({ startRange }) => sourceRanges.flatMap((sourceRange) => targetVirtualization.mapRange(Rectangle.moveOffset(sourceRange, startRange.startColumn, startRange.startRow))));
|
|
1363
1347
|
if (pastedUnitId !== copyUnitId || pastedSubUnitId !== copySubUnitId) {
|
|
1364
1348
|
const ruleMatrix = this._sheetDataValidationModel.getRuleObjectMatrix(pastedUnitId, pastedSubUnitId).clone();
|
|
1365
1349
|
const additionRules = /* @__PURE__ */ new Map();
|
|
@@ -1420,8 +1404,7 @@ DataValidationCopyPasteController = __decorate([
|
|
|
1420
1404
|
__decorateParam(3, Inject(IUniverInstanceService))
|
|
1421
1405
|
], DataValidationCopyPasteController);
|
|
1422
1406
|
|
|
1423
|
-
|
|
1424
|
-
//#region src/controllers/dv-permission.controller.ts
|
|
1407
|
+
// src/controllers/dv-permission.controller.ts
|
|
1425
1408
|
let DataValidationPermissionController = class DataValidationPermissionController extends Disposable {
|
|
1426
1409
|
constructor(_localeService, _commandService, _sheetPermissionCheckController) {
|
|
1427
1410
|
super();
|
|
@@ -1457,8 +1440,7 @@ DataValidationPermissionController = __decorate([
|
|
|
1457
1440
|
__decorateParam(2, Inject(SheetPermissionCheckController))
|
|
1458
1441
|
], DataValidationPermissionController);
|
|
1459
1442
|
|
|
1460
|
-
|
|
1461
|
-
//#region src/controllers/dv-rerender.controller.ts
|
|
1443
|
+
// src/controllers/dv-rerender.controller.ts
|
|
1462
1444
|
let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderController extends Disposable {
|
|
1463
1445
|
constructor(_context, _sheetDataValidationModel, _sheetSkeletonManagerService) {
|
|
1464
1446
|
super();
|
|
@@ -1486,8 +1468,7 @@ let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderC
|
|
|
1486
1468
|
};
|
|
1487
1469
|
SheetsDataValidationReRenderController = __decorate([__decorateParam(1, Inject(SheetDataValidationModel)), __decorateParam(2, Inject(SheetSkeletonManagerService))], SheetsDataValidationReRenderController);
|
|
1488
1470
|
|
|
1489
|
-
|
|
1490
|
-
//#region src/controllers/mobile/components.controller.ts
|
|
1471
|
+
// src/controllers/mobile/components.controller.ts
|
|
1491
1472
|
/**
|
|
1492
1473
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1493
1474
|
*
|
|
@@ -1517,8 +1498,7 @@ let MobileComponentsController = class MobileComponentsController extends Dispos
|
|
|
1517
1498
|
};
|
|
1518
1499
|
MobileComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], MobileComponentsController);
|
|
1519
1500
|
|
|
1520
|
-
|
|
1521
|
-
//#region src/controllers/dv-render.controller.ts
|
|
1501
|
+
// src/controllers/dv-render.controller.ts
|
|
1522
1502
|
const INVALID_MARK$1 = { tr: {
|
|
1523
1503
|
size: 6,
|
|
1524
1504
|
color: "#fe4b4b"
|
|
@@ -1717,8 +1697,7 @@ function recalculateAutoHeight(infos, autoHeightController, commandService) {
|
|
|
1717
1697
|
}
|
|
1718
1698
|
}
|
|
1719
1699
|
|
|
1720
|
-
|
|
1721
|
-
//#region src/controllers/mobile/dv-render.controller.ts
|
|
1700
|
+
// src/controllers/mobile/dv-render.controller.ts
|
|
1722
1701
|
const INVALID_MARK = { tr: {
|
|
1723
1702
|
size: 6,
|
|
1724
1703
|
color: "#fe4b4b"
|
|
@@ -1826,8 +1805,7 @@ SheetsDataValidationMobileRenderController = __decorate([
|
|
|
1826
1805
|
__decorateParam(6, Inject(DataValidationCacheService))
|
|
1827
1806
|
], SheetsDataValidationMobileRenderController);
|
|
1828
1807
|
|
|
1829
|
-
|
|
1830
|
-
//#region src/views/widgets/checkbox-widget.ts
|
|
1808
|
+
// src/views/widgets/checkbox-widget.ts
|
|
1831
1809
|
const MARGIN_H$2 = 6;
|
|
1832
1810
|
let CheckboxRender = class CheckboxRender {
|
|
1833
1811
|
_calc(cellInfo, style) {
|
|
@@ -2000,8 +1978,7 @@ CheckboxRender = __decorate([
|
|
|
2000
1978
|
__decorateParam(5, Inject(SheetDataValidationModel))
|
|
2001
1979
|
], CheckboxRender);
|
|
2002
1980
|
|
|
2003
|
-
|
|
2004
|
-
//#region src/views/validator-views/sheet-validator-view.ts
|
|
1981
|
+
// src/views/validator-views/sheet-validator-view.ts
|
|
2005
1982
|
let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
|
|
2006
1983
|
constructor(injector) {
|
|
2007
1984
|
this.injector = injector;
|
|
@@ -2013,8 +1990,7 @@ let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
|
|
|
2013
1990
|
};
|
|
2014
1991
|
BaseSheetDataValidatorView = __decorate([__decorateParam(0, Inject(Injector))], BaseSheetDataValidatorView);
|
|
2015
1992
|
|
|
2016
|
-
|
|
2017
|
-
//#region src/views/validator-views/checkbox-validator-view.ts
|
|
1993
|
+
// src/views/validator-views/checkbox-validator-view.ts
|
|
2018
1994
|
/**
|
|
2019
1995
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2020
1996
|
*
|
|
@@ -2039,8 +2015,7 @@ var CheckboxValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2039
2015
|
}
|
|
2040
2016
|
};
|
|
2041
2017
|
|
|
2042
|
-
|
|
2043
|
-
//#region src/views/validator-views/custom-validator-view.ts
|
|
2018
|
+
// src/views/validator-views/custom-validator-view.ts
|
|
2044
2019
|
/**
|
|
2045
2020
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2046
2021
|
*
|
|
@@ -2064,8 +2039,7 @@ var CustomFormulaValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2064
2039
|
}
|
|
2065
2040
|
};
|
|
2066
2041
|
|
|
2067
|
-
|
|
2068
|
-
//#region src/views/components/DateShowTimeOption.tsx
|
|
2042
|
+
// src/views/components/DateShowTimeOption.tsx
|
|
2069
2043
|
const DATE_SHOW_TIME_OPTION = "DATE_SHOW_TIME_OPTION";
|
|
2070
2044
|
function DateShowTimeOption(props) {
|
|
2071
2045
|
var _value$bizInfo;
|
|
@@ -2087,8 +2061,7 @@ function DateShowTimeOption(props) {
|
|
|
2087
2061
|
}
|
|
2088
2062
|
DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
|
|
2089
2063
|
|
|
2090
|
-
|
|
2091
|
-
//#region src/views/validator-views/date-validator-view.ts
|
|
2064
|
+
// src/views/validator-views/date-validator-view.ts
|
|
2092
2065
|
/**
|
|
2093
2066
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2094
2067
|
*
|
|
@@ -2114,8 +2087,7 @@ var DateValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2114
2087
|
}
|
|
2115
2088
|
};
|
|
2116
2089
|
|
|
2117
|
-
|
|
2118
|
-
//#region src/views/validator-views/decimal-validator-view.ts
|
|
2090
|
+
// src/views/validator-views/decimal-validator-view.ts
|
|
2119
2091
|
/**
|
|
2120
2092
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2121
2093
|
*
|
|
@@ -2139,8 +2111,7 @@ var DecimalValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2139
2111
|
}
|
|
2140
2112
|
};
|
|
2141
2113
|
|
|
2142
|
-
|
|
2143
|
-
//#region src/views/widgets/shape/layout.ts
|
|
2114
|
+
// src/views/widgets/shape/layout.ts
|
|
2144
2115
|
const MARGIN_H$1 = 4;
|
|
2145
2116
|
const MARGIN_V$1 = 4;
|
|
2146
2117
|
function getDropdownItemSize(text, fontStyle) {
|
|
@@ -2201,10 +2172,9 @@ function layoutDropdowns(items, fontStyle, cellWidth, cellHeight) {
|
|
|
2201
2172
|
};
|
|
2202
2173
|
}
|
|
2203
2174
|
|
|
2204
|
-
|
|
2205
|
-
//#region src/views/widgets/shape/dropdown.ts
|
|
2175
|
+
// src/views/widgets/shape/dropdown.ts
|
|
2206
2176
|
const RADIUS = 8;
|
|
2207
|
-
var Dropdown
|
|
2177
|
+
var Dropdown = class extends Shape {
|
|
2208
2178
|
static drawWith(ctx, props) {
|
|
2209
2179
|
const { fontString, info, fill, color } = props;
|
|
2210
2180
|
const { layout, text } = info;
|
|
@@ -2223,8 +2193,7 @@ var Dropdown$1 = class extends Shape {
|
|
|
2223
2193
|
}
|
|
2224
2194
|
};
|
|
2225
2195
|
|
|
2226
|
-
|
|
2227
|
-
//#region src/views/widgets/dropdown-multiple-widget.ts
|
|
2196
|
+
// src/views/widgets/dropdown-multiple-widget.ts
|
|
2228
2197
|
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");
|
|
2229
2198
|
let DropdownMultipleWidget = class DropdownMultipleWidget {
|
|
2230
2199
|
constructor(_commandService, _univerInstanceService, _renderManagerService, _dataValidationModel) {
|
|
@@ -2319,7 +2288,7 @@ let DropdownMultipleWidget = class DropdownMultipleWidget {
|
|
|
2319
2288
|
items.forEach((item) => {
|
|
2320
2289
|
ctx.save();
|
|
2321
2290
|
ctx.translateWithPrecision(item.left, 0);
|
|
2322
|
-
Dropdown
|
|
2291
|
+
Dropdown.drawWith(ctx, {
|
|
2323
2292
|
...fontStyle,
|
|
2324
2293
|
info: item,
|
|
2325
2294
|
color,
|
|
@@ -2413,8 +2382,7 @@ DropdownMultipleWidget = __decorate([
|
|
|
2413
2382
|
__decorateParam(3, Inject(SheetDataValidationModel))
|
|
2414
2383
|
], DropdownMultipleWidget);
|
|
2415
2384
|
|
|
2416
|
-
|
|
2417
|
-
//#region src/views/validator-views/list-multiple-view.ts
|
|
2385
|
+
// src/views/validator-views/list-multiple-view.ts
|
|
2418
2386
|
/**
|
|
2419
2387
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2420
2388
|
*
|
|
@@ -2439,8 +2407,7 @@ var ListMultipleValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2439
2407
|
}
|
|
2440
2408
|
};
|
|
2441
2409
|
|
|
2442
|
-
|
|
2443
|
-
//#region src/views/components/ListRenderModeInput.tsx
|
|
2410
|
+
// src/views/components/ListRenderModeInput.tsx
|
|
2444
2411
|
const LIST_RENDER_MODE_OPTION_INPUT = "LIST_RENDER_MODE_OPTION_INPUT";
|
|
2445
2412
|
function ListRenderModeInput(props) {
|
|
2446
2413
|
const { value, onChange } = props;
|
|
@@ -2472,8 +2439,7 @@ function ListRenderModeInput(props) {
|
|
|
2472
2439
|
}
|
|
2473
2440
|
ListRenderModeInput.componentKey = LIST_RENDER_MODE_OPTION_INPUT;
|
|
2474
2441
|
|
|
2475
|
-
|
|
2476
|
-
//#region src/views/widgets/dropdown-widget.ts
|
|
2442
|
+
// src/views/widgets/dropdown-widget.ts
|
|
2477
2443
|
/**
|
|
2478
2444
|
* padding in Capsule
|
|
2479
2445
|
*/
|
|
@@ -2780,8 +2746,7 @@ DropdownWidget = __decorate([
|
|
|
2780
2746
|
__decorateParam(4, Inject(SheetDataValidationModel))
|
|
2781
2747
|
], DropdownWidget);
|
|
2782
2748
|
|
|
2783
|
-
|
|
2784
|
-
//#region src/views/validator-views/list-validator-view.ts
|
|
2749
|
+
// src/views/validator-views/list-validator-view.ts
|
|
2785
2750
|
var ListValidatorView = class extends BaseSheetDataValidatorView {
|
|
2786
2751
|
constructor(..._args) {
|
|
2787
2752
|
super(..._args);
|
|
@@ -2793,8 +2758,7 @@ var ListValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2793
2758
|
}
|
|
2794
2759
|
};
|
|
2795
2760
|
|
|
2796
|
-
|
|
2797
|
-
//#region src/views/validator-views/text-length-validator.view.ts
|
|
2761
|
+
// src/views/validator-views/text-length-validator.view.ts
|
|
2798
2762
|
/**
|
|
2799
2763
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2800
2764
|
*
|
|
@@ -2818,8 +2782,7 @@ var TextLengthValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2818
2782
|
}
|
|
2819
2783
|
};
|
|
2820
2784
|
|
|
2821
|
-
|
|
2822
|
-
//#region src/views/validator-views/whole-validator-view.ts
|
|
2785
|
+
// src/views/validator-views/whole-validator-view.ts
|
|
2823
2786
|
/**
|
|
2824
2787
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2825
2788
|
*
|
|
@@ -2843,8 +2806,7 @@ var WholeValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2843
2806
|
}
|
|
2844
2807
|
};
|
|
2845
2808
|
|
|
2846
|
-
|
|
2847
|
-
//#region src/controllers/ui.controller.ts
|
|
2809
|
+
// src/controllers/ui.controller.ts
|
|
2848
2810
|
let SheetsDataValidationUIController = class SheetsDataValidationUIController extends RxDisposable {
|
|
2849
2811
|
constructor(_injector, _dataValidatorRegistryService) {
|
|
2850
2812
|
super();
|
|
@@ -2876,8 +2838,7 @@ let SheetsDataValidationUIController = class SheetsDataValidationUIController ex
|
|
|
2876
2838
|
};
|
|
2877
2839
|
SheetsDataValidationUIController = __decorate([__decorateParam(0, Inject(Injector)), __decorateParam(1, Inject(DataValidatorRegistryService))], SheetsDataValidationUIController);
|
|
2878
2840
|
|
|
2879
|
-
|
|
2880
|
-
//#region src/mobile-plugin.ts
|
|
2841
|
+
// src/mobile-plugin.ts
|
|
2881
2842
|
let UniverSheetsDataValidationMobileUIPlugin = class UniverSheetsDataValidationMobileUIPlugin extends Plugin {
|
|
2882
2843
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
2883
2844
|
super();
|
|
@@ -2936,8 +2897,7 @@ UniverSheetsDataValidationMobileUIPlugin = __decorate([
|
|
|
2936
2897
|
__decorateParam(3, IConfigService)
|
|
2937
2898
|
], UniverSheetsDataValidationMobileUIPlugin);
|
|
2938
2899
|
|
|
2939
|
-
|
|
2940
|
-
//#region src/views/components/DataValidationOptions.tsx
|
|
2900
|
+
// src/views/components/DataValidationOptions.tsx
|
|
2941
2901
|
function DataValidationOptions(props) {
|
|
2942
2902
|
const localeService = useDependency(LocaleService);
|
|
2943
2903
|
const componentManager = useDependency(ComponentManager);
|
|
@@ -2991,8 +2951,7 @@ function DataValidationOptions(props) {
|
|
|
2991
2951
|
] })] });
|
|
2992
2952
|
}
|
|
2993
2953
|
|
|
2994
|
-
|
|
2995
|
-
//#region src/views/components/DataValidationDetail.tsx
|
|
2954
|
+
// src/views/components/DataValidationDetail.tsx
|
|
2996
2955
|
const debounceExecuteFactory = (commandService) => debounce(async (id, params, options, callback) => {
|
|
2997
2956
|
const res = await commandService.executeCommand(id, params, options);
|
|
2998
2957
|
callback === null || callback === void 0 || callback(res);
|
|
@@ -3305,8 +3264,7 @@ function DataValidationDetailInner(props) {
|
|
|
3305
3264
|
});
|
|
3306
3265
|
}
|
|
3307
3266
|
|
|
3308
|
-
|
|
3309
|
-
//#region src/views/components/DataValidationItem.tsx
|
|
3267
|
+
// src/views/components/DataValidationItem.tsx
|
|
3310
3268
|
const DataValidationItem = (props) => {
|
|
3311
3269
|
const { rule, onClick, unitId, subUnitId, disable } = props;
|
|
3312
3270
|
const validatorRegistry = useDependency(DataValidatorRegistryService);
|
|
@@ -3386,8 +3344,7 @@ const DataValidationItem = (props) => {
|
|
|
3386
3344
|
});
|
|
3387
3345
|
};
|
|
3388
3346
|
|
|
3389
|
-
|
|
3390
|
-
//#region src/views/components/DataValidationList.tsx
|
|
3347
|
+
// src/views/components/DataValidationList.tsx
|
|
3391
3348
|
function DataValidationList(props) {
|
|
3392
3349
|
const sheetDataValidationModel = useDependency(SheetDataValidationModel);
|
|
3393
3350
|
const univerInstanceService = useDependency(IUniverInstanceService);
|
|
@@ -3468,8 +3425,7 @@ function DataValidationList(props) {
|
|
|
3468
3425
|
});
|
|
3469
3426
|
}
|
|
3470
3427
|
|
|
3471
|
-
|
|
3472
|
-
//#region src/views/components/DataValidationPanel.tsx
|
|
3428
|
+
// src/views/components/DataValidationPanel.tsx
|
|
3473
3429
|
const DataValidationPanel = () => {
|
|
3474
3430
|
const dataValidationPanelService = useDependency(DataValidationPanelService);
|
|
3475
3431
|
const activeRule = useObservable(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule);
|
|
@@ -3480,8 +3436,7 @@ const DataValidationPanel = () => {
|
|
|
3480
3436
|
return activeRule && (activeRule.subUnitId === worksheet.getSheetId() || activeRule.subUnitId === dataValidationPanelService.getFocusFormulaEditorActiveRuleSubUnitId()) ? /* @__PURE__ */ jsx(DataValidationDetail, {}, activeRule.rule.uid) : /* @__PURE__ */ jsx(DataValidationList, { workbook });
|
|
3481
3437
|
};
|
|
3482
3438
|
|
|
3483
|
-
|
|
3484
|
-
//#region src/views/components/formula-input/BaseFormulaInput.tsx
|
|
3439
|
+
// src/views/components/formula-input/BaseFormulaInput.tsx
|
|
3485
3440
|
const BaseFormulaInput = (props) => {
|
|
3486
3441
|
const { isTwoFormula = false, value, onChange, showError, validResult } = props;
|
|
3487
3442
|
const localeService = useDependency(LocaleService);
|
|
@@ -3534,8 +3489,7 @@ const BaseFormulaInput = (props) => {
|
|
|
3534
3489
|
});
|
|
3535
3490
|
};
|
|
3536
3491
|
|
|
3537
|
-
|
|
3538
|
-
//#region src/views/components/formula-input/CheckboxFormulaInput.tsx
|
|
3492
|
+
// src/views/components/formula-input/CheckboxFormulaInput.tsx
|
|
3539
3493
|
function CheckboxFormulaInput(props) {
|
|
3540
3494
|
const { value, onChange, showError, validResult } = props;
|
|
3541
3495
|
const localeService = useDependency(LocaleService);
|
|
@@ -3591,8 +3545,7 @@ function CheckboxFormulaInput(props) {
|
|
|
3591
3545
|
] });
|
|
3592
3546
|
}
|
|
3593
3547
|
|
|
3594
|
-
|
|
3595
|
-
//#region src/views/components/formula-input/CustomFormulaInput.tsx
|
|
3548
|
+
// src/views/components/formula-input/CustomFormulaInput.tsx
|
|
3596
3549
|
function CustomFormulaInput(props) {
|
|
3597
3550
|
const { unitId, subUnitId, value, onChange, showError, validResult } = props;
|
|
3598
3551
|
const formula1Res = showError ? validResult === null || validResult === void 0 ? void 0 : validResult.formula1 : void 0;
|
|
@@ -3625,8 +3578,7 @@ function CustomFormulaInput(props) {
|
|
|
3625
3578
|
});
|
|
3626
3579
|
}
|
|
3627
3580
|
|
|
3628
|
-
|
|
3629
|
-
//#region src/views/components/formula-input/utils.ts
|
|
3581
|
+
// src/views/components/formula-input/utils.ts
|
|
3630
3582
|
/**
|
|
3631
3583
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3632
3584
|
*
|
|
@@ -3656,8 +3608,7 @@ function buildCustomListFormulaPayload(items, defaultColor) {
|
|
|
3656
3608
|
};
|
|
3657
3609
|
}
|
|
3658
3610
|
|
|
3659
|
-
|
|
3660
|
-
//#region src/views/components/formula-input/ListFormulaInput.tsx
|
|
3611
|
+
// src/views/components/formula-input/ListFormulaInput.tsx
|
|
3661
3612
|
const DEFAULT_COLOR_PRESET = [
|
|
3662
3613
|
"#FFFFFF",
|
|
3663
3614
|
"#FEE7E7",
|
|
@@ -3690,7 +3641,7 @@ const ColorSelect = (props) => {
|
|
|
3690
3641
|
const themeService = useDependency(ThemeService);
|
|
3691
3642
|
useObservable(themeService.currentTheme$);
|
|
3692
3643
|
const backgroundColor = value.includes(".") && themeService.isValidThemeColor(value) ? themeService.getColorFromTheme(value) : value;
|
|
3693
|
-
return /* @__PURE__ */ jsx(Dropdown, {
|
|
3644
|
+
return /* @__PURE__ */ jsx(Dropdown$1, {
|
|
3694
3645
|
align: "start",
|
|
3695
3646
|
disabled,
|
|
3696
3647
|
open,
|
|
@@ -3953,8 +3904,7 @@ function ListFormulaInput(props) {
|
|
|
3953
3904
|
})] });
|
|
3954
3905
|
}
|
|
3955
3906
|
|
|
3956
|
-
|
|
3957
|
-
//#region src/views/components/formula-input/index.ts
|
|
3907
|
+
// src/views/components/formula-input/index.ts
|
|
3958
3908
|
const FORMULA_INPUTS = [
|
|
3959
3909
|
[CUSTOM_FORMULA_INPUT_NAME, CustomFormulaInput],
|
|
3960
3910
|
[BASE_FORMULA_INPUT_NAME, BaseFormulaInput],
|
|
@@ -3962,8 +3912,7 @@ const FORMULA_INPUTS = [
|
|
|
3962
3912
|
[CHECKBOX_FORMULA_INPUT_NAME, CheckboxFormulaInput]
|
|
3963
3913
|
];
|
|
3964
3914
|
|
|
3965
|
-
|
|
3966
|
-
//#region src/controllers/components.controller.ts
|
|
3915
|
+
// src/controllers/components.controller.ts
|
|
3967
3916
|
/**
|
|
3968
3917
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3969
3918
|
*
|
|
@@ -4009,8 +3958,7 @@ let ComponentsController = class ComponentsController extends Disposable {
|
|
|
4009
3958
|
};
|
|
4010
3959
|
ComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], ComponentsController);
|
|
4011
3960
|
|
|
4012
|
-
|
|
4013
|
-
//#region src/plugin.ts
|
|
3961
|
+
// src/plugin.ts
|
|
4014
3962
|
let UniverSheetsDataValidationUIPlugin = class UniverSheetsDataValidationUIPlugin extends Plugin {
|
|
4015
3963
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
4016
3964
|
super();
|
|
@@ -4077,5 +4025,4 @@ UniverSheetsDataValidationUIPlugin = __decorate([
|
|
|
4077
4025
|
__decorateParam(3, IConfigService)
|
|
4078
4026
|
], UniverSheetsDataValidationUIPlugin);
|
|
4079
4027
|
|
|
4080
|
-
//#endregion
|
|
4081
4028
|
export { DATA_VALIDATION_PANEL, DataValidationPanelService, menuSchema as SheetsDataValidationUIMenuSchema, UniverSheetsDataValidationMobileUIPlugin, UniverSheetsDataValidationUIPlugin };
|
package/lib/es/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
|
export { locale as default };
|
package/lib/es/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
|
export { locale as default };
|
package/lib/es/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
|
export { locale as default };
|
package/lib/es/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
|
export { locale as default };
|