@univerjs/sheets-conditional-formatting 0.22.0 → 0.22.1-insiders.20260516-8900c44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -94,7 +94,7 @@ var ConditionalFormatRuleBaseBuilder = class ConditionalFormatRuleBaseBuilder {
94
94
  {
95
95
  operator: _univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThanOrEqual,
96
96
  value: { type: _univerjs_sheets_conditional_formatting.CFValueType.min },
97
- iconType: _univerjs_sheets_conditional_formatting.EMPTY_ICON_TYPE,
97
+ iconType: _univerjs_sheets_conditional_formatting.IIconSetType.empty,
98
98
  iconId: ""
99
99
  },
100
100
  {
@@ -103,13 +103,13 @@ var ConditionalFormatRuleBaseBuilder = class ConditionalFormatRuleBaseBuilder {
103
103
  type: _univerjs_sheets_conditional_formatting.CFValueType.percentile,
104
104
  value: .5
105
105
  },
106
- iconType: _univerjs_sheets_conditional_formatting.EMPTY_ICON_TYPE,
106
+ iconType: _univerjs_sheets_conditional_formatting.IIconSetType.empty,
107
107
  iconId: ""
108
108
  },
109
109
  {
110
110
  operator: _univerjs_sheets_conditional_formatting.CFNumberOperator.lessThanOrEqual,
111
111
  value: { type: _univerjs_sheets_conditional_formatting.CFValueType.max },
112
- iconType: _univerjs_sheets_conditional_formatting.EMPTY_ICON_TYPE,
112
+ iconType: _univerjs_sheets_conditional_formatting.IIconSetType.empty,
113
113
  iconId: ""
114
114
  }
115
115
  ]
@@ -1176,9 +1176,33 @@ var ConditionalFormatIconSetRuleBuilder = class ConditionalFormatIconSetRuleBuil
1176
1176
  * const builder = fWorksheet.newConditionalFormattingRule()
1177
1177
  * .setIconSet({
1178
1178
  * iconConfigs: [
1179
- * { iconType: '3Arrows', iconId: '0', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 20 } },
1180
- * { iconType: '3Arrows', iconId: '1', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 10 } },
1181
- * { iconType: '3Arrows', iconId: '2', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual, value: { type: 'num', value: 10 } }
1179
+ * {
1180
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1181
+ * iconId: '0',
1182
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1183
+ * value: {
1184
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1185
+ * value: 20
1186
+ * }
1187
+ * },
1188
+ * {
1189
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1190
+ * iconId: '1',
1191
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1192
+ * value: {
1193
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1194
+ * value: 10
1195
+ * }
1196
+ * },
1197
+ * {
1198
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1199
+ * iconId: '2',
1200
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual,
1201
+ * value: {
1202
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1203
+ * value: 10
1204
+ * }
1205
+ * }
1182
1206
  * ],
1183
1207
  * isShowValue: true,
1184
1208
  * })
@@ -1217,9 +1241,33 @@ var ConditionalFormatIconSetRuleBuilder = class ConditionalFormatIconSetRuleBuil
1217
1241
  * console.log(builder.getIconMap()); // icons key-value map
1218
1242
  * const rule = builder.setIconSet({
1219
1243
  * iconConfigs: [
1220
- * { iconType: '3Arrows', iconId: '0', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 20 } },
1221
- * { iconType: '3Arrows', iconId: '1', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 10 } },
1222
- * { iconType: '3Arrows', iconId: '2', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual, value: { type: 'num', value: 10 } }
1244
+ * {
1245
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1246
+ * iconId: '0',
1247
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1248
+ * value: {
1249
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1250
+ * value: 20
1251
+ * }
1252
+ * },
1253
+ * {
1254
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1255
+ * iconId: '1',
1256
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1257
+ * value: {
1258
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1259
+ * value: 10
1260
+ * }
1261
+ * },
1262
+ * {
1263
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1264
+ * iconId: '2',
1265
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual,
1266
+ * value: {
1267
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1268
+ * value: 10
1269
+ * }
1270
+ * }
1223
1271
  * ],
1224
1272
  * isShowValue: true,
1225
1273
  * })
@@ -1386,9 +1434,33 @@ var FConditionalFormattingBuilder = class {
1386
1434
  * console.log(builder.getIconMap()); // icons key-value map
1387
1435
  * const rule = builder.setIconSet({
1388
1436
  * iconConfigs: [
1389
- * { iconType: '3Arrows', iconId: '0', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 20 } },
1390
- * { iconType: '3Arrows', iconId: '1', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan, value: { type: 'num', value: 10 } },
1391
- * { iconType: '3Arrows', iconId: '2', operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual, value: { type: 'num', value: 10 } }
1437
+ * {
1438
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1439
+ * iconId: '0',
1440
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1441
+ * value: {
1442
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1443
+ * value: 20
1444
+ * }
1445
+ * },
1446
+ * {
1447
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1448
+ * iconId: '1',
1449
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.greaterThan,
1450
+ * value: {
1451
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1452
+ * value: 10
1453
+ * }
1454
+ * },
1455
+ * {
1456
+ * iconType: univerAPI.Enum.ConditionFormatIconSetTypeEnum.threeArrows,
1457
+ * iconId: '2',
1458
+ * operator: univerAPI.Enum.ConditionFormatNumberOperatorEnum.lessThanOrEqual,
1459
+ * value: {
1460
+ * type: univerAPI.Enum.ConditionFormatValueTypeEnum.num,
1461
+ * value: 10
1462
+ * }
1463
+ * }
1392
1464
  * ],
1393
1465
  * isShowValue: true,
1394
1466
  * })
@@ -2140,6 +2212,12 @@ var FSheetsConditionalFormattingEnumMixin = class extends _univerjs_core_facade.
2140
2212
  get ConditionFormatTimePeriodOperatorEnum() {
2141
2213
  return _univerjs_sheets_conditional_formatting.CFTimePeriodOperator;
2142
2214
  }
2215
+ get ConditionFormatIconSetTypeEnum() {
2216
+ return _univerjs_sheets_conditional_formatting.IIconSetType;
2217
+ }
2218
+ get ConditionFormatValueTypeEnum() {
2219
+ return _univerjs_sheets_conditional_formatting.CFValueType;
2220
+ }
2143
2221
  };
2144
2222
  _univerjs_core_facade.FEnum.extend(FSheetsConditionalFormattingEnumMixin);
2145
2223