@univerjs/sheets-conditional-formatting 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.
- package/lib/cjs/facade.js +8 -16
- package/lib/cjs/index.js +54 -95
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/facade.js +8 -16
- package/lib/es/index.js +54 -95
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/facade.js +8 -16
- package/lib/index.js +54 -95
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/base/const.d.ts +1 -1
- package/lib/types/models/calculate-unit-v2/utils.d.ts +1 -1
- package/lib/types/services/conditional-formatting-formula.service.d.ts +3 -3
- package/lib/types/services/conditional-formatting.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { BooleanValue, ERROR_TYPE_SET, FormulaResultStatus, OtherFormulaBizType,
|
|
|
5
5
|
import { bufferTime, distinctUntilChanged, filter, map } from "rxjs/operators";
|
|
6
6
|
import { FIX_ONE_PIXEL_BLUR_OFFSET, SheetExtension, SpreadsheetExtensionRegistry, isObject } from "@univerjs/engine-render";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/base/const.ts
|
|
9
9
|
const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
10
10
|
let CFTextOperator = /* @__PURE__ */ function(CFTextOperator) {
|
|
11
11
|
CFTextOperator["beginsWith"] = "beginsWith";
|
|
@@ -113,8 +113,7 @@ const createDefaultValueByValueType = (type, defaultValue) => {
|
|
|
113
113
|
return "";
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
//#region src/utils/anchor.ts
|
|
116
|
+
// src/utils/anchor.ts
|
|
118
117
|
const findIndexByAnchor = (anchor, ruleList, get) => {
|
|
119
118
|
if (!ruleList) return null;
|
|
120
119
|
const anchorIndex = ruleList.findIndex((rule) => get(rule) === anchor.id);
|
|
@@ -198,8 +197,7 @@ const isAnchorEqual = (anchor1, anchor2) => {
|
|
|
198
197
|
return anchor1.id === anchor2.id && anchor1.type === anchor2.type;
|
|
199
198
|
};
|
|
200
199
|
|
|
201
|
-
|
|
202
|
-
//#region src/utils/create-cf-id.ts
|
|
200
|
+
// src/utils/create-cf-id.ts
|
|
203
201
|
/**
|
|
204
202
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
205
203
|
*
|
|
@@ -217,8 +215,7 @@ const isAnchorEqual = (anchor1, anchor2) => {
|
|
|
217
215
|
*/
|
|
218
216
|
const createCfId = () => `${generateRandomId(8)}`;
|
|
219
217
|
|
|
220
|
-
|
|
221
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
218
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
222
219
|
function _typeof(o) {
|
|
223
220
|
"@babel/helpers - typeof";
|
|
224
221
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -228,8 +225,7 @@ function _typeof(o) {
|
|
|
228
225
|
}, _typeof(o);
|
|
229
226
|
}
|
|
230
227
|
|
|
231
|
-
|
|
232
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
228
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
233
229
|
function toPrimitive(t, r) {
|
|
234
230
|
if ("object" != _typeof(t) || !t) return t;
|
|
235
231
|
var e = t[Symbol.toPrimitive];
|
|
@@ -241,15 +237,13 @@ function toPrimitive(t, r) {
|
|
|
241
237
|
return ("string" === r ? String : Number)(t);
|
|
242
238
|
}
|
|
243
239
|
|
|
244
|
-
|
|
245
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
240
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
246
241
|
function toPropertyKey(t) {
|
|
247
242
|
var i = toPrimitive(t, "string");
|
|
248
243
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
249
244
|
}
|
|
250
245
|
|
|
251
|
-
|
|
252
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
246
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
253
247
|
function _defineProperty(e, r, t) {
|
|
254
248
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
255
249
|
value: t,
|
|
@@ -259,8 +253,7 @@ function _defineProperty(e, r, t) {
|
|
|
259
253
|
}) : e[r] = t, e;
|
|
260
254
|
}
|
|
261
255
|
|
|
262
|
-
|
|
263
|
-
//#region src/models/conditional-formatting-rule-model.ts
|
|
256
|
+
// src/models/conditional-formatting-rule-model.ts
|
|
264
257
|
var ConditionalFormattingRuleModel = class {
|
|
265
258
|
constructor() {
|
|
266
259
|
_defineProperty(this, "_model", /* @__PURE__ */ new Map());
|
|
@@ -363,8 +356,7 @@ var ConditionalFormattingRuleModel = class {
|
|
|
363
356
|
}
|
|
364
357
|
};
|
|
365
358
|
|
|
366
|
-
|
|
367
|
-
//#region src/commands/mutations/move-conditional-rule.mutation.ts
|
|
359
|
+
// src/commands/mutations/move-conditional-rule.mutation.ts
|
|
368
360
|
const MoveConditionalRuleMutation = {
|
|
369
361
|
type: CommandType.MUTATION,
|
|
370
362
|
id: "sheet.mutation.move-conditional-rule",
|
|
@@ -391,8 +383,7 @@ const MoveConditionalRuleMutationUndoFactory = (param) => {
|
|
|
391
383
|
}];
|
|
392
384
|
};
|
|
393
385
|
|
|
394
|
-
|
|
395
|
-
//#region src/commands/mutations/delete-conditional-rule.mutation.ts
|
|
386
|
+
// src/commands/mutations/delete-conditional-rule.mutation.ts
|
|
396
387
|
const DeleteConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
397
388
|
const conditionalFormattingRuleModel = accessor.get(ConditionalFormattingRuleModel);
|
|
398
389
|
const { unitId, subUnitId, cfId } = param;
|
|
@@ -449,8 +440,7 @@ const DeleteConditionalRuleMutation = {
|
|
|
449
440
|
}
|
|
450
441
|
};
|
|
451
442
|
|
|
452
|
-
|
|
453
|
-
//#region src/commands/mutations/add-conditional-rule.mutation.ts
|
|
443
|
+
// src/commands/mutations/add-conditional-rule.mutation.ts
|
|
454
444
|
const AddConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
455
445
|
return {
|
|
456
446
|
id: DeleteConditionalRuleMutation.id,
|
|
@@ -472,8 +462,7 @@ const AddConditionalRuleMutation = {
|
|
|
472
462
|
}
|
|
473
463
|
};
|
|
474
464
|
|
|
475
|
-
|
|
476
|
-
//#region src/commands/commands/add-cf.command.ts
|
|
465
|
+
// src/commands/commands/add-cf.command.ts
|
|
477
466
|
const AddCfCommand = {
|
|
478
467
|
type: CommandType.COMMAND,
|
|
479
468
|
id: "sheet.command.add-conditional-rule",
|
|
@@ -510,16 +499,14 @@ const AddCfCommand = {
|
|
|
510
499
|
}
|
|
511
500
|
};
|
|
512
501
|
|
|
513
|
-
|
|
514
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
502
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
515
503
|
function __decorateParam(paramIndex, decorator) {
|
|
516
504
|
return function(target, key) {
|
|
517
505
|
decorator(target, key, paramIndex);
|
|
518
506
|
};
|
|
519
507
|
}
|
|
520
508
|
|
|
521
|
-
|
|
522
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
509
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
523
510
|
function __decorate(decorators, target, key, desc) {
|
|
524
511
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
525
512
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -527,8 +514,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
527
514
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
528
515
|
}
|
|
529
516
|
|
|
530
|
-
|
|
531
|
-
//#region src/models/conditional-formatting-range-index-model.ts
|
|
517
|
+
// src/models/conditional-formatting-range-index-model.ts
|
|
532
518
|
let ConditionalFormattingRangeIndexModel = class ConditionalFormattingRangeIndexModel extends Disposable {
|
|
533
519
|
constructor(_conditionalFormattingRuleModel) {
|
|
534
520
|
super();
|
|
@@ -614,8 +600,7 @@ let ConditionalFormattingRangeIndexModel = class ConditionalFormattingRangeIndex
|
|
|
614
600
|
};
|
|
615
601
|
ConditionalFormattingRangeIndexModel = __decorate([__decorateParam(0, Inject(ConditionalFormattingRuleModel))], ConditionalFormattingRangeIndexModel);
|
|
616
602
|
|
|
617
|
-
|
|
618
|
-
//#region src/services/conditional-formatting-range-transform.service.ts
|
|
603
|
+
// src/services/conditional-formatting-range-transform.service.ts
|
|
619
604
|
var ConditionalFormattingRangeTransformService = class {
|
|
620
605
|
subtractRanges(sourceRanges, rangesToSubtract) {
|
|
621
606
|
return Rectangle.mergeRanges(Rectangle.subtractMulti(sourceRanges, rangesToSubtract));
|
|
@@ -649,8 +634,7 @@ var ConditionalFormattingRangeTransformService = class {
|
|
|
649
634
|
}
|
|
650
635
|
};
|
|
651
636
|
|
|
652
|
-
|
|
653
|
-
//#region src/commands/mutations/set-conditional-rule.mutation.ts
|
|
637
|
+
// src/commands/mutations/set-conditional-rule.mutation.ts
|
|
654
638
|
const SetConditionalRuleMutation = {
|
|
655
639
|
type: CommandType.MUTATION,
|
|
656
640
|
id: "sheet.mutation.set-conditional-rule",
|
|
@@ -679,8 +663,7 @@ const setConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
|
679
663
|
return [];
|
|
680
664
|
};
|
|
681
665
|
|
|
682
|
-
|
|
683
|
-
//#region src/commands/commands/clear-range-cf.command.ts
|
|
666
|
+
// src/commands/commands/clear-range-cf.command.ts
|
|
684
667
|
const ClearRangeCfCommand = {
|
|
685
668
|
type: CommandType.COMMAND,
|
|
686
669
|
id: "sheet.command.clear-range-conditional-rule",
|
|
@@ -746,8 +729,7 @@ const ClearRangeCfCommand = {
|
|
|
746
729
|
}
|
|
747
730
|
};
|
|
748
731
|
|
|
749
|
-
|
|
750
|
-
//#region src/commands/commands/clear-worksheet-cf.command.ts
|
|
732
|
+
// src/commands/commands/clear-worksheet-cf.command.ts
|
|
751
733
|
const ClearWorksheetCfCommand = {
|
|
752
734
|
type: CommandType.COMMAND,
|
|
753
735
|
id: "sheet.command.clear-worksheet-conditional-rule",
|
|
@@ -781,8 +763,7 @@ const ClearWorksheetCfCommand = {
|
|
|
781
763
|
}
|
|
782
764
|
};
|
|
783
765
|
|
|
784
|
-
|
|
785
|
-
//#region src/commands/commands/delete-cf.command.ts
|
|
766
|
+
// src/commands/commands/delete-cf.command.ts
|
|
786
767
|
const DeleteCfCommand = {
|
|
787
768
|
type: CommandType.COMMAND,
|
|
788
769
|
id: "sheet.command.delete-conditional-rule",
|
|
@@ -813,8 +794,7 @@ const DeleteCfCommand = {
|
|
|
813
794
|
}
|
|
814
795
|
};
|
|
815
796
|
|
|
816
|
-
|
|
817
|
-
//#region src/commands/commands/move-cf.command.ts
|
|
797
|
+
// src/commands/commands/move-cf.command.ts
|
|
818
798
|
const MoveCfCommand = {
|
|
819
799
|
type: CommandType.COMMAND,
|
|
820
800
|
id: "sheet.command.move-conditional-rule",
|
|
@@ -850,8 +830,7 @@ const MoveCfCommand = {
|
|
|
850
830
|
}
|
|
851
831
|
};
|
|
852
832
|
|
|
853
|
-
|
|
854
|
-
//#region src/commands/commands/set-cf.command.ts
|
|
833
|
+
// src/commands/commands/set-cf.command.ts
|
|
855
834
|
const SetCfCommand = {
|
|
856
835
|
type: CommandType.COMMAND,
|
|
857
836
|
id: "sheet.command.set-conditional-rule",
|
|
@@ -883,8 +862,7 @@ const SetCfCommand = {
|
|
|
883
862
|
}
|
|
884
863
|
};
|
|
885
864
|
|
|
886
|
-
|
|
887
|
-
//#region src/utils/range.ts
|
|
865
|
+
// src/utils/range.ts
|
|
888
866
|
function getRangeInWorksheet(range, worksheet) {
|
|
889
867
|
const maxRows = worksheet.getMaxRows();
|
|
890
868
|
const maxColumns = worksheet.getMaxColumns();
|
|
@@ -912,8 +890,7 @@ function getRangesInWorksheet(ranges, worksheet) {
|
|
|
912
890
|
return effectiveRanges;
|
|
913
891
|
}
|
|
914
892
|
|
|
915
|
-
|
|
916
|
-
//#region src/services/conditional-formatting-formula.service.ts
|
|
893
|
+
// src/services/conditional-formatting-formula.service.ts
|
|
917
894
|
let ConditionalFormattingFormulaService = class ConditionalFormattingFormulaService extends Disposable {
|
|
918
895
|
constructor(_registerOtherFormulaService, _conditionalFormattingRuleModel, _univerInstanceService) {
|
|
919
896
|
super();
|
|
@@ -1097,8 +1074,7 @@ ConditionalFormattingFormulaService = __decorate([
|
|
|
1097
1074
|
__decorateParam(2, IUniverInstanceService)
|
|
1098
1075
|
], ConditionalFormattingFormulaService);
|
|
1099
1076
|
|
|
1100
|
-
|
|
1101
|
-
//#region src/models/calculate-unit-v2/base-calculate-unit.ts
|
|
1077
|
+
// src/models/calculate-unit-v2/base-calculate-unit.ts
|
|
1102
1078
|
/**
|
|
1103
1079
|
* Processing Main Path Calculation Logic
|
|
1104
1080
|
*/
|
|
@@ -1171,8 +1147,7 @@ var BaseCalculateUnit = class {
|
|
|
1171
1147
|
}
|
|
1172
1148
|
};
|
|
1173
1149
|
|
|
1174
|
-
|
|
1175
|
-
//#region src/models/calculate-unit-v2/color-scale-calculate-unit.ts
|
|
1150
|
+
// src/models/calculate-unit-v2/color-scale-calculate-unit.ts
|
|
1176
1151
|
var ColorScaleCalculateUnit = class extends BaseCalculateUnit {
|
|
1177
1152
|
preComputing(_row, _col, context) {
|
|
1178
1153
|
const rule = context.rule;
|
|
@@ -1224,8 +1199,7 @@ var ColorScaleCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1224
1199
|
}
|
|
1225
1200
|
};
|
|
1226
1201
|
|
|
1227
|
-
|
|
1228
|
-
//#region src/render/data-bar.render.ts
|
|
1202
|
+
// src/render/data-bar.render.ts
|
|
1229
1203
|
const dataBarUKey = "sheet-conditional-rule-data-bar";
|
|
1230
1204
|
const defaultDataBarPositiveColor = "#ffbe38";
|
|
1231
1205
|
const defaultDataBarNativeColor = "#abd91a";
|
|
@@ -1336,8 +1310,7 @@ var DataBar = class extends SheetExtension {
|
|
|
1336
1310
|
};
|
|
1337
1311
|
SpreadsheetExtensionRegistry.add(DataBar);
|
|
1338
1312
|
|
|
1339
|
-
|
|
1340
|
-
//#region src/models/calculate-unit-v2/data-bar-calculate-unit.ts
|
|
1313
|
+
// src/models/calculate-unit-v2/data-bar-calculate-unit.ts
|
|
1341
1314
|
const getSafeValue = (v) => Math.max(Math.min(100, v), 0);
|
|
1342
1315
|
const getValue$1 = (row, col, getCell) => {
|
|
1343
1316
|
const cell = getCell(row, col);
|
|
@@ -1464,8 +1437,7 @@ var DataBarCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1464
1437
|
}
|
|
1465
1438
|
};
|
|
1466
1439
|
|
|
1467
|
-
|
|
1468
|
-
//#region src/models/calculate-unit-v2/highlight-cell-calculate-unit.ts
|
|
1440
|
+
// src/models/calculate-unit-v2/highlight-cell-calculate-unit.ts
|
|
1469
1441
|
const isFormulaResultMatched = (value) => value === true || value === 1 || value === "TRUE";
|
|
1470
1442
|
const sortRangesByTopLeft = (ranges) => [...ranges].sort((a, b) => {
|
|
1471
1443
|
if (a.startRow !== b.startRow) return a.startRow - b.startRow;
|
|
@@ -1753,8 +1725,7 @@ var HighlightCellCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1753
1725
|
}
|
|
1754
1726
|
};
|
|
1755
1727
|
|
|
1756
|
-
|
|
1757
|
-
//#region src/models/calculate-unit-v2/icon-set-calculate-unit.ts
|
|
1728
|
+
// src/models/calculate-unit-v2/icon-set-calculate-unit.ts
|
|
1758
1729
|
const getValue = (row, col, getCell) => {
|
|
1759
1730
|
const cell = getCell(row, col);
|
|
1760
1731
|
if (cell && cell.t === CellValueType.NUMBER) {
|
|
@@ -1845,8 +1816,7 @@ var IconSetCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1845
1816
|
}
|
|
1846
1817
|
};
|
|
1847
1818
|
|
|
1848
|
-
|
|
1849
|
-
//#region src/models/conditional-formatting-view-model.ts
|
|
1819
|
+
// src/models/conditional-formatting-view-model.ts
|
|
1850
1820
|
const CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH = 9e3;
|
|
1851
1821
|
let ConditionalFormattingViewModel = class ConditionalFormattingViewModel extends Disposable {
|
|
1852
1822
|
constructor(_injector, _conditionalFormattingRuleModel, _conditionalFormattingRangeIndexModel, _conditionalFormattingFormulaService, _univerInstanceService) {
|
|
@@ -2059,8 +2029,7 @@ ConditionalFormattingViewModel = __decorate([
|
|
|
2059
2029
|
__decorateParam(4, IUniverInstanceService)
|
|
2060
2030
|
], ConditionalFormattingViewModel);
|
|
2061
2031
|
|
|
2062
|
-
|
|
2063
|
-
//#region src/models/calculate-unit-v2/utils.ts
|
|
2032
|
+
// src/models/calculate-unit-v2/utils.ts
|
|
2064
2033
|
function isFloatsEqual(a, b) {
|
|
2065
2034
|
return Math.abs(a - b) < Number.EPSILON;
|
|
2066
2035
|
}
|
|
@@ -2248,8 +2217,7 @@ function getMaxInFormulaResult(result) {
|
|
|
2248
2217
|
return max;
|
|
2249
2218
|
}
|
|
2250
2219
|
|
|
2251
|
-
|
|
2252
|
-
//#region src/assets/icon-map.ts
|
|
2220
|
+
// src/assets/icon-map.ts
|
|
2253
2221
|
const ICON_MAP = {
|
|
2254
2222
|
"feedback": {
|
|
2255
2223
|
"mistake": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20d%3D%22M5.69014%205.69014C5.45583%205.92445%205.45583%206.30435%205.69014%206.53867L7.15137%207.9999L5.6899%209.46137C5.45558%209.69569%205.45558%2010.0756%205.6899%2010.3099C5.92421%2010.5442%206.30411%2010.5442%206.53842%2010.3099L7.9999%208.84843L9.46137%2010.3099C9.69569%2010.5442%2010.0756%2010.5442%2010.3099%2010.3099C10.5442%2010.0756%2010.5442%209.69569%2010.3099%209.46137L8.84843%207.9999L10.3097%206.53867C10.544%206.30435%2010.544%205.92445%2010.3097%205.69014C10.0753%205.45583%209.69544%205.45583%209.46113%205.69014L7.9999%207.15137L6.53867%205.69014C6.30435%205.45583%205.92445%205.45583%205.69014%205.69014Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
@@ -2283,16 +2251,16 @@ const ICON_MAP = {
|
|
|
2283
2251
|
"impatient": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%226.4%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%221.2%22%2F%3E%0A%3Cpath%20d%3D%22M4.9%205.4L6.7%206.15%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3Cpath%20d%3D%22M11.1%205.4L9.3%206.15%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3Ccircle%20cx%3D%225.75%22%20cy%3D%227.2%22%20r%3D%220.65%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Ccircle%20cx%3D%2210.25%22%20cy%3D%227.2%22%20r%3D%220.65%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M5%2011.25C5.7%2010.05%206.7%209.45%208%209.45C9.3%209.45%2010.3%2010.05%2011%2011.25%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
2284
2252
|
},
|
|
2285
2253
|
"arrow": {
|
|
2286
|
-
"down-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2287
|
-
"right-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2288
|
-
"up-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2289
|
-
"rightAndDown-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2290
|
-
"rightAndUp-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2291
|
-
"down-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2292
|
-
"right-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2293
|
-
"up-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2294
|
-
"rightAndDown-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2295
|
-
"rightAndUp-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2254
|
+
"down-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23FE4B4B%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M8%202.5V13.5M3%208.5L8%2013.5L13%208.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2255
|
+
"right-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M2.5%208H13.5M8.5%203L13.5%208L8.5%2013%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2256
|
+
"up-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%2359D01E%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M8%2013.5V2.5M3%207.5L8%202.5L13%207.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2257
|
+
"rightAndDown-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M3.5%203.5L12.5%2012.5M5.5%2012.5H12.5V5.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2258
|
+
"rightAndUp-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M3.5%2012.5L12.5%203.5M5.5%203.5H12.5V10.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2259
|
+
"down-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23999999%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M8%202.5V13.5M3%208.5L8%2013.5L13%208.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2260
|
+
"right-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23999999%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M2.5%208H13.5M8.5%203L13.5%208L8.5%2013%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2261
|
+
"up-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23999999%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M8%2013.5V2.5M3%207.5L8%202.5L13%207.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2262
|
+
"rightAndDown-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23999999%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M3.5%203.5L12.5%2012.5M5.5%2012.5H12.5V5.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2263
|
+
"rightAndUp-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23999999%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M3.5%2012.5L12.5%203.5M5.5%203.5H12.5V10.5%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"
|
|
2296
2264
|
},
|
|
2297
2265
|
"shape": {
|
|
2298
2266
|
"cross": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2210%22%20height%3D%222%22%20rx%3D%220.75%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
@@ -2312,9 +2280,9 @@ const ICON_MAP = {
|
|
|
2312
2280
|
"indicate-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222.4%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%223.75%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
2313
2281
|
},
|
|
2314
2282
|
"feedback2": {
|
|
2315
|
-
"mistake2": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%
|
|
2283
|
+
"mistake2": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%23FE4B4B%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M3.3%203.3L12.7%2012.7M12.7%203.3L3.3%2012.7%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
|
|
2316
2284
|
"warn2": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M7.25%202.5C7.25%202.08579%207.58579%201.75%208%201.75C8.41421%201.75%208.75%202.08579%208.75%202.5V10C8.75%2010.4142%208.41421%2010.75%208%2010.75C7.58579%2010.75%207.25%2010.4142%207.25%2010V2.5Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Ccircle%20cx%3D%228%22%20cy%3D%2213.25%22%20r%3D%221%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
2317
|
-
"correct2": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%
|
|
2285
|
+
"correct2": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20stroke%3D%22%2359D01E%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cpath%20d%3D%22M2.27%208L6.09%2011.82L13.73%204.18%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"
|
|
2318
2286
|
},
|
|
2319
2287
|
"flag": {
|
|
2320
2288
|
"flag-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M3.25%202.5C3.25%202.08579%203.58579%201.75%204%201.75C4.41421%201.75%204.75%202.08579%204.75%202.5V13.5C4.75%2013.9142%204.41421%2014.25%204%2014.25C3.58579%2014.25%203.25%2013.9142%203.25%2013.5V2.5Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M4.75%203.088C6.02367%202.7469%207.00972%202.7044%207.8443%202.81465C8.70544%202.92841%209.37774%203.19906%2010.0279%203.46147L10.0668%203.47718C11.004%203.85549%2011.9397%204.21307%2013.4603%203.8373C13.8931%203.73034%2014.3125%204.05801%2014.3125%204.50387V10.1091C14.3125%2010.4232%2014.0992%2010.697%2013.7946%2010.774C11.8986%2011.2535%2010.6411%2010.7813%209.51441%2010.3265L9.47546%2010.3108C8.82531%2010.0484%208.153%209.77774%207.29186%209.66398C6.62487%209.5759%205.84983%209.58567%204.75%209.84134V3.088Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
@@ -2330,8 +2298,7 @@ const ICON_MAP = {
|
|
|
2330
2298
|
}
|
|
2331
2299
|
};
|
|
2332
2300
|
|
|
2333
|
-
|
|
2334
|
-
//#region src/models/icon-map.ts
|
|
2301
|
+
// src/models/icon-map.ts
|
|
2335
2302
|
let IIconSetType = /* @__PURE__ */ function(IIconSetType) {
|
|
2336
2303
|
IIconSetType["threeArrows"] = "3Arrows";
|
|
2337
2304
|
IIconSetType["threeArrowsGray"] = "3ArrowsGray";
|
|
@@ -2574,13 +2541,11 @@ for (const key in iconMap) {
|
|
|
2574
2541
|
Object.freeze(v);
|
|
2575
2542
|
}
|
|
2576
2543
|
|
|
2577
|
-
|
|
2578
|
-
//#region package.json
|
|
2544
|
+
// package.json
|
|
2579
2545
|
var name = "@univerjs/sheets-conditional-formatting";
|
|
2580
|
-
var version = "1.
|
|
2546
|
+
var version = "1.4.0";
|
|
2581
2547
|
|
|
2582
|
-
|
|
2583
|
-
//#region src/config/config.ts
|
|
2548
|
+
// src/config/config.ts
|
|
2584
2549
|
/**
|
|
2585
2550
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2586
2551
|
*
|
|
@@ -2600,8 +2565,7 @@ const SHEETS_CONDITIONAL_FORMATTING_PLUGIN_CONFIG_KEY = "ssheets-conditional-for
|
|
|
2600
2565
|
const configSymbol = Symbol(SHEETS_CONDITIONAL_FORMATTING_PLUGIN_CONFIG_KEY);
|
|
2601
2566
|
const defaultPluginConfig = {};
|
|
2602
2567
|
|
|
2603
|
-
|
|
2604
|
-
//#region src/services/conditional-formatting-style-composer.service.ts
|
|
2568
|
+
// src/services/conditional-formatting-style-composer.service.ts
|
|
2605
2569
|
/**
|
|
2606
2570
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2607
2571
|
*
|
|
@@ -2695,8 +2659,7 @@ let ConditionalFormattingStyleComposer = class ConditionalFormattingStyleCompose
|
|
|
2695
2659
|
};
|
|
2696
2660
|
ConditionalFormattingStyleComposer = __decorate([__decorateParam(0, Inject(ConditionalFormattingRuleModel)), __decorateParam(1, Inject(ConditionalFormattingViewModel))], ConditionalFormattingStyleComposer);
|
|
2697
2661
|
|
|
2698
|
-
|
|
2699
|
-
//#region src/services/conditional-formatting.service.ts
|
|
2662
|
+
// src/services/conditional-formatting.service.ts
|
|
2700
2663
|
let ConditionalFormattingService = class ConditionalFormattingService extends Disposable {
|
|
2701
2664
|
get _conditionalFormattingViewModelV2() {
|
|
2702
2665
|
return this._injector.get(ConditionalFormattingViewModel);
|
|
@@ -2947,8 +2910,7 @@ ConditionalFormattingService = __decorate([
|
|
|
2947
2910
|
__decorateParam(7, Inject(ICommandService))
|
|
2948
2911
|
], ConditionalFormattingService);
|
|
2949
2912
|
|
|
2950
|
-
|
|
2951
|
-
//#region src/plugin.ts
|
|
2913
|
+
// src/plugin.ts
|
|
2952
2914
|
let UniverSheetsConditionalFormattingPlugin = class UniverSheetsConditionalFormattingPlugin extends Plugin {
|
|
2953
2915
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
2954
2916
|
super();
|
|
@@ -3004,8 +2966,7 @@ UniverSheetsConditionalFormattingPlugin = __decorate([
|
|
|
3004
2966
|
__decorateParam(3, IConfigService)
|
|
3005
2967
|
], UniverSheetsConditionalFormattingPlugin);
|
|
3006
2968
|
|
|
3007
|
-
|
|
3008
|
-
//#region src/render/icon.render.ts
|
|
2969
|
+
// src/render/icon.render.ts
|
|
3009
2970
|
const IconUKey = "sheet-conditional-rule-icon";
|
|
3010
2971
|
const EXTENSION_Z_INDEX = 35;
|
|
3011
2972
|
const DEFAULT_WIDTH = 15;
|
|
@@ -3085,8 +3046,7 @@ var ConditionalFormattingIcon = class extends SheetExtension {
|
|
|
3085
3046
|
};
|
|
3086
3047
|
SpreadsheetExtensionRegistry.add(ConditionalFormattingIcon);
|
|
3087
3048
|
|
|
3088
|
-
|
|
3089
|
-
//#region src/utils/remove-undefined-attr.ts
|
|
3049
|
+
// src/utils/remove-undefined-attr.ts
|
|
3090
3050
|
/**
|
|
3091
3051
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3092
3052
|
*
|
|
@@ -3112,5 +3072,4 @@ function removeUndefinedAttr(obj) {
|
|
|
3112
3072
|
return result;
|
|
3113
3073
|
}
|
|
3114
3074
|
|
|
3115
|
-
//#endregion
|
|
3116
3075
|
export { AddCfCommand, AddConditionalRuleMutation, AddConditionalRuleMutationUndoFactory, CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator, CFValueType, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH, ClearRangeCfCommand, ClearWorksheetCfCommand, ConditionalFormattingFormulaService, ConditionalFormattingIcon, ConditionalFormattingRangeIndexModel, ConditionalFormattingRangeTransformService, ConditionalFormattingRuleModel, ConditionalFormattingService, ConditionalFormattingStyleComposer, ConditionalFormattingViewModel, DEFAULT_BG_COLOR, DEFAULT_FONT_COLOR, DEFAULT_PADDING, DEFAULT_WIDTH, DataBar, DeleteCfCommand, DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory, IIconSetType, IconUKey, MoveCfCommand, MoveConditionalRuleMutation, MoveConditionalRuleMutationUndoFactory, SHEET_CONDITIONAL_FORMATTING_PLUGIN, SetCfCommand, SetConditionalRuleMutation, UniverSheetsConditionalFormattingPlugin, anchorUndoFactory, compareWithNumber, createCfId, createDefaultRule, createDefaultValue, createDefaultValueByValueType, dataBarUKey, defaultDataBarNativeColor, defaultDataBarPositiveColor, defaultPlaceholderColor, filterRange, findIndexByAnchor, getCacheStyleMatrix, getCellValue, getColorScaleFromValue, getMaxInFormulaResult, getOppositeOperator, getValueByType, iconGroup, iconMap, isAnchorEqual, isFloatsEqual, isNullable, moveByAnchor, removeUndefinedAttr, serialTimeToTimestamp, setConditionalRuleMutationUndoFactory, transformSupportSymmetryAnchor };
|
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "الاتجاه",
|
|
4
4
|
shape: "الشكل",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "الترتيب"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Direcció",
|
|
4
4
|
shape: "Forma",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Rang"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Richtung",
|
|
4
4
|
shape: "Form",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Rang"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -21,5 +21,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
21
21
|
rank: "Rank"
|
|
22
22
|
} } };
|
|
23
23
|
|
|
24
|
-
//#endregion
|
|
25
24
|
export { locale as default };
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Dirección",
|
|
4
4
|
shape: "Forma",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Rango"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "جهت",
|
|
4
4
|
shape: "شکل",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "رتبه"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Direction",
|
|
4
4
|
shape: "Forme",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Rang"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Arah",
|
|
4
4
|
shape: "Bentuk",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Peringkat"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "Direzione",
|
|
4
4
|
shape: "Forma",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "Grado"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "方向",
|
|
4
4
|
shape: "図形",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "評価"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
3
3
|
direction: "방향",
|
|
4
4
|
shape: "모양",
|
|
@@ -6,5 +6,4 @@ const locale = { "sheets-conditional-formatting": { iconSet: {
|
|
|
6
6
|
rank: "순위"
|
|
7
7
|
} } };
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { locale as default };
|