@univerjs/sheets-conditional-formatting-ui 0.1.12 → 0.1.13

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.
@@ -0,0 +1,154 @@
1
+ {
2
+ "sheet": {
3
+ "cf": {
4
+ "title": "Conditional Formatting",
5
+ "menu": {
6
+ "manageConditionalFormatting": "Manage Conditional Formatting",
7
+ "createConditionalFormatting": "Create Conditional Formatting",
8
+ "clearRangeRules": "Clear Rules for Selected Range",
9
+ "clearWorkSheetRules": "Clear Rules for Entire Sheet"
10
+ },
11
+ "form": {
12
+ "lessThan": "The value must be less than {0}",
13
+ "lessThanOrEqual": "The value must be less than or equal to {0}",
14
+ "greaterThan": "The value must be greater than {0}",
15
+ "greaterThanOrEqual": "The value must be greater than or equal to {0}",
16
+ "rangeSelector": "Select Range or Enter Value"
17
+ },
18
+ "iconSet": {
19
+ "direction": "Direction",
20
+ "shape": "Shape",
21
+ "mark": "Mark",
22
+ "rank": "Rank",
23
+ "rule": "Rule",
24
+ "icon": "Icon",
25
+ "type": "Type",
26
+ "value": "Value",
27
+ "reverseIconOrder": "Reverse Icon Order",
28
+ "and": "And",
29
+ "when": "When",
30
+ "onlyShowIcon": "Only Show Icon"
31
+ },
32
+ "symbol": {
33
+ "greaterThan": ">",
34
+ "greaterThanOrEqual": ">=",
35
+ "lessThan": "<",
36
+ "lessThanOrEqual": "<="
37
+ },
38
+ "panel": {
39
+ "createRule": "Create Rule",
40
+ "clear": "Clear All Rules",
41
+ "range": "Apply Range",
42
+ "styleType": "Style Type",
43
+ "submit": "Submit",
44
+ "cancel": "Cancel",
45
+ "rankAndAverage": "Top/Bottom/Average",
46
+ "styleRule": "Style Rule",
47
+ "isNotBottom": "Top",
48
+ "isBottom": "Bottom",
49
+ "greaterThanAverage": "Greater Than Average",
50
+ "lessThanAverage": "Less Than Average",
51
+ "medianValue": "Median Value",
52
+ "fillType": "Fill Type",
53
+ "pureColor": "Solid Color",
54
+ "gradient": "Gradient",
55
+ "colorSet": "Color Set",
56
+ "positive": "Positive",
57
+ "native": "Negative",
58
+ "workSheet": "Entire Sheet",
59
+ "selectedRange": "Selected Range",
60
+ "managerRuleSelect": "Manage {0} Rules",
61
+ "onlyShowDataBar": "Only Show Data Bars"
62
+ },
63
+ "preview": {
64
+ "describe": {
65
+ "beginsWith": "Begins with {0}",
66
+ "endsWith": "Ends with {0}",
67
+ "containsText": "Text contains {0}",
68
+ "notContainsText": "Text does not contain {0}",
69
+ "equal": "Equal to {0}",
70
+ "notEqual": "Not equal to {0}",
71
+ "containsBlanks": "Contains Blanks",
72
+ "notContainsBlanks": "Does not contain Blanks",
73
+ "containsErrors": "Contains Errors",
74
+ "notContainsErrors": "Does not contain Errors",
75
+ "greaterThan": "Greater than {0}",
76
+ "greaterThanOrEqual": "Greater than or equal to {0}",
77
+ "lessThan": "Less than {0}",
78
+ "lessThanOrEqual": "Less than or equal to {0}",
79
+ "notBetween": "Not between {0} and {1}",
80
+ "between": "Between {0} and {1}",
81
+ "yesterday": "Yesterday",
82
+ "tomorrow": "Tomorrow",
83
+ "last7Days": "Last 7 Days",
84
+ "thisMonth": "This Month",
85
+ "lastMonth": "Last Month",
86
+ "nextMonth": "Next Month",
87
+ "thisWeek": "This Week",
88
+ "lastWeek": "Last Week",
89
+ "nextWeek": "Next Week",
90
+ "today": "Today",
91
+ "topN": "Top {0}",
92
+ "bottomN": "Bottom {0}",
93
+ "topNPercent": "Top {0}%",
94
+ "bottomNPercent": "Bottom {0}%"
95
+ }
96
+ },
97
+ "operator": {
98
+ "beginsWith": "Begins with",
99
+ "endsWith": "Ends with",
100
+ "containsText": "Text contains",
101
+ "notContainsText": "Text does not contain",
102
+ "equal": "Equal to",
103
+ "notEqual": "Not equal to",
104
+ "containsBlanks": "Contains Blanks",
105
+ "notContainsBlanks": "Does not contain Blanks",
106
+ "containsErrors": "Contains Errors",
107
+ "notContainsErrors": "Does not contain Errors",
108
+ "greaterThan": "Greater than",
109
+ "greaterThanOrEqual": "Greater than or equal to",
110
+ "lessThan": "Less than",
111
+ "lessThanOrEqual": "Less than or equal to",
112
+ "notBetween": "Not between",
113
+ "between": "Between",
114
+ "yesterday": "Yesterday",
115
+ "tomorrow": "Tomorrow",
116
+ "last7Days": "Last 7 Days",
117
+ "thisMonth": "This Month",
118
+ "lastMonth": "Last Month",
119
+ "nextMonth": "Next Month",
120
+ "thisWeek": "This Week",
121
+ "lastWeek": "Last Week",
122
+ "nextWeek": "Next Week",
123
+ "today": "Today"
124
+ },
125
+ "ruleType": {
126
+ "highlightCell": "Highlight Cell",
127
+ "dataBar": "Data Bar",
128
+ "colorScale": "Color Scale",
129
+ "formula": "Custom Formula",
130
+ "iconSet": "Icon Set",
131
+ "duplicateValues": "Duplicate Values",
132
+ "uniqueValues": "Unique Values"
133
+ },
134
+ "subRuleType": {
135
+ "uniqueValues": "Unique Values",
136
+ "duplicateValues": "Duplicate Values",
137
+ "rank": "Rank",
138
+ "text": "Text",
139
+ "timePeriod": "Time Period",
140
+ "number": "Number",
141
+ "average": "Average"
142
+ },
143
+ "valueType": {
144
+ "num": "Number",
145
+ "min": "Minimum",
146
+ "max": "Maximum",
147
+ "percent": "Percentage",
148
+ "percentile": "Percentile",
149
+ "formula": "Formula",
150
+ "none": "None"
151
+ }
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "sheet": {
3
+ "cf": {
4
+ "title": "Условное форматирование",
5
+ "menu": {
6
+ "manageConditionalFormatting": "Управление условным форматированием",
7
+ "createConditionalFormatting": "Создание условного форматирования",
8
+ "clearRangeRules": "Очистить правила для выбранного диапазона",
9
+ "clearWorkSheetRules": "Очистить правила для всего листа"
10
+ },
11
+ "form": {
12
+ "lessThan": "Значение должно быть меньше {0}",
13
+ "lessThanOrEqual": "Значение должно быть меньше или равно {0}",
14
+ "greaterThan": "Значение должно быть больше {0}",
15
+ "greaterThanOrEqual": "Значение должно быть больше или равно {0}",
16
+ "rangeSelector": "Выберите диапазон или введите значение"
17
+ },
18
+ "iconSet": {
19
+ "direction": "Направление",
20
+ "shape": "Форма",
21
+ "mark": "Знак",
22
+ "rank": "Ранг",
23
+ "rule": "Правило",
24
+ "icon": "Иконка",
25
+ "type": "Тип",
26
+ "value": "Значение",
27
+ "reverseIconOrder": "Обратный порядок иконок",
28
+ "and": "И",
29
+ "when": "Когда",
30
+ "onlyShowIcon": "Показывать только иконку"
31
+ },
32
+ "symbol": {
33
+ "greaterThan": ">",
34
+ "greaterThanOrEqual": ">=",
35
+ "lessThan": "<",
36
+ "lessThanOrEqual": "<="
37
+ },
38
+ "panel": {
39
+ "createRule": "Создать правило",
40
+ "clear": "Очистить все правила",
41
+ "range": "Применить диапазон",
42
+ "styleType": "Тип стиля",
43
+ "submit": "Подтвердить",
44
+ "cancel": "Отменить",
45
+ "rankAndAverage": "Верх/Низ/Среднее",
46
+ "styleRule": "Правило стиля",
47
+ "isNotBottom": "Верх",
48
+ "isBottom": "Низ",
49
+ "greaterThanAverage": "Больше среднего",
50
+ "lessThanAverage": "Меньше среднего",
51
+ "medianValue": "Медианное значение",
52
+ "fillType": "Тип заполнения",
53
+ "pureColor": "Сплошной цвет",
54
+ "gradient": "Градиент",
55
+ "colorSet": "Набор цветов",
56
+ "positive": "Положительный",
57
+ "native": "Отрицательный",
58
+ "workSheet": "Весь лист",
59
+ "selectedRange": "Выбранный диапазон",
60
+ "managerRuleSelect": "Управление правилами {0}",
61
+ "onlyShowDataBar": "Показывать только гистограммы данных"
62
+ },
63
+ "preview": {
64
+ "describe": {
65
+ "beginsWith": "Начинается с {0}",
66
+ "endsWith": "Заканчивается на {0}",
67
+ "containsText": "Содержит текст {0}",
68
+ "notContainsText": "Не содержит текст {0}",
69
+ "equal": "Равно {0}",
70
+ "notEqual": "Не равно {0}",
71
+ "containsBlanks": "Содержит пустые ячейки",
72
+ "notContainsBlanks": "Не содержит пустых ячеек",
73
+ "containsErrors": "Содержит ошибки",
74
+ "notContainsErrors": "Не содержит ошибок",
75
+ "greaterThan": "Больше чем {0}",
76
+ "greaterThanOrEqual": "Больше или равно {0}",
77
+ "lessThan": "Меньше чем {0}",
78
+ "lessThanOrEqual": "Меньше или равно {0}",
79
+ "notBetween": "Не между {0} и {1}",
80
+ "between": "Между {0} и {1}",
81
+ "yesterday": "Вчера",
82
+ "tomorrow": "Завтра",
83
+ "last7Days": "Последние 7 дней",
84
+ "thisMonth": "Этот месяц",
85
+ "lastMonth": "Прошлый месяц",
86
+ "nextMonth": "Следующий месяц",
87
+ "thisWeek": "Эта неделя",
88
+ "lastWeek": "Прошлая неделя",
89
+ "nextWeek": "Следующая неделя",
90
+ "today": "Сегодня",
91
+ "topN": "Топ {0}",
92
+ "bottomN": "Низ {0}",
93
+ "topNPercent": "Топ {0}%",
94
+ "bottomNPercent": "Низ {0}%"
95
+ }
96
+ },
97
+ "operator": {
98
+ "beginsWith": "Начинается с",
99
+ "endsWith": "Заканчивается на",
100
+ "containsText": "Содержит текст",
101
+ "notContainsText": "Не содержит текст",
102
+ "equal": "Равно",
103
+ "notEqual": "Не равно",
104
+ "containsBlanks": "Содержит пустые ячейки",
105
+ "notContainsBlanks": "Не содержит пустых ячеек",
106
+ "containsErrors": "Содержит ошибки",
107
+ "notContainsErrors": "Не содержит ошибок",
108
+ "greaterThan": "Больше чем",
109
+ "greaterThanOrEqual": "Больше или равно",
110
+ "lessThan": "Меньше чем",
111
+ "lessThanOrEqual": "Меньше или равно",
112
+ "notBetween": "Не между",
113
+ "between": "Между",
114
+ "yesterday": "Вчера",
115
+ "tomorrow": "Завтра",
116
+ "last7Days": "Последние 7 дней",
117
+ "thisMonth": "Этот месяц",
118
+ "lastMonth": "Прошлый месяц",
119
+ "nextMonth": "Следующий месяц",
120
+ "thisWeek": "Эта неделя",
121
+ "lastWeek": "Прошлая неделя",
122
+ "nextWeek": "Следующая неделя",
123
+ "today": "Сегодня"
124
+ },
125
+ "ruleType": {
126
+ "highlightCell": "Выделение ячеек",
127
+ "dataBar": "Гистограмма данных",
128
+ "colorScale": "Цветовая шкала",
129
+ "formula": "Пользовательская формула",
130
+ "iconSet": "Набор иконок",
131
+ "duplicateValues": "Дублирующиеся значения",
132
+ "uniqueValues": "Уникальные значения"
133
+ },
134
+ "subRuleType": {
135
+ "uniqueValues": "Уникальные значения",
136
+ "duplicateValues": "Дублирующиеся значения",
137
+ "rank": "Ранг",
138
+ "text": "Текст",
139
+ "timePeriod": "Период времени",
140
+ "number": "Число",
141
+ "average": "Среднее"
142
+ },
143
+ "valueType": {
144
+ "num": "Число",
145
+ "min": "Минимум",
146
+ "max": "Максимум",
147
+ "percent": "Процент",
148
+ "percentile": "Процентиль",
149
+ "formula": "Формула",
150
+ "none": "Нет"
151
+ }
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "sheet": {
3
+ "cf": {
4
+ "title": "条件格式",
5
+ "menu": {
6
+ "manageConditionalFormatting": "管理条件格式",
7
+ "createConditionalFormatting": "新建条件格式",
8
+ "clearRangeRules": "清除所选区域的规则",
9
+ "clearWorkSheetRules": "清除整个工作表的规则"
10
+ },
11
+ "form": {
12
+ "lessThan": "该值必须小于 {0}",
13
+ "lessThanOrEqual": "该值必须小于等于 {0}",
14
+ "greaterThan": "该值必大于 {0}",
15
+ "greaterThanOrEqual": "该值必大于等于 {0}",
16
+ "rangeSelector": "选择范围或者输入值"
17
+ },
18
+ "iconSet": {
19
+ "direction": "方向",
20
+ "shape": "形状",
21
+ "mark": "标记",
22
+ "rank": "等级",
23
+ "rule": "规则",
24
+ "icon": "图标",
25
+ "type": "类型",
26
+ "value": "值",
27
+ "reverseIconOrder": "反转图标次序",
28
+ "and": "且",
29
+ "when": "当值",
30
+ "onlyShowIcon": "仅显示图标"
31
+ },
32
+ "symbol": {
33
+ "greaterThan": ">",
34
+ "greaterThanOrEqual": ">=",
35
+ "lessThan": "<",
36
+ "lessThanOrEqual": "<="
37
+ },
38
+ "panel": {
39
+ "createRule": "新增规则",
40
+ "clear": "清空所有规则",
41
+ "range": "应用范围",
42
+ "styleType": "样式类型",
43
+ "submit": "确认",
44
+ "cancel": "取消",
45
+ "rankAndAverage": "最前/最后/平均值",
46
+ "styleRule": "样式规则",
47
+ "isNotBottom": "最前",
48
+ "isBottom": "最后",
49
+ "greaterThanAverage": "大于平均值",
50
+ "lessThanAverage": "小于平均值",
51
+ "medianValue": "中间值",
52
+ "fillType": "填充方式",
53
+ "pureColor": "纯色",
54
+ "gradient": "渐变",
55
+ "colorSet": "颜色设置",
56
+ "positive": "正值",
57
+ "native": "负值",
58
+ "workSheet": "整张工作表",
59
+ "selectedRange": "所选单元格",
60
+ "managerRuleSelect": "管理 {0} 的规则",
61
+ "onlyShowDataBar": "仅显示数据条"
62
+ },
63
+ "preview": {
64
+ "describe": {
65
+ "beginsWith": "开头为{0}",
66
+ "endsWith": "结尾为{0}",
67
+ "containsText": "文本包含{0}",
68
+ "notContainsText": "文本不包含{0}",
69
+ "equal": "等于{0}",
70
+ "notEqual": "不等于{0}",
71
+ "containsBlanks": "为空",
72
+ "notContainsBlanks": "不为空",
73
+ "containsErrors": "错误",
74
+ "notContainsErrors": "非错误",
75
+ "greaterThan": "大于{0}",
76
+ "greaterThanOrEqual": "大于等于{0}",
77
+ "lessThan": "小于{0}",
78
+ "lessThanOrEqual": "小于等于{0}",
79
+ "notBetween": "不介于{0}和{1}之间",
80
+ "between": "介于{0}和{1}之间",
81
+ "yesterday": "昨日",
82
+ "tomorrow": "明日",
83
+ "last7Days": "最近7天",
84
+ "thisMonth": "本月",
85
+ "lastMonth": "上个月",
86
+ "nextMonth": "下个月",
87
+ "thisWeek": "本周",
88
+ "lastWeek": "上周",
89
+ "nextWeek": "下周",
90
+ "today": "今日",
91
+ "topN": "前{0}项",
92
+ "bottomN": "后{0}项",
93
+ "topNPercent": "前{0}%",
94
+ "bottomNPercent": "后{0}%"
95
+ }
96
+ },
97
+ "operator": {
98
+ "beginsWith": "开头为",
99
+ "endsWith": "结尾为",
100
+ "containsText": "文本包含",
101
+ "notContainsText": "文本不包含",
102
+ "equal": "等于",
103
+ "notEqual": "不等于",
104
+ "containsBlanks": "为空",
105
+ "notContainsBlanks": "不为空",
106
+ "containsErrors": "错误",
107
+ "notContainsErrors": "非错误",
108
+ "greaterThan": "大于",
109
+ "greaterThanOrEqual": "大于等于",
110
+ "lessThan": "小于",
111
+ "lessThanOrEqual": "小于等于",
112
+ "notBetween": "不介于",
113
+ "between": "介于",
114
+ "yesterday": "昨日",
115
+ "tomorrow": "明日",
116
+ "last7Days": "最近 7 天",
117
+ "thisMonth": "本月",
118
+ "lastMonth": "上个月",
119
+ "nextMonth": "下个月",
120
+ "thisWeek": "本周",
121
+ "lastWeek": "上周",
122
+ "nextWeek": "下周",
123
+ "today": "今日"
124
+ },
125
+ "ruleType": {
126
+ "highlightCell": "突出显示单元格",
127
+ "dataBar": "数据条",
128
+ "colorScale": "色阶",
129
+ "formula": "自定义公式",
130
+ "iconSet": "图标集",
131
+ "duplicateValues": "重复值",
132
+ "uniqueValues": "唯一值"
133
+ },
134
+ "subRuleType": {
135
+ "uniqueValues": "唯一值",
136
+ "duplicateValues": "重复值",
137
+ "rank": "最前最后",
138
+ "text": "文本",
139
+ "timePeriod": "时间日期",
140
+ "number": "数值",
141
+ "average": "平均值"
142
+ },
143
+ "valueType": {
144
+ "num": "数值",
145
+ "min": "最小值",
146
+ "max": "最大值",
147
+ "percent": "百分比",
148
+ "percentile": "百分点",
149
+ "formula": "公式",
150
+ "none": "无"
151
+ }
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,10 @@
1
+ import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
2
+ import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
3
+
4
+ export declare class ConditionalFormattingPermissionController extends Disposable {
5
+ private _localeService;
6
+ private readonly _commandService;
7
+ private readonly _sheetPermissionInterceptorBaseController;
8
+ constructor(_localeService: LocaleService, _commandService: ICommandService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
9
+ private _commandExecutedListener;
10
+ }
@@ -1,5 +1,5 @@
1
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
1
+ import { Disposable, IPermissionService, IUniverInstanceService } from '@univerjs/core';
2
+ import { RangeProtectionRenderModel, RangeProtectionRuleModel, SheetInterceptorService, WorksheetProtectionRuleModel } from '@univerjs/sheets';
3
3
  import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
4
4
  import { IRenderManagerService } from '@univerjs/engine-render';
5
5
  import { ConditionalFormattingRuleModel, ConditionalFormattingService, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
@@ -15,8 +15,13 @@ export declare class RenderController extends Disposable {
15
15
  private _conditionalFormattingViewModel;
16
16
  private _conditionalFormattingRuleModel;
17
17
  private _sheetSkeletonManagerService;
18
- constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService);
19
- _initRender(): void;
18
+ private _selectionProtectionRenderModel;
19
+ private _rangeProtectionRuleModel;
20
+ private _worksheetProtectionRuleModel;
21
+ private _permissionService;
22
+ constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionProtectionRenderModel: RangeProtectionRenderModel, _rangeProtectionRuleModel: RangeProtectionRuleModel, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _permissionService: IPermissionService);
20
23
  _initSkeleton(): void;
21
24
  _initViewModelInterceptor(): void;
25
+ private _initViewModelByRangeInterceptor;
26
+ private _initViewModelBySheetInterceptor;
22
27
  }
@@ -14,4 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export { UniverSheetsConditionalFormattingUIPlugin } from './plugin';
17
- export { enUS, zhCN, ruRU } from './locale';
17
+ export { AddCfCommand } from './commands/commands/add-cf.command';
18
+ export type { IAddCfCommandParams } from './commands/commands/add-cf.command';
19
+ export { ConditionalFormattingClearController } from './controllers/cf.clear.controller';
20
+ export * as enUS from './locale/en-US';
21
+ export * as zhCN from './locale/zh-CN';
22
+ export * as ruRU from './locale/ru-RU';