@univerjs/sheets-data-validation-ui 0.23.0 → 0.24.0-insiders.20260528-29f582d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/lib/cjs/index.js +54 -56
  2. package/lib/cjs/locale/ar-SA.js +94 -0
  3. package/lib/cjs/locale/ca-ES.js +6 -86
  4. package/lib/cjs/locale/de-DE.js +94 -0
  5. package/lib/cjs/locale/en-US.js +6 -86
  6. package/lib/cjs/locale/es-ES.js +6 -86
  7. package/lib/cjs/locale/fa-IR.js +6 -86
  8. package/lib/cjs/locale/fr-FR.js +6 -86
  9. package/lib/cjs/locale/id-ID.js +94 -0
  10. package/lib/cjs/locale/it-IT.js +94 -0
  11. package/lib/cjs/locale/ja-JP.js +6 -86
  12. package/lib/cjs/locale/ko-KR.js +6 -86
  13. package/lib/cjs/locale/pl-PL.js +94 -0
  14. package/lib/cjs/locale/pt-BR.js +94 -0
  15. package/lib/cjs/locale/ru-RU.js +6 -86
  16. package/lib/cjs/locale/sk-SK.js +6 -86
  17. package/lib/cjs/locale/vi-VN.js +6 -86
  18. package/lib/cjs/locale/zh-CN.js +6 -86
  19. package/lib/cjs/locale/zh-HK.js +94 -0
  20. package/lib/cjs/locale/zh-TW.js +6 -86
  21. package/lib/es/index.js +54 -56
  22. package/lib/es/locale/ar-SA.js +93 -0
  23. package/lib/es/locale/ca-ES.js +6 -86
  24. package/lib/es/locale/de-DE.js +93 -0
  25. package/lib/es/locale/en-US.js +6 -86
  26. package/lib/es/locale/es-ES.js +6 -86
  27. package/lib/es/locale/fa-IR.js +6 -86
  28. package/lib/es/locale/fr-FR.js +6 -86
  29. package/lib/es/locale/id-ID.js +93 -0
  30. package/lib/es/locale/it-IT.js +93 -0
  31. package/lib/es/locale/ja-JP.js +6 -86
  32. package/lib/es/locale/ko-KR.js +6 -86
  33. package/lib/es/locale/pl-PL.js +93 -0
  34. package/lib/es/locale/pt-BR.js +93 -0
  35. package/lib/es/locale/ru-RU.js +6 -86
  36. package/lib/es/locale/sk-SK.js +6 -86
  37. package/lib/es/locale/vi-VN.js +6 -86
  38. package/lib/es/locale/zh-CN.js +6 -86
  39. package/lib/es/locale/zh-HK.js +93 -0
  40. package/lib/es/locale/zh-TW.js +6 -86
  41. package/lib/index.js +54 -56
  42. package/lib/locale/ar-SA.js +93 -0
  43. package/lib/locale/ca-ES.js +6 -86
  44. package/lib/locale/de-DE.js +93 -0
  45. package/lib/locale/en-US.js +6 -86
  46. package/lib/locale/es-ES.js +6 -86
  47. package/lib/locale/fa-IR.js +6 -86
  48. package/lib/locale/fr-FR.js +6 -86
  49. package/lib/locale/id-ID.js +93 -0
  50. package/lib/locale/it-IT.js +93 -0
  51. package/lib/locale/ja-JP.js +6 -86
  52. package/lib/locale/ko-KR.js +6 -86
  53. package/lib/locale/pl-PL.js +93 -0
  54. package/lib/locale/pt-BR.js +93 -0
  55. package/lib/locale/ru-RU.js +6 -86
  56. package/lib/locale/sk-SK.js +6 -86
  57. package/lib/locale/vi-VN.js +6 -86
  58. package/lib/locale/zh-CN.js +6 -86
  59. package/lib/locale/zh-HK.js +93 -0
  60. package/lib/locale/zh-TW.js +6 -86
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +6 -78
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -0
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -0
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -0
  78. package/lib/umd/locale/it-IT.js +1 -0
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -0
  82. package/lib/umd/locale/pt-BR.js +1 -0
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -0
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +14 -14
  90. package/LICENSE +0 -176
package/lib/cjs/index.js CHANGED
@@ -45,7 +45,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
45
45
 
46
46
  //#region package.json
47
47
  var name = "@univerjs/sheets-data-validation-ui";
48
- var version = "0.23.0";
48
+ var version = "0.24.0-insiders.20260528-29f582d";
49
49
 
50
50
  //#endregion
51
51
  //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
@@ -238,7 +238,7 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
238
238
  if (await this._sheetsDataValidationValidatorService.validatorCell(unitId, subUnitId, row, col) === _univerjs_core.DataValidationStatus.VALID) return next(Promise.resolve(true));
239
239
  this._dialogService.open({
240
240
  width: 368,
241
- title: { title: this._localeService.t("dataValidation.alert.title") },
241
+ title: { title: this._localeService.t("sheets-data-validation-ui.alert.title") },
242
242
  id: "reject-input-dialog",
243
243
  children: { title: validator.getRuleFinalError(rule, {
244
244
  row,
@@ -249,7 +249,7 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
249
249
  footer: { title: (0, react.createElement)(_univerjs_design.Button, {
250
250
  variant: "primary",
251
251
  onClick: () => this._dialogService.close("reject-input-dialog")
252
- }, this._localeService.t("dataValidation.alert.ok")) },
252
+ }, this._localeService.t("sheets-data-validation-ui.alert.ok")) },
253
253
  onClose: () => {
254
254
  this._dialogService.close("reject-input-dialog");
255
255
  }
@@ -260,13 +260,13 @@ let DataValidationRejectInputController = class DataValidationRejectInputControl
260
260
  showReject(title) {
261
261
  this._dialogService.open({
262
262
  width: 368,
263
- title: { title: this._localeService.t("dataValidation.alert.title") },
263
+ title: { title: this._localeService.t("sheets-data-validation-ui.alert.title") },
264
264
  id: "reject-input-dialog",
265
265
  children: { title },
266
266
  footer: { title: (0, react.createElement)(_univerjs_design.Button, {
267
267
  variant: "primary",
268
268
  onClick: () => this._dialogService.close("reject-input-dialog")
269
- }, this._localeService.t("dataValidation.alert.ok")) },
269
+ }, this._localeService.t("sheets-data-validation-ui.alert.ok")) },
270
270
  onClose: () => {
271
271
  this._dialogService.close("reject-input-dialog");
272
272
  }
@@ -334,7 +334,7 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
334
334
  }));
335
335
  }
336
336
  _getDropdownByCell(unitId, subUnitId, row, col) {
337
- const workbook = unitId ? this._univerInstanceService.getUnit(unitId, _univerjs_core.UniverInstanceType.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
337
+ const workbook = unitId ? this._univerInstanceService.getUnit(unitId, _univerjs_core.UniverInstanceType.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
338
338
  if (!workbook) return;
339
339
  const worksheet = subUnitId ? workbook.getSheetBySheetId(subUnitId) : workbook.getActiveSheet();
340
340
  if (!worksheet) return;
@@ -461,7 +461,7 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
461
461
  var _this$_configService$, _this$_configService$2, _this$_configService$3, _this$_configService$4;
462
462
  const multiple = validator.dropdownType === _univerjs_data_validation.DataValidatorDropdownType.MULTIPLE_LIST;
463
463
  const handleSave = async (newValue) => {
464
- const str = (0, _univerjs_sheets_data_validation.serializeListOptions)(newValue);
464
+ const str = (0, _univerjs_sheets.serializeListOptions)(newValue);
465
465
  const params = {
466
466
  unitId,
467
467
  subUnitId,
@@ -679,7 +679,7 @@ const OpenValidationPanelOperation = {
679
679
  });
680
680
  const disposable = sidebarService.open({
681
681
  id: DATA_VALIDATION_PANEL,
682
- header: { title: isAdd ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
682
+ header: { title: isAdd ? "sheets-data-validation-ui.panel.addTitle" : "sheets-data-validation-ui.panel.title" },
683
683
  children: { label: DATA_VALIDATION_PANEL },
684
684
  width: 312,
685
685
  onClose: () => dataValidationPanelService.close()
@@ -807,7 +807,7 @@ let DataValidationAlertController = class DataValidationAlertController extends
807
807
  }
808
808
  this._cellAlertManagerService.showAlert({
809
809
  type: _univerjs_sheets_ui.CellAlertType.ERROR,
810
- title: this._localeService.t("dataValidation.error.title"),
810
+ title: this._localeService.t("sheets-data-validation-ui.error.title"),
811
811
  message: validator === null || validator === void 0 ? void 0 : validator.getRuleFinalError(rule, cellPos.location),
812
812
  location: cellPos.location,
813
813
  width: 200,
@@ -1115,7 +1115,7 @@ let DataValidationPermissionController = class DataValidationPermissionControlle
1115
1115
  workbookTypes: [_univerjs_sheets.WorkbookEditablePermission],
1116
1116
  rangeTypes: [_univerjs_sheets.RangeProtectionPermissionEditPoint],
1117
1117
  worksheetTypes: [_univerjs_sheets.WorksheetEditPermission, _univerjs_sheets.WorksheetSetCellStylePermission]
1118
- }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
1118
+ }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-data-validation-ui.permission.dialog.setStyleErr"));
1119
1119
  }
1120
1120
  if (command.id === _univerjs_sheets_data_validation.UpdateSheetDataValidationRangeCommand.id) {
1121
1121
  const { unitId, subUnitId, ranges } = command.params;
@@ -1123,7 +1123,7 @@ let DataValidationPermissionController = class DataValidationPermissionControlle
1123
1123
  workbookTypes: [_univerjs_sheets.WorkbookEditablePermission],
1124
1124
  rangeTypes: [_univerjs_sheets.RangeProtectionPermissionEditPoint],
1125
1125
  worksheetTypes: [_univerjs_sheets.WorksheetEditPermission, _univerjs_sheets.WorksheetSetCellStylePermission]
1126
- }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
1126
+ }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-data-validation-ui.permission.dialog.setStyleErr"));
1127
1127
  }
1128
1128
  }));
1129
1129
  }
@@ -1142,7 +1142,7 @@ function dataValidationMenuFactory(accessor) {
1142
1142
  id: DATA_VALIDATION_MENU_ID,
1143
1143
  type: _univerjs_ui.MenuItemType.SUBITEMS,
1144
1144
  icon: "DataValidationIcon",
1145
- tooltip: "dataValidation.title",
1145
+ tooltip: "sheets-data-validation-ui.title",
1146
1146
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
1147
1147
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
1148
1148
  workbookTypes: [_univerjs_sheets.WorkbookEditablePermission],
@@ -1154,14 +1154,14 @@ function dataValidationMenuFactory(accessor) {
1154
1154
  function openDataValidationMenuFactory(_accessor) {
1155
1155
  return {
1156
1156
  id: OpenValidationPanelOperation.id,
1157
- title: "dataValidation.panel.title",
1157
+ title: "sheets-data-validation-ui.panel.title",
1158
1158
  type: _univerjs_ui.MenuItemType.BUTTON
1159
1159
  };
1160
1160
  }
1161
1161
  function addDataValidationMenuFactory(_accessor) {
1162
1162
  return {
1163
1163
  id: AddSheetDataValidationAndOpenCommand.id,
1164
- title: "dataValidation.panel.add",
1164
+ title: "sheets-data-validation-ui.panel.add",
1165
1165
  type: _univerjs_ui.MenuItemType.BUTTON
1166
1166
  };
1167
1167
  }
@@ -1506,14 +1506,14 @@ function DataValidationOptions(props) {
1506
1506
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1507
1507
  className: "univer-mb-3 univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-text-gray-900 dark:!univer-text-white",
1508
1508
  onClick: () => setShow(!show),
1509
- children: [localeService.t("dataValidation.panel.options"), show ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreUpIcon, { className: "univer-ml-1" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreDownIcon, { className: "univer-ml-1" })]
1509
+ children: [localeService.t("sheets-data-validation-ui.panel.options"), show ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreUpIcon, { className: "univer-ml-1" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreDownIcon, { className: "univer-ml-1" })]
1510
1510
  }), show && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
1511
1511
  ExtraOptions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExtraOptions, {
1512
1512
  value,
1513
1513
  onChange
1514
1514
  }) : null,
1515
1515
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
1516
- label: localeService.t("dataValidation.panel.invalid"),
1516
+ label: localeService.t("sheets-data-validation-ui.panel.invalid"),
1517
1517
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
1518
1518
  value: `${(_value$errorStyle = value.errorStyle) !== null && _value$errorStyle !== void 0 ? _value$errorStyle : _univerjs_core.DataValidationErrorStyle.WARNING}`,
1519
1519
  onChange: (errorStyle) => onChange({
@@ -1522,22 +1522,22 @@ function DataValidationOptions(props) {
1522
1522
  }),
1523
1523
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
1524
1524
  value: `${_univerjs_core.DataValidationErrorStyle.WARNING}`,
1525
- children: localeService.t("dataValidation.panel.showWarning")
1525
+ children: localeService.t("sheets-data-validation-ui.panel.showWarning")
1526
1526
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
1527
1527
  value: `${_univerjs_core.DataValidationErrorStyle.STOP}`,
1528
- children: localeService.t("dataValidation.panel.rejectInput")
1528
+ children: localeService.t("sheets-data-validation-ui.panel.rejectInput")
1529
1529
  })]
1530
1530
  })
1531
1531
  }),
1532
1532
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
1533
- label: localeService.t("dataValidation.panel.messageInfo"),
1533
+ label: localeService.t("sheets-data-validation-ui.panel.messageInfo"),
1534
1534
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
1535
1535
  checked: value.showErrorMessage,
1536
1536
  onChange: () => onChange({
1537
1537
  ...value,
1538
1538
  showErrorMessage: !value.showErrorMessage
1539
1539
  }),
1540
- children: localeService.t("dataValidation.panel.showInfo")
1540
+ children: localeService.t("sheets-data-validation-ui.panel.showInfo")
1541
1541
  })
1542
1542
  }),
1543
1543
  value.showErrorMessage ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
@@ -1562,7 +1562,7 @@ function getSheetIdByName(univerInstanceService, unitId, name) {
1562
1562
  var _univerInstanceServic;
1563
1563
  return ((_univerInstanceServic = univerInstanceService.getUnit(unitId)) === null || _univerInstanceServic === void 0 || (_univerInstanceServic = _univerInstanceServic.getSheetBySheetName(name)) === null || _univerInstanceServic === void 0 ? void 0 : _univerInstanceServic.getSheetId()) || "";
1564
1564
  }
1565
- return ((_univerInstanceServic2 = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetName(name)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getSheetId()) || "";
1565
+ return ((_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetName(name)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getSheetId()) || "";
1566
1566
  }
1567
1567
  function DataValidationDetail() {
1568
1568
  var _validators$sort, _localRule$allowBlank;
@@ -1750,8 +1750,8 @@ function DataValidationDetail() {
1750
1750
  className: "univer-py-2",
1751
1751
  children: [
1752
1752
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
1753
- label: localeService.t("dataValidation.panel.range"),
1754
- error: !localRule.ranges.length || isRangeError ? localeService.t("dataValidation.panel.rangeError") : "",
1753
+ label: localeService.t("sheets-data-validation-ui.panel.range"),
1754
+ error: !localRule.ranges.length || isRangeError ? localeService.t("sheets-data-validation-ui.panel.rangeError") : "",
1755
1755
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_sheets_formula_ui.RangeSelector, {
1756
1756
  selectorRef: rangeSelectorInstance,
1757
1757
  unitId,
@@ -1770,7 +1770,7 @@ function DataValidationDetail() {
1770
1770
  })
1771
1771
  }),
1772
1772
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
1773
- label: localeService.t("dataValidation.panel.type"),
1773
+ label: localeService.t("sheets-data-validation-ui.panel.type"),
1774
1774
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
1775
1775
  className: "univer-w-full",
1776
1776
  value: localRule.type,
@@ -1782,13 +1782,13 @@ function DataValidationDetail() {
1782
1782
  })
1783
1783
  }),
1784
1784
  (operators === null || operators === void 0 ? void 0 : operators.length) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
1785
- label: localeService.t("dataValidation.panel.operator"),
1785
+ label: localeService.t("sheets-data-validation-ui.panel.operator"),
1786
1786
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
1787
1787
  className: "univer-w-full",
1788
1788
  value: `${localRule.operator}`,
1789
1789
  options: [{
1790
1790
  value: "",
1791
- label: localeService.t("dataValidation.operators.legal")
1791
+ label: localeService.t("data-validation.operators.legal")
1792
1792
  }, ...operators.map((op, i) => ({
1793
1793
  value: `${op}`,
1794
1794
  label: operatorNames[i]
@@ -1828,7 +1828,7 @@ function DataValidationDetail() {
1828
1828
  allowBlank: !((_localRule$allowBlank2 = localRule.allowBlank) !== null && _localRule$allowBlank2 !== void 0 ? _localRule$allowBlank2 : true)
1829
1829
  });
1830
1830
  },
1831
- children: localeService.t("dataValidation.panel.allowBlank")
1831
+ children: localeService.t("sheets-data-validation-ui.panel.allowBlank")
1832
1832
  }) }),
1833
1833
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationOptions, {
1834
1834
  value: options,
@@ -1840,12 +1840,12 @@ function DataValidationDetail() {
1840
1840
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1841
1841
  className: "univer-ml-3",
1842
1842
  onClick: handleDelete,
1843
- children: localeService.t("dataValidation.panel.removeRule")
1843
+ children: localeService.t("sheets-data-validation-ui.panel.removeRule")
1844
1844
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1845
1845
  className: "univer-ml-3",
1846
1846
  variant: "primary",
1847
1847
  onClick: handleOk,
1848
- children: localeService.t("dataValidation.panel.done")
1848
+ children: localeService.t("sheets-data-validation-ui.panel.done")
1849
1849
  })]
1850
1850
  })
1851
1851
  ]
@@ -1981,7 +1981,7 @@ function DataValidationList(props) {
1981
1981
  });
1982
1982
  };
1983
1983
  const getDvRulesByPermissionCorrect = (rules) => {
1984
- const workbook = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
1984
+ const workbook = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
1985
1985
  const worksheet = workbook.getActiveSheet();
1986
1986
  const unitId = workbook.getUnitId();
1987
1987
  const subUnitId = worksheet.getSheetId();
@@ -2017,11 +2017,11 @@ function DataValidationList(props) {
2017
2017
  className: "univer-mt-4 univer-flex univer-flex-row univer-justify-end univer-gap-2",
2018
2018
  children: [rules.length && !hasDisableRule ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2019
2019
  onClick: handleRemoveAll,
2020
- children: localeService.t("dataValidation.panel.removeAll")
2020
+ children: localeService.t("sheets-data-validation-ui.panel.removeAll")
2021
2021
  }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2022
2022
  variant: "primary",
2023
2023
  onClick: handleAddRule,
2024
- children: localeService.t("dataValidation.panel.add")
2024
+ children: localeService.t("sheets-data-validation-ui.panel.add")
2025
2025
  })]
2026
2026
  })]
2027
2027
  });
@@ -2054,7 +2054,7 @@ const BaseFormulaInput = (props) => {
2054
2054
  error: formula1Res,
2055
2055
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
2056
2056
  className: "univer-w-full",
2057
- placeholder: localeService.t("dataValidation.panel.formulaPlaceholder"),
2057
+ placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
2058
2058
  value: value === null || value === void 0 ? void 0 : value.formula1,
2059
2059
  onChange: (newValue) => {
2060
2060
  onChange === null || onChange === void 0 || onChange({
@@ -2066,13 +2066,13 @@ const BaseFormulaInput = (props) => {
2066
2066
  }),
2067
2067
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2068
2068
  className: "-univer-mt-2 univer-mb-1 univer-text-sm univer-text-gray-400",
2069
- children: localeService.t("dataValidation.panel.formulaAnd")
2069
+ children: localeService.t("sheets-data-validation-ui.panel.formulaAnd")
2070
2070
  }),
2071
2071
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
2072
2072
  error: formula2Res,
2073
2073
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
2074
2074
  className: "univer-w-full",
2075
- placeholder: localeService.t("dataValidation.panel.formulaPlaceholder"),
2075
+ placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
2076
2076
  value: value === null || value === void 0 ? void 0 : value.formula2,
2077
2077
  onChange: (newValue) => {
2078
2078
  onChange === null || onChange === void 0 || onChange({
@@ -2087,7 +2087,7 @@ const BaseFormulaInput = (props) => {
2087
2087
  error: formula1Res,
2088
2088
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
2089
2089
  className: "univer-w-full",
2090
- placeholder: localeService.t("dataValidation.panel.formulaPlaceholder"),
2090
+ placeholder: localeService.t("sheets-data-validation-ui.panel.formulaPlaceholder"),
2091
2091
  value: value === null || value === void 0 ? void 0 : value.formula1,
2092
2092
  onChange: (newValue) => {
2093
2093
  onChange === null || onChange === void 0 || onChange({ formula1: newValue });
@@ -2118,14 +2118,14 @@ function CheckboxFormulaInput(props) {
2118
2118
  });
2119
2119
  }
2120
2120
  },
2121
- children: localeService.t("dataValidation.checkbox.tips")
2121
+ children: localeService.t("sheets-data-validation-ui.checkbox.tips")
2122
2122
  }) }),
2123
2123
  checked ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
2124
- label: localeService.t("dataValidation.checkbox.checked"),
2124
+ label: localeService.t("sheets-data-validation-ui.checkbox.checked"),
2125
2125
  error: formula1Res,
2126
2126
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
2127
2127
  className: "univer-w-full",
2128
- placeholder: localeService.t("dataValidation.panel.valuePlaceholder"),
2128
+ placeholder: localeService.t("sheets-data-validation-ui.panel.valuePlaceholder"),
2129
2129
  value: value === null || value === void 0 ? void 0 : value.formula1,
2130
2130
  onChange: (newValue) => {
2131
2131
  onChange === null || onChange === void 0 || onChange({
@@ -2136,11 +2136,11 @@ function CheckboxFormulaInput(props) {
2136
2136
  })
2137
2137
  }) : null,
2138
2138
  checked ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
2139
- label: localeService.t("dataValidation.checkbox.unchecked"),
2139
+ label: localeService.t("sheets-data-validation-ui.checkbox.unchecked"),
2140
2140
  error: formula2Res,
2141
2141
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
2142
2142
  className: "univer-w-full",
2143
- placeholder: localeService.t("dataValidation.panel.valuePlaceholder"),
2143
+ placeholder: localeService.t("sheets-data-validation-ui.panel.valuePlaceholder"),
2144
2144
  value: value === null || value === void 0 ? void 0 : value.formula2,
2145
2145
  onChange: (newValue) => {
2146
2146
  onChange === null || onChange === void 0 || onChange({
@@ -2294,9 +2294,7 @@ function ListFormulaInput(props) {
2294
2294
  const onChange = (0, _univerjs_ui.useEvent)(_onChange);
2295
2295
  (0, react.useEffect)(() => {
2296
2296
  (async () => {
2297
- await new Promise((resolve) => {
2298
- setTimeout(() => resolve(true), 100);
2299
- });
2297
+ await (0, _univerjs_core.awaitTime)(100);
2300
2298
  const rule = dataValidationModel.getRuleById(unitId, subUnitId, ruleId);
2301
2299
  if ((0, _univerjs_core.isFormulaString)(rule === null || rule === void 0 ? void 0 : rule.formula1) && listValidator && rule) setRefOptions(await listValidator.getListAsync(rule, unitId, subUnitId));
2302
2300
  })();
@@ -2315,7 +2313,7 @@ function ListFormulaInput(props) {
2315
2313
  }
2316
2314
  }, [formulaStrCopy, formula1]);
2317
2315
  const [strList, setStrList] = (0, react.useState)(() => {
2318
- const strOptions = isFormulaStr !== "1" ? (0, _univerjs_sheets_data_validation.deserializeListOptions)(formula1) : [];
2316
+ const strOptions = isFormulaStr !== "1" ? (0, _univerjs_sheets.deserializeListOptions)(formula1) : [];
2319
2317
  const strColors = formula2.split(",");
2320
2318
  return strOptions.map((label, i) => ({
2321
2319
  label,
@@ -2383,7 +2381,7 @@ function ListFormulaInput(props) {
2383
2381
  });
2384
2382
  });
2385
2383
  onChange({
2386
- formula1: (0, _univerjs_sheets_data_validation.serializeListOptions)(finalList.map((item) => item.label)),
2384
+ formula1: (0, _univerjs_sheets.serializeListOptions)(finalList.map((item) => item.label)),
2387
2385
  formula2: finalList.map((item) => item.color === "#ECECEC" ? "" : item.color).join(",")
2388
2386
  });
2389
2387
  }, [
@@ -2413,7 +2411,7 @@ function ListFormulaInput(props) {
2413
2411
  formula2
2414
2412
  });
2415
2413
  setFormulaStr("=");
2416
- setLocalError(localeService.t("dataValidation.validFail.formulaError"));
2414
+ setLocalError(localeService.t("sheets-data-validation-ui.validFail.formulaError"));
2417
2415
  }
2418
2416
  });
2419
2417
  const formulaEditorRef = (0, react.useRef)(null);
@@ -2431,7 +2429,7 @@ function ListFormulaInput(props) {
2431
2429
  dataValidationPanelService
2432
2430
  ]);
2433
2431
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
2434
- label: localeService.t("dataValidation.list.options"),
2432
+ label: localeService.t("sheets-data-validation-ui.list.options"),
2435
2433
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
2436
2434
  value: isFormulaStr,
2437
2435
  onChange: (v) => {
@@ -2444,10 +2442,10 @@ function ListFormulaInput(props) {
2444
2442
  },
2445
2443
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2446
2444
  value: "0",
2447
- children: localeService.t("dataValidation.list.customOptions")
2445
+ children: localeService.t("sheets-data-validation-ui.list.customOptions")
2448
2446
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2449
2447
  value: "1",
2450
- children: localeService.t("dataValidation.list.refOptions")
2448
+ children: localeService.t("sheets-data-validation-ui.list.refOptions")
2451
2449
  })]
2452
2450
  })
2453
2451
  }), isFormulaStr === "1" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.FormLayout, {
@@ -2497,7 +2495,7 @@ function ListFormulaInput(props) {
2497
2495
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
2498
2496
  className: "univer-text-primary univer-flex univer-w-fit univer-cursor-pointer univer-flex-row univer-items-center univer-rounded univer-p-1 univer-px-2 univer-text-sm hover:univer-bg-primary-50 dark:hover:!univer-bg-gray-800",
2499
2497
  onClick: handleAdd,
2500
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.IncreaseIcon, { className: "univer-mr-1" }), localeService.t("dataValidation.list.add")]
2498
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.IncreaseIcon, { className: "univer-mr-1" }), localeService.t("sheets-data-validation-ui.list.add")]
2501
2499
  })]
2502
2500
  })
2503
2501
  })] });
@@ -2520,7 +2518,7 @@ function ListRenderModeInput(props) {
2520
2518
  const { value, onChange } = props;
2521
2519
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
2522
2520
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
2523
- label: localeService.t("dataValidation.renderMode.label"),
2521
+ label: localeService.t("sheets-data-validation-ui.renderMode.label"),
2524
2522
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
2525
2523
  value: `${(_value$renderMode = value.renderMode) !== null && _value$renderMode !== void 0 ? _value$renderMode : _univerjs_core.DataValidationRenderMode.CUSTOM}`,
2526
2524
  onChange: (renderMode) => onChange({
@@ -2530,15 +2528,15 @@ function ListRenderModeInput(props) {
2530
2528
  children: [
2531
2529
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2532
2530
  value: `${_univerjs_core.DataValidationRenderMode.CUSTOM}`,
2533
- children: localeService.t("dataValidation.renderMode.chip")
2531
+ children: localeService.t("sheets-data-validation-ui.renderMode.chip")
2534
2532
  }),
2535
2533
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2536
2534
  value: `${_univerjs_core.DataValidationRenderMode.ARROW}`,
2537
- children: localeService.t("dataValidation.renderMode.arrow")
2535
+ children: localeService.t("sheets-data-validation-ui.renderMode.arrow")
2538
2536
  }),
2539
2537
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
2540
2538
  value: `${_univerjs_core.DataValidationRenderMode.TEXT}`,
2541
- children: localeService.t("dataValidation.renderMode.text")
2539
+ children: localeService.t("sheets-data-validation-ui.renderMode.text")
2542
2540
  })
2543
2541
  ]
2544
2542
  })
@@ -2564,7 +2562,7 @@ function DateShowTimeOption(props) {
2564
2562
  }
2565
2563
  });
2566
2564
  },
2567
- children: localeService.t("dataValidation.showTime.label")
2565
+ children: localeService.t("sheets-data-validation-ui.showTime.label")
2568
2566
  }) });
2569
2567
  }
2570
2568
  DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
@@ -0,0 +1,94 @@
1
+
2
+ //#region src/locale/ar-SA.ts
3
+ const locale = { "sheets-data-validation-ui": {
4
+ title: "التحقق من صحة البيانات",
5
+ validFail: {
6
+ value: "يُرجى إدخال قيمة",
7
+ common: "يُرجى إدخال قيمة أو صيغة",
8
+ number: "يُرجى إدخال رقم أو صيغة",
9
+ formula: "يُرجى إدخال صيغة",
10
+ integer: "يُرجى إدخال عدد صحيح أو صيغة",
11
+ date: "يُرجى إدخال تاريخ أو صيغة",
12
+ list: "يُرجى إدخال خيارات",
13
+ listInvalid: "يجب أن يكون مصدر القائمة قائمة مفصولة بالفواصل أو مرجعًا لصف أو عمود واحد",
14
+ checkboxEqual: "أدخل قيمًا مختلفة لمحتويات الخلية المحددة وغير المحددة.",
15
+ formulaError: "يحتوي نطاق المرجع على بيانات غير مرئية، يُرجى إعادة ضبط النطاق",
16
+ listIntersects: "لا يمكن أن يتقاطع النطاق المحدد مع نطاق القواعد",
17
+ primitive: "الصيغ غير مسموح بها للقيم المخصصة المحددة وغير المحددة."
18
+ },
19
+ panel: {
20
+ title: "إدارة التحقق من صحة البيانات",
21
+ addTitle: "إنشاء تحقق جديد من صحة البيانات",
22
+ removeAll: "إزالة الكل",
23
+ add: "إضافة قاعدة",
24
+ range: "النطاقات",
25
+ type: "النوع",
26
+ options: "خيارات متقدمة",
27
+ operator: "المشغل",
28
+ removeRule: "إزالة",
29
+ done: "تم",
30
+ formulaPlaceholder: "يُرجى إدخال قيمة أو صيغة",
31
+ valuePlaceholder: "يُرجى إدخال قيمة",
32
+ formulaAnd: "و",
33
+ invalid: "غير صالح",
34
+ showWarning: "إظهار التحذير",
35
+ rejectInput: "رفض الإدخال",
36
+ messageInfo: "رسالة مساعدة",
37
+ showInfo: "إظهار نص المساعدة للخلية المحددة",
38
+ rangeError: "النطاقات غير قانونية",
39
+ allowBlank: "السماح بالقيم الفارغة"
40
+ },
41
+ any: {
42
+ title: "أي قيمة",
43
+ error: "محتوى هذه الخلية ينتهك قاعدة التحقق"
44
+ },
45
+ date: { title: "تاريخ" },
46
+ list: {
47
+ title: "قائمة منسدلة",
48
+ name: "القيمة تحتوي على واحدة من النطاق",
49
+ error: "يجب أن يكون الإدخال ضمن النطاق المحدد",
50
+ emptyError: "يُرجى إدخال قيمة",
51
+ add: "إضافة",
52
+ dropdown: "تحديد",
53
+ options: "خيارات",
54
+ customOptions: "مخصص",
55
+ refOptions: "من نطاق",
56
+ formulaError: "يجب أن يكون مصدر القائمة قائمة بيانات مفصولة بالفواصل، أو مرجعًا لصف أو عمود واحد.",
57
+ edit: "تحرير"
58
+ },
59
+ listMultiple: {
60
+ title: "قائمة منسدلة - متعددة",
61
+ dropdown: "تحديد متعدد"
62
+ },
63
+ textLength: { title: "طول النص" },
64
+ decimal: { title: "رقم" },
65
+ whole: { title: "عدد صحيح" },
66
+ checkbox: {
67
+ title: "خانة اختيار",
68
+ error: "محتوى هذه الخلية ينتهك قاعدة التحقق",
69
+ tips: "استخدم قيمًا مخصصة داخل الخلايا",
70
+ checked: "القيمة المحددة",
71
+ unchecked: "القيمة غير المحددة"
72
+ },
73
+ custom: {
74
+ title: "صيغة مخصصة",
75
+ error: "محتوى هذه الخلية ينتهك قاعدة التحقق",
76
+ validFail: "يُرجى إدخال صيغة صالحة"
77
+ },
78
+ alert: {
79
+ title: "خطأ",
80
+ ok: "موافق"
81
+ },
82
+ error: { title: "غير صالح:" },
83
+ renderMode: {
84
+ arrow: "سهم",
85
+ chip: "رقاقة",
86
+ text: "نص عادي",
87
+ label: "نمط العرض"
88
+ },
89
+ showTime: { label: "إظهار منتقي الوقت" },
90
+ permission: { dialog: { setStyleErr: "النطاق محمي، وليس لديك الإذن بتعيين الأنماط. لتعيين الأنماط، يُرجى التواصل مع المنشئ." } }
91
+ } };
92
+
93
+ //#endregion
94
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ca-ES.ts
3
- const locale = { dataValidation: {
3
+ const locale = { "sheets-data-validation-ui": {
4
4
  title: "Validació de dades",
5
5
  validFail: {
6
6
  value: "Si us plau, introdueix un valor",
@@ -38,79 +38,11 @@ const locale = { dataValidation: {
38
38
  rangeError: "Els intervals no són vàlids",
39
39
  allowBlank: "Permet valors en blanc"
40
40
  },
41
- operators: {
42
- between: "entre",
43
- greaterThan: "més gran que",
44
- greaterThanOrEqual: "més gran o igual que",
45
- lessThan: "menys que",
46
- lessThanOrEqual: "menys o igual que",
47
- equal: "igual",
48
- notEqual: "no igual",
49
- notBetween: "no entre",
50
- legal: "és tipus legal"
51
- },
52
- ruleName: {
53
- between: "Està entre {FORMULA1} i {FORMULA2}",
54
- greaterThan: "És més gran que {FORMULA1}",
55
- greaterThanOrEqual: "És més gran o igual que {FORMULA1}",
56
- lessThan: "És menys que {FORMULA1}",
57
- lessThanOrEqual: "És menys o igual que {FORMULA1}",
58
- equal: "És igual a {FORMULA1}",
59
- notEqual: "No és igual a {FORMULA1}",
60
- notBetween: "No està entre {FORMULA1} i {FORMULA2}",
61
- legal: "És un {TYPE} legal"
62
- },
63
- errorMsg: {
64
- between: "El valor ha d’estar entre {FORMULA1} i {FORMULA2}",
65
- greaterThan: "El valor ha de ser més gran que {FORMULA1}",
66
- greaterThanOrEqual: "El valor ha de ser més gran o igual que {FORMULA1}",
67
- lessThan: "El valor ha de ser menys que {FORMULA1}",
68
- lessThanOrEqual: "El valor ha de ser menys o igual que {FORMULA1}",
69
- equal: "El valor ha de ser igual a {FORMULA1}",
70
- notEqual: "El valor no ha de ser igual a {FORMULA1}",
71
- notBetween: "El valor no ha d’estar entre {FORMULA1} i {FORMULA2}",
72
- legal: "El valor ha de ser un {TYPE} legal"
73
- },
74
41
  any: {
75
42
  title: "Qualsevol valor",
76
43
  error: "El contingut d’aquesta cel·la incompleix la regla de validació"
77
44
  },
78
- date: {
79
- title: "Data",
80
- operators: {
81
- between: "entre",
82
- greaterThan: "després de",
83
- greaterThanOrEqual: "en o després de",
84
- lessThan: "abans de",
85
- lessThanOrEqual: "en o abans de",
86
- equal: "igual",
87
- notEqual: "no igual",
88
- notBetween: "no entre",
89
- legal: "és una data legal"
90
- },
91
- ruleName: {
92
- between: "està entre {FORMULA1} i {FORMULA2}",
93
- greaterThan: "és després de {FORMULA1}",
94
- greaterThanOrEqual: "és en o després de {FORMULA1}",
95
- lessThan: "és abans de {FORMULA1}",
96
- lessThanOrEqual: "és en o abans de {FORMULA1}",
97
- equal: "és {FORMULA1}",
98
- notEqual: "no és {FORMULA1}",
99
- notBetween: "no està entre {FORMULA1}",
100
- legal: "és una data legal"
101
- },
102
- errorMsg: {
103
- between: "El valor ha de ser una data legal i estar entre {FORMULA1} i {FORMULA2}",
104
- greaterThan: "El valor ha de ser una data legal i després de {FORMULA1}",
105
- greaterThanOrEqual: "El valor ha de ser una data legal i en o després de {FORMULA1}",
106
- lessThan: "El valor ha de ser una data legal i abans de {FORMULA1}",
107
- lessThanOrEqual: "El valor ha de ser una data legal i en o abans de {FORMULA1}",
108
- equal: "El valor ha de ser una data legal i {FORMULA1}",
109
- notEqual: "El valor ha de ser una data legal i no {FORMULA1}",
110
- notBetween: "El valor ha de ser una data legal i no estar entre {FORMULA1}",
111
- legal: "El valor ha de ser una data legal"
112
- }
113
- },
45
+ date: { title: "Data" },
114
46
  list: {
115
47
  title: "Desplegable",
116
48
  name: "El valor conté un del rang",
@@ -128,19 +60,7 @@ const locale = { dataValidation: {
128
60
  title: "Desplegable-múltiple",
129
61
  dropdown: "Selecció múltiple"
130
62
  },
131
- textLength: {
132
- title: "Longitud del text",
133
- errorMsg: {
134
- between: "La longitud del text ha d’estar entre {FORMULA1} i {FORMULA2}",
135
- greaterThan: "La longitud del text ha de ser més gran que {FORMULA1}",
136
- greaterThanOrEqual: "La longitud del text ha de ser més gran o igual que {FORMULA1}",
137
- lessThan: "La longitud del text ha de ser menys que {FORMULA1}",
138
- lessThanOrEqual: "La longitud del text ha de ser menys o igual que {FORMULA1}",
139
- equal: "La longitud del text ha de ser {FORMULA1}",
140
- notEqual: "La longitud del text no ha de ser {FORMULA1}",
141
- notBetween: "La longitud del text no ha d’estar entre {FORMULA1}"
142
- }
143
- },
63
+ textLength: { title: "Longitud del text" },
144
64
  decimal: { title: "Número" },
145
65
  whole: { title: "Enter" },
146
66
  checkbox: {
@@ -153,8 +73,7 @@ const locale = { dataValidation: {
153
73
  custom: {
154
74
  title: "Fórmula personalitzada",
155
75
  error: "El contingut d’aquesta cel·la incompleix la seva regla de validació",
156
- validFail: "Si us plau, introdueix una fórmula vàlida",
157
- ruleName: "La fórmula personalitzada és {FORMULA1}"
76
+ validFail: "Si us plau, introdueix una fórmula vàlida"
158
77
  },
159
78
  alert: {
160
79
  title: "Error",
@@ -167,7 +86,8 @@ const locale = { dataValidation: {
167
86
  text: "Text pla",
168
87
  label: "Estil de visualització"
169
88
  },
170
- showTime: { label: "Mostra el selector d’hora" }
89
+ showTime: { label: "Mostra el selector d’hora" },
90
+ permission: { dialog: { setStyleErr: "L'interval està protegit i no teniu permís per establir estils. Per establir estils, contacteu amb el creador." } }
171
91
  } };
172
92
 
173
93
  //#endregion