@univerjs/sheets-filter 0.6.4 → 0.6.5-nightly.202503131607
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/facade.js +43 -26
- package/lib/types/facade/f-filter.d.ts +43 -26
- package/lib/types/facade/f-range.d.ts +2 -2
- package/package.json +7 -7
- package/LICENSE +0 -176
package/lib/es/facade.js
CHANGED
|
@@ -18,7 +18,9 @@ let s = class {
|
|
|
18
18
|
* ```typescript
|
|
19
19
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
20
20
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
|
+
* // Set some values of the range C1:F10
|
|
23
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
22
24
|
* fRange.setValues([
|
|
23
25
|
* [1, 2, 3, 4],
|
|
24
26
|
* [2, 3, 4, 5],
|
|
@@ -32,7 +34,7 @@ let s = class {
|
|
|
32
34
|
* [10, 11, 12, 13],
|
|
33
35
|
* ]);
|
|
34
36
|
*
|
|
35
|
-
* // Create a filter on the range
|
|
37
|
+
* // Create a filter on the range C1:F10
|
|
36
38
|
* let fFilter = fRange.createFilter();
|
|
37
39
|
*
|
|
38
40
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -41,15 +43,17 @@ let s = class {
|
|
|
41
43
|
* fFilter = fRange.createFilter();
|
|
42
44
|
* }
|
|
43
45
|
*
|
|
44
|
-
* // Set the filter criteria of the column
|
|
45
|
-
*
|
|
46
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
47
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
48
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
46
49
|
* colId: 0,
|
|
47
50
|
* filters: {
|
|
48
51
|
* filters: ['1', '5', '9'],
|
|
49
52
|
* },
|
|
50
53
|
* });
|
|
51
54
|
*
|
|
52
|
-
*
|
|
55
|
+
* // Get the filtered out rows
|
|
56
|
+
* console.log(fFilter.getFilteredOutRows()); // [1, 2, 3, 5, 6, 7, 9]
|
|
53
57
|
* ```
|
|
54
58
|
*/
|
|
55
59
|
getFilteredOutRows() {
|
|
@@ -63,7 +67,9 @@ let s = class {
|
|
|
63
67
|
* ```typescript
|
|
64
68
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
65
69
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
66
|
-
*
|
|
70
|
+
*
|
|
71
|
+
* // Set some values of the range C1:F10
|
|
72
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
67
73
|
* fRange.setValues([
|
|
68
74
|
* [1, 2, 3, 4],
|
|
69
75
|
* [2, 3, 4, 5],
|
|
@@ -77,7 +83,7 @@ let s = class {
|
|
|
77
83
|
* [10, 11, 12, 13],
|
|
78
84
|
* ]);
|
|
79
85
|
*
|
|
80
|
-
* // Create a filter on the range
|
|
86
|
+
* // Create a filter on the range C1:F10
|
|
81
87
|
* let fFilter = fRange.createFilter();
|
|
82
88
|
*
|
|
83
89
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -86,16 +92,18 @@ let s = class {
|
|
|
86
92
|
* fFilter = fRange.createFilter();
|
|
87
93
|
* }
|
|
88
94
|
*
|
|
89
|
-
* // Set the filter criteria of the column
|
|
90
|
-
*
|
|
95
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
96
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
97
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
91
98
|
* colId: 0,
|
|
92
99
|
* filters: {
|
|
93
100
|
* filters: ['1', '5', '9'],
|
|
94
101
|
* },
|
|
95
102
|
* });
|
|
96
103
|
*
|
|
97
|
-
*
|
|
98
|
-
* console.log(fFilter
|
|
104
|
+
* // Print the filter criteria of the column C and D
|
|
105
|
+
* console.log(fFilter.getColumnFilterCriteria(column)); // { colId: 0, filters: { filters: ['1', '5', '9'] } }
|
|
106
|
+
* console.log(fFilter.getColumnFilterCriteria(column + 1)); // undefined
|
|
99
107
|
* ```
|
|
100
108
|
*/
|
|
101
109
|
getColumnFilterCriteria(i) {
|
|
@@ -110,7 +118,9 @@ let s = class {
|
|
|
110
118
|
* ```typescript
|
|
111
119
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
112
120
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
113
|
-
*
|
|
121
|
+
*
|
|
122
|
+
* // Set some values of the range C1:F10
|
|
123
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
114
124
|
* fRange.setValues([
|
|
115
125
|
* [1, 2, 3, 4],
|
|
116
126
|
* [2, 3, 4, 5],
|
|
@@ -124,7 +134,7 @@ let s = class {
|
|
|
124
134
|
* [10, 11, 12, 13],
|
|
125
135
|
* ]);
|
|
126
136
|
*
|
|
127
|
-
* // Create a filter on the range
|
|
137
|
+
* // Create a filter on the range C1:F10
|
|
128
138
|
* let fFilter = fRange.createFilter();
|
|
129
139
|
*
|
|
130
140
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -133,17 +143,18 @@ let s = class {
|
|
|
133
143
|
* fFilter = fRange.createFilter();
|
|
134
144
|
* }
|
|
135
145
|
*
|
|
136
|
-
* // Set the filter criteria of the column
|
|
137
|
-
*
|
|
146
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
147
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
148
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
138
149
|
* colId: 0,
|
|
139
150
|
* filters: {
|
|
140
151
|
* filters: ['1', '5', '9'],
|
|
141
152
|
* },
|
|
142
153
|
* });
|
|
143
154
|
*
|
|
144
|
-
* // Clear the filter criteria of the column
|
|
155
|
+
* // Clear the filter criteria of the column C after 3 seconds
|
|
145
156
|
* setTimeout(() => {
|
|
146
|
-
* fFilter
|
|
157
|
+
* fFilter.removeColumnFilterCriteria(column);
|
|
147
158
|
* }, 3000);
|
|
148
159
|
* ```
|
|
149
160
|
*/
|
|
@@ -164,7 +175,9 @@ let s = class {
|
|
|
164
175
|
* ```typescript
|
|
165
176
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
166
177
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
167
|
-
*
|
|
178
|
+
*
|
|
179
|
+
* // Set some values of the range C1:F10
|
|
180
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
168
181
|
* fRange.setValues([
|
|
169
182
|
* [1, 2, 3, 4],
|
|
170
183
|
* [2, 3, 4, 5],
|
|
@@ -178,7 +191,7 @@ let s = class {
|
|
|
178
191
|
* [10, 11, 12, 13],
|
|
179
192
|
* ]);
|
|
180
193
|
*
|
|
181
|
-
* // Create a filter on the range
|
|
194
|
+
* // Create a filter on the range C1:F10
|
|
182
195
|
* let fFilter = fRange.createFilter();
|
|
183
196
|
*
|
|
184
197
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -187,8 +200,9 @@ let s = class {
|
|
|
187
200
|
* fFilter = fRange.createFilter();
|
|
188
201
|
* }
|
|
189
202
|
*
|
|
190
|
-
* // Set the filter criteria of the column
|
|
191
|
-
*
|
|
203
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
204
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
205
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
192
206
|
* colId: 0,
|
|
193
207
|
* filters: {
|
|
194
208
|
* filters: ['1', '5', '9'],
|
|
@@ -226,7 +240,9 @@ let s = class {
|
|
|
226
240
|
* ```typescript
|
|
227
241
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
228
242
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
229
|
-
*
|
|
243
|
+
*
|
|
244
|
+
* // Set some values of the range C1:F10
|
|
245
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
230
246
|
* fRange.setValues([
|
|
231
247
|
* [1, 2, 3, 4],
|
|
232
248
|
* [2, 3, 4, 5],
|
|
@@ -240,7 +256,7 @@ let s = class {
|
|
|
240
256
|
* [10, 11, 12, 13],
|
|
241
257
|
* ]);
|
|
242
258
|
*
|
|
243
|
-
* // Create a filter on the range
|
|
259
|
+
* // Create a filter on the range C1:F10
|
|
244
260
|
* let fFilter = fRange.createFilter();
|
|
245
261
|
*
|
|
246
262
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -249,8 +265,9 @@ let s = class {
|
|
|
249
265
|
* fFilter = fRange.createFilter();
|
|
250
266
|
* }
|
|
251
267
|
*
|
|
252
|
-
* // Set the filter criteria of the column
|
|
253
|
-
*
|
|
268
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
269
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
270
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
254
271
|
* colId: 0,
|
|
255
272
|
* filters: {
|
|
256
273
|
* filters: ['1', '5', '9'],
|
|
@@ -259,7 +276,7 @@ let s = class {
|
|
|
259
276
|
*
|
|
260
277
|
* // Clear the filter criteria of all columns after 3 seconds
|
|
261
278
|
* setTimeout(() => {
|
|
262
|
-
* fFilter
|
|
279
|
+
* fFilter.removeFilterCriteria();
|
|
263
280
|
* }, 3000);
|
|
264
281
|
* ```
|
|
265
282
|
*/
|
|
@@ -19,7 +19,9 @@ export declare class FFilter {
|
|
|
19
19
|
* ```typescript
|
|
20
20
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
21
21
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
22
|
-
*
|
|
22
|
+
*
|
|
23
|
+
* // Set some values of the range C1:F10
|
|
24
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
23
25
|
* fRange.setValues([
|
|
24
26
|
* [1, 2, 3, 4],
|
|
25
27
|
* [2, 3, 4, 5],
|
|
@@ -33,7 +35,7 @@ export declare class FFilter {
|
|
|
33
35
|
* [10, 11, 12, 13],
|
|
34
36
|
* ]);
|
|
35
37
|
*
|
|
36
|
-
* // Create a filter on the range
|
|
38
|
+
* // Create a filter on the range C1:F10
|
|
37
39
|
* let fFilter = fRange.createFilter();
|
|
38
40
|
*
|
|
39
41
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -42,15 +44,17 @@ export declare class FFilter {
|
|
|
42
44
|
* fFilter = fRange.createFilter();
|
|
43
45
|
* }
|
|
44
46
|
*
|
|
45
|
-
* // Set the filter criteria of the column
|
|
46
|
-
*
|
|
47
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
48
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
49
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
47
50
|
* colId: 0,
|
|
48
51
|
* filters: {
|
|
49
52
|
* filters: ['1', '5', '9'],
|
|
50
53
|
* },
|
|
51
54
|
* });
|
|
52
55
|
*
|
|
53
|
-
*
|
|
56
|
+
* // Get the filtered out rows
|
|
57
|
+
* console.log(fFilter.getFilteredOutRows()); // [1, 2, 3, 5, 6, 7, 9]
|
|
54
58
|
* ```
|
|
55
59
|
*/
|
|
56
60
|
getFilteredOutRows(): number[];
|
|
@@ -62,7 +66,9 @@ export declare class FFilter {
|
|
|
62
66
|
* ```typescript
|
|
63
67
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
64
68
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
65
|
-
*
|
|
69
|
+
*
|
|
70
|
+
* // Set some values of the range C1:F10
|
|
71
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
66
72
|
* fRange.setValues([
|
|
67
73
|
* [1, 2, 3, 4],
|
|
68
74
|
* [2, 3, 4, 5],
|
|
@@ -76,7 +82,7 @@ export declare class FFilter {
|
|
|
76
82
|
* [10, 11, 12, 13],
|
|
77
83
|
* ]);
|
|
78
84
|
*
|
|
79
|
-
* // Create a filter on the range
|
|
85
|
+
* // Create a filter on the range C1:F10
|
|
80
86
|
* let fFilter = fRange.createFilter();
|
|
81
87
|
*
|
|
82
88
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -85,16 +91,18 @@ export declare class FFilter {
|
|
|
85
91
|
* fFilter = fRange.createFilter();
|
|
86
92
|
* }
|
|
87
93
|
*
|
|
88
|
-
* // Set the filter criteria of the column
|
|
89
|
-
*
|
|
94
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
95
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
96
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
90
97
|
* colId: 0,
|
|
91
98
|
* filters: {
|
|
92
99
|
* filters: ['1', '5', '9'],
|
|
93
100
|
* },
|
|
94
101
|
* });
|
|
95
102
|
*
|
|
96
|
-
*
|
|
97
|
-
* console.log(fFilter
|
|
103
|
+
* // Print the filter criteria of the column C and D
|
|
104
|
+
* console.log(fFilter.getColumnFilterCriteria(column)); // { colId: 0, filters: { filters: ['1', '5', '9'] } }
|
|
105
|
+
* console.log(fFilter.getColumnFilterCriteria(column + 1)); // undefined
|
|
98
106
|
* ```
|
|
99
107
|
*/
|
|
100
108
|
getColumnFilterCriteria(column: number): Nullable<IFilterColumn>;
|
|
@@ -106,7 +114,9 @@ export declare class FFilter {
|
|
|
106
114
|
* ```typescript
|
|
107
115
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
108
116
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
109
|
-
*
|
|
117
|
+
*
|
|
118
|
+
* // Set some values of the range C1:F10
|
|
119
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
110
120
|
* fRange.setValues([
|
|
111
121
|
* [1, 2, 3, 4],
|
|
112
122
|
* [2, 3, 4, 5],
|
|
@@ -120,7 +130,7 @@ export declare class FFilter {
|
|
|
120
130
|
* [10, 11, 12, 13],
|
|
121
131
|
* ]);
|
|
122
132
|
*
|
|
123
|
-
* // Create a filter on the range
|
|
133
|
+
* // Create a filter on the range C1:F10
|
|
124
134
|
* let fFilter = fRange.createFilter();
|
|
125
135
|
*
|
|
126
136
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -129,17 +139,18 @@ export declare class FFilter {
|
|
|
129
139
|
* fFilter = fRange.createFilter();
|
|
130
140
|
* }
|
|
131
141
|
*
|
|
132
|
-
* // Set the filter criteria of the column
|
|
133
|
-
*
|
|
142
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
143
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
144
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
134
145
|
* colId: 0,
|
|
135
146
|
* filters: {
|
|
136
147
|
* filters: ['1', '5', '9'],
|
|
137
148
|
* },
|
|
138
149
|
* });
|
|
139
150
|
*
|
|
140
|
-
* // Clear the filter criteria of the column
|
|
151
|
+
* // Clear the filter criteria of the column C after 3 seconds
|
|
141
152
|
* setTimeout(() => {
|
|
142
|
-
* fFilter
|
|
153
|
+
* fFilter.removeColumnFilterCriteria(column);
|
|
143
154
|
* }, 3000);
|
|
144
155
|
* ```
|
|
145
156
|
*/
|
|
@@ -153,7 +164,9 @@ export declare class FFilter {
|
|
|
153
164
|
* ```typescript
|
|
154
165
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
155
166
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
156
|
-
*
|
|
167
|
+
*
|
|
168
|
+
* // Set some values of the range C1:F10
|
|
169
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
157
170
|
* fRange.setValues([
|
|
158
171
|
* [1, 2, 3, 4],
|
|
159
172
|
* [2, 3, 4, 5],
|
|
@@ -167,7 +180,7 @@ export declare class FFilter {
|
|
|
167
180
|
* [10, 11, 12, 13],
|
|
168
181
|
* ]);
|
|
169
182
|
*
|
|
170
|
-
* // Create a filter on the range
|
|
183
|
+
* // Create a filter on the range C1:F10
|
|
171
184
|
* let fFilter = fRange.createFilter();
|
|
172
185
|
*
|
|
173
186
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -176,8 +189,9 @@ export declare class FFilter {
|
|
|
176
189
|
* fFilter = fRange.createFilter();
|
|
177
190
|
* }
|
|
178
191
|
*
|
|
179
|
-
* // Set the filter criteria of the column
|
|
180
|
-
*
|
|
192
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
193
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
194
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
181
195
|
* colId: 0,
|
|
182
196
|
* filters: {
|
|
183
197
|
* filters: ['1', '5', '9'],
|
|
@@ -205,7 +219,9 @@ export declare class FFilter {
|
|
|
205
219
|
* ```typescript
|
|
206
220
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
207
221
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
208
|
-
*
|
|
222
|
+
*
|
|
223
|
+
* // Set some values of the range C1:F10
|
|
224
|
+
* const fRange = fWorksheet.getRange('C1:F10');
|
|
209
225
|
* fRange.setValues([
|
|
210
226
|
* [1, 2, 3, 4],
|
|
211
227
|
* [2, 3, 4, 5],
|
|
@@ -219,7 +235,7 @@ export declare class FFilter {
|
|
|
219
235
|
* [10, 11, 12, 13],
|
|
220
236
|
* ]);
|
|
221
237
|
*
|
|
222
|
-
* // Create a filter on the range
|
|
238
|
+
* // Create a filter on the range C1:F10
|
|
223
239
|
* let fFilter = fRange.createFilter();
|
|
224
240
|
*
|
|
225
241
|
* // If the filter already exists, remove it and create a new one
|
|
@@ -228,8 +244,9 @@ export declare class FFilter {
|
|
|
228
244
|
* fFilter = fRange.createFilter();
|
|
229
245
|
* }
|
|
230
246
|
*
|
|
231
|
-
* // Set the filter criteria of the column
|
|
232
|
-
*
|
|
247
|
+
* // Set the filter criteria of the column C, filter out the rows that are not 1, 5, 9
|
|
248
|
+
* const column = fWorksheet.getRange('C:C').getColumn();
|
|
249
|
+
* fFilter.setColumnFilterCriteria(column, {
|
|
233
250
|
* colId: 0,
|
|
234
251
|
* filters: {
|
|
235
252
|
* filters: ['1', '5', '9'],
|
|
@@ -238,7 +255,7 @@ export declare class FFilter {
|
|
|
238
255
|
*
|
|
239
256
|
* // Clear the filter criteria of all columns after 3 seconds
|
|
240
257
|
* setTimeout(() => {
|
|
241
|
-
* fFilter
|
|
258
|
+
* fFilter.removeFilterCriteria();
|
|
242
259
|
* }, 3000);
|
|
243
260
|
* ```
|
|
244
261
|
*/
|
|
@@ -19,7 +19,7 @@ export interface IFRangeFilter {
|
|
|
19
19
|
* fWorksheet.getFilter().remove();
|
|
20
20
|
* fFilter = fRange.createFilter();
|
|
21
21
|
* }
|
|
22
|
-
* console.log(fFilter);
|
|
22
|
+
* console.log(fFilter, fFilter.getRange().getA1Notation());
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
createFilter(this: FRange): FFilter | null;
|
|
@@ -38,7 +38,7 @@ export interface IFRangeFilter {
|
|
|
38
38
|
* if (!fFilter) {
|
|
39
39
|
* fFilter = fRange.createFilter();
|
|
40
40
|
* }
|
|
41
|
-
* console.log(fFilter);
|
|
41
|
+
* console.log(fFilter, fFilter.getRange().getA1Notation());
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
getFilter(): FFilter | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-filter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5-nightly.202503131607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A library for filtering data in Univer Sheet",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"rxjs": ">=7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
54
|
+
"@univerjs/core": "0.6.5-nightly.202503131607",
|
|
55
|
+
"@univerjs/engine-formula": "0.6.5-nightly.202503131607",
|
|
56
|
+
"@univerjs/sheets": "0.6.5-nightly.202503131607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"rxjs": "^7.8.1",
|
|
60
60
|
"typescript": "^5.8.2",
|
|
61
|
-
"vite": "^6.2.
|
|
62
|
-
"vitest": "^3.0.
|
|
63
|
-
"@univerjs-infra/shared": "0.6.
|
|
61
|
+
"vite": "^6.2.1",
|
|
62
|
+
"vitest": "^3.0.8",
|
|
63
|
+
"@univerjs-infra/shared": "0.6.5"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"test": "vitest run",
|
package/LICENSE
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
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
|