@hpcc-js/dgrid 3.6.0 → 3.7.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/src/Common.css CHANGED
@@ -1,39 +1,45 @@
1
- 
2
- .dijitTooltip {
3
- position: absolute;
4
- z-index: 2000;
5
- display: block;
6
-
7
- left: 0;
8
- top: -10000px;
9
- overflow: visible;
1
+ .dijitTooltip {
2
+ position: absolute;
3
+ z-index: 2000;
4
+ display: block;
5
+
6
+ left: 0;
7
+ top: -10000px;
8
+ overflow: visible;
10
9
 
11
10
  font-family: Verdana, Geneva, sans-serif;
12
11
  font-size: 12px;
13
12
  }
13
+
14
14
  .dijitTooltipContainer {
15
- border: solid black 2px;
16
- background: #b8b5b5;
17
- color: black;
18
- font-size: small;
15
+ border: solid black 2px;
16
+ background: #b8b5b5;
17
+ color: black;
18
+ font-size: small;
19
19
  }
20
+
20
21
  .dijitTooltipFocusNode {
21
- padding: 2px 2px 2px 2px;
22
+ padding: 2px 2px 2px 2px;
22
23
  }
24
+
23
25
  .dijitTooltipConnector {
24
- position: absolute;
26
+ position: absolute;
25
27
  }
28
+
26
29
  .dj_a11y .dijitTooltipConnector {
27
- display: none;
30
+ display: none;
28
31
  }
32
+
29
33
  .dijitTooltipData {
30
- display:none;
34
+ display: none;
31
35
  }
32
36
 
33
37
  .dijitTooltip {
34
- /* the outermost dom node, holding the connector and container */
35
- background: transparent; /* make the area on the sides of the arrow transparent */
38
+ /* the outermost dom node, holding the connector and container */
39
+ background: transparent;
40
+ /* make the area on the sides of the arrow transparent */
36
41
  }
42
+
37
43
  .dijitTooltipContainer {
38
44
  background-color: #424242;
39
45
  opacity: 1;
@@ -42,12 +48,14 @@
42
48
  padding: 4px 8px;
43
49
  border-radius: 3px;
44
50
  }
51
+
45
52
  .dijitTooltip .dijitTooltipContainer {
46
53
  color: #fff;
47
54
  border: 0 none;
48
55
  }
56
+
49
57
  .dijitTooltipConnector {
50
- /* the arrow */
58
+ /* the arrow */
51
59
  z-index: 2;
52
60
  width: auto;
53
61
  height: auto;
@@ -55,18 +63,21 @@
55
63
  -ms-filter: none;
56
64
  filter: none;
57
65
  }
66
+
58
67
  .dijitTooltipABRight .dijitTooltipConnector {
59
- /* above or below tooltip, but the arrow appears on the right,
68
+ /* above or below tooltip, but the arrow appears on the right,
60
69
  and the right edges of target and tooltip are aligned rather than the left */
61
70
  left: auto !important;
62
71
  right: 8px;
63
72
  }
73
+
64
74
  .dijitTooltipBelow {
65
- /* leave room for arrow above content */
75
+ /* leave room for arrow above content */
66
76
  padding-top: 4px;
67
77
  }
78
+
68
79
  .dijitTooltipBelow .dijitTooltipConnector {
69
- /* the arrow piece for tooltips below an element */
80
+ /* the arrow piece for tooltips below an element */
70
81
  top: 0;
71
82
  left: 8px;
72
83
  border-bottom: 4px solid #424242;
@@ -74,12 +85,14 @@
74
85
  border-right: 4px solid transparent;
75
86
  border-top: 0;
76
87
  }
88
+
77
89
  .dijitTooltipAbove {
78
- /* leave room for arrow below content */
90
+ /* leave room for arrow below content */
79
91
  padding-bottom: 4px;
80
92
  }
93
+
81
94
  .dijitTooltipAbove .dijitTooltipConnector {
82
- /* the arrow piece for tooltips above an element */
95
+ /* the arrow piece for tooltips above an element */
83
96
  bottom: 0;
84
97
  left: 8px;
85
98
  border-top: 4px solid #424242;
@@ -87,22 +100,26 @@
87
100
  border-right: 4px solid transparent;
88
101
  border-bottom: 0;
89
102
  }
103
+
90
104
  .dijitTooltipLeft {
91
105
  padding-right: 4px;
92
106
  }
107
+
93
108
  .dijitTooltipLeft .dijitTooltipConnector {
94
- /* the arrow piece for tooltips to the left of an element, bottom borders aligned */
109
+ /* the arrow piece for tooltips to the left of an element, bottom borders aligned */
95
110
  right: 0;
96
111
  border-left: 4px solid #424242;
97
112
  border-bottom: 4px solid transparent;
98
113
  border-top: 4px solid transparent;
99
114
  border-right: 0;
100
115
  }
116
+
101
117
  .dijitTooltipRight {
102
118
  padding-left: 4px;
103
119
  }
120
+
104
121
  .dijitTooltipRight .dijitTooltipConnector {
105
- /* the arrow piece for tooltips to the right of an element, bottom borders aligned */
122
+ /* the arrow piece for tooltips to the right of an element, bottom borders aligned */
106
123
  left: 0;
107
124
  border-bottom: 4px solid transparent;
108
125
  border-top: 4px solid transparent;
@@ -116,24 +133,29 @@
116
133
  height: 30em;
117
134
  display: block;
118
135
  }
136
+
119
137
  .dgrid-header {
120
138
  background-color: #eee;
121
139
  }
140
+
122
141
  .dgrid-header-row {
123
142
  position: absolute;
124
143
  right: 17px;
125
144
  left: 0;
126
145
  }
146
+
127
147
  .dgrid-header-scroll {
128
148
  position: absolute;
129
149
  top: 0;
130
150
  right: 0;
131
151
  }
152
+
132
153
  .dgrid-footer {
133
154
  position: absolute;
134
155
  bottom: 0;
135
156
  width: 100%;
136
157
  }
158
+
137
159
  .dgrid-header-hidden {
138
160
  font-size: 0;
139
161
  height: 0 !important;
@@ -144,18 +166,22 @@
144
166
  padding-top: 0 !important;
145
167
  padding-bottom: 0 !important;
146
168
  }
169
+
147
170
  .dgrid-footer-hidden {
148
171
  display: none;
149
172
  }
173
+
150
174
  .dgrid-sortable {
151
175
  cursor: pointer;
152
176
  }
177
+
153
178
  .dgrid-header,
154
179
  .dgrid-header-row,
155
180
  .dgrid-footer {
156
181
  overflow: hidden;
157
182
  background-color: #eee;
158
183
  }
184
+
159
185
  .dgrid-row-table {
160
186
  border-collapse: collapse;
161
187
  border: none;
@@ -164,6 +190,7 @@
164
190
  width: 100%;
165
191
  height: 100%;
166
192
  }
193
+
167
194
  .dgrid-cell {
168
195
  padding: 3px;
169
196
  text-align: left;
@@ -174,13 +201,15 @@
174
201
  -webkit-box-sizing: border-box;
175
202
  -moz-box-sizing: border-box;
176
203
  box-sizing: border-box;
177
- text-overflow: ellipsis;
178
- white-space: nowrap;
204
+ text-overflow: ellipsis;
205
+ white-space: nowrap;
179
206
  }
207
+
180
208
  .dgrid-content {
181
209
  position: relative;
182
210
  height: 99%;
183
211
  }
212
+
184
213
  .dgrid-scroller {
185
214
  overflow-x: auto;
186
215
  overflow-y: scroll;
@@ -190,23 +219,28 @@
190
219
  bottom: 0px;
191
220
  width: 100%;
192
221
  }
222
+
193
223
  .dgrid-preload {
194
224
  font-size: 0;
195
225
  line-height: 0;
196
226
  }
227
+
197
228
  .dgrid-loading {
198
229
  position: relative;
199
230
  height: 100%;
200
231
  }
232
+
201
233
  .dgrid-above {
202
234
  position: absolute;
203
235
  bottom: 0;
204
236
  }
237
+
205
238
  .ui-icon {
206
239
  width: 12px;
207
240
  height: 16px;
208
241
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEUkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiTww4gUAAAATnRSTlMAGBAyBAhQv4OZLiJUcEBmYBoSzQwgPBZCSEoeWiYwUiyFNIeBw2rJz8c4RBy9uXyrtaWNqa2zKP2fJO8KBgKPo2KVoa9s351GPm5+kWho0kj9AAAPhUlEQVR4nO1djWLbthEGyUiq5YSSLXtp7FpLOmfzkmxr126tmi2p03RJ1/Xe/3EGgARxPyAgRbIk2/hkSz4CJO4+HsE7AJSVysjI2AMUUOxahZ2iANhzBtZWr4BoIRSYAVN5u4QwDwQDRbcwfUi5KS3wFuDmFnQLa4Dtb//cqktwD5QEFFwfUs7PoCCA7y4bEJVFizcIob8KmhAplwwqVjt+9FBl3uINQniwEiryEyw9JHq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AB9qvRiiP3/XpQQFGYDU4+Mi///XumXG8pjvaUAOsBGlf4jJt+YYEzeEzAdw06F19R3juM7D1wita86GR0CKfDHgLuXCc4Bri6vMLdfjMc4VNSUNsdodo2xu/1+Xl/K5+az8jIyMhYG/z5gJTMF1GtKq/a3rpyCvz5gJTMl9GtKq/a3rpyCmfQ4WwZmS+kXFVetb115ST48wEf/AGcfG1iw+tWbpbS2vJ3nQxcVr3lH3z5h972FUTLzYpOVk7l5hD+eYcYwDcAnewOotrZ4OtrPDucqi/LRX0/RR4qx7Nn4U8g+qjffvuN6Gf+nC85vwauHjaYyubqvWYKY4VEfSUMitdnBCT1Ue63R5439m+OgCn6DroAAaHPVQxKth/wkJgHmG8bmQMsT0D6EjDfvhVRKO3ywOQUgRA7nmL1uawZmHf1k+DPBwQ6NdcJ+k6Md1LA5f5ONdhJ8vZ5J0vLHT99srkGOjmJbd/G1r2Nriqnse1AZt1AalU5jW2HsuuG0qvKGRkZGRkZGRG0gcONyXsP9v8D0/IdJADiBNiXl3327WRGgOL/9HC/0XwlIURkRhC4tz6Z/fu7fUf2gHvfB9z3u0BGRkZGRkbGplHcnkgguQoSqtUXuhbs/wPtMwqV0HUJAvj5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr/+3xgXU9oKmvsHyr7F/XA269/eveBXrsv7N9QALe/tvjA0kPWAXGbvebkbHn+D/J5nMcHzx1UAAAAABJRU5ErkJggg==);
209
242
  }
243
+
210
244
  .dgrid-sort-arrow {
211
245
  background-position: -64px -16px;
212
246
  display: block;
@@ -214,22 +248,28 @@
214
248
  margin: 0 4px 0 5px;
215
249
  height: 12px;
216
250
  }
251
+
217
252
  .dgrid-sort-up .dgrid-sort-arrow {
218
253
  background-position: 0px -16px;
219
254
  }
255
+
220
256
  .dgrid-selected {
221
257
  background-color: #bbb;
222
258
  }
259
+
223
260
  .dgrid-input {
224
261
  width: 99%;
225
262
  }
263
+
226
264
  html.has-mozilla .dgrid .dgrid-row:focus,
227
265
  html.has-mozilla .dgrid .dgrid-cell:focus {
228
266
  outline: 1px dotted;
229
267
  }
268
+
230
269
  html.has-mozilla .dgrid-focus {
231
270
  outline-offset: -1px;
232
271
  }
272
+
233
273
  .dgrid-scrollbar-measure {
234
274
  width: 100px;
235
275
  height: 100px;
@@ -237,19 +277,24 @@ html.has-mozilla .dgrid-focus {
237
277
  position: absolute;
238
278
  top: -9999px;
239
279
  }
280
+
240
281
  .dgrid-autoheight {
241
282
  height: auto;
242
283
  }
284
+
243
285
  .dgrid-autoheight .dgrid-scroller {
244
286
  position: relative;
245
287
  overflow-y: hidden;
246
288
  }
289
+
247
290
  .dgrid-autoheight .dgrid-header-scroll {
248
291
  display: none;
249
292
  }
293
+
250
294
  .dgrid-autoheight .dgrid-header {
251
295
  right: 0;
252
296
  }
297
+
253
298
  .dgrid-column-set {
254
299
  overflow: hidden;
255
300
  width: 100%;
@@ -258,36 +303,45 @@ html.has-mozilla .dgrid-focus {
258
303
  -ms-touch-action: pan-y;
259
304
  touch-action: pan-y;
260
305
  }
306
+
261
307
  .dgrid-column-set-cell {
262
308
  vertical-align: top;
263
309
  height: 100%;
264
310
  }
311
+
265
312
  .dgrid-column-set-scroller-container {
266
313
  font-size: 0;
267
314
  position: absolute;
268
315
  bottom: 0;
269
316
  }
317
+
270
318
  .dgrid-autoheight .dgrid-column-set-scroller-container {
271
319
  position: relative;
272
320
  }
321
+
273
322
  .dgrid-column-set-scroller {
274
323
  display: inline-block;
275
324
  overflow-x: auto;
276
325
  overflow-y: hidden;
277
326
  }
327
+
278
328
  .dgrid-column-set-scroller-content {
279
329
  height: 1px;
280
330
  }
331
+
281
332
  .ui-icon-triangle-1-e {
282
333
  background-position: -32px -16px;
283
334
  }
335
+
284
336
  .ui-icon-triangle-1-se {
285
337
  background-position: -48px -16px;
286
338
  }
339
+
287
340
  .dgrid-expando-icon {
288
341
  width: 16px;
289
342
  height: 16px;
290
343
  }
344
+
291
345
  .dgrid-tree-container {
292
346
  -webkit-transition-duration: 0.3s;
293
347
  -moz-transition-duration: 0.3s;
@@ -296,6 +350,7 @@ html.has-mozilla .dgrid-focus {
296
350
  transition-duration: 0.3s;
297
351
  overflow: hidden;
298
352
  }
353
+
299
354
  .dgrid-tree-container.dgrid-tree-resetting {
300
355
  -webkit-transition-duration: 0;
301
356
  -moz-transition-duration: 0;
@@ -303,6 +358,7 @@ html.has-mozilla .dgrid-focus {
303
358
  -ms-transition-duration: 0;
304
359
  transition-duration: 0;
305
360
  }
361
+
306
362
  .dgrid-hider-toggle {
307
363
  background-position: 0 -192px;
308
364
  background-color: transparent;
@@ -312,10 +368,12 @@ html.has-mozilla .dgrid-focus {
312
368
  right: 0;
313
369
  top: 0;
314
370
  }
371
+
315
372
  .dgrid-rtl-swap .dgrid-hider-toggle {
316
373
  right: auto;
317
374
  left: 0;
318
375
  }
376
+
319
377
  .dgrid-hider-menu {
320
378
  position: absolute;
321
379
  top: 0;
@@ -328,33 +386,41 @@ html.has-mozilla .dgrid-focus {
328
386
  overflow-x: hidden;
329
387
  overflow-y: auto;
330
388
  }
389
+
331
390
  .dgrid-rtl-swap .dgrid-hider-menu {
332
391
  right: auto;
333
392
  left: 17px;
334
393
  }
394
+
335
395
  .dgrid-hider-menu-row {
336
396
  position: relative;
337
397
  padding: 2px;
338
398
  }
399
+
339
400
  .dgrid-hider-menu-check {
340
401
  position: absolute;
341
402
  top: 2px;
342
403
  left: 2px;
343
404
  padding: 0;
344
405
  }
406
+
345
407
  .dgrid-hider-menu-label {
346
408
  display: block;
347
409
  padding-left: 20px;
348
410
  }
411
+
349
412
  .dgrid-header .dojoDndTarget .dgrid-cell {
350
413
  display: table-cell;
351
414
  }
415
+
352
416
  .dgrid-header .dojoDndItemBefore {
353
417
  border-left: 2px dotted #000 !important;
354
418
  }
419
+
355
420
  .dgrid-header .dojoDndItemAfter {
356
421
  border-right: 2px dotted #000 !important;
357
422
  }
423
+
358
424
  .dgrid-column-resizer {
359
425
  cursor: col-resize;
360
426
  position: absolute;
@@ -362,6 +428,7 @@ html.has-mozilla .dgrid-focus {
362
428
  background-color: #666;
363
429
  z-index: 1000;
364
430
  }
431
+
365
432
  .dgrid-resize-handle {
366
433
  height: 100px;
367
434
  width: 0;
@@ -370,12 +437,14 @@ html.has-mozilla .dgrid-focus {
370
437
  top: -4px;
371
438
  cursor: col-resize;
372
439
  z-index: 999;
373
- border-left: 5px solid transparent;
440
+ border-left: 8px solid transparent;
374
441
  outline: none;
375
442
  }
443
+
376
444
  .dgrid-resize-header-container {
377
445
  height: 100%;
378
446
  }
447
+
379
448
  .dgrid-resize-guard {
380
449
  cursor: col-resize;
381
450
  position: absolute;
@@ -384,37 +453,47 @@ html.has-mozilla .dgrid-focus {
384
453
  right: 0;
385
454
  top: 0;
386
455
  }
456
+
387
457
  html.has-touch .dgrid-resize-handle {
388
458
  border-left: 20px solid transparent;
389
459
  }
460
+
390
461
  html.has-touch .dgrid-column-resizer {
391
462
  width: 2px;
392
463
  }
464
+
393
465
  .dgrid-resize-header-container {
394
466
  position: relative;
395
467
  }
468
+
396
469
  .dgrid-header .dgrid-cell {
397
470
  overflow: hidden;
398
471
  }
472
+
399
473
  .dgrid-spacer-row {
400
474
  height: 0;
401
475
  }
476
+
402
477
  .dgrid-spacer-row th {
403
478
  padding-top: 0;
404
479
  padding-bottom: 0;
405
480
  border-top: none;
406
481
  border-bottom: none;
407
482
  }
483
+
408
484
  .dgrid-status {
409
485
  padding: 2px;
410
486
  }
487
+
411
488
  .dgrid-pagination .dgrid-status {
412
489
  float: left;
413
490
  }
491
+
414
492
  .dgrid-pagination .dgrid-navigation,
415
493
  .dgrid-pagination .dgrid-page-size {
416
494
  float: right;
417
495
  }
496
+
418
497
  .dgrid-navigation .dgrid-page-link {
419
498
  cursor: pointer;
420
499
  font-weight: bold;
@@ -422,74 +501,88 @@ html.has-touch .dgrid-column-resizer {
422
501
  color: inherit;
423
502
  padding: 0 4px;
424
503
  }
504
+
425
505
  .dgrid-first,
426
506
  .dgrid-last,
427
507
  .dgrid-next,
428
508
  .dgrid-previous {
429
509
  font-size: 130%;
430
510
  }
511
+
431
512
  .dgrid-pagination .dgrid-page-disabled {
432
513
  color: #aaa;
433
514
  cursor: default;
434
515
  }
516
+
435
517
  .dgrid-page-input {
436
518
  margin-top: 1px;
437
519
  width: 2em;
438
520
  text-align: center;
439
521
  }
522
+
440
523
  .dgrid-page-size {
441
524
  margin: 1px 4px 0 4px;
442
525
  }
526
+
443
527
  .dgrid-rtl-swap .dgrid-header-row {
444
528
  right: 0;
445
529
  left: 17px;
446
530
  }
531
+
447
532
  .dgrid-rtl-swap .dgrid-header-scroll {
448
533
  left: 0px;
449
534
  right: auto;
450
535
  }
536
+
451
537
  .dgrid-rtl .dgrid-cell {
452
538
  text-align: right;
453
539
  }
540
+
454
541
  .dgrid-rtl .dgrid-sort-arrow {
455
542
  float: left;
456
543
  margin: 0 5px 0 4px;
457
544
  }
545
+
458
546
  .dgrid-rtl .ui-icon-triangle-1-e {
459
547
  background-position: -96px -16px;
460
548
  }
549
+
461
550
  .dgrid-rtl .ui-icon-triangle-1-se {
462
551
  background-position: -80px -16px;
463
552
  }
553
+
464
554
  .dgrid-rtl .dgrid-pagination .dgrid-status {
465
555
  float: right;
466
556
  }
557
+
467
558
  .dgrid-rtl .dgrid-pagination .dgrid-page-size {
468
559
  float: right;
469
560
  }
561
+
470
562
  .dgrid-rtl .dgrid-pagination .dgrid-navigation {
471
563
  float: left;
472
564
  }
565
+
473
566
  .dgrid-rtl.dgrid-autoheight .dgrid-header {
474
567
  left: 0;
475
568
  }
476
569
 
477
570
  .dgrid_Table .placeholder {
478
- border:none;
479
- padding:0px;
480
- overflow:hidden;
571
+ border: none;
572
+ padding: 0px;
573
+ overflow: hidden;
481
574
  }
482
575
 
483
576
  .dgrid_Table .dgrid-fakeline {
484
577
  border: 0px;
485
578
  border-bottom: 1px solid rgb(221, 221, 221);
486
579
  margin: 0px;
487
- margin-left:-3px;
488
- margin-top:2px;
489
- margin-right:-3px;
490
- margin-bottom:2px;
580
+ margin-left: -3px;
581
+ margin-top: 2px;
582
+ margin-right: -3px;
583
+ margin-bottom: 2px;
491
584
  }
492
585
 
493
586
  .dgrid_Table .dgrid-sortable .dgrid-sort-arrow.ui-icon {
494
- margin:0px;
587
+ margin: 0px;
495
588
  }
package/src/Common.ts CHANGED
@@ -1,15 +1,16 @@
1
- import { HTMLWidget } from "@hpcc-js/common";
1
+ import { HTMLWidget, Selection } from "@hpcc-js/common";
2
2
  import { Grid, PagingGrid } from "./dgrid-shim.ts";
3
3
  import { DBStore } from "./DBStore.ts";
4
+ import { type ColumnType } from "./RowFormatter.ts";
4
5
 
5
6
  import "../src/Common.css";
6
7
 
7
8
  export class Common extends HTMLWidget {
8
- protected _columns = [];
9
+ protected _columns: ColumnType[] = [];
9
10
  protected _store = new DBStore(this._db);
10
- protected _dgridDiv;
11
- protected _dgrid;
12
- protected _prevPaging;
11
+ protected _dgridDiv: Selection<HTMLDivElement, unknown, HTMLElement, unknown>;
12
+ protected _dgrid: typeof PagingGrid | typeof Grid;
13
+ protected _prevPaging: boolean;
13
14
  private _prevSortBy: string;
14
15
  private _prevSortByDescending: boolean;
15
16
  private _prevMultiSelect: boolean;
@@ -107,6 +108,14 @@ export class Common extends HTMLWidget {
107
108
  this.click(this.rowToObj(evt.rows[0].data.__origRow), "", false, { selection: this.selection() });
108
109
  }
109
110
  });
111
+ this._dgrid.on("dgrid-column-autofit", (evt) => {
112
+ if (this._supressEvents) return;
113
+ if (evt.detail?.label) {
114
+ const column = this._columns.find(c => c.label === evt.detail.label);
115
+ if (!column) return;
116
+ this.dblclickColResize(column.label, column);
117
+ }
118
+ });
110
119
  this._dgrid.refresh({});
111
120
  }
112
121
  this._dgrid.noDataMessage = `<span class='dojoxGridNoData'>${this.noDataMessage()}</span>`;
@@ -130,6 +139,9 @@ export class Common extends HTMLWidget {
130
139
 
131
140
  click(row, col, sel, more) {
132
141
  }
142
+
143
+ dblclickColResize(column, dgridColumn) {
144
+ }
133
145
  }
134
146
  Common.prototype._class += " dgrid_Common";
135
147
 
package/src/DBStore.ts CHANGED
@@ -28,6 +28,7 @@ export class DBStore {
28
28
  idx,
29
29
  className: "resultGridCell",
30
30
  sortable,
31
+ hidden: false,
31
32
  isSet: false
32
33
  };
33
34
  switch (field.type()) {
@@ -79,6 +79,7 @@ export class DatasourceStore {
79
79
  idx,
80
80
  className: "resultGridCell",
81
81
  sortable: true,
82
+ hidden: false,
82
83
  isSet: false
83
84
  };
84
85
  if (field.type === "dataset") {
@@ -30,6 +30,7 @@ export interface ColumnType {
30
30
  idx: number;
31
31
  className: string;
32
32
  sortable: boolean;
33
+ hidden: boolean;
33
34
  isSet: boolean;
34
35
  width?: number;
35
36
  formatter?: CellFormatter;
package/src/Table.ts CHANGED
@@ -235,6 +235,11 @@ export class Table extends Common {
235
235
  // Events ---
236
236
  click(row, col, sel) {
237
237
  }
238
+
239
+ dblclickColResize(column: string, dgridColumn: any): void {
240
+ this.guessWidth([dgridColumn], this.data());
241
+ this._dgrid.resizeColumn(dgridColumn.id, dgridColumn.width);
242
+ }
238
243
  }
239
244
  Table.prototype._class += " dgrid_Table";
240
245
 
package/src/dgrid-shim.ts CHANGED
@@ -1,7 +1,15 @@
1
- import * as dgrid_shim from "@hpcc-js/dgrid-shim";
1
+ import type * as dgrid_shim from "@hpcc-js/dgrid-shim";
2
+
3
+ // Note: Resolved at build time and inlined into the dgrid bundle.
4
+ // @ts-expect-error
5
+ import dgridShimBundle from "@hpcc-js/dgrid-shim/dist/index.js?raw";
6
+ const loadDgridShim = new Function("globalThis", "var self = globalThis; var window = globalThis;" + dgridShimBundle);
2
7
 
3
8
  if (!globalThis["@hpcc-js/dgrid-shim"]) {
4
- console.error("dgrid-shim not loaded, please add `<script src=\"https://cdn.jsdelivr.net/npm/@hpcc-js/dgrid-shim/dist/index.min.js\"></script>` or similar to your HTML file");
9
+ loadDgridShim(globalThis);
10
+ if (!globalThis["@hpcc-js/dgrid-shim"]) {
11
+ console.error("dgrid-shim failed to load from inlined bundle");
12
+ }
5
13
  }
6
14
 
7
15
  export const Deferred = globalThis["@hpcc-js/dgrid-shim"].Deferred as typeof dgrid_shim.Deferred;