@univerjs/sheets-conditional-formatting 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251220-0a5ea4d

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/es/index.js CHANGED
@@ -2,16 +2,15 @@ var H2 = Object.defineProperty;
2
2
  var j2 = (s, r, t) => r in s ? H2(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
3
  var m = (s, r, t) => j2(s, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { generateRandomId as X2, Tools as J, CommandType as O, IUndoRedoService as e2, ICommandService as W, IUniverInstanceService as q, ObjectMatrix as V, Range as T, sequenceExecute as k2, Inject as S, Disposable as _2, RefAlias as K2, CellValueType as x, BooleanNumber as N2, LRUMap as T2, ColorKit as U2, dayjs as v, Injector as x2, RTree as Y2, IResourceManagerService as J2, merge as V2, UniverInstanceType as D2, isInternalEditorID as z2, Rectangle as n2, DependentOn as Q2, IConfigService as e0, Plugin as t0, touchDependencies as n0 } from "@univerjs/core";
5
- import { isRangesEqual as K1 } from "@univerjs/core";
5
+ import { isRangesEqual as X1 } from "@univerjs/core";
6
6
  import { getSheetCommandTarget as t2, SheetsSelectionsService as r0, findAllRectangle as s0, createTopMatrixFromMatrix as i0, SheetInterceptorService as a0, RemoveSheetCommand as l0, CopySheetCommand as o0, ReorderRangeMutation as u0, MoveRangeMutation as c0, MoveColsMutation as d0, MoveRowsMutation as h0, InsertRowMutation as g0, RemoveRowMutation as C0, RemoveColMutation as f0, InsertColMutation as D0, SetRangeValuesMutation as m0 } from "@univerjs/sheets";
7
7
  import { Subject as d2, BehaviorSubject as F0 } from "rxjs";
8
- import { RegisterOtherFormulaService as w0, FormulaResultStatus as p, OtherFormulaBizType as v0, ERROR_TYPE_SET as R2, BooleanValue as I2 } from "@univerjs/engine-formula";
9
- import { distinctUntilChanged as p0, bufferTime as E0, filter as A0, map as _0 } from "rxjs/operators";
10
- import { isObject as x0, SpreadsheetExtensionRegistry as O2, SheetExtension as $2, FIX_ONE_PIXEL_BLUR_OFFSET as M0 } from "@univerjs/engine-render";
11
- import { UniverSheetsFormulaPlugin as y0 } from "@univerjs/sheets-formula";
8
+ import { RegisterOtherFormulaService as w0, FormulaResultStatus as p, OtherFormulaBizType as v0, ERROR_TYPE_SET as R2, BooleanValue as I2, UniverFormulaEnginePlugin as p0 } from "@univerjs/engine-formula";
9
+ import { distinctUntilChanged as E0, bufferTime as A0, filter as _0, map as x0 } from "rxjs/operators";
10
+ import { isObject as M0, SpreadsheetExtensionRegistry as O2, SheetExtension as $2, FIX_ONE_PIXEL_BLUR_OFFSET as y0 } from "@univerjs/engine-render";
12
11
  const P2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
13
12
  var B = /* @__PURE__ */ ((s) => (s.beginsWith = "beginsWith", s.endsWith = "endsWith", s.containsText = "containsText", s.notContainsText = "notContainsText", s.equal = "equal", s.notEqual = "notEqual", s.containsBlanks = "containsBlanks", s.notContainsBlanks = "notContainsBlanks", s.containsErrors = "containsErrors", s.notContainsErrors = "notContainsErrors", s))(B || {}), k = /* @__PURE__ */ ((s) => (s.today = "today", s.yesterday = "yesterday", s.tomorrow = "tomorrow", s.last7Days = "last7Days", s.thisMonth = "thisMonth", s.lastMonth = "lastMonth", s.nextMonth = "nextMonth", s.thisWeek = "thisWeek", s.lastWeek = "lastWeek", s.nextWeek = "nextWeek", s))(k || {}), w = /* @__PURE__ */ ((s) => (s.greaterThan = "greaterThan", s.greaterThanOrEqual = "greaterThanOrEqual", s.lessThan = "lessThan", s.lessThanOrEqual = "lessThanOrEqual", s.notBetween = "notBetween", s.between = "between", s.equal = "equal", s.notEqual = "notEqual", s))(w || {}), M = /* @__PURE__ */ ((s) => (s.highlightCell = "highlightCell", s.dataBar = "dataBar", s.colorScale = "colorScale", s.iconSet = "iconSet", s))(M || {}), _ = /* @__PURE__ */ ((s) => (s.uniqueValues = "uniqueValues", s.duplicateValues = "duplicateValues", s.rank = "rank", s.text = "text", s.timePeriod = "timePeriod", s.number = "number", s.average = "average", s.formula = "formula", s))(_ || {}), b = /* @__PURE__ */ ((s) => (s.num = "num", s.min = "min", s.max = "max", s.percent = "percent", s.percentile = "percentile", s.formula = "formula", s))(b || {});
14
- const O1 = "#fff", $1 = "#000000", P1 = () => ({
13
+ const V1 = "#fff", O1 = "#000000", $1 = () => ({
15
14
  cfId: void 0,
16
15
  ranges: [],
17
16
  stopIfTrue: !1,
@@ -21,7 +20,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
21
20
  operator: "containsText"
22
21
  /* containsText */
23
22
  }
24
- }), W1 = (s, r) => {
23
+ }), P1 = (s, r) => {
25
24
  switch (s) {
26
25
  case "text": {
27
26
  if ([
@@ -44,7 +43,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
44
43
  ].includes(r) ? [10, 100] : 10;
45
44
  }
46
45
  return "";
47
- }, q1 = (s, r) => {
46
+ }, W1 = (s, r) => {
48
47
  switch (s) {
49
48
  case "formula":
50
49
  return "=";
@@ -133,7 +132,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
133
132
  return [r, { ...s, type: "self" }];
134
133
  }
135
134
  return null;
136
- }, Z1 = (s, r) => s.id === r.id && s.type === r.type, S0 = () => `${X2(8)}`;
135
+ }, q1 = (s, r) => s.id === r.id && s.type === r.type, S0 = () => `${X2(8)}`;
137
136
  class y {
138
137
  constructor() {
139
138
  // Map<unitID ,<sheetId ,IConditionFormattingRule[]>>
@@ -161,6 +160,9 @@ class y {
161
160
  var n;
162
161
  return ((n = this._model.get(r)) == null ? void 0 : n.get(t)) || null;
163
162
  }
163
+ getAll() {
164
+ return this._model;
165
+ }
164
166
  deleteRule(r, t, e) {
165
167
  const n = this.getSubunitRules(r, t);
166
168
  if (n) {
@@ -569,7 +571,7 @@ class F2 {
569
571
  "preComputingStart"
570
572
  /* preComputingStart */
571
573
  ));
572
- m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(p0()));
574
+ m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(E0()));
573
575
  /**
574
576
  * 2nd-level cache
575
577
  */
@@ -651,7 +653,7 @@ class $0 extends F2 {
651
653
  }),
652
654
  color: new U2(d.color)
653
655
  }));
654
- if (!l.some((d) => x0(d.value) ? d.value.status !== p.SUCCESS : !1)) {
656
+ if (!l.some((d) => M0(d.value) ? d.value.status !== p.SUCCESS : !1)) {
655
657
  const d = l.map((u) => u.color).reduce((u, h, g) => (u.result.push({ color: h, value: u.sortValue[g] }), u), {
656
658
  result: [],
657
659
  sortValue: l.map((u) => u.value.result).sort((u, h) => u - h)
@@ -704,7 +706,7 @@ class G0 extends $2 {
704
706
  return;
705
707
  c.add($);
706
708
  }
707
- const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY: w2 } = u || h ? g : d, o2 = I - A, v2 = w2 + M0 - L, Z = o2 - this._paddingRightAndLeft * 2, y2 = v2 - this._paddingTopAndBottom * 2;
709
+ const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY: w2 } = u || h ? g : d, o2 = I - A, v2 = w2 + y0 - L, Z = o2 - this._paddingRightAndLeft * 2, y2 = v2 - this._paddingTopAndBottom * 2;
708
710
  if (F > 0) {
709
711
  const $ = Math.max(Z * (1 - E / 100) * F / 100, 1), G = A + this._paddingRightAndLeft + E / 100 * Z, H = L + this._paddingTopAndBottom;
710
712
  if (R) {
@@ -1145,7 +1147,7 @@ let Q = class extends _2 {
1145
1147
  */
1146
1148
  m(this, "markRuleDirty", (() => {
1147
1149
  const r = new d2();
1148
- return this.disposeWithMe(r.pipe(E0(100), A0((t) => !!t.length), _0((t) => {
1150
+ return this.disposeWithMe(r.pipe(A0(100), _0((t) => !!t.length), x0((t) => {
1149
1151
  const e = /* @__PURE__ */ new Set(), n = [];
1150
1152
  return t.forEach((i) => {
1151
1153
  const a = `${i.unitId}_${i.subUnitId}_${i.cfId}`;
@@ -1380,7 +1382,7 @@ const e1 = (s) => {
1380
1382
  };
1381
1383
  }
1382
1384
  }
1383
- }, G1 = (s, r, t, e) => {
1385
+ }, Z1 = (s, r, t, e) => {
1384
1386
  const { accessor: n } = e, i = n.get(Q), a = new V();
1385
1387
  return t.ranges.forEach((c) => {
1386
1388
  T.foreach(c, (l, o) => {
@@ -1465,7 +1467,7 @@ const e1 = (s) => {
1465
1467
  const n = { ...e };
1466
1468
  return n.endRow = Math.min(n.endRow, r), n.endColumn = Math.min(n.endColumn, t), n;
1467
1469
  }).filter((e) => !!e);
1468
- function H1(s) {
1470
+ function G1(s) {
1469
1471
  let r = 0;
1470
1472
  return new V(s).forValue((t, e, n) => {
1471
1473
  r = Math.max(Number.isNaN(r) ? 0 : r, Number(n));
@@ -1838,7 +1840,7 @@ let f2 = class extends t0 {
1838
1840
  G2(f2, "pluginName", P2);
1839
1841
  G2(f2, "type", D2.UNIVER_SHEET);
1840
1842
  f2 = A1([
1841
- Q2(y0),
1843
+ Q2(p0),
1842
1844
  A2(1, S(x2)),
1843
1845
  A2(2, S(W)),
1844
1846
  A2(3, e0)
@@ -1932,8 +1934,8 @@ export {
1932
1934
  y as ConditionalFormattingRuleModel,
1933
1935
  s2 as ConditionalFormattingService,
1934
1936
  Q as ConditionalFormattingViewModel,
1935
- O1 as DEFAULT_BG_COLOR,
1936
- $1 as DEFAULT_FONT_COLOR,
1937
+ V1 as DEFAULT_BG_COLOR,
1938
+ O1 as DEFAULT_FONT_COLOR,
1937
1939
  y1 as DEFAULT_PADDING,
1938
1940
  M1 as DEFAULT_WIDTH,
1939
1941
  G0 as DataBar,
@@ -1952,27 +1954,27 @@ export {
1952
1954
  I0 as anchorUndoFactory,
1953
1955
  r2 as compareWithNumber,
1954
1956
  S0 as createCfId,
1955
- P1 as createDefaultRule,
1956
- W1 as createDefaultValue,
1957
- q1 as createDefaultValueByValueType,
1957
+ $1 as createDefaultRule,
1958
+ P1 as createDefaultValue,
1959
+ W1 as createDefaultValueByValueType,
1958
1960
  P0 as dataBarUKey,
1959
1961
  L2 as defaultDataBarNativeColor,
1960
1962
  b2 as defaultDataBarPositiveColor,
1961
1963
  W0 as defaultPlaceholderColor,
1962
1964
  M2 as filterRange,
1963
1965
  X as findIndexByAnchor,
1964
- G1 as getCacheStyleMatrix,
1966
+ Z1 as getCacheStyleMatrix,
1965
1967
  P as getCellValue,
1966
1968
  n1 as getColorScaleFromValue,
1967
- H1 as getMaxInFormulaResult,
1969
+ G1 as getMaxInFormulaResult,
1968
1970
  t1 as getOppositeOperator,
1969
1971
  g2 as getValueByType,
1970
1972
  g1 as iconGroup,
1971
1973
  C2 as iconMap,
1972
- Z1 as isAnchorEqual,
1974
+ q1 as isAnchorEqual,
1973
1975
  h2 as isFloatsEqual,
1974
1976
  N as isNullable,
1975
- K1 as isRangesEqual,
1977
+ X1 as isRangesEqual,
1976
1978
  R0 as moveByAnchor,
1977
1979
  S1 as removeUndefinedAttr,
1978
1980
  e1 as serialTimeToTimestamp,
package/lib/index.js CHANGED
@@ -2,16 +2,15 @@ var H2 = Object.defineProperty;
2
2
  var j2 = (s, r, t) => r in s ? H2(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
3
  var m = (s, r, t) => j2(s, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { generateRandomId as X2, Tools as J, CommandType as O, IUndoRedoService as e2, ICommandService as W, IUniverInstanceService as q, ObjectMatrix as V, Range as T, sequenceExecute as k2, Inject as S, Disposable as _2, RefAlias as K2, CellValueType as x, BooleanNumber as N2, LRUMap as T2, ColorKit as U2, dayjs as v, Injector as x2, RTree as Y2, IResourceManagerService as J2, merge as V2, UniverInstanceType as D2, isInternalEditorID as z2, Rectangle as n2, DependentOn as Q2, IConfigService as e0, Plugin as t0, touchDependencies as n0 } from "@univerjs/core";
5
- import { isRangesEqual as K1 } from "@univerjs/core";
5
+ import { isRangesEqual as X1 } from "@univerjs/core";
6
6
  import { getSheetCommandTarget as t2, SheetsSelectionsService as r0, findAllRectangle as s0, createTopMatrixFromMatrix as i0, SheetInterceptorService as a0, RemoveSheetCommand as l0, CopySheetCommand as o0, ReorderRangeMutation as u0, MoveRangeMutation as c0, MoveColsMutation as d0, MoveRowsMutation as h0, InsertRowMutation as g0, RemoveRowMutation as C0, RemoveColMutation as f0, InsertColMutation as D0, SetRangeValuesMutation as m0 } from "@univerjs/sheets";
7
7
  import { Subject as d2, BehaviorSubject as F0 } from "rxjs";
8
- import { RegisterOtherFormulaService as w0, FormulaResultStatus as p, OtherFormulaBizType as v0, ERROR_TYPE_SET as R2, BooleanValue as I2 } from "@univerjs/engine-formula";
9
- import { distinctUntilChanged as p0, bufferTime as E0, filter as A0, map as _0 } from "rxjs/operators";
10
- import { isObject as x0, SpreadsheetExtensionRegistry as O2, SheetExtension as $2, FIX_ONE_PIXEL_BLUR_OFFSET as M0 } from "@univerjs/engine-render";
11
- import { UniverSheetsFormulaPlugin as y0 } from "@univerjs/sheets-formula";
8
+ import { RegisterOtherFormulaService as w0, FormulaResultStatus as p, OtherFormulaBizType as v0, ERROR_TYPE_SET as R2, BooleanValue as I2, UniverFormulaEnginePlugin as p0 } from "@univerjs/engine-formula";
9
+ import { distinctUntilChanged as E0, bufferTime as A0, filter as _0, map as x0 } from "rxjs/operators";
10
+ import { isObject as M0, SpreadsheetExtensionRegistry as O2, SheetExtension as $2, FIX_ONE_PIXEL_BLUR_OFFSET as y0 } from "@univerjs/engine-render";
12
11
  const P2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
13
12
  var B = /* @__PURE__ */ ((s) => (s.beginsWith = "beginsWith", s.endsWith = "endsWith", s.containsText = "containsText", s.notContainsText = "notContainsText", s.equal = "equal", s.notEqual = "notEqual", s.containsBlanks = "containsBlanks", s.notContainsBlanks = "notContainsBlanks", s.containsErrors = "containsErrors", s.notContainsErrors = "notContainsErrors", s))(B || {}), k = /* @__PURE__ */ ((s) => (s.today = "today", s.yesterday = "yesterday", s.tomorrow = "tomorrow", s.last7Days = "last7Days", s.thisMonth = "thisMonth", s.lastMonth = "lastMonth", s.nextMonth = "nextMonth", s.thisWeek = "thisWeek", s.lastWeek = "lastWeek", s.nextWeek = "nextWeek", s))(k || {}), w = /* @__PURE__ */ ((s) => (s.greaterThan = "greaterThan", s.greaterThanOrEqual = "greaterThanOrEqual", s.lessThan = "lessThan", s.lessThanOrEqual = "lessThanOrEqual", s.notBetween = "notBetween", s.between = "between", s.equal = "equal", s.notEqual = "notEqual", s))(w || {}), M = /* @__PURE__ */ ((s) => (s.highlightCell = "highlightCell", s.dataBar = "dataBar", s.colorScale = "colorScale", s.iconSet = "iconSet", s))(M || {}), _ = /* @__PURE__ */ ((s) => (s.uniqueValues = "uniqueValues", s.duplicateValues = "duplicateValues", s.rank = "rank", s.text = "text", s.timePeriod = "timePeriod", s.number = "number", s.average = "average", s.formula = "formula", s))(_ || {}), b = /* @__PURE__ */ ((s) => (s.num = "num", s.min = "min", s.max = "max", s.percent = "percent", s.percentile = "percentile", s.formula = "formula", s))(b || {});
14
- const O1 = "#fff", $1 = "#000000", P1 = () => ({
13
+ const V1 = "#fff", O1 = "#000000", $1 = () => ({
15
14
  cfId: void 0,
16
15
  ranges: [],
17
16
  stopIfTrue: !1,
@@ -21,7 +20,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
21
20
  operator: "containsText"
22
21
  /* containsText */
23
22
  }
24
- }), W1 = (s, r) => {
23
+ }), P1 = (s, r) => {
25
24
  switch (s) {
26
25
  case "text": {
27
26
  if ([
@@ -44,7 +43,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
44
43
  ].includes(r) ? [10, 100] : 10;
45
44
  }
46
45
  return "";
47
- }, q1 = (s, r) => {
46
+ }, W1 = (s, r) => {
48
47
  switch (s) {
49
48
  case "formula":
50
49
  return "=";
@@ -133,7 +132,7 @@ const O1 = "#fff", $1 = "#000000", P1 = () => ({
133
132
  return [r, { ...s, type: "self" }];
134
133
  }
135
134
  return null;
136
- }, Z1 = (s, r) => s.id === r.id && s.type === r.type, S0 = () => `${X2(8)}`;
135
+ }, q1 = (s, r) => s.id === r.id && s.type === r.type, S0 = () => `${X2(8)}`;
137
136
  class y {
138
137
  constructor() {
139
138
  // Map<unitID ,<sheetId ,IConditionFormattingRule[]>>
@@ -161,6 +160,9 @@ class y {
161
160
  var n;
162
161
  return ((n = this._model.get(r)) == null ? void 0 : n.get(t)) || null;
163
162
  }
163
+ getAll() {
164
+ return this._model;
165
+ }
164
166
  deleteRule(r, t, e) {
165
167
  const n = this.getSubunitRules(r, t);
166
168
  if (n) {
@@ -569,7 +571,7 @@ class F2 {
569
571
  "preComputingStart"
570
572
  /* preComputingStart */
571
573
  ));
572
- m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(p0()));
574
+ m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(E0()));
573
575
  /**
574
576
  * 2nd-level cache
575
577
  */
@@ -651,7 +653,7 @@ class $0 extends F2 {
651
653
  }),
652
654
  color: new U2(d.color)
653
655
  }));
654
- if (!l.some((d) => x0(d.value) ? d.value.status !== p.SUCCESS : !1)) {
656
+ if (!l.some((d) => M0(d.value) ? d.value.status !== p.SUCCESS : !1)) {
655
657
  const d = l.map((u) => u.color).reduce((u, h, g) => (u.result.push({ color: h, value: u.sortValue[g] }), u), {
656
658
  result: [],
657
659
  sortValue: l.map((u) => u.value.result).sort((u, h) => u - h)
@@ -704,7 +706,7 @@ class G0 extends $2 {
704
706
  return;
705
707
  c.add($);
706
708
  }
707
- const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY: w2 } = u || h ? g : d, o2 = I - A, v2 = w2 + M0 - L, Z = o2 - this._paddingRightAndLeft * 2, y2 = v2 - this._paddingTopAndBottom * 2;
709
+ const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY: w2 } = u || h ? g : d, o2 = I - A, v2 = w2 + y0 - L, Z = o2 - this._paddingRightAndLeft * 2, y2 = v2 - this._paddingTopAndBottom * 2;
708
710
  if (F > 0) {
709
711
  const $ = Math.max(Z * (1 - E / 100) * F / 100, 1), G = A + this._paddingRightAndLeft + E / 100 * Z, H = L + this._paddingTopAndBottom;
710
712
  if (R) {
@@ -1145,7 +1147,7 @@ let Q = class extends _2 {
1145
1147
  */
1146
1148
  m(this, "markRuleDirty", (() => {
1147
1149
  const r = new d2();
1148
- return this.disposeWithMe(r.pipe(E0(100), A0((t) => !!t.length), _0((t) => {
1150
+ return this.disposeWithMe(r.pipe(A0(100), _0((t) => !!t.length), x0((t) => {
1149
1151
  const e = /* @__PURE__ */ new Set(), n = [];
1150
1152
  return t.forEach((i) => {
1151
1153
  const a = `${i.unitId}_${i.subUnitId}_${i.cfId}`;
@@ -1380,7 +1382,7 @@ const e1 = (s) => {
1380
1382
  };
1381
1383
  }
1382
1384
  }
1383
- }, G1 = (s, r, t, e) => {
1385
+ }, Z1 = (s, r, t, e) => {
1384
1386
  const { accessor: n } = e, i = n.get(Q), a = new V();
1385
1387
  return t.ranges.forEach((c) => {
1386
1388
  T.foreach(c, (l, o) => {
@@ -1465,7 +1467,7 @@ const e1 = (s) => {
1465
1467
  const n = { ...e };
1466
1468
  return n.endRow = Math.min(n.endRow, r), n.endColumn = Math.min(n.endColumn, t), n;
1467
1469
  }).filter((e) => !!e);
1468
- function H1(s) {
1470
+ function G1(s) {
1469
1471
  let r = 0;
1470
1472
  return new V(s).forValue((t, e, n) => {
1471
1473
  r = Math.max(Number.isNaN(r) ? 0 : r, Number(n));
@@ -1838,7 +1840,7 @@ let f2 = class extends t0 {
1838
1840
  G2(f2, "pluginName", P2);
1839
1841
  G2(f2, "type", D2.UNIVER_SHEET);
1840
1842
  f2 = A1([
1841
- Q2(y0),
1843
+ Q2(p0),
1842
1844
  A2(1, S(x2)),
1843
1845
  A2(2, S(W)),
1844
1846
  A2(3, e0)
@@ -1932,8 +1934,8 @@ export {
1932
1934
  y as ConditionalFormattingRuleModel,
1933
1935
  s2 as ConditionalFormattingService,
1934
1936
  Q as ConditionalFormattingViewModel,
1935
- O1 as DEFAULT_BG_COLOR,
1936
- $1 as DEFAULT_FONT_COLOR,
1937
+ V1 as DEFAULT_BG_COLOR,
1938
+ O1 as DEFAULT_FONT_COLOR,
1937
1939
  y1 as DEFAULT_PADDING,
1938
1940
  M1 as DEFAULT_WIDTH,
1939
1941
  G0 as DataBar,
@@ -1952,27 +1954,27 @@ export {
1952
1954
  I0 as anchorUndoFactory,
1953
1955
  r2 as compareWithNumber,
1954
1956
  S0 as createCfId,
1955
- P1 as createDefaultRule,
1956
- W1 as createDefaultValue,
1957
- q1 as createDefaultValueByValueType,
1957
+ $1 as createDefaultRule,
1958
+ P1 as createDefaultValue,
1959
+ W1 as createDefaultValueByValueType,
1958
1960
  P0 as dataBarUKey,
1959
1961
  L2 as defaultDataBarNativeColor,
1960
1962
  b2 as defaultDataBarPositiveColor,
1961
1963
  W0 as defaultPlaceholderColor,
1962
1964
  M2 as filterRange,
1963
1965
  X as findIndexByAnchor,
1964
- G1 as getCacheStyleMatrix,
1966
+ Z1 as getCacheStyleMatrix,
1965
1967
  P as getCellValue,
1966
1968
  n1 as getColorScaleFromValue,
1967
- H1 as getMaxInFormulaResult,
1969
+ G1 as getMaxInFormulaResult,
1968
1970
  t1 as getOppositeOperator,
1969
1971
  g2 as getValueByType,
1970
1972
  g1 as iconGroup,
1971
1973
  C2 as iconMap,
1972
- Z1 as isAnchorEqual,
1974
+ q1 as isAnchorEqual,
1973
1975
  h2 as isFloatsEqual,
1974
1976
  N as isNullable,
1975
- K1 as isRangesEqual,
1977
+ X1 as isRangesEqual,
1976
1978
  R0 as moveByAnchor,
1977
1979
  S1 as removeUndefinedAttr,
1978
1980
  e1 as serialTimeToTimestamp,
@@ -1,5 +1,5 @@
1
1
  import { IAnchor } from '../utils/anchor';
2
- import { IConditionFormattingRule } from './type';
2
+ import { IConditionFormattingRule, IRuleModel } from './type';
3
3
  type RuleOperatorType = 'delete' | 'set' | 'add' | 'sort';
4
4
  export declare class ConditionalFormattingRuleModel {
5
5
  private _model;
@@ -15,6 +15,7 @@ export declare class ConditionalFormattingRuleModel {
15
15
  getRule(unitId: string, subUnitId: string, cfId?: string): IConditionFormattingRule<import('./type').IConditionalFormattingRuleConfig> | null | undefined;
16
16
  getUnitRules(unitId: string): Map<string, IConditionFormattingRule<import('./type').IConditionalFormattingRuleConfig>[]> | null;
17
17
  getSubunitRules(unitId: string, subUnitId: string): IConditionFormattingRule<import('./type').IConditionalFormattingRuleConfig>[] | null;
18
+ getAll(): IRuleModel;
18
19
  deleteRule(unitId: string, subUnitId: string, cfId: string): void;
19
20
  setRule(unitId: string, subUnitId: string, rule: IConditionFormattingRule, oldCfId: string): void;
20
21
  addRule(unitId: string, subUnitId: string, rule: IConditionFormattingRule): void;