@univerjs/sheets-data-validation-ui 0.4.0-alpha.0 → 0.4.0-alpha.1

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
@@ -8,7 +8,6 @@ import { Button, DatePanel, RectPopup, Scrollbar, FormLayout, RadioGroup, Radio,
8
8
  import { SetRangeValuesCommand, SheetsSelectionsService, getSheetCommandTarget, WorkbookEditablePermission, RangeProtectionPermissionEditPoint, WorksheetEditPermission, checkRangesEditablePermission, WorksheetSetCellStylePermission, SheetInterceptorService, INTERCEPTOR_POINT, InterceptCellContentPriority } from "@univerjs/sheets";
9
9
  import { SheetDataValidationModel, getCellValueOrigin, getDataValidationCellValue, deserializeListOptions, serializeListOptions, UpdateSheetDataValidationRangeCommand, UpdateSheetDataValidationSettingCommand, RemoveSheetDataValidationCommand, UpdateSheetDataValidationOptionsCommand, createDefaultNewRule, AddSheetDataValidationCommand, RemoveSheetAllDataValidationCommand, DATA_VALIDATION_PLUGIN_NAME, getDataValidationDiffMutations, DataValidationFormulaController, DataValidationFormulaService, getFormulaResult, transformCheckboxValue, CHECKBOX_FORMULA_1, CHECKBOX_FORMULA_2 } from "@univerjs/sheets-data-validation";
10
10
  import { getPatternType } from "@univerjs/sheets-numfmt";
11
- import dayjs from "dayjs";
12
11
  import { DataValidatorRegistryService, DataValidationModel, DataValidatorRegistryScope, TWO_FORMULA_OPERATOR_COUNT, getRuleOptions, getRuleSetting } from "@univerjs/data-validation";
13
12
  import { IEditorBridgeService, SheetCanvasPopManagerService, SheetPermissionInterceptorBaseController, IMarkSelectionService, HoverManagerService, CellAlertManagerService, CellAlertType, IAutoFillService, APPLY_TYPE, virtualizeDiscreteRanges, getAutoFillRepeatRange, COPY_TYPE, rangeToDiscreteRange, PREDEFINED_HOOK_NAME, getRepeatRange, ISheetClipboardService, getCurrentRangeDisable$, AutoHeightController, SheetSkeletonManagerService } from "@univerjs/sheets-ui";
14
13
  import { IDialogService, ISidebarService, useObservable, ComponentManager, IZenZoneService, KeyCode, useEvent, MenuItemType, getMenuHiddenObservable, RibbonStartGroup, IMenuManagerService } from "@univerjs/ui";
@@ -17,7 +16,6 @@ import { IRenderManagerService, DeviceInputEventType, fixLineWidthByScale, Trans
17
16
  import { filter, BehaviorSubject, distinctUntilChanged, Subject, debounceTime, bufferTime } from "rxjs";
18
17
  import { RangeSelector, TextEditor } from "@univerjs/docs-ui";
19
18
  import { serializeRange } from "@univerjs/engine-formula";
20
- import cs from "clsx";
21
19
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
22
20
  function getDefaultExportFromCjs(x) {
23
21
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
@@ -46,7 +44,286 @@ reactJsxRuntime_production_min.Fragment = l;
46
44
  reactJsxRuntime_production_min.jsx = q;
47
45
  reactJsxRuntime_production_min.jsxs = q;
48
46
  jsxRuntime.exports = reactJsxRuntime_production_min;
49
- var jsxRuntimeExports = jsxRuntime.exports, utc$1 = { exports: {} };
47
+ var jsxRuntimeExports = jsxRuntime.exports, dayjs_min = { exports: {} };
48
+ (function(module, exports) {
49
+ (function(t, e) {
50
+ module.exports = e();
51
+ })(commonjsGlobal, function() {
52
+ var t = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f2 = "quarter", h = "year", d = "date", l2 = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ __name(function(t2) {
53
+ var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
54
+ return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
55
+ }, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t2, e2, n3) {
56
+ var r3 = String(t2);
57
+ return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n3) + t2;
58
+ }, "m"), v = { s: m2, z: /* @__PURE__ */ __name(function(t2) {
59
+ var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
60
+ return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i2, 2, "0");
61
+ }, "z"), m: /* @__PURE__ */ __name(function t2(e2, n3) {
62
+ if (e2.date() < n3.date()) return -t2(n3, e2);
63
+ var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n3 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
64
+ return +(-(r3 + (n3 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
65
+ }, "t"), a: /* @__PURE__ */ __name(function(t2) {
66
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
67
+ }, "a"), p: /* @__PURE__ */ __name(function(t2) {
68
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
69
+ }, "p"), u: /* @__PURE__ */ __name(function(t2) {
70
+ return t2 === void 0;
71
+ }, "u") }, g = "en", D = {};
72
+ D[g] = M;
73
+ var p2 = "$isDayjsObject", S = /* @__PURE__ */ __name(function(t2) {
74
+ return t2 instanceof _ || !(!t2 || !t2[p2]);
75
+ }, "S"), w = /* @__PURE__ */ __name(function t2(e2, n3, r3) {
76
+ var i2;
77
+ if (!e2) return g;
78
+ if (typeof e2 == "string") {
79
+ var s2 = e2.toLowerCase();
80
+ D[s2] && (i2 = s2), n3 && (D[s2] = n3, i2 = s2);
81
+ var u2 = e2.split("-");
82
+ if (!i2 && u2.length > 1) return t2(u2[0]);
83
+ } else {
84
+ var a2 = e2.name;
85
+ D[a2] = e2, i2 = a2;
86
+ }
87
+ return !r3 && i2 && (g = i2), i2 || !r3 && g;
88
+ }, "t"), O = /* @__PURE__ */ __name(function(t2, e2) {
89
+ if (S(t2)) return t2.clone();
90
+ var n3 = typeof e2 == "object" ? e2 : {};
91
+ return n3.date = t2, n3.args = arguments, new _(n3);
92
+ }, "O"), b = v;
93
+ b.l = w, b.i = S, b.w = function(t2, e2) {
94
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
95
+ };
96
+ var _ = function() {
97
+ function M2(t2) {
98
+ this.$L = w(t2.locale, null, !0), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = !0;
99
+ }
100
+ __name(M2, "M");
101
+ var m3 = M2.prototype;
102
+ return m3.parse = function(t2) {
103
+ this.$d = function(t3) {
104
+ var e2 = t3.date, n3 = t3.utc;
105
+ if (e2 === null) return /* @__PURE__ */ new Date(NaN);
106
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
107
+ if (e2 instanceof Date) return new Date(e2);
108
+ if (typeof e2 == "string" && !/Z$/i.test(e2)) {
109
+ var r3 = e2.match($);
110
+ if (r3) {
111
+ var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
112
+ return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
113
+ }
114
+ }
115
+ return new Date(e2);
116
+ }(t2), this.init();
117
+ }, m3.init = function() {
118
+ var t2 = this.$d;
119
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
120
+ }, m3.$utils = function() {
121
+ return b;
122
+ }, m3.isValid = function() {
123
+ return this.$d.toString() !== l2;
124
+ }, m3.isSame = function(t2, e2) {
125
+ var n3 = O(t2);
126
+ return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
127
+ }, m3.isAfter = function(t2, e2) {
128
+ return O(t2) < this.startOf(e2);
129
+ }, m3.isBefore = function(t2, e2) {
130
+ return this.endOf(e2) < O(t2);
131
+ }, m3.$g = function(t2, e2, n3) {
132
+ return b.u(t2) ? this[e2] : this.set(n3, t2);
133
+ }, m3.unix = function() {
134
+ return Math.floor(this.valueOf() / 1e3);
135
+ }, m3.valueOf = function() {
136
+ return this.$d.getTime();
137
+ }, m3.startOf = function(t2, e2) {
138
+ var n3 = this, r3 = !!b.u(e2) || e2, f3 = b.p(t2), l3 = /* @__PURE__ */ __name(function(t3, e3) {
139
+ var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
140
+ return r3 ? i2 : i2.endOf(a);
141
+ }, "l"), $2 = /* @__PURE__ */ __name(function(t3, e3) {
142
+ return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
143
+ }, "$"), y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
144
+ switch (f3) {
145
+ case h:
146
+ return r3 ? l3(1, 0) : l3(31, 11);
147
+ case c:
148
+ return r3 ? l3(1, M3) : l3(0, M3 + 1);
149
+ case o:
150
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
151
+ return l3(r3 ? m4 - D2 : m4 + (6 - D2), M3);
152
+ case a:
153
+ case d:
154
+ return $2(v2 + "Hours", 0);
155
+ case u:
156
+ return $2(v2 + "Minutes", 1);
157
+ case s:
158
+ return $2(v2 + "Seconds", 2);
159
+ case i:
160
+ return $2(v2 + "Milliseconds", 3);
161
+ default:
162
+ return this.clone();
163
+ }
164
+ }, m3.endOf = function(t2) {
165
+ return this.startOf(t2, !1);
166
+ }, m3.$set = function(t2, e2) {
167
+ var n3, o2 = b.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a] = f3 + "Date", n3[d] = f3 + "Date", n3[c] = f3 + "Month", n3[h] = f3 + "FullYear", n3[u] = f3 + "Hours", n3[s] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
168
+ if (o2 === c || o2 === h) {
169
+ var y2 = this.clone().set(d, 1);
170
+ y2.$d[l3]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
171
+ } else l3 && this.$d[l3]($2);
172
+ return this.init(), this;
173
+ }, m3.set = function(t2, e2) {
174
+ return this.clone().$set(t2, e2);
175
+ }, m3.get = function(t2) {
176
+ return this[b.p(t2)]();
177
+ }, m3.add = function(r3, f3) {
178
+ var d2, l3 = this;
179
+ r3 = Number(r3);
180
+ var $2 = b.p(f3), y2 = /* @__PURE__ */ __name(function(t2) {
181
+ var e2 = O(l3);
182
+ return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l3);
183
+ }, "y");
184
+ if ($2 === c) return this.set(c, this.$M + r3);
185
+ if ($2 === h) return this.set(h, this.$y + r3);
186
+ if ($2 === a) return y2(1);
187
+ if ($2 === o) return y2(7);
188
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
189
+ return b.w(m4, this);
190
+ }, m3.subtract = function(t2, e2) {
191
+ return this.add(-1 * t2, e2);
192
+ }, m3.format = function(t2) {
193
+ var e2 = this, n3 = this.$locale();
194
+ if (!this.isValid()) return n3.invalidDate || l2;
195
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f3 = n3.meridiem, h2 = /* @__PURE__ */ __name(function(t3, n4, i3, s3) {
196
+ return t3 && (t3[n4] || t3(e2, r3)) || i3[n4].slice(0, s3);
197
+ }, "h"), d2 = /* @__PURE__ */ __name(function(t3) {
198
+ return b.s(s2 % 12 || 12, t3, "0");
199
+ }, "d"), $2 = f3 || function(t3, e3, n4) {
200
+ var r4 = t3 < 12 ? "AM" : "PM";
201
+ return n4 ? r4.toLowerCase() : r4;
202
+ };
203
+ return r3.replace(y, function(t3, r4) {
204
+ return r4 || function(t4) {
205
+ switch (t4) {
206
+ case "YY":
207
+ return String(e2.$y).slice(-2);
208
+ case "YYYY":
209
+ return b.s(e2.$y, 4, "0");
210
+ case "M":
211
+ return a2 + 1;
212
+ case "MM":
213
+ return b.s(a2 + 1, 2, "0");
214
+ case "MMM":
215
+ return h2(n3.monthsShort, a2, c2, 3);
216
+ case "MMMM":
217
+ return h2(c2, a2);
218
+ case "D":
219
+ return e2.$D;
220
+ case "DD":
221
+ return b.s(e2.$D, 2, "0");
222
+ case "d":
223
+ return String(e2.$W);
224
+ case "dd":
225
+ return h2(n3.weekdaysMin, e2.$W, o2, 2);
226
+ case "ddd":
227
+ return h2(n3.weekdaysShort, e2.$W, o2, 3);
228
+ case "dddd":
229
+ return o2[e2.$W];
230
+ case "H":
231
+ return String(s2);
232
+ case "HH":
233
+ return b.s(s2, 2, "0");
234
+ case "h":
235
+ return d2(1);
236
+ case "hh":
237
+ return d2(2);
238
+ case "a":
239
+ return $2(s2, u2, !0);
240
+ case "A":
241
+ return $2(s2, u2, !1);
242
+ case "m":
243
+ return String(u2);
244
+ case "mm":
245
+ return b.s(u2, 2, "0");
246
+ case "s":
247
+ return String(e2.$s);
248
+ case "ss":
249
+ return b.s(e2.$s, 2, "0");
250
+ case "SSS":
251
+ return b.s(e2.$ms, 3, "0");
252
+ case "Z":
253
+ return i2;
254
+ }
255
+ return null;
256
+ }(t3) || i2.replace(":", "");
257
+ });
258
+ }, m3.utcOffset = function() {
259
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
260
+ }, m3.diff = function(r3, d2, l3) {
261
+ var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e, g2 = this - m4, D2 = /* @__PURE__ */ __name(function() {
262
+ return b.m(y2, m4);
263
+ }, "D");
264
+ switch (M3) {
265
+ case h:
266
+ $2 = D2() / 12;
267
+ break;
268
+ case c:
269
+ $2 = D2();
270
+ break;
271
+ case f2:
272
+ $2 = D2() / 3;
273
+ break;
274
+ case o:
275
+ $2 = (g2 - v2) / 6048e5;
276
+ break;
277
+ case a:
278
+ $2 = (g2 - v2) / 864e5;
279
+ break;
280
+ case u:
281
+ $2 = g2 / n2;
282
+ break;
283
+ case s:
284
+ $2 = g2 / e;
285
+ break;
286
+ case i:
287
+ $2 = g2 / t;
288
+ break;
289
+ default:
290
+ $2 = g2;
291
+ }
292
+ return l3 ? $2 : b.a($2);
293
+ }, m3.daysInMonth = function() {
294
+ return this.endOf(c).$D;
295
+ }, m3.$locale = function() {
296
+ return D[this.$L];
297
+ }, m3.locale = function(t2, e2) {
298
+ if (!t2) return this.$L;
299
+ var n3 = this.clone(), r3 = w(t2, e2, !0);
300
+ return r3 && (n3.$L = r3), n3;
301
+ }, m3.clone = function() {
302
+ return b.w(this.$d, this);
303
+ }, m3.toDate = function() {
304
+ return new Date(this.valueOf());
305
+ }, m3.toJSON = function() {
306
+ return this.isValid() ? this.toISOString() : null;
307
+ }, m3.toISOString = function() {
308
+ return this.$d.toISOString();
309
+ }, m3.toString = function() {
310
+ return this.$d.toUTCString();
311
+ }, M2;
312
+ }(), k2 = _.prototype;
313
+ return O.prototype = k2, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
314
+ k2[t2[1]] = function(e2) {
315
+ return this.$g(e2, t2[0], t2[1]);
316
+ };
317
+ }), O.extend = function(t2, e2) {
318
+ return t2.$i || (t2(e2, _, O), t2.$i = !0), O;
319
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
320
+ return O(1e3 * t2);
321
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
322
+ });
323
+ })(dayjs_min);
324
+ var dayjs_minExports = dayjs_min.exports;
325
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
326
+ var utc$1 = { exports: {} };
50
327
  (function(module, exports) {
51
328
  (function(t, i) {
52
329
  module.exports = i();
@@ -67,12 +344,12 @@ var jsxRuntimeExports = jsxRuntime.exports, utc$1 = { exports: {} };
67
344
  u.parse = function(t2) {
68
345
  t2.utc && (this.$u = !0), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
69
346
  };
70
- var r = u.init;
347
+ var r2 = u.init;
71
348
  u.init = function() {
72
349
  if (this.$u) {
73
350
  var t2 = this.$d;
74
351
  this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
75
- } else r.call(this);
352
+ } else r2.call(this);
76
353
  };
77
354
  var a = u.utcOffset;
78
355
  u.utcOffset = function(s2, f3) {
@@ -88,8 +365,8 @@ var jsxRuntimeExports = jsxRuntime.exports, utc$1 = { exports: {} };
88
365
  var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
89
366
  if (f3) return o2.$offset = u2, o2.$u = s2 === 0, o2;
90
367
  if (s2 !== 0) {
91
- var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
92
- (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
368
+ var r3 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
369
+ (o2 = this.local().add(u2 + r3, t)).$offset = u2, o2.$x.$localOffset = r3;
93
370
  } else o2 = this.utc();
94
371
  return o2;
95
372
  };
@@ -1912,6 +2189,21 @@ function CustomFormulaInput(props) {
1912
2189
  ) });
1913
2190
  }
1914
2191
  __name(CustomFormulaInput, "CustomFormulaInput");
2192
+ function r(e) {
2193
+ var t, f2, n2 = "";
2194
+ if (typeof e == "string" || typeof e == "number") n2 += e;
2195
+ else if (typeof e == "object") if (Array.isArray(e)) {
2196
+ var o = e.length;
2197
+ for (t = 0; t < o; t++) e[t] && (f2 = r(e[t])) && (n2 && (n2 += " "), n2 += f2);
2198
+ } else for (f2 in e) e[f2] && (n2 && (n2 += " "), n2 += f2);
2199
+ return n2;
2200
+ }
2201
+ __name(r, "r");
2202
+ function clsx() {
2203
+ for (var e, t, f2 = 0, n2 = "", o = arguments.length; f2 < o; f2++) (e = arguments[f2]) && (t = r(e)) && (n2 && (n2 += " "), n2 += t);
2204
+ return n2;
2205
+ }
2206
+ __name(clsx, "clsx");
1915
2207
  const DEFAULT_COLOR_PRESET = [
1916
2208
  "#FFFFFF",
1917
2209
  "#FEE7E7",
@@ -1974,7 +2266,7 @@ const DEFAULT_COLOR_PRESET = [
1974
2266
  }, "ColorSelect"), Template = /* @__PURE__ */ __name((props) => {
1975
2267
  const { item, commonProps, style } = props, { onItemChange, onItemDelete } = commonProps;
1976
2268
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.dataValidationFormulaListItem, style, children: [
1977
- item.isRef ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cs(styles.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SequenceSingle, {}) }),
2269
+ item.isRef ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SequenceSingle, {}) }),
1978
2270
  /* @__PURE__ */ jsxRuntimeExports.jsx(
1979
2271
  ColorSelect,
1980
2272
  {
@@ -2709,10 +3001,10 @@ let DropdownWidget = (_a13 = class {
2709
3001
  }, cellWidth = cellBounding.endX - cellBounding.startX, cellHeight = cellBounding.endY - cellBounding.startY, map = this._ensureMap(subUnitId), key = this._generateKey(row, col), list = validator.getListWithColor(rule), value = getCellValueOrigin(data), valueStr = `${value != null ? value : ""}`, activeItem = list.find((i) => i.label === valueStr);
2710
3002
  let { tb, vt, ht, pd } = style || {};
2711
3003
  if (tb = tb != null ? tb : WrapStrategy.WRAP, vt = vt != null ? vt : VerticalAlign.BOTTOM, ht = ht != null ? ht : DEFAULT_STYLES.ht, pd = pd != null ? pd : DEFAULT_STYLES.pd, rule.renderMode === DataValidationRenderMode.ARROW) {
2712
- const { l: l2 = DEFAULT_STYLES.pd.l, t = DEFAULT_STYLES.pd.t, r = DEFAULT_STYLES.pd.r, b = DEFAULT_STYLES.pd.b } = pd, realWidth = cellWidth - l2 - r - ICON_PLACE - 4, { documentSkeleton, documents, docModel } = createDocuments(valueStr, this._localeService, style);
3004
+ const { l: l2 = DEFAULT_STYLES.pd.l, t = DEFAULT_STYLES.pd.t, r: r2 = DEFAULT_STYLES.pd.r, b = DEFAULT_STYLES.pd.b } = pd, realWidth = cellWidth - l2 - r2 - ICON_PLACE - 4, { documentSkeleton, documents, docModel } = createDocuments(valueStr, this._localeService, style);
2713
3005
  tb === WrapStrategy.WRAP && docModel.updateDocumentDataPageSize(Math.max(realWidth, 1)), documentSkeleton.calculate(), documentSkeleton.getActualSize();
2714
3006
  const textLayout = getDocsSkeletonPageSize(documentSkeleton), { height: fontHeight, width: fontWidth } = textLayout, { paddingTop, paddingLeft } = calcPadding(realWidth, cellHeight - t - b, fontWidth, fontHeight, vt, ht, !0);
2715
- this._drawDownIcon(ctx, cellBounding, cellWidth, cellHeight, fontHeight, vt, pd), ctx.save(), ctx.translateWithPrecision(cellBounding.startX + l2, cellBounding.startY + t), ctx.beginPath(), ctx.rect(0, 0, cellWidth - l2 - r, cellHeight - t - b), ctx.clip(), ctx.translateWithPrecision(0, paddingTop), ctx.save(), ctx.translateWithPrecision(PADDING_H, 0), ctx.beginPath(), ctx.rect(0, 0, realWidth, fontHeight), ctx.clip(), documents.render(ctx), ctx.translateWithPrecision(paddingLeft, 0), ctx.restore(), ctx.restore(), map.set(key, {
3007
+ this._drawDownIcon(ctx, cellBounding, cellWidth, cellHeight, fontHeight, vt, pd), ctx.save(), ctx.translateWithPrecision(cellBounding.startX + l2, cellBounding.startY + t), ctx.beginPath(), ctx.rect(0, 0, cellWidth - l2 - r2, cellHeight - t - b), ctx.clip(), ctx.translateWithPrecision(0, paddingTop), ctx.save(), ctx.translateWithPrecision(PADDING_H, 0), ctx.beginPath(), ctx.rect(0, 0, realWidth, fontHeight), ctx.clip(), documents.render(ctx), ctx.translateWithPrecision(paddingLeft, 0), ctx.restore(), ctx.restore(), map.set(key, {
2716
3008
  left: cellBounding.endX + l2 + skeleton.rowHeaderWidth - ICON_PLACE,
2717
3009
  top: cellBounding.startY + t + skeleton.columnHeaderHeight,
2718
3010
  width: ICON_PLACE,