@univerjs/sheets-conditional-formatting 1.3.0 → 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/cjs/facade.js
CHANGED
|
@@ -4,7 +4,7 @@ let _univerjs_sheets_conditional_formatting = require("@univerjs/sheets-conditio
|
|
|
4
4
|
let _univerjs_sheets_facade = require("@univerjs/sheets/facade");
|
|
5
5
|
let _univerjs_core_facade = require("@univerjs/core/facade");
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
8
8
|
function _typeof(o) {
|
|
9
9
|
"@babel/helpers - typeof";
|
|
10
10
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -14,8 +14,7 @@ function _typeof(o) {
|
|
|
14
14
|
}, _typeof(o);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
17
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
19
18
|
function toPrimitive(t, r) {
|
|
20
19
|
if ("object" != _typeof(t) || !t) return t;
|
|
21
20
|
var e = t[Symbol.toPrimitive];
|
|
@@ -27,15 +26,13 @@ function toPrimitive(t, r) {
|
|
|
27
26
|
return ("string" === r ? String : Number)(t);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
29
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
32
30
|
function toPropertyKey(t) {
|
|
33
31
|
var i = toPrimitive(t, "string");
|
|
34
32
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
35
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
39
36
|
function _defineProperty(e, r, t) {
|
|
40
37
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
41
38
|
value: t,
|
|
@@ -45,8 +42,7 @@ function _defineProperty(e, r, t) {
|
|
|
45
42
|
}) : e[r] = t, e;
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
//#region src/facade/f-conditional-formatting-builder.ts
|
|
45
|
+
// src/facade/f-conditional-formatting-builder.ts
|
|
50
46
|
/**
|
|
51
47
|
* @ignore
|
|
52
48
|
* @hideconstructor
|
|
@@ -2109,8 +2105,7 @@ var FConditionalFormattingBuilder = class {
|
|
|
2109
2105
|
}
|
|
2110
2106
|
};
|
|
2111
2107
|
|
|
2112
|
-
|
|
2113
|
-
//#region src/facade/f-range.ts
|
|
2108
|
+
// src/facade/f-range.ts
|
|
2114
2109
|
var FRangeSheetsConditionalFormattingMixin = class extends _univerjs_sheets_facade.FRange {
|
|
2115
2110
|
_getConditionalFormattingRuleModel() {
|
|
2116
2111
|
return this._injector.get(_univerjs_sheets_conditional_formatting.ConditionalFormattingRuleModel);
|
|
@@ -2133,8 +2128,7 @@ var FRangeSheetsConditionalFormattingMixin = class extends _univerjs_sheets_faca
|
|
|
2133
2128
|
};
|
|
2134
2129
|
_univerjs_sheets_facade.FRange.extend(FRangeSheetsConditionalFormattingMixin);
|
|
2135
2130
|
|
|
2136
|
-
|
|
2137
|
-
//#region src/facade/f-worksheet.ts
|
|
2131
|
+
// src/facade/f-worksheet.ts
|
|
2138
2132
|
var FWorksheetConditionalFormattingMixin = class extends _univerjs_sheets_facade.FWorksheet {
|
|
2139
2133
|
_getConditionalFormattingRuleModel() {
|
|
2140
2134
|
return this._injector.get(_univerjs_sheets_conditional_formatting.ConditionalFormattingRuleModel);
|
|
@@ -2200,8 +2194,7 @@ var FWorksheetConditionalFormattingMixin = class extends _univerjs_sheets_facade
|
|
|
2200
2194
|
};
|
|
2201
2195
|
_univerjs_sheets_facade.FWorksheet.extend(FWorksheetConditionalFormattingMixin);
|
|
2202
2196
|
|
|
2203
|
-
|
|
2204
|
-
//#region src/facade/f-enum.ts
|
|
2197
|
+
// src/facade/f-enum.ts
|
|
2205
2198
|
/**
|
|
2206
2199
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2207
2200
|
*
|
|
@@ -2233,5 +2226,4 @@ var FSheetsConditionalFormattingEnumMixin = class extends _univerjs_core_facade.
|
|
|
2233
2226
|
};
|
|
2234
2227
|
_univerjs_core_facade.FEnum.extend(FSheetsConditionalFormattingEnumMixin);
|
|
2235
2228
|
|
|
2236
|
-
//#endregion
|
|
2237
2229
|
exports.FConditionalFormattingBuilder = FConditionalFormattingBuilder;
|
package/lib/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ let _univerjs_engine_formula = require("@univerjs/engine-formula");
|
|
|
6
6
|
let rxjs_operators = require("rxjs/operators");
|
|
7
7
|
let _univerjs_engine_render = require("@univerjs/engine-render");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/base/const.ts
|
|
10
10
|
const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
11
11
|
let CFTextOperator = /* @__PURE__ */ function(CFTextOperator) {
|
|
12
12
|
CFTextOperator["beginsWith"] = "beginsWith";
|
|
@@ -114,8 +114,7 @@ const createDefaultValueByValueType = (type, defaultValue) => {
|
|
|
114
114
|
return "";
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
//#region src/utils/anchor.ts
|
|
117
|
+
// src/utils/anchor.ts
|
|
119
118
|
const findIndexByAnchor = (anchor, ruleList, get) => {
|
|
120
119
|
if (!ruleList) return null;
|
|
121
120
|
const anchorIndex = ruleList.findIndex((rule) => get(rule) === anchor.id);
|
|
@@ -199,8 +198,7 @@ const isAnchorEqual = (anchor1, anchor2) => {
|
|
|
199
198
|
return anchor1.id === anchor2.id && anchor1.type === anchor2.type;
|
|
200
199
|
};
|
|
201
200
|
|
|
202
|
-
|
|
203
|
-
//#region src/utils/create-cf-id.ts
|
|
201
|
+
// src/utils/create-cf-id.ts
|
|
204
202
|
/**
|
|
205
203
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
206
204
|
*
|
|
@@ -218,8 +216,7 @@ const isAnchorEqual = (anchor1, anchor2) => {
|
|
|
218
216
|
*/
|
|
219
217
|
const createCfId = () => `${(0, _univerjs_core.generateRandomId)(8)}`;
|
|
220
218
|
|
|
221
|
-
|
|
222
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
219
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
223
220
|
function _typeof(o) {
|
|
224
221
|
"@babel/helpers - typeof";
|
|
225
222
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -229,8 +226,7 @@ function _typeof(o) {
|
|
|
229
226
|
}, _typeof(o);
|
|
230
227
|
}
|
|
231
228
|
|
|
232
|
-
|
|
233
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
229
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
234
230
|
function toPrimitive(t, r) {
|
|
235
231
|
if ("object" != _typeof(t) || !t) return t;
|
|
236
232
|
var e = t[Symbol.toPrimitive];
|
|
@@ -242,15 +238,13 @@ function toPrimitive(t, r) {
|
|
|
242
238
|
return ("string" === r ? String : Number)(t);
|
|
243
239
|
}
|
|
244
240
|
|
|
245
|
-
|
|
246
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
241
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
247
242
|
function toPropertyKey(t) {
|
|
248
243
|
var i = toPrimitive(t, "string");
|
|
249
244
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
250
245
|
}
|
|
251
246
|
|
|
252
|
-
|
|
253
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
247
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
254
248
|
function _defineProperty(e, r, t) {
|
|
255
249
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
256
250
|
value: t,
|
|
@@ -260,8 +254,7 @@ function _defineProperty(e, r, t) {
|
|
|
260
254
|
}) : e[r] = t, e;
|
|
261
255
|
}
|
|
262
256
|
|
|
263
|
-
|
|
264
|
-
//#region src/models/conditional-formatting-rule-model.ts
|
|
257
|
+
// src/models/conditional-formatting-rule-model.ts
|
|
265
258
|
var ConditionalFormattingRuleModel = class {
|
|
266
259
|
constructor() {
|
|
267
260
|
_defineProperty(this, "_model", /* @__PURE__ */ new Map());
|
|
@@ -364,8 +357,7 @@ var ConditionalFormattingRuleModel = class {
|
|
|
364
357
|
}
|
|
365
358
|
};
|
|
366
359
|
|
|
367
|
-
|
|
368
|
-
//#region src/commands/mutations/move-conditional-rule.mutation.ts
|
|
360
|
+
// src/commands/mutations/move-conditional-rule.mutation.ts
|
|
369
361
|
const MoveConditionalRuleMutation = {
|
|
370
362
|
type: _univerjs_core.CommandType.MUTATION,
|
|
371
363
|
id: "sheet.mutation.move-conditional-rule",
|
|
@@ -392,8 +384,7 @@ const MoveConditionalRuleMutationUndoFactory = (param) => {
|
|
|
392
384
|
}];
|
|
393
385
|
};
|
|
394
386
|
|
|
395
|
-
|
|
396
|
-
//#region src/commands/mutations/delete-conditional-rule.mutation.ts
|
|
387
|
+
// src/commands/mutations/delete-conditional-rule.mutation.ts
|
|
397
388
|
const DeleteConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
398
389
|
const conditionalFormattingRuleModel = accessor.get(ConditionalFormattingRuleModel);
|
|
399
390
|
const { unitId, subUnitId, cfId } = param;
|
|
@@ -450,8 +441,7 @@ const DeleteConditionalRuleMutation = {
|
|
|
450
441
|
}
|
|
451
442
|
};
|
|
452
443
|
|
|
453
|
-
|
|
454
|
-
//#region src/commands/mutations/add-conditional-rule.mutation.ts
|
|
444
|
+
// src/commands/mutations/add-conditional-rule.mutation.ts
|
|
455
445
|
const AddConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
456
446
|
return {
|
|
457
447
|
id: DeleteConditionalRuleMutation.id,
|
|
@@ -473,8 +463,7 @@ const AddConditionalRuleMutation = {
|
|
|
473
463
|
}
|
|
474
464
|
};
|
|
475
465
|
|
|
476
|
-
|
|
477
|
-
//#region src/commands/commands/add-cf.command.ts
|
|
466
|
+
// src/commands/commands/add-cf.command.ts
|
|
478
467
|
const AddCfCommand = {
|
|
479
468
|
type: _univerjs_core.CommandType.COMMAND,
|
|
480
469
|
id: "sheet.command.add-conditional-rule",
|
|
@@ -511,16 +500,14 @@ const AddCfCommand = {
|
|
|
511
500
|
}
|
|
512
501
|
};
|
|
513
502
|
|
|
514
|
-
|
|
515
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
503
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
516
504
|
function __decorateParam(paramIndex, decorator) {
|
|
517
505
|
return function(target, key) {
|
|
518
506
|
decorator(target, key, paramIndex);
|
|
519
507
|
};
|
|
520
508
|
}
|
|
521
509
|
|
|
522
|
-
|
|
523
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
510
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
524
511
|
function __decorate(decorators, target, key, desc) {
|
|
525
512
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
526
513
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -528,8 +515,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
528
515
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
529
516
|
}
|
|
530
517
|
|
|
531
|
-
|
|
532
|
-
//#region src/models/conditional-formatting-range-index-model.ts
|
|
518
|
+
// src/models/conditional-formatting-range-index-model.ts
|
|
533
519
|
let ConditionalFormattingRangeIndexModel = class ConditionalFormattingRangeIndexModel extends _univerjs_core.Disposable {
|
|
534
520
|
constructor(_conditionalFormattingRuleModel) {
|
|
535
521
|
super();
|
|
@@ -615,8 +601,7 @@ let ConditionalFormattingRangeIndexModel = class ConditionalFormattingRangeIndex
|
|
|
615
601
|
};
|
|
616
602
|
ConditionalFormattingRangeIndexModel = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(ConditionalFormattingRuleModel))], ConditionalFormattingRangeIndexModel);
|
|
617
603
|
|
|
618
|
-
|
|
619
|
-
//#region src/services/conditional-formatting-range-transform.service.ts
|
|
604
|
+
// src/services/conditional-formatting-range-transform.service.ts
|
|
620
605
|
var ConditionalFormattingRangeTransformService = class {
|
|
621
606
|
subtractRanges(sourceRanges, rangesToSubtract) {
|
|
622
607
|
return _univerjs_core.Rectangle.mergeRanges(_univerjs_core.Rectangle.subtractMulti(sourceRanges, rangesToSubtract));
|
|
@@ -650,8 +635,7 @@ var ConditionalFormattingRangeTransformService = class {
|
|
|
650
635
|
}
|
|
651
636
|
};
|
|
652
637
|
|
|
653
|
-
|
|
654
|
-
//#region src/commands/mutations/set-conditional-rule.mutation.ts
|
|
638
|
+
// src/commands/mutations/set-conditional-rule.mutation.ts
|
|
655
639
|
const SetConditionalRuleMutation = {
|
|
656
640
|
type: _univerjs_core.CommandType.MUTATION,
|
|
657
641
|
id: "sheet.mutation.set-conditional-rule",
|
|
@@ -680,8 +664,7 @@ const setConditionalRuleMutationUndoFactory = (accessor, param) => {
|
|
|
680
664
|
return [];
|
|
681
665
|
};
|
|
682
666
|
|
|
683
|
-
|
|
684
|
-
//#region src/commands/commands/clear-range-cf.command.ts
|
|
667
|
+
// src/commands/commands/clear-range-cf.command.ts
|
|
685
668
|
const ClearRangeCfCommand = {
|
|
686
669
|
type: _univerjs_core.CommandType.COMMAND,
|
|
687
670
|
id: "sheet.command.clear-range-conditional-rule",
|
|
@@ -747,8 +730,7 @@ const ClearRangeCfCommand = {
|
|
|
747
730
|
}
|
|
748
731
|
};
|
|
749
732
|
|
|
750
|
-
|
|
751
|
-
//#region src/commands/commands/clear-worksheet-cf.command.ts
|
|
733
|
+
// src/commands/commands/clear-worksheet-cf.command.ts
|
|
752
734
|
const ClearWorksheetCfCommand = {
|
|
753
735
|
type: _univerjs_core.CommandType.COMMAND,
|
|
754
736
|
id: "sheet.command.clear-worksheet-conditional-rule",
|
|
@@ -782,8 +764,7 @@ const ClearWorksheetCfCommand = {
|
|
|
782
764
|
}
|
|
783
765
|
};
|
|
784
766
|
|
|
785
|
-
|
|
786
|
-
//#region src/commands/commands/delete-cf.command.ts
|
|
767
|
+
// src/commands/commands/delete-cf.command.ts
|
|
787
768
|
const DeleteCfCommand = {
|
|
788
769
|
type: _univerjs_core.CommandType.COMMAND,
|
|
789
770
|
id: "sheet.command.delete-conditional-rule",
|
|
@@ -814,8 +795,7 @@ const DeleteCfCommand = {
|
|
|
814
795
|
}
|
|
815
796
|
};
|
|
816
797
|
|
|
817
|
-
|
|
818
|
-
//#region src/commands/commands/move-cf.command.ts
|
|
798
|
+
// src/commands/commands/move-cf.command.ts
|
|
819
799
|
const MoveCfCommand = {
|
|
820
800
|
type: _univerjs_core.CommandType.COMMAND,
|
|
821
801
|
id: "sheet.command.move-conditional-rule",
|
|
@@ -851,8 +831,7 @@ const MoveCfCommand = {
|
|
|
851
831
|
}
|
|
852
832
|
};
|
|
853
833
|
|
|
854
|
-
|
|
855
|
-
//#region src/commands/commands/set-cf.command.ts
|
|
834
|
+
// src/commands/commands/set-cf.command.ts
|
|
856
835
|
const SetCfCommand = {
|
|
857
836
|
type: _univerjs_core.CommandType.COMMAND,
|
|
858
837
|
id: "sheet.command.set-conditional-rule",
|
|
@@ -884,8 +863,7 @@ const SetCfCommand = {
|
|
|
884
863
|
}
|
|
885
864
|
};
|
|
886
865
|
|
|
887
|
-
|
|
888
|
-
//#region src/utils/range.ts
|
|
866
|
+
// src/utils/range.ts
|
|
889
867
|
function getRangeInWorksheet(range, worksheet) {
|
|
890
868
|
const maxRows = worksheet.getMaxRows();
|
|
891
869
|
const maxColumns = worksheet.getMaxColumns();
|
|
@@ -913,8 +891,7 @@ function getRangesInWorksheet(ranges, worksheet) {
|
|
|
913
891
|
return effectiveRanges;
|
|
914
892
|
}
|
|
915
893
|
|
|
916
|
-
|
|
917
|
-
//#region src/services/conditional-formatting-formula.service.ts
|
|
894
|
+
// src/services/conditional-formatting-formula.service.ts
|
|
918
895
|
let ConditionalFormattingFormulaService = class ConditionalFormattingFormulaService extends _univerjs_core.Disposable {
|
|
919
896
|
constructor(_registerOtherFormulaService, _conditionalFormattingRuleModel, _univerInstanceService) {
|
|
920
897
|
super();
|
|
@@ -1098,8 +1075,7 @@ ConditionalFormattingFormulaService = __decorate([
|
|
|
1098
1075
|
__decorateParam(2, _univerjs_core.IUniverInstanceService)
|
|
1099
1076
|
], ConditionalFormattingFormulaService);
|
|
1100
1077
|
|
|
1101
|
-
|
|
1102
|
-
//#region src/models/calculate-unit-v2/base-calculate-unit.ts
|
|
1078
|
+
// src/models/calculate-unit-v2/base-calculate-unit.ts
|
|
1103
1079
|
/**
|
|
1104
1080
|
* Processing Main Path Calculation Logic
|
|
1105
1081
|
*/
|
|
@@ -1172,8 +1148,7 @@ var BaseCalculateUnit = class {
|
|
|
1172
1148
|
}
|
|
1173
1149
|
};
|
|
1174
1150
|
|
|
1175
|
-
|
|
1176
|
-
//#region src/models/calculate-unit-v2/color-scale-calculate-unit.ts
|
|
1151
|
+
// src/models/calculate-unit-v2/color-scale-calculate-unit.ts
|
|
1177
1152
|
var ColorScaleCalculateUnit = class extends BaseCalculateUnit {
|
|
1178
1153
|
preComputing(_row, _col, context) {
|
|
1179
1154
|
const rule = context.rule;
|
|
@@ -1225,8 +1200,7 @@ var ColorScaleCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1225
1200
|
}
|
|
1226
1201
|
};
|
|
1227
1202
|
|
|
1228
|
-
|
|
1229
|
-
//#region src/render/data-bar.render.ts
|
|
1203
|
+
// src/render/data-bar.render.ts
|
|
1230
1204
|
const dataBarUKey = "sheet-conditional-rule-data-bar";
|
|
1231
1205
|
const defaultDataBarPositiveColor = "#ffbe38";
|
|
1232
1206
|
const defaultDataBarNativeColor = "#abd91a";
|
|
@@ -1337,8 +1311,7 @@ var DataBar = class extends _univerjs_engine_render.SheetExtension {
|
|
|
1337
1311
|
};
|
|
1338
1312
|
_univerjs_engine_render.SpreadsheetExtensionRegistry.add(DataBar);
|
|
1339
1313
|
|
|
1340
|
-
|
|
1341
|
-
//#region src/models/calculate-unit-v2/data-bar-calculate-unit.ts
|
|
1314
|
+
// src/models/calculate-unit-v2/data-bar-calculate-unit.ts
|
|
1342
1315
|
const getSafeValue = (v) => Math.max(Math.min(100, v), 0);
|
|
1343
1316
|
const getValue$1 = (row, col, getCell) => {
|
|
1344
1317
|
const cell = getCell(row, col);
|
|
@@ -1465,8 +1438,7 @@ var DataBarCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1465
1438
|
}
|
|
1466
1439
|
};
|
|
1467
1440
|
|
|
1468
|
-
|
|
1469
|
-
//#region src/models/calculate-unit-v2/highlight-cell-calculate-unit.ts
|
|
1441
|
+
// src/models/calculate-unit-v2/highlight-cell-calculate-unit.ts
|
|
1470
1442
|
const isFormulaResultMatched = (value) => value === true || value === 1 || value === "TRUE";
|
|
1471
1443
|
const sortRangesByTopLeft = (ranges) => [...ranges].sort((a, b) => {
|
|
1472
1444
|
if (a.startRow !== b.startRow) return a.startRow - b.startRow;
|
|
@@ -1754,8 +1726,7 @@ var HighlightCellCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1754
1726
|
}
|
|
1755
1727
|
};
|
|
1756
1728
|
|
|
1757
|
-
|
|
1758
|
-
//#region src/models/calculate-unit-v2/icon-set-calculate-unit.ts
|
|
1729
|
+
// src/models/calculate-unit-v2/icon-set-calculate-unit.ts
|
|
1759
1730
|
const getValue = (row, col, getCell) => {
|
|
1760
1731
|
const cell = getCell(row, col);
|
|
1761
1732
|
if (cell && cell.t === _univerjs_core.CellValueType.NUMBER) {
|
|
@@ -1846,8 +1817,7 @@ var IconSetCalculateUnit = class extends BaseCalculateUnit {
|
|
|
1846
1817
|
}
|
|
1847
1818
|
};
|
|
1848
1819
|
|
|
1849
|
-
|
|
1850
|
-
//#region src/models/conditional-formatting-view-model.ts
|
|
1820
|
+
// src/models/conditional-formatting-view-model.ts
|
|
1851
1821
|
const CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH = 9e3;
|
|
1852
1822
|
let ConditionalFormattingViewModel = class ConditionalFormattingViewModel extends _univerjs_core.Disposable {
|
|
1853
1823
|
constructor(_injector, _conditionalFormattingRuleModel, _conditionalFormattingRangeIndexModel, _conditionalFormattingFormulaService, _univerInstanceService) {
|
|
@@ -2060,8 +2030,7 @@ ConditionalFormattingViewModel = __decorate([
|
|
|
2060
2030
|
__decorateParam(4, _univerjs_core.IUniverInstanceService)
|
|
2061
2031
|
], ConditionalFormattingViewModel);
|
|
2062
2032
|
|
|
2063
|
-
|
|
2064
|
-
//#region src/models/calculate-unit-v2/utils.ts
|
|
2033
|
+
// src/models/calculate-unit-v2/utils.ts
|
|
2065
2034
|
function isFloatsEqual(a, b) {
|
|
2066
2035
|
return Math.abs(a - b) < Number.EPSILON;
|
|
2067
2036
|
}
|
|
@@ -2249,8 +2218,7 @@ function getMaxInFormulaResult(result) {
|
|
|
2249
2218
|
return max;
|
|
2250
2219
|
}
|
|
2251
2220
|
|
|
2252
|
-
|
|
2253
|
-
//#region src/assets/icon-map.ts
|
|
2221
|
+
// src/assets/icon-map.ts
|
|
2254
2222
|
const ICON_MAP = {
|
|
2255
2223
|
"feedback": {
|
|
2256
2224
|
"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",
|
|
@@ -2284,16 +2252,16 @@ const ICON_MAP = {
|
|
|
2284
2252
|
"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"
|
|
2285
2253
|
},
|
|
2286
2254
|
"arrow": {
|
|
2287
|
-
"down-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2288
|
-
"right-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2289
|
-
"up-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2290
|
-
"rightAndDown-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2291
|
-
"rightAndUp-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2292
|
-
"down-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2293
|
-
"right-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2294
|
-
"up-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2295
|
-
"rightAndDown-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2296
|
-
"rightAndUp-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
2255
|
+
"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",
|
|
2256
|
+
"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",
|
|
2257
|
+
"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",
|
|
2258
|
+
"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",
|
|
2259
|
+
"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",
|
|
2260
|
+
"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",
|
|
2261
|
+
"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",
|
|
2262
|
+
"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",
|
|
2263
|
+
"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",
|
|
2264
|
+
"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"
|
|
2297
2265
|
},
|
|
2298
2266
|
"shape": {
|
|
2299
2267
|
"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",
|
|
@@ -2313,9 +2281,9 @@ const ICON_MAP = {
|
|
|
2313
2281
|
"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"
|
|
2314
2282
|
},
|
|
2315
2283
|
"feedback2": {
|
|
2316
|
-
"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%
|
|
2284
|
+
"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",
|
|
2317
2285
|
"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",
|
|
2318
|
-
"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%
|
|
2286
|
+
"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"
|
|
2319
2287
|
},
|
|
2320
2288
|
"flag": {
|
|
2321
2289
|
"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",
|
|
@@ -2331,8 +2299,7 @@ const ICON_MAP = {
|
|
|
2331
2299
|
}
|
|
2332
2300
|
};
|
|
2333
2301
|
|
|
2334
|
-
|
|
2335
|
-
//#region src/models/icon-map.ts
|
|
2302
|
+
// src/models/icon-map.ts
|
|
2336
2303
|
let IIconSetType = /* @__PURE__ */ function(IIconSetType) {
|
|
2337
2304
|
IIconSetType["threeArrows"] = "3Arrows";
|
|
2338
2305
|
IIconSetType["threeArrowsGray"] = "3ArrowsGray";
|
|
@@ -2575,13 +2542,11 @@ for (const key in iconMap) {
|
|
|
2575
2542
|
Object.freeze(v);
|
|
2576
2543
|
}
|
|
2577
2544
|
|
|
2578
|
-
|
|
2579
|
-
//#region package.json
|
|
2545
|
+
// package.json
|
|
2580
2546
|
var name = "@univerjs/sheets-conditional-formatting";
|
|
2581
|
-
var version = "1.
|
|
2547
|
+
var version = "1.4.0";
|
|
2582
2548
|
|
|
2583
|
-
|
|
2584
|
-
//#region src/config/config.ts
|
|
2549
|
+
// src/config/config.ts
|
|
2585
2550
|
/**
|
|
2586
2551
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2587
2552
|
*
|
|
@@ -2601,8 +2566,7 @@ const SHEETS_CONDITIONAL_FORMATTING_PLUGIN_CONFIG_KEY = "ssheets-conditional-for
|
|
|
2601
2566
|
const configSymbol = Symbol(SHEETS_CONDITIONAL_FORMATTING_PLUGIN_CONFIG_KEY);
|
|
2602
2567
|
const defaultPluginConfig = {};
|
|
2603
2568
|
|
|
2604
|
-
|
|
2605
|
-
//#region src/services/conditional-formatting-style-composer.service.ts
|
|
2569
|
+
// src/services/conditional-formatting-style-composer.service.ts
|
|
2606
2570
|
/**
|
|
2607
2571
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2608
2572
|
*
|
|
@@ -2696,8 +2660,7 @@ let ConditionalFormattingStyleComposer = class ConditionalFormattingStyleCompose
|
|
|
2696
2660
|
};
|
|
2697
2661
|
ConditionalFormattingStyleComposer = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(ConditionalFormattingRuleModel)), __decorateParam(1, (0, _univerjs_core.Inject)(ConditionalFormattingViewModel))], ConditionalFormattingStyleComposer);
|
|
2698
2662
|
|
|
2699
|
-
|
|
2700
|
-
//#region src/services/conditional-formatting.service.ts
|
|
2663
|
+
// src/services/conditional-formatting.service.ts
|
|
2701
2664
|
let ConditionalFormattingService = class ConditionalFormattingService extends _univerjs_core.Disposable {
|
|
2702
2665
|
get _conditionalFormattingViewModelV2() {
|
|
2703
2666
|
return this._injector.get(ConditionalFormattingViewModel);
|
|
@@ -2948,8 +2911,7 @@ ConditionalFormattingService = __decorate([
|
|
|
2948
2911
|
__decorateParam(7, (0, _univerjs_core.Inject)(_univerjs_core.ICommandService))
|
|
2949
2912
|
], ConditionalFormattingService);
|
|
2950
2913
|
|
|
2951
|
-
|
|
2952
|
-
//#region src/plugin.ts
|
|
2914
|
+
// src/plugin.ts
|
|
2953
2915
|
let UniverSheetsConditionalFormattingPlugin = class UniverSheetsConditionalFormattingPlugin extends _univerjs_core.Plugin {
|
|
2954
2916
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
2955
2917
|
super();
|
|
@@ -3005,8 +2967,7 @@ UniverSheetsConditionalFormattingPlugin = __decorate([
|
|
|
3005
2967
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
3006
2968
|
], UniverSheetsConditionalFormattingPlugin);
|
|
3007
2969
|
|
|
3008
|
-
|
|
3009
|
-
//#region src/render/icon.render.ts
|
|
2970
|
+
// src/render/icon.render.ts
|
|
3010
2971
|
const IconUKey = "sheet-conditional-rule-icon";
|
|
3011
2972
|
const EXTENSION_Z_INDEX = 35;
|
|
3012
2973
|
const DEFAULT_WIDTH = 15;
|
|
@@ -3086,8 +3047,7 @@ var ConditionalFormattingIcon = class extends _univerjs_engine_render.SheetExten
|
|
|
3086
3047
|
};
|
|
3087
3048
|
_univerjs_engine_render.SpreadsheetExtensionRegistry.add(ConditionalFormattingIcon);
|
|
3088
3049
|
|
|
3089
|
-
|
|
3090
|
-
//#region src/utils/remove-undefined-attr.ts
|
|
3050
|
+
// src/utils/remove-undefined-attr.ts
|
|
3091
3051
|
/**
|
|
3092
3052
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3093
3053
|
*
|
|
@@ -3113,7 +3073,6 @@ function removeUndefinedAttr(obj) {
|
|
|
3113
3073
|
return result;
|
|
3114
3074
|
}
|
|
3115
3075
|
|
|
3116
|
-
//#endregion
|
|
3117
3076
|
exports.AddCfCommand = AddCfCommand;
|
|
3118
3077
|
exports.AddConditionalRuleMutation = AddConditionalRuleMutation;
|
|
3119
3078
|
exports.AddConditionalRuleMutationUndoFactory = AddConditionalRuleMutationUndoFactory;
|
package/lib/cjs/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
|
module.exports = locale;
|
package/lib/cjs/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
|
module.exports = locale;
|
package/lib/cjs/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
|
module.exports = locale;
|
package/lib/cjs/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
|
module.exports = locale;
|