@guiexpert/table 1.1.110 → 1.1.114

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.
Files changed (46) hide show
  1. package/README.md +9 -0
  2. package/css/main.css +502 -0
  3. package/css/table-color-vars.css +36 -0
  4. package/css/table-column-filter.css +466 -0
  5. package/index.cjs +39 -39
  6. package/index.d.ts +19 -1
  7. package/index.js +5791 -3373
  8. package/lib/table/action/action-id.type.d.ts +1 -1
  9. package/lib/table/aria/aria-grid-info.d.ts +14 -4
  10. package/lib/table/aria/aria-ids.d.ts +9 -0
  11. package/lib/table/aria/aria-texts.d.ts +6 -0
  12. package/lib/table/aria/aria-texts.if.d.ts +47 -0
  13. package/lib/table/clipboard/input-pipes.d.ts +11 -0
  14. package/lib/table/column-filter/collect-distinct-values.d.ts +30 -0
  15. package/lib/table/column-filter/column-chooser-service.d.ts +33 -0
  16. package/lib/table/column-filter/column-filter-keymap.d.ts +17 -0
  17. package/lib/table/column-filter/column-filter-menu-service.d.ts +58 -0
  18. package/lib/table/column-filter/column-filter-operator.type.d.ts +15 -0
  19. package/lib/table/column-filter/column-filter-options.d.ts +79 -0
  20. package/lib/table/column-filter/column-filter-options.if.d.ts +174 -0
  21. package/lib/table/column-filter/column-filter-service.d.ts +86 -0
  22. package/lib/table/column-filter/column-filter-state.d.ts +43 -0
  23. package/lib/table/column-filter/column-filter-type.type.d.ts +11 -0
  24. package/lib/table/column-filter/column-filter.if.d.ts +50 -0
  25. package/lib/table/column-filter/compile-column-filters.d.ts +85 -0
  26. package/lib/table/column-filter/filter-popup-shell.d.ts +70 -0
  27. package/lib/table/column-filter/filter-row-service.d.ts +82 -0
  28. package/lib/table/column-filter/infer-column-filter-type.d.ts +13 -0
  29. package/lib/table/column-filter/parse-filter-input.d.ts +52 -0
  30. package/lib/table/data/common/checkbox-column-def.d.ts +2 -0
  31. package/lib/table/data/common/event/ge-filter-event.d.ts +45 -0
  32. package/lib/table/data/common/row-number-column-def.d.ts +2 -0
  33. package/lib/table/data/options/auto-restore-options.d.ts +2 -0
  34. package/lib/table/data/options/auto-restore-options.if.d.ts +5 -0
  35. package/lib/table/data/options/table-options.d.ts +9 -0
  36. package/lib/table/data/options/table-options.if.d.ts +47 -0
  37. package/lib/table/data/tablemodel/column/column-def.d.ts +9 -0
  38. package/lib/table/data/tablemodel/column/column-def.if.d.ts +23 -0
  39. package/lib/table/event-adapter.d.ts +3 -0
  40. package/lib/table/event-listener.if.d.ts +9 -0
  41. package/lib/table/render-scope.d.ts +9 -1
  42. package/lib/table/state/table-state.if.d.ts +6 -1
  43. package/lib/table/table-api.d.ts +140 -0
  44. package/lib/table/table-scope.d.ts +79 -1
  45. package/llms.txt +62 -4
  46. package/package.json +1 -1
@@ -0,0 +1,466 @@
1
+ /* Built-in column filters: persistent filter row (since 1.1.114).
2
+ Uses CSS logical properties (padding-inline, inset-inline-end, border-inline-end) for LTR & RTL. */
3
+
4
+ .ge-table-filter-row-layer {
5
+ z-index: 6;
6
+ box-sizing: border-box;
7
+ background: var(--ge-table-filter-row-bg, var(--ge-table-header-center-bg));
8
+ border-block-start: 1px solid var(--ge-table-filter-row-border, var(--ge-table-header-center-horizontal-border));
9
+ pointer-events: auto;
10
+ }
11
+
12
+ .ge-table-filter-side {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ .ge-table-filter-row {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ .ge-table-filter-cell {
21
+ box-sizing: border-box;
22
+ display: flex;
23
+ align-items: center;
24
+ padding-inline: 4px;
25
+ padding-block: 3px;
26
+ border-inline-end: 1px solid var(--ge-table-header-center-vertical-border);
27
+ }
28
+
29
+ .ge-table-filter-side-west .ge-table-filter-cell {
30
+ background: var(--ge-table-filter-row-bg, var(--ge-table-header-west-bg));
31
+ border-inline-end-color: var(--ge-table-header-west-vertical-border);
32
+ }
33
+
34
+ .ge-table-filter-side-east .ge-table-filter-cell {
35
+ background: var(--ge-table-filter-row-bg, var(--ge-table-header-east-bg));
36
+ border-inline-end-color: var(--ge-table-header-east-vertical-border);
37
+ }
38
+
39
+ .ge-table-filter-input {
40
+ box-sizing: border-box;
41
+ width: 100%;
42
+ height: 100%;
43
+ min-width: 0;
44
+ padding-block: 2px;
45
+ padding-inline-start: 6px;
46
+ padding-inline-end: 22px;
47
+ font: inherit;
48
+ font-size: 0.875em;
49
+ line-height: 1.25;
50
+ color: var(--ge-table-filter-input-text);
51
+ background: var(--ge-table-filter-input-bg);
52
+ border: 1px solid var(--ge-table-filter-input-border);
53
+ border-radius: 3px;
54
+ }
55
+
56
+ .ge-table-filter-input::placeholder {
57
+ color: var(--ge-table-filter-input-placeholder);
58
+ opacity: 1;
59
+ }
60
+
61
+ .ge-table-filter-input:focus-visible {
62
+ outline: 2px solid var(--ge-table-filter-focus-ring);
63
+ outline-offset: -1px;
64
+ border-color: var(--ge-table-filter-focus-ring);
65
+ }
66
+
67
+ .ge-table-filter-cell-active .ge-table-filter-input {
68
+ border-color: var(--ge-table-filter-active-color);
69
+ }
70
+
71
+ .ge-table-filter-input-readonly {
72
+ background: var(--ge-table-filter-input-readonly-bg);
73
+ cursor: default;
74
+ }
75
+
76
+ .ge-table-filter-clear {
77
+ position: absolute;
78
+ inset-inline-end: 7px;
79
+ inset-block-start: 50%;
80
+ transform: translateY(-50%);
81
+ display: inline-flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ width: 18px;
85
+ height: 18px;
86
+ padding: 0;
87
+ border: 0;
88
+ border-radius: 2px;
89
+ background: transparent;
90
+ color: var(--ge-table-filter-clear-color);
91
+ font-size: 14px;
92
+ line-height: 1;
93
+ cursor: pointer;
94
+ }
95
+
96
+ .ge-table-filter-clear:hover {
97
+ background: var(--ge-table-filter-hover-bg);
98
+ color: var(--ge-table-filter-input-text);
99
+ }
100
+
101
+ .ge-table-filter-clear:focus-visible {
102
+ outline: 2px solid var(--ge-table-filter-focus-ring);
103
+ outline-offset: 0;
104
+ }
105
+
106
+ .ge-table-filter-clear[hidden] {
107
+ display: none;
108
+ }
109
+
110
+ .ge-table-filter-narrow-btn {
111
+ display: none;
112
+ align-items: center;
113
+ justify-content: center;
114
+ width: 100%;
115
+ height: 100%;
116
+ min-width: 24px;
117
+ min-height: 24px;
118
+ padding: 0;
119
+ border: 1px solid var(--ge-table-filter-input-border);
120
+ border-radius: 3px;
121
+ background: var(--ge-table-filter-input-bg);
122
+ color: var(--ge-table-filter-clear-color);
123
+ cursor: pointer;
124
+ }
125
+
126
+ .ge-table-filter-cell-active .ge-table-filter-narrow-btn {
127
+ border-color: var(--ge-table-filter-active-color);
128
+ color: var(--ge-table-filter-active-color);
129
+ }
130
+
131
+ .ge-table-filter-narrow-btn:focus-visible {
132
+ outline: 2px solid var(--ge-table-filter-focus-ring);
133
+ outline-offset: -1px;
134
+ }
135
+
136
+ /* Narrow columns (< minInputWidthInPx): show compact icon button until focused */
137
+ .ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-input,
138
+ .ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-clear {
139
+ position: absolute;
140
+ clip-path: inset(50%);
141
+ overflow: hidden;
142
+ width: 1px;
143
+ height: 1px;
144
+ padding: 0;
145
+ border: 0;
146
+ }
147
+
148
+ .ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-narrow-btn {
149
+ display: inline-flex;
150
+ }
151
+
152
+ /* ------------------------------------------------------------------ Header funnel button (columnFilterMenu) */
153
+
154
+ .ge-table-column-filter-btn {
155
+ position: absolute;
156
+ inset-block: 0;
157
+ inset-inline-end: 6px;
158
+ margin-block: auto;
159
+ display: inline-flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ width: 22px;
163
+ height: 22px;
164
+ padding: 0;
165
+ border: 0;
166
+ border-radius: 3px;
167
+ background: transparent;
168
+ color: var(--ge-table-filter-clear-color);
169
+ cursor: pointer;
170
+ }
171
+
172
+ .ge-table-col-div:has(> .ge-table-sorted-icon-div) > .ge-table-column-filter-btn {
173
+ inset-inline-end: 22px;
174
+ }
175
+
176
+ .ge-table-col-div:has(> .ge-table-column-filter-btn) .ge-table-label {
177
+ padding-inline-end: 28px;
178
+ }
179
+
180
+ .ge-table-col-div:has(> .ge-table-sorted-icon-div):has(> .ge-table-column-filter-btn) .ge-table-label {
181
+ padding-inline-end: 46px;
182
+ }
183
+
184
+ .ge-table-column-filter-btn:hover {
185
+ background: var(--ge-table-filter-hover-bg);
186
+ color: var(--ge-table-filter-input-text);
187
+ }
188
+
189
+ .ge-table-column-filter-btn:focus-visible {
190
+ outline: 2px solid var(--ge-table-filter-focus-ring);
191
+ outline-offset: -1px;
192
+ }
193
+
194
+ .ge-table-column-filter-btn.ge-table-column-filter-active {
195
+ color: var(--ge-table-filter-active-color);
196
+ }
197
+
198
+ /* ------------------------------------------------------------------ Top-layer popup shell & filter menu */
199
+
200
+ .ge-table-filter-popup {
201
+ box-sizing: border-box;
202
+ width: 270px;
203
+ max-width: calc(100vw - 16px);
204
+ max-height: calc(100vh - 16px);
205
+ padding: 0;
206
+ border: 1px solid var(--ge-table-filter-popup-border);
207
+ border-radius: 6px;
208
+ background: var(--ge-table-filter-popup-bg);
209
+ color: var(--ge-table-filter-popup-text);
210
+ box-shadow: var(--ge-table-filter-popup-shadow);
211
+ font-family: inherit;
212
+ font-size: 13px;
213
+ line-height: 1.35;
214
+ overscroll-behavior: contain;
215
+ }
216
+
217
+ .ge-table-filter-popup:where(:popover-open, .\:popover-open, .ge-table-filter-popup-fallback) {
218
+ display: flex;
219
+ flex-direction: column;
220
+ }
221
+
222
+ .ge-table-filter-popup-fallback {
223
+ position: fixed;
224
+ z-index: 10000;
225
+ }
226
+
227
+ .ge-table-filter-popup:focus-visible {
228
+ outline: 2px solid var(--ge-table-filter-focus-ring);
229
+ outline-offset: -2px;
230
+ }
231
+
232
+ .ge-table-filter-menu-header {
233
+ display: flex;
234
+ align-items: center;
235
+ justify-content: space-between;
236
+ padding-block: 8px;
237
+ padding-inline: 10px;
238
+ border-block-end: 1px solid var(--ge-table-filter-popup-border);
239
+ font-weight: 600;
240
+ }
241
+
242
+ .ge-table-filter-menu-title {
243
+ overflow: hidden;
244
+ text-overflow: ellipsis;
245
+ white-space: nowrap;
246
+ }
247
+
248
+ .ge-table-filter-menu-condition {
249
+ display: flex;
250
+ flex-direction: column;
251
+ gap: 6px;
252
+ padding-block: 8px;
253
+ padding-inline: 10px;
254
+ border-block-end: 1px solid var(--ge-table-filter-popup-border);
255
+ }
256
+
257
+ .ge-table-filter-menu-select,
258
+ .ge-table-filter-menu-input,
259
+ .ge-table-filter-menu-search {
260
+ box-sizing: border-box;
261
+ width: 100%;
262
+ min-height: 28px;
263
+ padding-block: 3px;
264
+ padding-inline: 7px;
265
+ font: inherit;
266
+ color: var(--ge-table-filter-input-text);
267
+ background: var(--ge-table-filter-input-bg);
268
+ border: 1px solid var(--ge-table-filter-input-border);
269
+ border-radius: 4px;
270
+ }
271
+
272
+ .ge-table-filter-menu-select:focus-visible,
273
+ .ge-table-filter-menu-input:focus-visible,
274
+ .ge-table-filter-menu-search:focus-visible {
275
+ outline: 2px solid var(--ge-table-filter-focus-ring);
276
+ outline-offset: -1px;
277
+ border-color: var(--ge-table-filter-focus-ring);
278
+ }
279
+
280
+ .ge-table-filter-menu-inputs {
281
+ display: flex;
282
+ flex-direction: column;
283
+ gap: 4px;
284
+ }
285
+
286
+ .ge-table-filter-menu-and {
287
+ font-size: 0.85em;
288
+ color: var(--ge-table-filter-popup-muted);
289
+ }
290
+
291
+ .ge-table-filter-menu-values {
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: 6px;
295
+ padding-block: 8px;
296
+ padding-inline: 10px;
297
+ min-height: 0;
298
+ }
299
+
300
+ .ge-table-filter-select-all {
301
+ display: flex;
302
+ align-items: center;
303
+ gap: 6px;
304
+ padding-block: 2px;
305
+ font-weight: 500;
306
+ }
307
+
308
+ .ge-table-filter-select-all input[type="checkbox"],
309
+ .ge-table-filter-value-row input[type="checkbox"] {
310
+ margin: 0;
311
+ flex: 0 0 auto;
312
+ accent-color: var(--ge-table-filter-active-color);
313
+ cursor: pointer;
314
+ }
315
+
316
+ .ge-table-filter-select-all label {
317
+ cursor: pointer;
318
+ user-select: none;
319
+ }
320
+
321
+ .ge-table-filter-values-notice {
322
+ font-size: 0.82em;
323
+ color: var(--ge-table-filter-popup-muted);
324
+ padding-block: 2px;
325
+ }
326
+
327
+ .ge-table-filter-values-viewport {
328
+ position: relative;
329
+ height: 196px;
330
+ max-height: 196px;
331
+ overflow-y: auto;
332
+ overscroll-behavior: contain;
333
+ border: 1px solid var(--ge-table-filter-popup-border);
334
+ border-radius: 4px;
335
+ background: var(--ge-table-filter-input-bg);
336
+ }
337
+
338
+ .ge-table-filter-values-spacer {
339
+ position: relative;
340
+ width: 100%;
341
+ }
342
+
343
+ .ge-table-filter-value-row {
344
+ position: absolute;
345
+ inset-inline: 0;
346
+ box-sizing: border-box;
347
+ display: flex;
348
+ align-items: center;
349
+ gap: 6px;
350
+ padding-inline: 6px;
351
+ }
352
+
353
+ .ge-table-filter-value-row:hover {
354
+ background: var(--ge-table-filter-hover-bg);
355
+ }
356
+
357
+ .ge-table-filter-value-label {
358
+ flex: 1 1 auto;
359
+ min-width: 0;
360
+ overflow: hidden;
361
+ text-overflow: ellipsis;
362
+ white-space: nowrap;
363
+ cursor: pointer;
364
+ user-select: none;
365
+ }
366
+
367
+ .ge-table-filter-value-count {
368
+ flex: 0 0 auto;
369
+ font-size: 0.82em;
370
+ color: var(--ge-table-filter-popup-muted);
371
+ font-variant-numeric: tabular-nums;
372
+ }
373
+
374
+ .ge-table-filter-values-empty {
375
+ padding: 12px 8px;
376
+ text-align: center;
377
+ color: var(--ge-table-filter-popup-muted);
378
+ }
379
+
380
+ .ge-table-filter-menu-footer {
381
+ display: flex;
382
+ align-items: center;
383
+ justify-content: space-between;
384
+ gap: 6px;
385
+ padding-block: 8px;
386
+ padding-inline: 10px;
387
+ border-block-start: 1px solid var(--ge-table-filter-popup-border);
388
+ }
389
+
390
+ .ge-table-filter-menu-footer-actions {
391
+ display: flex;
392
+ align-items: center;
393
+ gap: 6px;
394
+ }
395
+
396
+ .ge-table-filter-btn {
397
+ box-sizing: border-box;
398
+ min-height: 28px;
399
+ padding-block: 4px;
400
+ padding-inline: 10px;
401
+ font: inherit;
402
+ border: 1px solid var(--ge-table-filter-input-border);
403
+ border-radius: 4px;
404
+ background: var(--ge-table-filter-input-bg);
405
+ color: var(--ge-table-filter-input-text);
406
+ cursor: pointer;
407
+ }
408
+
409
+ .ge-table-filter-btn:hover {
410
+ background: var(--ge-table-filter-hover-bg);
411
+ }
412
+
413
+ .ge-table-filter-btn:focus-visible {
414
+ outline: 2px solid var(--ge-table-filter-focus-ring);
415
+ outline-offset: 1px;
416
+ }
417
+
418
+ .ge-table-filter-btn-primary {
419
+ background: var(--ge-table-filter-active-color);
420
+ border-color: var(--ge-table-filter-active-color);
421
+ color: #fff;
422
+ }
423
+
424
+ html[data-theme="dark"] .ge-table-filter-btn-primary {
425
+ color: #111827;
426
+ }
427
+
428
+ .ge-table-filter-btn-primary:hover {
429
+ filter: brightness(0.94);
430
+ background: var(--ge-table-filter-active-color);
431
+ }
432
+
433
+ /* ------------------------------------------------------------------ Column chooser popup */
434
+
435
+ .ge-table-column-chooser-list {
436
+ max-height: 240px;
437
+ overflow-y: auto;
438
+ overscroll-behavior: contain;
439
+ border: 1px solid var(--ge-table-filter-popup-border);
440
+ border-radius: 4px;
441
+ background: var(--ge-table-filter-input-bg);
442
+ }
443
+
444
+ .ge-table-column-chooser-row {
445
+ display: flex;
446
+ align-items: center;
447
+ gap: 6px;
448
+ min-height: 28px;
449
+ padding-inline: 6px;
450
+ }
451
+
452
+ .ge-table-column-chooser-row:hover {
453
+ background: var(--ge-table-filter-hover-bg);
454
+ }
455
+
456
+ .ge-table-column-chooser-row input[type="checkbox"] {
457
+ margin: 0;
458
+ flex: 0 0 auto;
459
+ accent-color: var(--ge-table-filter-active-color);
460
+ cursor: pointer;
461
+ }
462
+
463
+ .ge-table-column-chooser-row input[type="checkbox"]:disabled {
464
+ cursor: not-allowed;
465
+ opacity: 0.55;
466
+ }