@univerjs/preset-sheets-data-validation 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.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/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
package/lib/index.css CHANGED
@@ -203,12 +203,12 @@
203
203
  background-color: var(--univer-gray-700) !important;
204
204
  }
205
205
 
206
- .univer-bg-gray-50 {
207
- background-color: var(--univer-gray-50);
206
+ .univer-bg-gray-0 {
207
+ background-color: var(--univer-gray-0);
208
208
  }
209
209
 
210
- .univer-bg-white {
211
- background-color: var(--univer-white);
210
+ .univer-bg-gray-50 {
211
+ background-color: var(--univer-gray-50);
212
212
  }
213
213
 
214
214
  .univer-p-1 {
@@ -315,24 +315,26 @@
315
315
  transition-duration: .2s;
316
316
  }
317
317
 
318
- .hover\:univer-border-primary-600:hover {
319
- border-color: var(--univer-primary-600);
320
- }
318
+ @media (hover: hover) and (pointer: fine) {
319
+ .hover\:univer-border-primary-600:hover {
320
+ border-color: var(--univer-primary-600);
321
+ }
321
322
 
322
- .hover\:univer-bg-gray-100:hover {
323
- background-color: var(--univer-gray-100);
324
- }
323
+ .hover\:univer-bg-gray-100:hover {
324
+ background-color: var(--univer-gray-100);
325
+ }
325
326
 
326
- .hover\:univer-bg-gray-200:hover {
327
- background-color: var(--univer-gray-200);
328
- }
327
+ .hover\:univer-bg-gray-200:hover {
328
+ background-color: var(--univer-gray-200);
329
+ }
329
330
 
330
- .hover\:univer-bg-gray-50:hover {
331
- background-color: var(--univer-gray-50);
332
- }
331
+ .hover\:univer-bg-gray-50:hover {
332
+ background-color: var(--univer-gray-50);
333
+ }
333
334
 
334
- .hover\:univer-bg-primary-50:hover {
335
- background-color: var(--univer-primary-50);
335
+ .hover\:univer-bg-primary-50:hover {
336
+ background-color: var(--univer-primary-50);
337
+ }
336
338
  }
337
339
 
338
340
  .focus-visible\:univer-outline-none:focus-visible {
@@ -379,20 +381,22 @@
379
381
  background-color: var(--univer-gray-800) !important;
380
382
  }
381
383
 
382
- .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
383
- color: var(--univer-gray-300) !important;
384
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
385
+ color: var(--univer-gray-0) !important;
384
386
  }
385
387
 
386
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
387
- color: var(--univer-white) !important;
388
+ .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
389
+ color: var(--univer-gray-300) !important;
388
390
  }
389
391
 
390
- .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
391
- background-color: var(--univer-gray-700) !important;
392
- }
392
+ @media (hover: hover) and (pointer: fine) {
393
+ .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
394
+ background-color: var(--univer-gray-700) !important;
395
+ }
393
396
 
394
- .dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
395
- background-color: var(--univer-gray-800) !important;
397
+ .dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
398
+ background-color: var(--univer-gray-800) !important;
399
+ }
396
400
  }
397
401
 
398
402
  .\[\&\>div\:first-child\]\:univer-px-2\.5 > div:first-child {
@@ -9,7 +9,6 @@ declare const _default: {
9
9
  equal: string;
10
10
  notEqual: string;
11
11
  notBetween: string;
12
- legal: string;
13
12
  };
14
13
  ruleName: {
15
14
  between: string;
@@ -33,109 +32,6 @@ declare const _default: {
33
32
  notBetween: string;
34
33
  legal: string;
35
34
  };
36
- date: {
37
- operators: {
38
- between: string;
39
- greaterThan: string;
40
- greaterThanOrEqual: string;
41
- lessThan: string;
42
- lessThanOrEqual: string;
43
- equal: string;
44
- notEqual: string;
45
- notBetween: string;
46
- legal: string;
47
- };
48
- ruleName: {
49
- between: string;
50
- greaterThan: string;
51
- greaterThanOrEqual: string;
52
- lessThan: string;
53
- lessThanOrEqual: string;
54
- equal: string;
55
- notEqual: string;
56
- notBetween: string;
57
- legal: string;
58
- };
59
- errorMsg: {
60
- between: string;
61
- greaterThan: string;
62
- greaterThanOrEqual: string;
63
- lessThan: string;
64
- lessThanOrEqual: string;
65
- equal: string;
66
- notEqual: string;
67
- notBetween: string;
68
- legal: string;
69
- };
70
- title: string;
71
- };
72
- textLength: {
73
- errorMsg: {
74
- between: string;
75
- greaterThan: string;
76
- greaterThanOrEqual: string;
77
- lessThan: string;
78
- lessThanOrEqual: string;
79
- equal: string;
80
- notEqual: string;
81
- notBetween: string;
82
- };
83
- title: string;
84
- };
85
- custom: {
86
- ruleName: string;
87
- title: string;
88
- validFail: string;
89
- error: string;
90
- };
91
- validFail: {
92
- value: string;
93
- common: string;
94
- number: string;
95
- formula: string;
96
- integer: string;
97
- date: string;
98
- list: string;
99
- listInvalid: string;
100
- checkboxEqual: string;
101
- formulaError: string;
102
- listIntersects: string;
103
- primitive: string;
104
- };
105
- any: {
106
- title: string;
107
- error: string;
108
- };
109
- list: {
110
- title: string;
111
- name: string;
112
- error: string;
113
- emptyError: string;
114
- add: string;
115
- dropdown: string;
116
- options: string;
117
- customOptions: string;
118
- refOptions: string;
119
- formulaError: string;
120
- edit: string;
121
- };
122
- listMultiple: {
123
- title: string;
124
- dropdown: string;
125
- };
126
- decimal: {
127
- title: string;
128
- };
129
- whole: {
130
- title: string;
131
- };
132
- checkbox: {
133
- title: string;
134
- error: string;
135
- tips: string;
136
- checked: string;
137
- unchecked: string;
138
- };
139
35
  };
140
36
  } & {
141
37
  'sheets-data-validation': {
@@ -148,7 +44,6 @@ declare const _default: {
148
44
  equal: string;
149
45
  notEqual: string;
150
46
  notBetween: string;
151
- legal: string;
152
47
  };
153
48
  ruleName: {
154
49
  between: string;
@@ -182,7 +77,6 @@ declare const _default: {
182
77
  equal: string;
183
78
  notEqual: string;
184
79
  notBetween: string;
185
- legal: string;
186
80
  };
187
81
  ruleName: {
188
82
  between: string;
@@ -224,20 +118,16 @@ declare const _default: {
224
118
  custom: {
225
119
  ruleName: string;
226
120
  title: string;
227
- validFail: string;
228
121
  error: string;
229
122
  };
230
123
  validFail: {
231
124
  value: string;
232
- common: string;
233
125
  number: string;
234
126
  formula: string;
235
- integer: string;
236
127
  date: string;
237
128
  list: string;
238
129
  listInvalid: string;
239
130
  checkboxEqual: string;
240
- formulaError: string;
241
131
  listIntersects: string;
242
132
  primitive: string;
243
133
  };
@@ -249,18 +139,9 @@ declare const _default: {
249
139
  title: string;
250
140
  name: string;
251
141
  error: string;
252
- emptyError: string;
253
- add: string;
254
- dropdown: string;
255
- options: string;
256
- customOptions: string;
257
- refOptions: string;
258
- formulaError: string;
259
- edit: string;
260
142
  };
261
143
  listMultiple: {
262
144
  title: string;
263
- dropdown: string;
264
145
  };
265
146
  decimal: {
266
147
  title: string;
@@ -271,9 +152,6 @@ declare const _default: {
271
152
  checkbox: {
272
153
  title: string;
273
154
  error: string;
274
- tips: string;
275
- checked: string;
276
- unchecked: string;
277
155
  };
278
156
  };
279
157
  } & {
@@ -300,18 +178,7 @@ declare const _default: {
300
178
  legal: string;
301
179
  };
302
180
  validFail: {
303
- value: string;
304
- common: string;
305
- number: string;
306
- formula: string;
307
- integer: string;
308
- date: string;
309
- list: string;
310
- listInvalid: string;
311
- checkboxEqual: string;
312
181
  formulaError: string;
313
- listIntersects: string;
314
- primitive: string;
315
182
  };
316
183
  panel: {
317
184
  title: string;
@@ -335,51 +202,23 @@ declare const _default: {
335
202
  rangeError: string;
336
203
  allowBlank: string;
337
204
  };
338
- any: {
339
- title: string;
340
- error: string;
341
- };
342
205
  date: {
343
206
  title: string;
344
207
  };
345
208
  list: {
346
209
  title: string;
347
- name: string;
348
- error: string;
349
- emptyError: string;
350
210
  add: string;
351
- dropdown: string;
352
211
  options: string;
353
212
  customOptions: string;
354
213
  refOptions: string;
355
- formulaError: string;
356
214
  edit: string;
357
215
  };
358
- listMultiple: {
359
- title: string;
360
- dropdown: string;
361
- };
362
- textLength: {
363
- title: string;
364
- };
365
- decimal: {
366
- title: string;
367
- };
368
- whole: {
369
- title: string;
370
- };
371
216
  checkbox: {
372
217
  title: string;
373
- error: string;
374
218
  tips: string;
375
219
  checked: string;
376
220
  unchecked: string;
377
221
  };
378
- custom: {
379
- title: string;
380
- error: string;
381
- validFail: string;
382
- };
383
222
  alert: {
384
223
  title: string;
385
224
  ok: string;