@revolist/svelte-datagrid 4.0.47 → 4.0.49
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/dist/svelte-datagrid.js +802 -556
- package/dist/svelte-datagrid.umd.cjs +1032 -1
- package/lib/components/RevoGrid.ts +999 -0
- package/lib/index.ts +2 -0
- package/lib/revogrid.ts +8 -0
- package/lib/svelte/RevoGrid.svelte +154 -0
- package/lib/svelte/index.js +7 -0
- package/package.json +4 -2
package/dist/svelte-datagrid.js
CHANGED
|
@@ -1,618 +1,864 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineCustomElements
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { defineCustomElements } from "@revolist/revogrid/loader";
|
|
5
|
+
import "@revolist/revogrid";
|
|
6
|
+
import { SvelteComponent, init, safe_not_equal, create_slot, element, set_custom_element_data, insert, listen, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, run_all, binding_callbacks } from "svelte/internal";
|
|
7
|
+
import "svelte/internal/disclose-version";
|
|
8
|
+
import { createEventDispatcher, onMount } from "svelte";
|
|
9
|
+
function create_fragment(ctx) {
|
|
10
|
+
let revo_grid;
|
|
11
|
+
let current;
|
|
12
|
+
let mounted;
|
|
13
|
+
let dispose;
|
|
14
|
+
const default_slot_template = (
|
|
11
15
|
/*#slots*/
|
|
12
|
-
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
ctx[61].default
|
|
17
|
+
);
|
|
18
|
+
const default_slot = create_slot(
|
|
19
|
+
default_slot_template,
|
|
20
|
+
ctx,
|
|
16
21
|
/*$$scope*/
|
|
17
|
-
|
|
22
|
+
ctx[60],
|
|
18
23
|
null
|
|
19
24
|
);
|
|
20
25
|
return {
|
|
21
26
|
c() {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
revo_grid = element("revo-grid");
|
|
28
|
+
if (default_slot) default_slot.c();
|
|
29
|
+
set_custom_element_data(
|
|
30
|
+
revo_grid,
|
|
24
31
|
"row-headers",
|
|
25
32
|
/*rowHeaders*/
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
33
|
+
ctx[0]
|
|
34
|
+
);
|
|
35
|
+
set_custom_element_data(
|
|
36
|
+
revo_grid,
|
|
29
37
|
"frame-size",
|
|
30
38
|
/*frameSize*/
|
|
31
|
-
|
|
32
|
-
)
|
|
33
|
-
|
|
39
|
+
ctx[1]
|
|
40
|
+
);
|
|
41
|
+
set_custom_element_data(
|
|
42
|
+
revo_grid,
|
|
34
43
|
"row-size",
|
|
35
44
|
/*rowSize*/
|
|
36
|
-
|
|
37
|
-
)
|
|
38
|
-
|
|
45
|
+
ctx[2]
|
|
46
|
+
);
|
|
47
|
+
set_custom_element_data(
|
|
48
|
+
revo_grid,
|
|
39
49
|
"col-size",
|
|
40
50
|
/*colSize*/
|
|
41
|
-
|
|
42
|
-
)
|
|
43
|
-
|
|
51
|
+
ctx[3]
|
|
52
|
+
);
|
|
53
|
+
set_custom_element_data(
|
|
54
|
+
revo_grid,
|
|
44
55
|
"range",
|
|
45
56
|
/*range*/
|
|
46
|
-
|
|
47
|
-
)
|
|
48
|
-
|
|
57
|
+
ctx[4]
|
|
58
|
+
);
|
|
59
|
+
set_custom_element_data(
|
|
60
|
+
revo_grid,
|
|
49
61
|
"readonly",
|
|
50
62
|
/*readonly*/
|
|
51
|
-
|
|
52
|
-
)
|
|
53
|
-
|
|
63
|
+
ctx[5]
|
|
64
|
+
);
|
|
65
|
+
set_custom_element_data(
|
|
66
|
+
revo_grid,
|
|
54
67
|
"resize",
|
|
55
68
|
/*resize*/
|
|
56
|
-
|
|
57
|
-
)
|
|
58
|
-
|
|
69
|
+
ctx[6]
|
|
70
|
+
);
|
|
71
|
+
set_custom_element_data(
|
|
72
|
+
revo_grid,
|
|
59
73
|
"can-focus",
|
|
60
74
|
/*canFocus*/
|
|
61
|
-
|
|
62
|
-
)
|
|
63
|
-
|
|
75
|
+
ctx[7]
|
|
76
|
+
);
|
|
77
|
+
set_custom_element_data(
|
|
78
|
+
revo_grid,
|
|
64
79
|
"use-clipboard",
|
|
65
80
|
/*useClipboard*/
|
|
66
|
-
|
|
67
|
-
)
|
|
68
|
-
|
|
81
|
+
ctx[8]
|
|
82
|
+
);
|
|
83
|
+
set_custom_element_data(
|
|
84
|
+
revo_grid,
|
|
69
85
|
"apply-on-close",
|
|
70
86
|
/*applyOnClose*/
|
|
71
|
-
|
|
72
|
-
)
|
|
73
|
-
|
|
87
|
+
ctx[9]
|
|
88
|
+
);
|
|
89
|
+
set_custom_element_data(
|
|
90
|
+
revo_grid,
|
|
74
91
|
"theme",
|
|
75
92
|
/*theme*/
|
|
76
|
-
|
|
77
|
-
)
|
|
78
|
-
|
|
93
|
+
ctx[10]
|
|
94
|
+
);
|
|
95
|
+
set_custom_element_data(
|
|
96
|
+
revo_grid,
|
|
79
97
|
"row-class",
|
|
80
98
|
/*rowClass*/
|
|
81
|
-
|
|
82
|
-
)
|
|
83
|
-
|
|
99
|
+
ctx[11]
|
|
100
|
+
);
|
|
101
|
+
set_custom_element_data(
|
|
102
|
+
revo_grid,
|
|
84
103
|
"auto-size-column",
|
|
85
104
|
/*autoSizeColumn*/
|
|
86
|
-
|
|
87
|
-
)
|
|
88
|
-
|
|
105
|
+
ctx[12]
|
|
106
|
+
);
|
|
107
|
+
set_custom_element_data(
|
|
108
|
+
revo_grid,
|
|
89
109
|
"filter",
|
|
90
110
|
/*filter*/
|
|
91
|
-
|
|
92
|
-
)
|
|
93
|
-
|
|
111
|
+
ctx[13]
|
|
112
|
+
);
|
|
113
|
+
set_custom_element_data(
|
|
114
|
+
revo_grid,
|
|
94
115
|
"can-move-columns",
|
|
95
116
|
/*canMoveColumns*/
|
|
96
|
-
|
|
97
|
-
)
|
|
98
|
-
|
|
117
|
+
ctx[14]
|
|
118
|
+
);
|
|
119
|
+
set_custom_element_data(
|
|
120
|
+
revo_grid,
|
|
99
121
|
"exporting",
|
|
100
122
|
/*exporting*/
|
|
101
|
-
|
|
102
|
-
)
|
|
103
|
-
|
|
123
|
+
ctx[15]
|
|
124
|
+
);
|
|
125
|
+
set_custom_element_data(
|
|
126
|
+
revo_grid,
|
|
104
127
|
"stretch",
|
|
105
128
|
/*stretch*/
|
|
106
|
-
|
|
107
|
-
)
|
|
108
|
-
|
|
129
|
+
ctx[16]
|
|
130
|
+
);
|
|
131
|
+
set_custom_element_data(
|
|
132
|
+
revo_grid,
|
|
109
133
|
"additional-data",
|
|
110
134
|
/*additionalData*/
|
|
111
|
-
|
|
112
|
-
)
|
|
113
|
-
|
|
135
|
+
ctx[17]
|
|
136
|
+
);
|
|
137
|
+
set_custom_element_data(
|
|
138
|
+
revo_grid,
|
|
114
139
|
"disable-virtual-x",
|
|
115
140
|
/*disableVirtualX*/
|
|
116
|
-
|
|
117
|
-
)
|
|
118
|
-
|
|
141
|
+
ctx[18]
|
|
142
|
+
);
|
|
143
|
+
set_custom_element_data(
|
|
144
|
+
revo_grid,
|
|
119
145
|
"disable-virtual-y",
|
|
120
146
|
/*disableVirtualY*/
|
|
121
|
-
|
|
122
|
-
)
|
|
123
|
-
|
|
147
|
+
ctx[19]
|
|
148
|
+
);
|
|
149
|
+
set_custom_element_data(
|
|
150
|
+
revo_grid,
|
|
124
151
|
"hide-attribution",
|
|
125
152
|
/*hideAttribution*/
|
|
126
|
-
|
|
153
|
+
ctx[20]
|
|
127
154
|
);
|
|
128
155
|
},
|
|
129
|
-
m(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
156
|
+
m(target, anchor) {
|
|
157
|
+
insert(target, revo_grid, anchor);
|
|
158
|
+
if (default_slot) {
|
|
159
|
+
default_slot.m(revo_grid, null);
|
|
160
|
+
}
|
|
161
|
+
ctx[62](revo_grid);
|
|
162
|
+
current = true;
|
|
163
|
+
if (!mounted) {
|
|
164
|
+
dispose = [
|
|
165
|
+
listen(
|
|
166
|
+
revo_grid,
|
|
167
|
+
"contentsizechanged",
|
|
168
|
+
/*onEvent*/
|
|
169
|
+
ctx[22]
|
|
170
|
+
),
|
|
171
|
+
listen(
|
|
172
|
+
revo_grid,
|
|
173
|
+
"beforeedit",
|
|
174
|
+
/*onEvent*/
|
|
175
|
+
ctx[22]
|
|
176
|
+
),
|
|
177
|
+
listen(
|
|
178
|
+
revo_grid,
|
|
179
|
+
"beforerangeedit",
|
|
180
|
+
/*onEvent*/
|
|
181
|
+
ctx[22]
|
|
182
|
+
),
|
|
183
|
+
listen(
|
|
184
|
+
revo_grid,
|
|
185
|
+
"afteredit",
|
|
186
|
+
/*onEvent*/
|
|
187
|
+
ctx[22]
|
|
188
|
+
),
|
|
189
|
+
listen(
|
|
190
|
+
revo_grid,
|
|
191
|
+
"beforeautofill",
|
|
192
|
+
/*onEvent*/
|
|
193
|
+
ctx[22]
|
|
194
|
+
),
|
|
195
|
+
listen(
|
|
196
|
+
revo_grid,
|
|
197
|
+
"beforeange",
|
|
198
|
+
/*onEvent*/
|
|
199
|
+
ctx[22]
|
|
200
|
+
),
|
|
201
|
+
listen(
|
|
202
|
+
revo_grid,
|
|
203
|
+
"afterfocus",
|
|
204
|
+
/*onEvent*/
|
|
205
|
+
ctx[22]
|
|
206
|
+
),
|
|
207
|
+
listen(
|
|
208
|
+
revo_grid,
|
|
209
|
+
"roworderchanged",
|
|
210
|
+
/*onEvent*/
|
|
211
|
+
ctx[22]
|
|
212
|
+
),
|
|
213
|
+
listen(
|
|
214
|
+
revo_grid,
|
|
215
|
+
"beforesortingapply",
|
|
216
|
+
/*onEvent*/
|
|
217
|
+
ctx[22]
|
|
218
|
+
),
|
|
219
|
+
listen(
|
|
220
|
+
revo_grid,
|
|
221
|
+
"beforesorting",
|
|
222
|
+
/*onEvent*/
|
|
223
|
+
ctx[22]
|
|
224
|
+
),
|
|
225
|
+
listen(
|
|
226
|
+
revo_grid,
|
|
227
|
+
"rowdragstart",
|
|
228
|
+
/*onEvent*/
|
|
229
|
+
ctx[22]
|
|
230
|
+
),
|
|
231
|
+
listen(
|
|
232
|
+
revo_grid,
|
|
233
|
+
"headerclick",
|
|
234
|
+
/*onEvent*/
|
|
235
|
+
ctx[22]
|
|
236
|
+
),
|
|
237
|
+
listen(
|
|
238
|
+
revo_grid,
|
|
239
|
+
"beforecellfocus",
|
|
240
|
+
/*onEvent*/
|
|
241
|
+
ctx[22]
|
|
242
|
+
),
|
|
243
|
+
listen(
|
|
244
|
+
revo_grid,
|
|
245
|
+
"beforefocuslost",
|
|
246
|
+
/*onEvent*/
|
|
247
|
+
ctx[22]
|
|
248
|
+
),
|
|
249
|
+
listen(
|
|
250
|
+
revo_grid,
|
|
251
|
+
"beforesourceset",
|
|
252
|
+
/*onEvent*/
|
|
253
|
+
ctx[22]
|
|
254
|
+
),
|
|
255
|
+
listen(
|
|
256
|
+
revo_grid,
|
|
257
|
+
"beforeanysource",
|
|
258
|
+
/*onEvent*/
|
|
259
|
+
ctx[22]
|
|
260
|
+
),
|
|
261
|
+
listen(
|
|
262
|
+
revo_grid,
|
|
263
|
+
"aftersourceset",
|
|
264
|
+
/*onEvent*/
|
|
265
|
+
ctx[22]
|
|
266
|
+
),
|
|
267
|
+
listen(
|
|
268
|
+
revo_grid,
|
|
269
|
+
"afteranysource",
|
|
270
|
+
/*onEvent*/
|
|
271
|
+
ctx[22]
|
|
272
|
+
),
|
|
273
|
+
listen(
|
|
274
|
+
revo_grid,
|
|
275
|
+
"beforecolumnsset",
|
|
276
|
+
/*onEvent*/
|
|
277
|
+
ctx[22]
|
|
278
|
+
),
|
|
279
|
+
listen(
|
|
280
|
+
revo_grid,
|
|
281
|
+
"beforecolumnapplied",
|
|
282
|
+
/*onEvent*/
|
|
283
|
+
ctx[22]
|
|
284
|
+
),
|
|
285
|
+
listen(
|
|
286
|
+
revo_grid,
|
|
287
|
+
"aftercolumnsset",
|
|
288
|
+
/*onEvent*/
|
|
289
|
+
ctx[22]
|
|
290
|
+
),
|
|
291
|
+
listen(
|
|
292
|
+
revo_grid,
|
|
293
|
+
"beforefilterapply",
|
|
294
|
+
/*onEvent*/
|
|
295
|
+
ctx[22]
|
|
296
|
+
),
|
|
297
|
+
listen(
|
|
298
|
+
revo_grid,
|
|
299
|
+
"beforefiltertrimmed",
|
|
300
|
+
/*onEvent*/
|
|
301
|
+
ctx[22]
|
|
302
|
+
),
|
|
303
|
+
listen(
|
|
304
|
+
revo_grid,
|
|
305
|
+
"beforetrimmed",
|
|
306
|
+
/*onEvent*/
|
|
307
|
+
ctx[22]
|
|
308
|
+
),
|
|
309
|
+
listen(
|
|
310
|
+
revo_grid,
|
|
311
|
+
"aftertrimmed",
|
|
312
|
+
/*onEvent*/
|
|
313
|
+
ctx[22]
|
|
314
|
+
),
|
|
315
|
+
listen(
|
|
316
|
+
revo_grid,
|
|
317
|
+
"viewportscroll",
|
|
318
|
+
/*onEvent*/
|
|
319
|
+
ctx[22]
|
|
320
|
+
),
|
|
321
|
+
listen(
|
|
322
|
+
revo_grid,
|
|
323
|
+
"beforeexport",
|
|
324
|
+
/*onEvent*/
|
|
325
|
+
ctx[22]
|
|
326
|
+
),
|
|
327
|
+
listen(
|
|
328
|
+
revo_grid,
|
|
329
|
+
"beforeeditstart",
|
|
330
|
+
/*onEvent*/
|
|
331
|
+
ctx[22]
|
|
332
|
+
),
|
|
333
|
+
listen(
|
|
334
|
+
revo_grid,
|
|
335
|
+
"aftercolumnresize",
|
|
336
|
+
/*onEvent*/
|
|
337
|
+
ctx[22]
|
|
338
|
+
),
|
|
339
|
+
listen(
|
|
340
|
+
revo_grid,
|
|
341
|
+
"beforerowdefinition",
|
|
342
|
+
/*onEvent*/
|
|
343
|
+
ctx[22]
|
|
344
|
+
),
|
|
345
|
+
listen(
|
|
346
|
+
revo_grid,
|
|
347
|
+
"filterconfigchanged",
|
|
348
|
+
/*onEvent*/
|
|
349
|
+
ctx[22]
|
|
350
|
+
),
|
|
351
|
+
listen(
|
|
352
|
+
revo_grid,
|
|
353
|
+
"rowheaderschanged",
|
|
354
|
+
/*onEvent*/
|
|
355
|
+
ctx[22]
|
|
356
|
+
),
|
|
357
|
+
listen(
|
|
358
|
+
revo_grid,
|
|
359
|
+
"beforegridrender",
|
|
360
|
+
/*onEvent*/
|
|
361
|
+
ctx[22]
|
|
362
|
+
),
|
|
363
|
+
listen(
|
|
364
|
+
revo_grid,
|
|
365
|
+
"aftergridinit",
|
|
366
|
+
/*onEvent*/
|
|
367
|
+
ctx[22]
|
|
368
|
+
)
|
|
369
|
+
];
|
|
370
|
+
mounted = true;
|
|
371
|
+
}
|
|
336
372
|
},
|
|
337
|
-
p(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
)
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
)
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
)
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
)
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
)
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
)
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
373
|
+
p(ctx2, dirty) {
|
|
374
|
+
if (default_slot) {
|
|
375
|
+
if (default_slot.p && (!current || dirty[1] & /*$$scope*/
|
|
376
|
+
536870912)) {
|
|
377
|
+
update_slot_base(
|
|
378
|
+
default_slot,
|
|
379
|
+
default_slot_template,
|
|
380
|
+
ctx2,
|
|
381
|
+
/*$$scope*/
|
|
382
|
+
ctx2[60],
|
|
383
|
+
!current ? get_all_dirty_from_scope(
|
|
384
|
+
/*$$scope*/
|
|
385
|
+
ctx2[60]
|
|
386
|
+
) : get_slot_changes(
|
|
387
|
+
default_slot_template,
|
|
388
|
+
/*$$scope*/
|
|
389
|
+
ctx2[60],
|
|
390
|
+
dirty,
|
|
391
|
+
null
|
|
392
|
+
),
|
|
393
|
+
null
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (!current || dirty[0] & /*rowHeaders*/
|
|
398
|
+
1) {
|
|
399
|
+
set_custom_element_data(
|
|
400
|
+
revo_grid,
|
|
401
|
+
"row-headers",
|
|
402
|
+
/*rowHeaders*/
|
|
403
|
+
ctx2[0]
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
if (!current || dirty[0] & /*frameSize*/
|
|
407
|
+
2) {
|
|
408
|
+
set_custom_element_data(
|
|
409
|
+
revo_grid,
|
|
410
|
+
"frame-size",
|
|
411
|
+
/*frameSize*/
|
|
412
|
+
ctx2[1]
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
if (!current || dirty[0] & /*rowSize*/
|
|
416
|
+
4) {
|
|
417
|
+
set_custom_element_data(
|
|
418
|
+
revo_grid,
|
|
419
|
+
"row-size",
|
|
420
|
+
/*rowSize*/
|
|
421
|
+
ctx2[2]
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
if (!current || dirty[0] & /*colSize*/
|
|
425
|
+
8) {
|
|
426
|
+
set_custom_element_data(
|
|
427
|
+
revo_grid,
|
|
428
|
+
"col-size",
|
|
429
|
+
/*colSize*/
|
|
430
|
+
ctx2[3]
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
if (!current || dirty[0] & /*range*/
|
|
434
|
+
16) {
|
|
435
|
+
set_custom_element_data(
|
|
436
|
+
revo_grid,
|
|
437
|
+
"range",
|
|
438
|
+
/*range*/
|
|
439
|
+
ctx2[4]
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
if (!current || dirty[0] & /*readonly*/
|
|
443
|
+
32) {
|
|
444
|
+
set_custom_element_data(
|
|
445
|
+
revo_grid,
|
|
446
|
+
"readonly",
|
|
447
|
+
/*readonly*/
|
|
448
|
+
ctx2[5]
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
if (!current || dirty[0] & /*resize*/
|
|
452
|
+
64) {
|
|
453
|
+
set_custom_element_data(
|
|
454
|
+
revo_grid,
|
|
455
|
+
"resize",
|
|
456
|
+
/*resize*/
|
|
457
|
+
ctx2[6]
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
if (!current || dirty[0] & /*canFocus*/
|
|
461
|
+
128) {
|
|
462
|
+
set_custom_element_data(
|
|
463
|
+
revo_grid,
|
|
464
|
+
"can-focus",
|
|
465
|
+
/*canFocus*/
|
|
466
|
+
ctx2[7]
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
if (!current || dirty[0] & /*useClipboard*/
|
|
470
|
+
256) {
|
|
471
|
+
set_custom_element_data(
|
|
472
|
+
revo_grid,
|
|
473
|
+
"use-clipboard",
|
|
474
|
+
/*useClipboard*/
|
|
475
|
+
ctx2[8]
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
if (!current || dirty[0] & /*applyOnClose*/
|
|
479
|
+
512) {
|
|
480
|
+
set_custom_element_data(
|
|
481
|
+
revo_grid,
|
|
482
|
+
"apply-on-close",
|
|
483
|
+
/*applyOnClose*/
|
|
484
|
+
ctx2[9]
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
if (!current || dirty[0] & /*theme*/
|
|
488
|
+
1024) {
|
|
489
|
+
set_custom_element_data(
|
|
490
|
+
revo_grid,
|
|
491
|
+
"theme",
|
|
492
|
+
/*theme*/
|
|
493
|
+
ctx2[10]
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
if (!current || dirty[0] & /*rowClass*/
|
|
497
|
+
2048) {
|
|
498
|
+
set_custom_element_data(
|
|
499
|
+
revo_grid,
|
|
500
|
+
"row-class",
|
|
501
|
+
/*rowClass*/
|
|
502
|
+
ctx2[11]
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
if (!current || dirty[0] & /*autoSizeColumn*/
|
|
506
|
+
4096) {
|
|
507
|
+
set_custom_element_data(
|
|
508
|
+
revo_grid,
|
|
509
|
+
"auto-size-column",
|
|
510
|
+
/*autoSizeColumn*/
|
|
511
|
+
ctx2[12]
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
if (!current || dirty[0] & /*filter*/
|
|
515
|
+
8192) {
|
|
516
|
+
set_custom_element_data(
|
|
517
|
+
revo_grid,
|
|
518
|
+
"filter",
|
|
519
|
+
/*filter*/
|
|
520
|
+
ctx2[13]
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
if (!current || dirty[0] & /*canMoveColumns*/
|
|
524
|
+
16384) {
|
|
525
|
+
set_custom_element_data(
|
|
526
|
+
revo_grid,
|
|
527
|
+
"can-move-columns",
|
|
528
|
+
/*canMoveColumns*/
|
|
529
|
+
ctx2[14]
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
if (!current || dirty[0] & /*exporting*/
|
|
533
|
+
32768) {
|
|
534
|
+
set_custom_element_data(
|
|
535
|
+
revo_grid,
|
|
536
|
+
"exporting",
|
|
537
|
+
/*exporting*/
|
|
538
|
+
ctx2[15]
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
if (!current || dirty[0] & /*stretch*/
|
|
542
|
+
65536) {
|
|
543
|
+
set_custom_element_data(
|
|
544
|
+
revo_grid,
|
|
545
|
+
"stretch",
|
|
546
|
+
/*stretch*/
|
|
547
|
+
ctx2[16]
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
if (!current || dirty[0] & /*additionalData*/
|
|
551
|
+
131072) {
|
|
552
|
+
set_custom_element_data(
|
|
553
|
+
revo_grid,
|
|
554
|
+
"additional-data",
|
|
555
|
+
/*additionalData*/
|
|
556
|
+
ctx2[17]
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
if (!current || dirty[0] & /*disableVirtualX*/
|
|
560
|
+
262144) {
|
|
561
|
+
set_custom_element_data(
|
|
562
|
+
revo_grid,
|
|
563
|
+
"disable-virtual-x",
|
|
564
|
+
/*disableVirtualX*/
|
|
565
|
+
ctx2[18]
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
if (!current || dirty[0] & /*disableVirtualY*/
|
|
569
|
+
524288) {
|
|
570
|
+
set_custom_element_data(
|
|
571
|
+
revo_grid,
|
|
572
|
+
"disable-virtual-y",
|
|
573
|
+
/*disableVirtualY*/
|
|
574
|
+
ctx2[19]
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
if (!current || dirty[0] & /*hideAttribution*/
|
|
578
|
+
1048576) {
|
|
579
|
+
set_custom_element_data(
|
|
580
|
+
revo_grid,
|
|
581
|
+
"hide-attribution",
|
|
582
|
+
/*hideAttribution*/
|
|
583
|
+
ctx2[20]
|
|
584
|
+
);
|
|
585
|
+
}
|
|
483
586
|
},
|
|
484
|
-
i(
|
|
485
|
-
|
|
587
|
+
i(local) {
|
|
588
|
+
if (current) return;
|
|
589
|
+
transition_in(default_slot, local);
|
|
590
|
+
current = true;
|
|
486
591
|
},
|
|
487
|
-
o(
|
|
488
|
-
|
|
592
|
+
o(local) {
|
|
593
|
+
transition_out(default_slot, local);
|
|
594
|
+
current = false;
|
|
489
595
|
},
|
|
490
|
-
d(
|
|
491
|
-
|
|
596
|
+
d(detaching) {
|
|
597
|
+
if (detaching) {
|
|
598
|
+
detach(revo_grid);
|
|
599
|
+
}
|
|
600
|
+
if (default_slot) default_slot.d(detaching);
|
|
601
|
+
ctx[62](null);
|
|
602
|
+
mounted = false;
|
|
603
|
+
run_all(dispose);
|
|
492
604
|
}
|
|
493
605
|
};
|
|
494
606
|
}
|
|
495
|
-
function
|
|
496
|
-
let { $$slots:
|
|
497
|
-
|
|
498
|
-
let
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
|
|
607
|
+
function instance($$self, $$props, $$invalidate) {
|
|
608
|
+
let { $$slots: slots = {}, $$scope } = $$props;
|
|
609
|
+
let __ref;
|
|
610
|
+
let __mounted = false;
|
|
611
|
+
const dispatch = createEventDispatcher();
|
|
612
|
+
let { rowHeaders = void 0 } = $$props;
|
|
613
|
+
let { frameSize = void 0 } = $$props;
|
|
614
|
+
let { rowSize = void 0 } = $$props;
|
|
615
|
+
let { colSize = void 0 } = $$props;
|
|
616
|
+
let { range = void 0 } = $$props;
|
|
617
|
+
let { readonly = void 0 } = $$props;
|
|
618
|
+
let { resize = void 0 } = $$props;
|
|
619
|
+
let { canFocus = void 0 } = $$props;
|
|
620
|
+
let { useClipboard = void 0 } = $$props;
|
|
621
|
+
let { columns = void 0 } = $$props;
|
|
622
|
+
let { source = void 0 } = $$props;
|
|
623
|
+
let { pinnedTopSource = void 0 } = $$props;
|
|
624
|
+
let { pinnedBottomSource = void 0 } = $$props;
|
|
625
|
+
let { rowDefinitions = void 0 } = $$props;
|
|
626
|
+
let { editors = void 0 } = $$props;
|
|
627
|
+
let { applyOnClose = void 0 } = $$props;
|
|
628
|
+
let { plugins = void 0 } = $$props;
|
|
629
|
+
let { columnTypes = void 0 } = $$props;
|
|
630
|
+
let { theme = void 0 } = $$props;
|
|
631
|
+
let { rowClass = void 0 } = $$props;
|
|
632
|
+
let { autoSizeColumn = void 0 } = $$props;
|
|
633
|
+
let { filter = void 0 } = $$props;
|
|
634
|
+
let { focusTemplate = void 0 } = $$props;
|
|
635
|
+
let { canMoveColumns = void 0 } = $$props;
|
|
636
|
+
let { trimmedRows = void 0 } = $$props;
|
|
637
|
+
let { exporting = void 0 } = $$props;
|
|
638
|
+
let { grouping = void 0 } = $$props;
|
|
639
|
+
let { stretch = void 0 } = $$props;
|
|
640
|
+
let { additionalData = void 0 } = $$props;
|
|
641
|
+
let { disableVirtualX = void 0 } = $$props;
|
|
642
|
+
let { disableVirtualY = void 0 } = $$props;
|
|
643
|
+
let { hideAttribution = void 0 } = $$props;
|
|
644
|
+
let { jobsBeforeRender = void 0 } = $$props;
|
|
645
|
+
let { registerVNode = void 0 } = $$props;
|
|
646
|
+
const refresh = (...args) => __ref.refresh(...args);
|
|
647
|
+
const setDataAt = (...args) => __ref.setDataAt(...args);
|
|
648
|
+
const scrollToRow = (...args) => __ref.scrollToRow(...args);
|
|
649
|
+
const scrollToColumnIndex = (...args) => __ref.scrollToColumnIndex(...args);
|
|
650
|
+
const scrollToColumnProp = (...args) => __ref.scrollToColumnProp(...args);
|
|
651
|
+
const updateColumns = (...args) => __ref.updateColumns(...args);
|
|
652
|
+
const addTrimmed = (...args) => __ref.addTrimmed(...args);
|
|
653
|
+
const scrollToCoordinate = (...args) => __ref.scrollToCoordinate(...args);
|
|
654
|
+
const setCellEdit = (...args) => __ref.setCellEdit(...args);
|
|
655
|
+
const setCellsFocus = (...args) => __ref.setCellsFocus(...args);
|
|
656
|
+
const getSource = (...args) => __ref.getSource(...args);
|
|
657
|
+
const getVisibleSource = (...args) => __ref.getVisibleSource(...args);
|
|
658
|
+
const getSourceStore = (...args) => __ref.getSourceStore(...args);
|
|
659
|
+
const getColumnStore = (...args) => __ref.getColumnStore(...args);
|
|
660
|
+
const updateColumnSorting = (...args) => __ref.updateColumnSorting(...args);
|
|
661
|
+
const clearSorting = (...args) => __ref.clearSorting(...args);
|
|
662
|
+
const getColumns = (...args) => __ref.getColumns(...args);
|
|
663
|
+
const clearFocus = (...args) => __ref.clearFocus(...args);
|
|
664
|
+
const getPlugins = (...args) => __ref.getPlugins(...args);
|
|
665
|
+
const getFocused = (...args) => __ref.getFocused(...args);
|
|
666
|
+
const getContentSize = (...args) => __ref.getContentSize(...args);
|
|
667
|
+
const getSelectedRange = (...args) => __ref.getSelectedRange(...args);
|
|
668
|
+
const getWebComponent = () => __ref;
|
|
669
|
+
onMount(() => {
|
|
670
|
+
$$invalidate(59, __mounted = true);
|
|
502
671
|
});
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
}
|
|
506
|
-
|
|
672
|
+
const setProp = (prop, value) => {
|
|
673
|
+
if (__ref) $$invalidate(21, __ref[prop] = value, __ref);
|
|
674
|
+
};
|
|
675
|
+
const onEvent = (e) => {
|
|
676
|
+
e.stopPropagation();
|
|
677
|
+
dispatch(e.type, e.detail);
|
|
507
678
|
};
|
|
508
|
-
function
|
|
509
|
-
|
|
510
|
-
|
|
679
|
+
function revo_grid_binding($$value) {
|
|
680
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
681
|
+
__ref = $$value;
|
|
682
|
+
$$invalidate(21, __ref);
|
|
511
683
|
});
|
|
512
684
|
}
|
|
513
|
-
|
|
514
|
-
"rowHeaders" in
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
685
|
+
$$self.$$set = ($$props2) => {
|
|
686
|
+
if ("rowHeaders" in $$props2) $$invalidate(0, rowHeaders = $$props2.rowHeaders);
|
|
687
|
+
if ("frameSize" in $$props2) $$invalidate(1, frameSize = $$props2.frameSize);
|
|
688
|
+
if ("rowSize" in $$props2) $$invalidate(2, rowSize = $$props2.rowSize);
|
|
689
|
+
if ("colSize" in $$props2) $$invalidate(3, colSize = $$props2.colSize);
|
|
690
|
+
if ("range" in $$props2) $$invalidate(4, range = $$props2.range);
|
|
691
|
+
if ("readonly" in $$props2) $$invalidate(5, readonly = $$props2.readonly);
|
|
692
|
+
if ("resize" in $$props2) $$invalidate(6, resize = $$props2.resize);
|
|
693
|
+
if ("canFocus" in $$props2) $$invalidate(7, canFocus = $$props2.canFocus);
|
|
694
|
+
if ("useClipboard" in $$props2) $$invalidate(8, useClipboard = $$props2.useClipboard);
|
|
695
|
+
if ("columns" in $$props2) $$invalidate(23, columns = $$props2.columns);
|
|
696
|
+
if ("source" in $$props2) $$invalidate(24, source = $$props2.source);
|
|
697
|
+
if ("pinnedTopSource" in $$props2) $$invalidate(25, pinnedTopSource = $$props2.pinnedTopSource);
|
|
698
|
+
if ("pinnedBottomSource" in $$props2) $$invalidate(26, pinnedBottomSource = $$props2.pinnedBottomSource);
|
|
699
|
+
if ("rowDefinitions" in $$props2) $$invalidate(27, rowDefinitions = $$props2.rowDefinitions);
|
|
700
|
+
if ("editors" in $$props2) $$invalidate(28, editors = $$props2.editors);
|
|
701
|
+
if ("applyOnClose" in $$props2) $$invalidate(9, applyOnClose = $$props2.applyOnClose);
|
|
702
|
+
if ("plugins" in $$props2) $$invalidate(29, plugins = $$props2.plugins);
|
|
703
|
+
if ("columnTypes" in $$props2) $$invalidate(30, columnTypes = $$props2.columnTypes);
|
|
704
|
+
if ("theme" in $$props2) $$invalidate(10, theme = $$props2.theme);
|
|
705
|
+
if ("rowClass" in $$props2) $$invalidate(11, rowClass = $$props2.rowClass);
|
|
706
|
+
if ("autoSizeColumn" in $$props2) $$invalidate(12, autoSizeColumn = $$props2.autoSizeColumn);
|
|
707
|
+
if ("filter" in $$props2) $$invalidate(13, filter = $$props2.filter);
|
|
708
|
+
if ("focusTemplate" in $$props2) $$invalidate(31, focusTemplate = $$props2.focusTemplate);
|
|
709
|
+
if ("canMoveColumns" in $$props2) $$invalidate(14, canMoveColumns = $$props2.canMoveColumns);
|
|
710
|
+
if ("trimmedRows" in $$props2) $$invalidate(32, trimmedRows = $$props2.trimmedRows);
|
|
711
|
+
if ("exporting" in $$props2) $$invalidate(15, exporting = $$props2.exporting);
|
|
712
|
+
if ("grouping" in $$props2) $$invalidate(33, grouping = $$props2.grouping);
|
|
713
|
+
if ("stretch" in $$props2) $$invalidate(16, stretch = $$props2.stretch);
|
|
714
|
+
if ("additionalData" in $$props2) $$invalidate(17, additionalData = $$props2.additionalData);
|
|
715
|
+
if ("disableVirtualX" in $$props2) $$invalidate(18, disableVirtualX = $$props2.disableVirtualX);
|
|
716
|
+
if ("disableVirtualY" in $$props2) $$invalidate(19, disableVirtualY = $$props2.disableVirtualY);
|
|
717
|
+
if ("hideAttribution" in $$props2) $$invalidate(20, hideAttribution = $$props2.hideAttribution);
|
|
718
|
+
if ("jobsBeforeRender" in $$props2) $$invalidate(34, jobsBeforeRender = $$props2.jobsBeforeRender);
|
|
719
|
+
if ("registerVNode" in $$props2) $$invalidate(35, registerVNode = $$props2.registerVNode);
|
|
720
|
+
if ("$$scope" in $$props2) $$invalidate(60, $$scope = $$props2.$$scope);
|
|
721
|
+
};
|
|
722
|
+
$$self.$$.update = () => {
|
|
723
|
+
if ($$self.$$.dirty[0] & /*columns*/
|
|
724
|
+
8388608 | $$self.$$.dirty[1] & /*__mounted*/
|
|
725
|
+
268435456) {
|
|
726
|
+
if (__mounted) setProp("columns", columns);
|
|
727
|
+
}
|
|
728
|
+
if ($$self.$$.dirty[0] & /*source*/
|
|
729
|
+
16777216 | $$self.$$.dirty[1] & /*__mounted*/
|
|
730
|
+
268435456) {
|
|
731
|
+
if (__mounted) setProp("source", source);
|
|
732
|
+
}
|
|
733
|
+
if ($$self.$$.dirty[0] & /*pinnedTopSource*/
|
|
734
|
+
33554432 | $$self.$$.dirty[1] & /*__mounted*/
|
|
735
|
+
268435456) {
|
|
736
|
+
if (__mounted) setProp("pinnedTopSource", pinnedTopSource);
|
|
737
|
+
}
|
|
738
|
+
if ($$self.$$.dirty[0] & /*pinnedBottomSource*/
|
|
739
|
+
67108864 | $$self.$$.dirty[1] & /*__mounted*/
|
|
740
|
+
268435456) {
|
|
741
|
+
if (__mounted) setProp("pinnedBottomSource", pinnedBottomSource);
|
|
742
|
+
}
|
|
743
|
+
if ($$self.$$.dirty[0] & /*rowDefinitions*/
|
|
744
|
+
134217728 | $$self.$$.dirty[1] & /*__mounted*/
|
|
745
|
+
268435456) {
|
|
746
|
+
if (__mounted) setProp("rowDefinitions", rowDefinitions);
|
|
747
|
+
}
|
|
748
|
+
if ($$self.$$.dirty[0] & /*editors*/
|
|
749
|
+
268435456 | $$self.$$.dirty[1] & /*__mounted*/
|
|
750
|
+
268435456) {
|
|
751
|
+
if (__mounted) setProp("editors", editors);
|
|
752
|
+
}
|
|
753
|
+
if ($$self.$$.dirty[0] & /*plugins*/
|
|
754
|
+
536870912 | $$self.$$.dirty[1] & /*__mounted*/
|
|
755
|
+
268435456) {
|
|
756
|
+
if (__mounted) setProp("plugins", plugins);
|
|
757
|
+
}
|
|
758
|
+
if ($$self.$$.dirty[0] & /*columnTypes*/
|
|
759
|
+
1073741824 | $$self.$$.dirty[1] & /*__mounted*/
|
|
760
|
+
268435456) {
|
|
761
|
+
if (__mounted) setProp("columnTypes", columnTypes);
|
|
762
|
+
}
|
|
763
|
+
if ($$self.$$.dirty[1] & /*__mounted, focusTemplate*/
|
|
764
|
+
268435457) {
|
|
765
|
+
if (__mounted) setProp("focusTemplate", focusTemplate);
|
|
766
|
+
}
|
|
767
|
+
if ($$self.$$.dirty[1] & /*__mounted, trimmedRows*/
|
|
768
|
+
268435458) {
|
|
769
|
+
if (__mounted) setProp("trimmedRows", trimmedRows);
|
|
770
|
+
}
|
|
771
|
+
if ($$self.$$.dirty[1] & /*__mounted, grouping*/
|
|
772
|
+
268435460) {
|
|
773
|
+
if (__mounted) setProp("grouping", grouping);
|
|
774
|
+
}
|
|
775
|
+
if ($$self.$$.dirty[1] & /*__mounted, jobsBeforeRender*/
|
|
776
|
+
268435464) {
|
|
777
|
+
if (__mounted) setProp("jobsBeforeRender", jobsBeforeRender);
|
|
778
|
+
}
|
|
779
|
+
if ($$self.$$.dirty[1] & /*__mounted, registerVNode*/
|
|
780
|
+
268435472) {
|
|
781
|
+
if (__mounted) setProp("registerVNode", registerVNode);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
return [
|
|
785
|
+
rowHeaders,
|
|
786
|
+
frameSize,
|
|
787
|
+
rowSize,
|
|
788
|
+
colSize,
|
|
789
|
+
range,
|
|
790
|
+
readonly,
|
|
791
|
+
resize,
|
|
792
|
+
canFocus,
|
|
793
|
+
useClipboard,
|
|
794
|
+
applyOnClose,
|
|
795
|
+
theme,
|
|
796
|
+
rowClass,
|
|
797
|
+
autoSizeColumn,
|
|
798
|
+
filter,
|
|
799
|
+
canMoveColumns,
|
|
800
|
+
exporting,
|
|
801
|
+
stretch,
|
|
802
|
+
additionalData,
|
|
803
|
+
disableVirtualX,
|
|
804
|
+
disableVirtualY,
|
|
805
|
+
hideAttribution,
|
|
806
|
+
__ref,
|
|
807
|
+
onEvent,
|
|
808
|
+
columns,
|
|
809
|
+
source,
|
|
810
|
+
pinnedTopSource,
|
|
811
|
+
pinnedBottomSource,
|
|
812
|
+
rowDefinitions,
|
|
813
|
+
editors,
|
|
814
|
+
plugins,
|
|
815
|
+
columnTypes,
|
|
816
|
+
focusTemplate,
|
|
817
|
+
trimmedRows,
|
|
818
|
+
grouping,
|
|
819
|
+
jobsBeforeRender,
|
|
820
|
+
registerVNode,
|
|
821
|
+
refresh,
|
|
822
|
+
setDataAt,
|
|
823
|
+
scrollToRow,
|
|
824
|
+
scrollToColumnIndex,
|
|
825
|
+
scrollToColumnProp,
|
|
826
|
+
updateColumns,
|
|
827
|
+
addTrimmed,
|
|
828
|
+
scrollToCoordinate,
|
|
829
|
+
setCellEdit,
|
|
830
|
+
setCellsFocus,
|
|
831
|
+
getSource,
|
|
832
|
+
getVisibleSource,
|
|
833
|
+
getSourceStore,
|
|
834
|
+
getColumnStore,
|
|
835
|
+
updateColumnSorting,
|
|
836
|
+
clearSorting,
|
|
837
|
+
getColumns,
|
|
838
|
+
clearFocus,
|
|
839
|
+
getPlugins,
|
|
840
|
+
getFocused,
|
|
841
|
+
getContentSize,
|
|
842
|
+
getSelectedRange,
|
|
843
|
+
getWebComponent,
|
|
844
|
+
__mounted,
|
|
845
|
+
$$scope,
|
|
846
|
+
slots,
|
|
847
|
+
revo_grid_binding
|
|
602
848
|
];
|
|
603
849
|
}
|
|
604
|
-
class
|
|
605
|
-
constructor(
|
|
850
|
+
class RevoGrid extends SvelteComponent {
|
|
851
|
+
constructor(options) {
|
|
606
852
|
super();
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
853
|
+
__publicField(this, "$$prop_def");
|
|
854
|
+
__publicField(this, "$$events_def");
|
|
855
|
+
__publicField(this, "$$slot_def");
|
|
856
|
+
init(
|
|
611
857
|
this,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
858
|
+
options,
|
|
859
|
+
instance,
|
|
860
|
+
create_fragment,
|
|
861
|
+
safe_not_equal,
|
|
616
862
|
{
|
|
617
863
|
rowHeaders: 0,
|
|
618
864
|
frameSize: 1,
|
|
@@ -676,11 +922,11 @@ class Je extends _e {
|
|
|
676
922
|
[-1, -1, -1]
|
|
677
923
|
);
|
|
678
924
|
}
|
|
679
|
-
$on(
|
|
680
|
-
return super.$on(
|
|
925
|
+
$on(type, callback) {
|
|
926
|
+
return super.$on(type, callback);
|
|
681
927
|
}
|
|
682
|
-
$set(
|
|
683
|
-
super.$set(
|
|
928
|
+
$set($$props) {
|
|
929
|
+
super.$set($$props);
|
|
684
930
|
}
|
|
685
931
|
/** Refreshes data viewport.
|
|
686
932
|
Can be specific part as rgRow or pinned rgRow or 'all' by default. */
|
|
@@ -781,7 +1027,7 @@ class Je extends _e {
|
|
|
781
1027
|
return this.$$.ctx[58];
|
|
782
1028
|
}
|
|
783
1029
|
}
|
|
784
|
-
|
|
1030
|
+
defineCustomElements();
|
|
785
1031
|
export {
|
|
786
|
-
|
|
1032
|
+
RevoGrid
|
|
787
1033
|
};
|