@univerjs/sheets-data-validation-ui 1.3.1 → 1.4.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.
Files changed (65) hide show
  1. package/lib/cjs/index.js +60 -114
  2. package/lib/cjs/locale/ar-SA.js +1 -2
  3. package/lib/cjs/locale/ca-ES.js +1 -2
  4. package/lib/cjs/locale/de-DE.js +1 -2
  5. package/lib/cjs/locale/en-US.js +1 -2
  6. package/lib/cjs/locale/es-ES.js +1 -2
  7. package/lib/cjs/locale/fa-IR.js +1 -2
  8. package/lib/cjs/locale/fr-FR.js +1 -2
  9. package/lib/cjs/locale/id-ID.js +1 -2
  10. package/lib/cjs/locale/it-IT.js +1 -2
  11. package/lib/cjs/locale/ja-JP.js +1 -2
  12. package/lib/cjs/locale/ko-KR.js +1 -2
  13. package/lib/cjs/locale/pl-PL.js +1 -2
  14. package/lib/cjs/locale/pt-BR.js +1 -2
  15. package/lib/cjs/locale/ru-RU.js +1 -2
  16. package/lib/cjs/locale/sk-SK.js +1 -2
  17. package/lib/cjs/locale/vi-VN.js +1 -2
  18. package/lib/cjs/locale/zh-CN.js +1 -2
  19. package/lib/cjs/locale/zh-HK.js +1 -2
  20. package/lib/cjs/locale/zh-TW.js +1 -2
  21. package/lib/es/index.js +61 -115
  22. package/lib/es/locale/ar-SA.js +1 -2
  23. package/lib/es/locale/ca-ES.js +1 -2
  24. package/lib/es/locale/de-DE.js +1 -2
  25. package/lib/es/locale/en-US.js +1 -2
  26. package/lib/es/locale/es-ES.js +1 -2
  27. package/lib/es/locale/fa-IR.js +1 -2
  28. package/lib/es/locale/fr-FR.js +1 -2
  29. package/lib/es/locale/id-ID.js +1 -2
  30. package/lib/es/locale/it-IT.js +1 -2
  31. package/lib/es/locale/ja-JP.js +1 -2
  32. package/lib/es/locale/ko-KR.js +1 -2
  33. package/lib/es/locale/pl-PL.js +1 -2
  34. package/lib/es/locale/pt-BR.js +1 -2
  35. package/lib/es/locale/ru-RU.js +1 -2
  36. package/lib/es/locale/sk-SK.js +1 -2
  37. package/lib/es/locale/vi-VN.js +1 -2
  38. package/lib/es/locale/zh-CN.js +1 -2
  39. package/lib/es/locale/zh-HK.js +1 -2
  40. package/lib/es/locale/zh-TW.js +1 -2
  41. package/lib/index.js +61 -115
  42. package/lib/locale/ar-SA.js +1 -2
  43. package/lib/locale/ca-ES.js +1 -2
  44. package/lib/locale/de-DE.js +1 -2
  45. package/lib/locale/en-US.js +1 -2
  46. package/lib/locale/es-ES.js +1 -2
  47. package/lib/locale/fa-IR.js +1 -2
  48. package/lib/locale/fr-FR.js +1 -2
  49. package/lib/locale/id-ID.js +1 -2
  50. package/lib/locale/it-IT.js +1 -2
  51. package/lib/locale/ja-JP.js +1 -2
  52. package/lib/locale/ko-KR.js +1 -2
  53. package/lib/locale/pl-PL.js +1 -2
  54. package/lib/locale/pt-BR.js +1 -2
  55. package/lib/locale/ru-RU.js +1 -2
  56. package/lib/locale/sk-SK.js +1 -2
  57. package/lib/locale/vi-VN.js +1 -2
  58. package/lib/locale/zh-CN.js +1 -2
  59. package/lib/locale/zh-HK.js +1 -2
  60. package/lib/locale/zh-TW.js +1 -2
  61. package/lib/types/menu/dv.menu.d.ts +1 -1
  62. package/lib/types/views/components/DateShowTimeOption.d.ts +3 -1
  63. package/lib/types/views/components/ListRenderModeInput.d.ts +3 -1
  64. package/lib/umd/index.js +1 -1
  65. package/package.json +21 -21
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
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
18
+ // \0@oxc-project+runtime@0.156.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,8 +25,7 @@ function _typeof(o) {
25
25
  }, _typeof(o);
26
26
  }
27
27
 
28
- //#endregion
29
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
28
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
30
29
  function toPrimitive(t, r) {
31
30
  if ("object" != _typeof(t) || !t) return t;
32
31
  var e = t[Symbol.toPrimitive];
@@ -38,15 +37,13 @@ function toPrimitive(t, r) {
38
37
  return ("string" === r ? String : Number)(t);
39
38
  }
40
39
 
41
- //#endregion
42
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
40
+ // \0@oxc-project+runtime@0.156.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
- //#endregion
49
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
46
+ // \0@oxc-project+runtime@0.156.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
- //#endregion
60
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
56
+ // \0@oxc-project+runtime@0.156.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
- //#endregion
68
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
63
+ // \0@oxc-project+runtime@0.156.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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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")}`;
@@ -680,8 +670,7 @@ DataValidationDropdownManagerService = __decorate([
680
670
  __decorateParam(9, _univerjs_core.IConfigService)
681
671
  ], DataValidationDropdownManagerService);
682
672
 
683
- //#endregion
684
- //#region src/commands/operations/data-validation.operation.ts
673
+ // src/commands/operations/data-validation.operation.ts
685
674
  const DATA_VALIDATION_PANEL = "DataValidationPanel";
686
675
  const OpenValidationPanelOperation = {
687
676
  id: "data-validation.operation.open-validation-panel",
@@ -758,8 +747,7 @@ const HideDataValidationDropdown = {
758
747
  }
759
748
  };
760
749
 
761
- //#endregion
762
- //#region src/commands/commands/data-validation-ui.command.ts
750
+ // src/commands/commands/data-validation-ui.command.ts
763
751
  function createRule(accessor, rule) {
764
752
  const defaultRule = (0, _univerjs_sheets_data_validation.createDefaultNewRule)(accessor);
765
753
  return {
@@ -827,8 +815,7 @@ const AddSheetDataValidationAndOpenCommand = {
827
815
  }
828
816
  };
829
817
 
830
- //#endregion
831
- //#region src/views/components/DropdownPresets.tsx
818
+ // src/views/components/DropdownPresets.tsx
832
819
  const DROPDOWN_PRESETS_COMPONENT = "SHEETS_DATA_VALIDATION_DROPDOWN_PRESETS";
833
820
  function DropdownPresets({ onChange }) {
834
821
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
@@ -870,8 +857,7 @@ function DropdownPresets({ onChange }) {
870
857
  });
871
858
  }
872
859
 
873
- //#endregion
874
- //#region src/menu/dv.menu.ts
860
+ // src/menu/dv.menu.ts
875
861
  const DATA_VALIDATION_MENU_ID = "sheet.menu.data-validation";
876
862
  const QUICK_DROPDOWN_MENU_ID = "sheet.menu.quick-dropdown";
877
863
  const QUICK_DATE_MENU_ID = "sheet.menu.quick-date";
@@ -1018,8 +1004,10 @@ function quickDateMenuFactory(accessor) {
1018
1004
  ...getQuickDataValidationMenuState(accessor)
1019
1005
  };
1020
1006
  }
1021
- function openDataValidationMenuFactory() {
1007
+ function openDataValidationMenuFactory(accessor) {
1008
+ const sidebarService = accessor.get(_univerjs_ui.ISidebarService);
1022
1009
  return {
1010
+ 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
1011
  id: OpenValidationPanelOperation.id,
1024
1012
  title: "sheets-data-validation-ui.panel.title",
1025
1013
  type: _univerjs_ui.MenuItemType.BUTTON,
@@ -1034,8 +1022,7 @@ function addDataValidationMenuFactory() {
1034
1022
  };
1035
1023
  }
1036
1024
 
1037
- //#endregion
1038
- //#region src/menu/schema.ts
1025
+ // src/menu/schema.ts
1039
1026
  const menuSchema = {
1040
1027
  [_univerjs_ui.RibbonInsertGroup.CELL]: {
1041
1028
  [InsertQuickSheetDataValidationCommand.id]: {
@@ -1069,13 +1056,11 @@ const menuSchema = {
1069
1056
  } }
1070
1057
  };
1071
1058
 
1072
- //#endregion
1073
- //#region package.json
1059
+ // package.json
1074
1060
  var name = "@univerjs/sheets-data-validation-ui";
1075
- var version = "1.3.1";
1061
+ var version = "1.4.0";
1076
1062
 
1077
- //#endregion
1078
- //#region src/controllers/dv-alert.controller.ts
1063
+ // src/controllers/dv-alert.controller.ts
1079
1064
  const ALERT_KEY = "SHEET_DATA_VALIDATION_ALERT";
1080
1065
  let DataValidationAlertController = class DataValidationAlertController extends _univerjs_core.Disposable {
1081
1066
  constructor(_hoverManagerService, _cellAlertManagerService, _univerInstanceService, _localeService, _dataValidationModel, _dataValidationCacheService) {
@@ -1200,8 +1185,7 @@ DataValidationAlertController = __decorate([
1200
1185
  __decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.DataValidationCacheService))
1201
1186
  ], DataValidationAlertController);
1202
1187
 
1203
- //#endregion
1204
- //#region src/controllers/dv-auto-fill.controller.ts
1188
+ // src/controllers/dv-auto-fill.controller.ts
1205
1189
  let DataValidationAutoFillController = class DataValidationAutoFillController extends _univerjs_core.Disposable {
1206
1190
  constructor(_autoFillService, _sheetDataValidationModel, _injector) {
1207
1191
  super();
@@ -1281,8 +1265,7 @@ DataValidationAutoFillController = __decorate([
1281
1265
  __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.Injector))
1282
1266
  ], DataValidationAutoFillController);
1283
1267
 
1284
- //#endregion
1285
- //#region src/controllers/dv-copy-paste.controller.ts
1268
+ // src/controllers/dv-copy-paste.controller.ts
1286
1269
  const specialPastes = [
1287
1270
  _univerjs_sheets_ui.PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_COL_WIDTH,
1288
1271
  _univerjs_sheets_ui.PREDEFINED_HOOK_NAME_PASTE.SPECIAL_PASTE_VALUE,
@@ -1421,8 +1404,7 @@ DataValidationCopyPasteController = __decorate([
1421
1404
  __decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_core.IUniverInstanceService))
1422
1405
  ], DataValidationCopyPasteController);
1423
1406
 
1424
- //#endregion
1425
- //#region src/controllers/dv-permission.controller.ts
1407
+ // src/controllers/dv-permission.controller.ts
1426
1408
  let DataValidationPermissionController = class DataValidationPermissionController extends _univerjs_core.Disposable {
1427
1409
  constructor(_localeService, _commandService, _sheetPermissionCheckController) {
1428
1410
  super();
@@ -1458,8 +1440,7 @@ DataValidationPermissionController = __decorate([
1458
1440
  __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetPermissionCheckController))
1459
1441
  ], DataValidationPermissionController);
1460
1442
 
1461
- //#endregion
1462
- //#region src/controllers/dv-rerender.controller.ts
1443
+ // src/controllers/dv-rerender.controller.ts
1463
1444
  let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderController extends _univerjs_core.Disposable {
1464
1445
  constructor(_context, _sheetDataValidationModel, _sheetSkeletonManagerService) {
1465
1446
  super();
@@ -1487,8 +1468,7 @@ let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderC
1487
1468
  };
1488
1469
  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
1470
 
1490
- //#endregion
1491
- //#region src/controllers/mobile/components.controller.ts
1471
+ // src/controllers/mobile/components.controller.ts
1492
1472
  /**
1493
1473
  * Copyright 2023-present DreamNum Co., Ltd.
1494
1474
  *
@@ -1518,8 +1498,7 @@ let MobileComponentsController = class MobileComponentsController extends _unive
1518
1498
  };
1519
1499
  MobileComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], MobileComponentsController);
1520
1500
 
1521
- //#endregion
1522
- //#region src/controllers/dv-render.controller.ts
1501
+ // src/controllers/dv-render.controller.ts
1523
1502
  const INVALID_MARK$1 = { tr: {
1524
1503
  size: 6,
1525
1504
  color: "#fe4b4b"
@@ -1718,8 +1697,7 @@ function recalculateAutoHeight(infos, autoHeightController, commandService) {
1718
1697
  }
1719
1698
  }
1720
1699
 
1721
- //#endregion
1722
- //#region src/controllers/mobile/dv-render.controller.ts
1700
+ // src/controllers/mobile/dv-render.controller.ts
1723
1701
  const INVALID_MARK = { tr: {
1724
1702
  size: 6,
1725
1703
  color: "#fe4b4b"
@@ -1827,8 +1805,7 @@ SheetsDataValidationMobileRenderController = __decorate([
1827
1805
  __decorateParam(6, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.DataValidationCacheService))
1828
1806
  ], SheetsDataValidationMobileRenderController);
1829
1807
 
1830
- //#endregion
1831
- //#region src/views/widgets/checkbox-widget.ts
1808
+ // src/views/widgets/checkbox-widget.ts
1832
1809
  const MARGIN_H$2 = 6;
1833
1810
  let CheckboxRender = class CheckboxRender {
1834
1811
  _calc(cellInfo, style) {
@@ -2001,8 +1978,7 @@ CheckboxRender = __decorate([
2001
1978
  __decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
2002
1979
  ], CheckboxRender);
2003
1980
 
2004
- //#endregion
2005
- //#region src/views/validator-views/sheet-validator-view.ts
1981
+ // src/views/validator-views/sheet-validator-view.ts
2006
1982
  let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
2007
1983
  constructor(injector) {
2008
1984
  this.injector = injector;
@@ -2014,8 +1990,7 @@ let BaseSheetDataValidatorView = class BaseSheetDataValidatorView {
2014
1990
  };
2015
1991
  BaseSheetDataValidatorView = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], BaseSheetDataValidatorView);
2016
1992
 
2017
- //#endregion
2018
- //#region src/views/validator-views/checkbox-validator-view.ts
1993
+ // src/views/validator-views/checkbox-validator-view.ts
2019
1994
  /**
2020
1995
  * Copyright 2023-present DreamNum Co., Ltd.
2021
1996
  *
@@ -2040,8 +2015,7 @@ var CheckboxValidatorView = class extends BaseSheetDataValidatorView {
2040
2015
  }
2041
2016
  };
2042
2017
 
2043
- //#endregion
2044
- //#region src/views/validator-views/custom-validator-view.ts
2018
+ // src/views/validator-views/custom-validator-view.ts
2045
2019
  /**
2046
2020
  * Copyright 2023-present DreamNum Co., Ltd.
2047
2021
  *
@@ -2065,8 +2039,7 @@ var CustomFormulaValidatorView = class extends BaseSheetDataValidatorView {
2065
2039
  }
2066
2040
  };
2067
2041
 
2068
- //#endregion
2069
- //#region src/views/components/DateShowTimeOption.tsx
2042
+ // src/views/components/DateShowTimeOption.tsx
2070
2043
  const DATE_SHOW_TIME_OPTION = "DATE_SHOW_TIME_OPTION";
2071
2044
  function DateShowTimeOption(props) {
2072
2045
  var _value$bizInfo;
@@ -2088,8 +2061,7 @@ function DateShowTimeOption(props) {
2088
2061
  }
2089
2062
  DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
2090
2063
 
2091
- //#endregion
2092
- //#region src/views/validator-views/date-validator-view.ts
2064
+ // src/views/validator-views/date-validator-view.ts
2093
2065
  /**
2094
2066
  * Copyright 2023-present DreamNum Co., Ltd.
2095
2067
  *
@@ -2115,8 +2087,7 @@ var DateValidatorView = class extends BaseSheetDataValidatorView {
2115
2087
  }
2116
2088
  };
2117
2089
 
2118
- //#endregion
2119
- //#region src/views/validator-views/decimal-validator-view.ts
2090
+ // src/views/validator-views/decimal-validator-view.ts
2120
2091
  /**
2121
2092
  * Copyright 2023-present DreamNum Co., Ltd.
2122
2093
  *
@@ -2140,8 +2111,7 @@ var DecimalValidatorView = class extends BaseSheetDataValidatorView {
2140
2111
  }
2141
2112
  };
2142
2113
 
2143
- //#endregion
2144
- //#region src/views/widgets/shape/layout.ts
2114
+ // src/views/widgets/shape/layout.ts
2145
2115
  const MARGIN_H$1 = 4;
2146
2116
  const MARGIN_V$1 = 4;
2147
2117
  function getDropdownItemSize(text, fontStyle) {
@@ -2202,8 +2172,7 @@ function layoutDropdowns(items, fontStyle, cellWidth, cellHeight) {
2202
2172
  };
2203
2173
  }
2204
2174
 
2205
- //#endregion
2206
- //#region src/views/widgets/shape/dropdown.ts
2175
+ // src/views/widgets/shape/dropdown.ts
2207
2176
  const RADIUS = 8;
2208
2177
  var Dropdown$1 = class extends _univerjs_engine_render.Shape {
2209
2178
  static drawWith(ctx, props) {
@@ -2224,8 +2193,7 @@ var Dropdown$1 = class extends _univerjs_engine_render.Shape {
2224
2193
  }
2225
2194
  };
2226
2195
 
2227
- //#endregion
2228
- //#region src/views/widgets/dropdown-multiple-widget.ts
2196
+ // src/views/widgets/dropdown-multiple-widget.ts
2229
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");
2230
2198
  let DropdownMultipleWidget = class DropdownMultipleWidget {
2231
2199
  constructor(_commandService, _univerInstanceService, _renderManagerService, _dataValidationModel) {
@@ -2414,8 +2382,7 @@ DropdownMultipleWidget = __decorate([
2414
2382
  __decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
2415
2383
  ], DropdownMultipleWidget);
2416
2384
 
2417
- //#endregion
2418
- //#region src/views/validator-views/list-multiple-view.ts
2385
+ // src/views/validator-views/list-multiple-view.ts
2419
2386
  /**
2420
2387
  * Copyright 2023-present DreamNum Co., Ltd.
2421
2388
  *
@@ -2440,8 +2407,7 @@ var ListMultipleValidatorView = class extends BaseSheetDataValidatorView {
2440
2407
  }
2441
2408
  };
2442
2409
 
2443
- //#endregion
2444
- //#region src/views/components/ListRenderModeInput.tsx
2410
+ // src/views/components/ListRenderModeInput.tsx
2445
2411
  const LIST_RENDER_MODE_OPTION_INPUT = "LIST_RENDER_MODE_OPTION_INPUT";
2446
2412
  function ListRenderModeInput(props) {
2447
2413
  const { value, onChange } = props;
@@ -2473,8 +2439,7 @@ function ListRenderModeInput(props) {
2473
2439
  }
2474
2440
  ListRenderModeInput.componentKey = LIST_RENDER_MODE_OPTION_INPUT;
2475
2441
 
2476
- //#endregion
2477
- //#region src/views/widgets/dropdown-widget.ts
2442
+ // src/views/widgets/dropdown-widget.ts
2478
2443
  /**
2479
2444
  * padding in Capsule
2480
2445
  */
@@ -2781,8 +2746,7 @@ DropdownWidget = __decorate([
2781
2746
  __decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
2782
2747
  ], DropdownWidget);
2783
2748
 
2784
- //#endregion
2785
- //#region src/views/validator-views/list-validator-view.ts
2749
+ // src/views/validator-views/list-validator-view.ts
2786
2750
  var ListValidatorView = class extends BaseSheetDataValidatorView {
2787
2751
  constructor(..._args) {
2788
2752
  super(..._args);
@@ -2794,8 +2758,7 @@ var ListValidatorView = class extends BaseSheetDataValidatorView {
2794
2758
  }
2795
2759
  };
2796
2760
 
2797
- //#endregion
2798
- //#region src/views/validator-views/text-length-validator.view.ts
2761
+ // src/views/validator-views/text-length-validator.view.ts
2799
2762
  /**
2800
2763
  * Copyright 2023-present DreamNum Co., Ltd.
2801
2764
  *
@@ -2819,8 +2782,7 @@ var TextLengthValidatorView = class extends BaseSheetDataValidatorView {
2819
2782
  }
2820
2783
  };
2821
2784
 
2822
- //#endregion
2823
- //#region src/views/validator-views/whole-validator-view.ts
2785
+ // src/views/validator-views/whole-validator-view.ts
2824
2786
  /**
2825
2787
  * Copyright 2023-present DreamNum Co., Ltd.
2826
2788
  *
@@ -2844,8 +2806,7 @@ var WholeValidatorView = class extends BaseSheetDataValidatorView {
2844
2806
  }
2845
2807
  };
2846
2808
 
2847
- //#endregion
2848
- //#region src/controllers/ui.controller.ts
2809
+ // src/controllers/ui.controller.ts
2849
2810
  let SheetsDataValidationUIController = class SheetsDataValidationUIController extends _univerjs_core.RxDisposable {
2850
2811
  constructor(_injector, _dataValidatorRegistryService) {
2851
2812
  super();
@@ -2877,8 +2838,7 @@ let SheetsDataValidationUIController = class SheetsDataValidationUIController ex
2877
2838
  };
2878
2839
  SheetsDataValidationUIController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_data_validation.DataValidatorRegistryService))], SheetsDataValidationUIController);
2879
2840
 
2880
- //#endregion
2881
- //#region src/mobile-plugin.ts
2841
+ // src/mobile-plugin.ts
2882
2842
  let UniverSheetsDataValidationMobileUIPlugin = class UniverSheetsDataValidationMobileUIPlugin extends _univerjs_core.Plugin {
2883
2843
  constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
2884
2844
  super();
@@ -2937,8 +2897,7 @@ UniverSheetsDataValidationMobileUIPlugin = __decorate([
2937
2897
  __decorateParam(3, _univerjs_core.IConfigService)
2938
2898
  ], UniverSheetsDataValidationMobileUIPlugin);
2939
2899
 
2940
- //#endregion
2941
- //#region src/views/components/DataValidationOptions.tsx
2900
+ // src/views/components/DataValidationOptions.tsx
2942
2901
  function DataValidationOptions(props) {
2943
2902
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
2944
2903
  const componentManager = (0, _univerjs_ui.useDependency)(_univerjs_ui.ComponentManager);
@@ -2992,8 +2951,7 @@ function DataValidationOptions(props) {
2992
2951
  ] })] });
2993
2952
  }
2994
2953
 
2995
- //#endregion
2996
- //#region src/views/components/DataValidationDetail.tsx
2954
+ // src/views/components/DataValidationDetail.tsx
2997
2955
  const debounceExecuteFactory = (commandService) => (0, _univerjs_core.debounce)(async (id, params, options, callback) => {
2998
2956
  const res = await commandService.executeCommand(id, params, options);
2999
2957
  callback === null || callback === void 0 || callback(res);
@@ -3306,8 +3264,7 @@ function DataValidationDetailInner(props) {
3306
3264
  });
3307
3265
  }
3308
3266
 
3309
- //#endregion
3310
- //#region src/views/components/DataValidationItem.tsx
3267
+ // src/views/components/DataValidationItem.tsx
3311
3268
  const DataValidationItem = (props) => {
3312
3269
  const { rule, onClick, unitId, subUnitId, disable } = props;
3313
3270
  const validatorRegistry = (0, _univerjs_ui.useDependency)(_univerjs_data_validation.DataValidatorRegistryService);
@@ -3387,8 +3344,7 @@ const DataValidationItem = (props) => {
3387
3344
  });
3388
3345
  };
3389
3346
 
3390
- //#endregion
3391
- //#region src/views/components/DataValidationList.tsx
3347
+ // src/views/components/DataValidationList.tsx
3392
3348
  function DataValidationList(props) {
3393
3349
  const sheetDataValidationModel = (0, _univerjs_ui.useDependency)(_univerjs_sheets_data_validation.SheetDataValidationModel);
3394
3350
  const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
@@ -3469,8 +3425,7 @@ function DataValidationList(props) {
3469
3425
  });
3470
3426
  }
3471
3427
 
3472
- //#endregion
3473
- //#region src/views/components/DataValidationPanel.tsx
3428
+ // src/views/components/DataValidationPanel.tsx
3474
3429
  const DataValidationPanel = () => {
3475
3430
  const dataValidationPanelService = (0, _univerjs_ui.useDependency)(DataValidationPanelService);
3476
3431
  const activeRule = (0, _univerjs_ui.useObservable)(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule);
@@ -3481,8 +3436,7 @@ const DataValidationPanel = () => {
3481
3436
  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
3437
  };
3483
3438
 
3484
- //#endregion
3485
- //#region src/views/components/formula-input/BaseFormulaInput.tsx
3439
+ // src/views/components/formula-input/BaseFormulaInput.tsx
3486
3440
  const BaseFormulaInput = (props) => {
3487
3441
  const { isTwoFormula = false, value, onChange, showError, validResult } = props;
3488
3442
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
@@ -3535,8 +3489,7 @@ const BaseFormulaInput = (props) => {
3535
3489
  });
3536
3490
  };
3537
3491
 
3538
- //#endregion
3539
- //#region src/views/components/formula-input/CheckboxFormulaInput.tsx
3492
+ // src/views/components/formula-input/CheckboxFormulaInput.tsx
3540
3493
  function CheckboxFormulaInput(props) {
3541
3494
  const { value, onChange, showError, validResult } = props;
3542
3495
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
@@ -3592,8 +3545,7 @@ function CheckboxFormulaInput(props) {
3592
3545
  ] });
3593
3546
  }
3594
3547
 
3595
- //#endregion
3596
- //#region src/views/components/formula-input/CustomFormulaInput.tsx
3548
+ // src/views/components/formula-input/CustomFormulaInput.tsx
3597
3549
  function CustomFormulaInput(props) {
3598
3550
  const { unitId, subUnitId, value, onChange, showError, validResult } = props;
3599
3551
  const formula1Res = showError ? validResult === null || validResult === void 0 ? void 0 : validResult.formula1 : void 0;
@@ -3626,8 +3578,7 @@ function CustomFormulaInput(props) {
3626
3578
  });
3627
3579
  }
3628
3580
 
3629
- //#endregion
3630
- //#region src/views/components/formula-input/utils.ts
3581
+ // src/views/components/formula-input/utils.ts
3631
3582
  /**
3632
3583
  * Copyright 2023-present DreamNum Co., Ltd.
3633
3584
  *
@@ -3657,8 +3608,7 @@ function buildCustomListFormulaPayload(items, defaultColor) {
3657
3608
  };
3658
3609
  }
3659
3610
 
3660
- //#endregion
3661
- //#region src/views/components/formula-input/ListFormulaInput.tsx
3611
+ // src/views/components/formula-input/ListFormulaInput.tsx
3662
3612
  const DEFAULT_COLOR_PRESET = [
3663
3613
  "#FFFFFF",
3664
3614
  "#FEE7E7",
@@ -3954,8 +3904,7 @@ function ListFormulaInput(props) {
3954
3904
  })] });
3955
3905
  }
3956
3906
 
3957
- //#endregion
3958
- //#region src/views/components/formula-input/index.ts
3907
+ // src/views/components/formula-input/index.ts
3959
3908
  const FORMULA_INPUTS = [
3960
3909
  [_univerjs_sheets_data_validation.CUSTOM_FORMULA_INPUT_NAME, CustomFormulaInput],
3961
3910
  [_univerjs_sheets_data_validation.BASE_FORMULA_INPUT_NAME, BaseFormulaInput],
@@ -3963,8 +3912,7 @@ const FORMULA_INPUTS = [
3963
3912
  [_univerjs_sheets_data_validation.CHECKBOX_FORMULA_INPUT_NAME, CheckboxFormulaInput]
3964
3913
  ];
3965
3914
 
3966
- //#endregion
3967
- //#region src/controllers/components.controller.ts
3915
+ // src/controllers/components.controller.ts
3968
3916
  /**
3969
3917
  * Copyright 2023-present DreamNum Co., Ltd.
3970
3918
  *
@@ -4010,8 +3958,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
4010
3958
  };
4011
3959
  ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
4012
3960
 
4013
- //#endregion
4014
- //#region src/plugin.ts
3961
+ // src/plugin.ts
4015
3962
  let UniverSheetsDataValidationUIPlugin = class UniverSheetsDataValidationUIPlugin extends _univerjs_core.Plugin {
4016
3963
  constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
4017
3964
  super();
@@ -4078,7 +4025,6 @@ UniverSheetsDataValidationUIPlugin = __decorate([
4078
4025
  __decorateParam(3, _univerjs_core.IConfigService)
4079
4026
  ], UniverSheetsDataValidationUIPlugin);
4080
4027
 
4081
- //#endregion
4082
4028
  exports.DATA_VALIDATION_PANEL = DATA_VALIDATION_PANEL;
4083
4029
  Object.defineProperty(exports, "DataValidationPanelService", {
4084
4030
  enumerable: true,
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.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;
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "sheets-data-validation-ui": {
3
3
  title: "Validation des données",
4
4
  ribbon: {
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
72
72
  permission: { dialog: { setStyleErr: "La plage est protégée, et vous n'avez pas la permission de définir les styles. Pour définir les styles, veuillez contacter le créateur." } }
73
73
  } };
74
74
 
75
- //#endregion
76
75
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "sheets-data-validation-ui": {
3
3
  title: "Validasi data",
4
4
  ribbon: {
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
72
72
  permission: { dialog: { setStyleErr: "Rentang ini dilindungi, dan Anda tidak memiliki izin untuk mengatur gaya. Untuk mengatur gaya, silakan hubungi pembuatnya." } }
73
73
  } };
74
74
 
75
- //#endregion
76
75
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "sheets-data-validation-ui": {
3
3
  title: "Convalida dati",
4
4
  ribbon: {
@@ -72,5 +72,4 @@ const locale = { "sheets-data-validation-ui": {
72
72
  permission: { dialog: { setStyleErr: "L'intervallo è protetto e non hai l'autorizzazione per impostare gli stili. Per impostare gli stili, contatta il creatore." } }
73
73
  } };
74
74
 
75
- //#endregion
76
75
  module.exports = locale;