@guiexpert/table 1.1.113 → 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.
- package/README.md +9 -0
- package/css/main.css +502 -0
- package/css/table-color-vars.css +36 -0
- package/css/table-column-filter.css +466 -0
- package/index.cjs +39 -39
- package/index.d.ts +19 -1
- package/index.js +5773 -3371
- package/lib/table/action/action-id.type.d.ts +1 -1
- package/lib/table/aria/aria-grid-info.d.ts +14 -4
- package/lib/table/aria/aria-ids.d.ts +9 -0
- package/lib/table/aria/aria-texts.d.ts +6 -0
- package/lib/table/aria/aria-texts.if.d.ts +47 -0
- package/lib/table/clipboard/input-pipes.d.ts +11 -0
- package/lib/table/column-filter/collect-distinct-values.d.ts +30 -0
- package/lib/table/column-filter/column-chooser-service.d.ts +33 -0
- package/lib/table/column-filter/column-filter-keymap.d.ts +17 -0
- package/lib/table/column-filter/column-filter-menu-service.d.ts +58 -0
- package/lib/table/column-filter/column-filter-operator.type.d.ts +15 -0
- package/lib/table/column-filter/column-filter-options.d.ts +79 -0
- package/lib/table/column-filter/column-filter-options.if.d.ts +174 -0
- package/lib/table/column-filter/column-filter-service.d.ts +86 -0
- package/lib/table/column-filter/column-filter-state.d.ts +43 -0
- package/lib/table/column-filter/column-filter-type.type.d.ts +11 -0
- package/lib/table/column-filter/column-filter.if.d.ts +50 -0
- package/lib/table/column-filter/compile-column-filters.d.ts +85 -0
- package/lib/table/column-filter/filter-popup-shell.d.ts +70 -0
- package/lib/table/column-filter/filter-row-service.d.ts +82 -0
- package/lib/table/column-filter/infer-column-filter-type.d.ts +13 -0
- package/lib/table/column-filter/parse-filter-input.d.ts +52 -0
- package/lib/table/data/common/checkbox-column-def.d.ts +2 -0
- package/lib/table/data/common/event/ge-filter-event.d.ts +45 -0
- package/lib/table/data/common/row-number-column-def.d.ts +2 -0
- package/lib/table/data/options/auto-restore-options.d.ts +2 -0
- package/lib/table/data/options/auto-restore-options.if.d.ts +5 -0
- package/lib/table/data/options/table-options.d.ts +9 -0
- package/lib/table/data/options/table-options.if.d.ts +47 -0
- package/lib/table/data/tablemodel/column/column-def.d.ts +9 -0
- package/lib/table/data/tablemodel/column/column-def.if.d.ts +23 -0
- package/lib/table/event-adapter.d.ts +3 -0
- package/lib/table/event-listener.if.d.ts +9 -0
- package/lib/table/render-scope.d.ts +9 -1
- package/lib/table/state/table-state.if.d.ts +6 -1
- package/lib/table/table-api.d.ts +140 -0
- package/lib/table/table-scope.d.ts +73 -0
- package/llms.txt +62 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,6 +83,12 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
83
83
|
layout there), `ColumnDef.resizable: false` / `movable: false` per column, a column stays in its fixed area, a double
|
|
84
84
|
click on the resize handle fits the width (`columnAutoWidth`, `tableApi.autoResizeColumn()`, flat with millions of
|
|
85
85
|
rows) – since 1.1.110
|
|
86
|
+
- Built-in column filters, Excel-style value checklist and column chooser: `filterRow: true` (persistent filter inputs
|
|
87
|
+
below the header with number/date range shorthand like `>100`, `10..20`), `columnFilterMenu: true` (header funnel
|
|
88
|
+
button with operators + virtualized unique-value checklist), and `tableApi.showColumnChooser(button)` (column
|
|
89
|
+
visibility picker with `ColumnDef.hideable: false` locks); composes with `externalFilterFunction` and `appendRows()`,
|
|
90
|
+
persists in `TableStateIf` (`autoRestoreFilterState`), and supports server-side filtering (`columnFilter: { managed:
|
|
91
|
+
false }`) – since 1.1.114
|
|
86
92
|
- State persistence: column layout (width, order, visibility), sorting, scroll position, tree, checked and selected
|
|
87
93
|
rows, header groups – in `localStorage` (`autoRestoreOptions`) or on your server (`tableApi.getState()` /
|
|
88
94
|
`applyState()`, `initialState`, `onStateChanged`); stored by property and row id, never by index – since 1.1.92
|
|
@@ -109,6 +115,9 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
109
115
|
- **Save the column layout when the user drags a column:** `onColumnResizeEnd` / `onColumnMoveEnd` (wrappers
|
|
110
116
|
`columnResizeEnd`, `columnMoveEnd`) – once per drag, after the change, only for the user (since 1.1.110). Lock one
|
|
111
117
|
column: `ColumnDef.resizable: false`, `movable: false`.
|
|
118
|
+
- **Built-in column filters, value checklist or column chooser:** `filterRow: true`, `columnFilterMenu: true`,
|
|
119
|
+
`tableApi.showColumnChooser(button)` (since 1.1.114); `onFilterChanged` (wrapper `filterChanged`), server-side mode
|
|
120
|
+
via `columnFilter: { managed: false }`.
|
|
112
121
|
- **AI assistants:** `llms.txt` in this package – recipes and pitfalls, every snippet compiled against the API.
|
|
113
122
|
- **Nothing visible?** The host div needs a fixed height and the stylesheet `@guiexpert/table/css/main.css`.
|
|
114
123
|
|
package/css/main.css
CHANGED
|
@@ -586,6 +586,24 @@
|
|
|
586
586
|
--ge-table-formula-bar-text: #111;
|
|
587
587
|
--ge-table-formula-bar-muted: #5f6368;
|
|
588
588
|
--ge-table-formula-bar-border: #c4c7c5;
|
|
589
|
+
|
|
590
|
+
/* Column filters (since 1.1.114): light theme contrast >= 4.5:1 text, >= 3:1 borders & icons */
|
|
591
|
+
--ge-table-filter-row-bg: var(--ge-table-header-center-bg);
|
|
592
|
+
--ge-table-filter-row-border: var(--ge-table-header-center-horizontal-border);
|
|
593
|
+
--ge-table-filter-input-bg: #fff;
|
|
594
|
+
--ge-table-filter-input-readonly-bg: #f3f4f6;
|
|
595
|
+
--ge-table-filter-input-text: #111;
|
|
596
|
+
--ge-table-filter-input-placeholder: #595959;
|
|
597
|
+
--ge-table-filter-input-border: #767676;
|
|
598
|
+
--ge-table-filter-focus-ring: #0a6ebd;
|
|
599
|
+
--ge-table-filter-active-color: #0a6ebd;
|
|
600
|
+
--ge-table-filter-clear-color: #555;
|
|
601
|
+
--ge-table-filter-hover-bg: rgba(0, 0, 0, 0.08);
|
|
602
|
+
--ge-table-filter-popup-bg: #fff;
|
|
603
|
+
--ge-table-filter-popup-text: #111;
|
|
604
|
+
--ge-table-filter-popup-muted: #555;
|
|
605
|
+
--ge-table-filter-popup-border: #c4c7c5;
|
|
606
|
+
--ge-table-filter-popup-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
|
|
589
607
|
}
|
|
590
608
|
|
|
591
609
|
|
|
@@ -741,6 +759,490 @@ html[data-theme="dark"] {
|
|
|
741
759
|
--ge-table-formula-bar-text: #f3f4f6;
|
|
742
760
|
--ge-table-formula-bar-muted: #9aa0a6;
|
|
743
761
|
--ge-table-formula-bar-border: #4b5563;
|
|
762
|
+
|
|
763
|
+
/* Column filters (since 1.1.114): dark theme contrast >= 4.5:1 text, >= 3:1 borders & icons */
|
|
764
|
+
--ge-table-filter-row-bg: var(--ge-table-header-center-bg);
|
|
765
|
+
--ge-table-filter-row-border: var(--ge-table-header-center-horizontal-border);
|
|
766
|
+
--ge-table-filter-input-bg: #1f2937;
|
|
767
|
+
--ge-table-filter-input-readonly-bg: #2a3444;
|
|
768
|
+
--ge-table-filter-input-text: #f3f4f6;
|
|
769
|
+
--ge-table-filter-input-placeholder: #9ca3af;
|
|
770
|
+
--ge-table-filter-input-border: #6b7280;
|
|
771
|
+
--ge-table-filter-focus-ring: #8ab4f8;
|
|
772
|
+
--ge-table-filter-active-color: #8ab4f8;
|
|
773
|
+
--ge-table-filter-clear-color: #cbd5e1;
|
|
774
|
+
--ge-table-filter-hover-bg: rgba(255, 255, 255, 0.12);
|
|
775
|
+
--ge-table-filter-popup-bg: #1f2937;
|
|
776
|
+
--ge-table-filter-popup-text: #f3f4f6;
|
|
777
|
+
--ge-table-filter-popup-muted: #9ca3af;
|
|
778
|
+
--ge-table-filter-popup-border: #4b5563;
|
|
779
|
+
--ge-table-filter-popup-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
|
|
780
|
+
}
|
|
781
|
+
/* Built-in column filters: persistent filter row (since 1.1.114).
|
|
782
|
+
Uses CSS logical properties (padding-inline, inset-inline-end, border-inline-end) for LTR & RTL. */
|
|
783
|
+
|
|
784
|
+
.ge-table-filter-row-layer {
|
|
785
|
+
z-index: 6;
|
|
786
|
+
box-sizing: border-box;
|
|
787
|
+
background: var(--ge-table-filter-row-bg, var(--ge-table-header-center-bg));
|
|
788
|
+
border-block-start: 1px solid var(--ge-table-filter-row-border, var(--ge-table-header-center-horizontal-border));
|
|
789
|
+
pointer-events: auto;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.ge-table-filter-side {
|
|
793
|
+
box-sizing: border-box;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.ge-table-filter-row {
|
|
797
|
+
box-sizing: border-box;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.ge-table-filter-cell {
|
|
801
|
+
box-sizing: border-box;
|
|
802
|
+
display: flex;
|
|
803
|
+
align-items: center;
|
|
804
|
+
padding-inline: 4px;
|
|
805
|
+
padding-block: 3px;
|
|
806
|
+
border-inline-end: 1px solid var(--ge-table-header-center-vertical-border);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.ge-table-filter-side-west .ge-table-filter-cell {
|
|
810
|
+
background: var(--ge-table-filter-row-bg, var(--ge-table-header-west-bg));
|
|
811
|
+
border-inline-end-color: var(--ge-table-header-west-vertical-border);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.ge-table-filter-side-east .ge-table-filter-cell {
|
|
815
|
+
background: var(--ge-table-filter-row-bg, var(--ge-table-header-east-bg));
|
|
816
|
+
border-inline-end-color: var(--ge-table-header-east-vertical-border);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.ge-table-filter-input {
|
|
820
|
+
box-sizing: border-box;
|
|
821
|
+
width: 100%;
|
|
822
|
+
height: 100%;
|
|
823
|
+
min-width: 0;
|
|
824
|
+
padding-block: 2px;
|
|
825
|
+
padding-inline-start: 6px;
|
|
826
|
+
padding-inline-end: 22px;
|
|
827
|
+
font: inherit;
|
|
828
|
+
font-size: 0.875em;
|
|
829
|
+
line-height: 1.25;
|
|
830
|
+
color: var(--ge-table-filter-input-text);
|
|
831
|
+
background: var(--ge-table-filter-input-bg);
|
|
832
|
+
border: 1px solid var(--ge-table-filter-input-border);
|
|
833
|
+
border-radius: 3px;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.ge-table-filter-input::placeholder {
|
|
837
|
+
color: var(--ge-table-filter-input-placeholder);
|
|
838
|
+
opacity: 1;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.ge-table-filter-input:focus-visible {
|
|
842
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
843
|
+
outline-offset: -1px;
|
|
844
|
+
border-color: var(--ge-table-filter-focus-ring);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.ge-table-filter-cell-active .ge-table-filter-input {
|
|
848
|
+
border-color: var(--ge-table-filter-active-color);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.ge-table-filter-input-readonly {
|
|
852
|
+
background: var(--ge-table-filter-input-readonly-bg);
|
|
853
|
+
cursor: default;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.ge-table-filter-clear {
|
|
857
|
+
position: absolute;
|
|
858
|
+
inset-inline-end: 7px;
|
|
859
|
+
inset-block-start: 50%;
|
|
860
|
+
transform: translateY(-50%);
|
|
861
|
+
display: inline-flex;
|
|
862
|
+
align-items: center;
|
|
863
|
+
justify-content: center;
|
|
864
|
+
width: 18px;
|
|
865
|
+
height: 18px;
|
|
866
|
+
padding: 0;
|
|
867
|
+
border: 0;
|
|
868
|
+
border-radius: 2px;
|
|
869
|
+
background: transparent;
|
|
870
|
+
color: var(--ge-table-filter-clear-color);
|
|
871
|
+
font-size: 14px;
|
|
872
|
+
line-height: 1;
|
|
873
|
+
cursor: pointer;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.ge-table-filter-clear:hover {
|
|
877
|
+
background: var(--ge-table-filter-hover-bg);
|
|
878
|
+
color: var(--ge-table-filter-input-text);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.ge-table-filter-clear:focus-visible {
|
|
882
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
883
|
+
outline-offset: 0;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.ge-table-filter-clear[hidden] {
|
|
887
|
+
display: none;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.ge-table-filter-narrow-btn {
|
|
891
|
+
display: none;
|
|
892
|
+
align-items: center;
|
|
893
|
+
justify-content: center;
|
|
894
|
+
width: 100%;
|
|
895
|
+
height: 100%;
|
|
896
|
+
min-width: 24px;
|
|
897
|
+
min-height: 24px;
|
|
898
|
+
padding: 0;
|
|
899
|
+
border: 1px solid var(--ge-table-filter-input-border);
|
|
900
|
+
border-radius: 3px;
|
|
901
|
+
background: var(--ge-table-filter-input-bg);
|
|
902
|
+
color: var(--ge-table-filter-clear-color);
|
|
903
|
+
cursor: pointer;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.ge-table-filter-cell-active .ge-table-filter-narrow-btn {
|
|
907
|
+
border-color: var(--ge-table-filter-active-color);
|
|
908
|
+
color: var(--ge-table-filter-active-color);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.ge-table-filter-narrow-btn:focus-visible {
|
|
912
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
913
|
+
outline-offset: -1px;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/* Narrow columns (< minInputWidthInPx): show compact icon button until focused */
|
|
917
|
+
.ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-input,
|
|
918
|
+
.ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-clear {
|
|
919
|
+
position: absolute;
|
|
920
|
+
clip-path: inset(50%);
|
|
921
|
+
overflow: hidden;
|
|
922
|
+
width: 1px;
|
|
923
|
+
height: 1px;
|
|
924
|
+
padding: 0;
|
|
925
|
+
border: 0;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.ge-table-filter-cell-narrow:not(:focus-within) .ge-table-filter-narrow-btn {
|
|
929
|
+
display: inline-flex;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/* ------------------------------------------------------------------ Header funnel button (columnFilterMenu) */
|
|
933
|
+
|
|
934
|
+
.ge-table-column-filter-btn {
|
|
935
|
+
position: absolute;
|
|
936
|
+
inset-block: 0;
|
|
937
|
+
inset-inline-end: 6px;
|
|
938
|
+
margin-block: auto;
|
|
939
|
+
display: inline-flex;
|
|
940
|
+
align-items: center;
|
|
941
|
+
justify-content: center;
|
|
942
|
+
width: 22px;
|
|
943
|
+
height: 22px;
|
|
944
|
+
padding: 0;
|
|
945
|
+
border: 0;
|
|
946
|
+
border-radius: 3px;
|
|
947
|
+
background: transparent;
|
|
948
|
+
color: var(--ge-table-filter-clear-color);
|
|
949
|
+
cursor: pointer;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.ge-table-col-div:has(> .ge-table-sorted-icon-div) > .ge-table-column-filter-btn {
|
|
953
|
+
inset-inline-end: 22px;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.ge-table-col-div:has(> .ge-table-column-filter-btn) .ge-table-label {
|
|
957
|
+
padding-inline-end: 28px;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.ge-table-col-div:has(> .ge-table-sorted-icon-div):has(> .ge-table-column-filter-btn) .ge-table-label {
|
|
961
|
+
padding-inline-end: 46px;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.ge-table-column-filter-btn:hover {
|
|
965
|
+
background: var(--ge-table-filter-hover-bg);
|
|
966
|
+
color: var(--ge-table-filter-input-text);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.ge-table-column-filter-btn:focus-visible {
|
|
970
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
971
|
+
outline-offset: -1px;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.ge-table-column-filter-btn.ge-table-column-filter-active {
|
|
975
|
+
color: var(--ge-table-filter-active-color);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* ------------------------------------------------------------------ Top-layer popup shell & filter menu */
|
|
979
|
+
|
|
980
|
+
.ge-table-filter-popup {
|
|
981
|
+
box-sizing: border-box;
|
|
982
|
+
width: 270px;
|
|
983
|
+
max-width: calc(100vw - 16px);
|
|
984
|
+
max-height: calc(100vh - 16px);
|
|
985
|
+
padding: 0;
|
|
986
|
+
border: 1px solid var(--ge-table-filter-popup-border);
|
|
987
|
+
border-radius: 6px;
|
|
988
|
+
background: var(--ge-table-filter-popup-bg);
|
|
989
|
+
color: var(--ge-table-filter-popup-text);
|
|
990
|
+
box-shadow: var(--ge-table-filter-popup-shadow);
|
|
991
|
+
font-family: inherit;
|
|
992
|
+
font-size: 13px;
|
|
993
|
+
line-height: 1.35;
|
|
994
|
+
overscroll-behavior: contain;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.ge-table-filter-popup:where(:popover-open, .\:popover-open, .ge-table-filter-popup-fallback) {
|
|
998
|
+
display: flex;
|
|
999
|
+
flex-direction: column;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.ge-table-filter-popup-fallback {
|
|
1003
|
+
position: fixed;
|
|
1004
|
+
z-index: 10000;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.ge-table-filter-popup:focus-visible {
|
|
1008
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
1009
|
+
outline-offset: -2px;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.ge-table-filter-menu-header {
|
|
1013
|
+
display: flex;
|
|
1014
|
+
align-items: center;
|
|
1015
|
+
justify-content: space-between;
|
|
1016
|
+
padding-block: 8px;
|
|
1017
|
+
padding-inline: 10px;
|
|
1018
|
+
border-block-end: 1px solid var(--ge-table-filter-popup-border);
|
|
1019
|
+
font-weight: 600;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.ge-table-filter-menu-title {
|
|
1023
|
+
overflow: hidden;
|
|
1024
|
+
text-overflow: ellipsis;
|
|
1025
|
+
white-space: nowrap;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.ge-table-filter-menu-condition {
|
|
1029
|
+
display: flex;
|
|
1030
|
+
flex-direction: column;
|
|
1031
|
+
gap: 6px;
|
|
1032
|
+
padding-block: 8px;
|
|
1033
|
+
padding-inline: 10px;
|
|
1034
|
+
border-block-end: 1px solid var(--ge-table-filter-popup-border);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.ge-table-filter-menu-select,
|
|
1038
|
+
.ge-table-filter-menu-input,
|
|
1039
|
+
.ge-table-filter-menu-search {
|
|
1040
|
+
box-sizing: border-box;
|
|
1041
|
+
width: 100%;
|
|
1042
|
+
min-height: 28px;
|
|
1043
|
+
padding-block: 3px;
|
|
1044
|
+
padding-inline: 7px;
|
|
1045
|
+
font: inherit;
|
|
1046
|
+
color: var(--ge-table-filter-input-text);
|
|
1047
|
+
background: var(--ge-table-filter-input-bg);
|
|
1048
|
+
border: 1px solid var(--ge-table-filter-input-border);
|
|
1049
|
+
border-radius: 4px;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.ge-table-filter-menu-select:focus-visible,
|
|
1053
|
+
.ge-table-filter-menu-input:focus-visible,
|
|
1054
|
+
.ge-table-filter-menu-search:focus-visible {
|
|
1055
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
1056
|
+
outline-offset: -1px;
|
|
1057
|
+
border-color: var(--ge-table-filter-focus-ring);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.ge-table-filter-menu-inputs {
|
|
1061
|
+
display: flex;
|
|
1062
|
+
flex-direction: column;
|
|
1063
|
+
gap: 4px;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.ge-table-filter-menu-and {
|
|
1067
|
+
font-size: 0.85em;
|
|
1068
|
+
color: var(--ge-table-filter-popup-muted);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.ge-table-filter-menu-values {
|
|
1072
|
+
display: flex;
|
|
1073
|
+
flex-direction: column;
|
|
1074
|
+
gap: 6px;
|
|
1075
|
+
padding-block: 8px;
|
|
1076
|
+
padding-inline: 10px;
|
|
1077
|
+
min-height: 0;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.ge-table-filter-select-all {
|
|
1081
|
+
display: flex;
|
|
1082
|
+
align-items: center;
|
|
1083
|
+
gap: 6px;
|
|
1084
|
+
padding-block: 2px;
|
|
1085
|
+
font-weight: 500;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.ge-table-filter-select-all input[type="checkbox"],
|
|
1089
|
+
.ge-table-filter-value-row input[type="checkbox"] {
|
|
1090
|
+
margin: 0;
|
|
1091
|
+
flex: 0 0 auto;
|
|
1092
|
+
accent-color: var(--ge-table-filter-active-color);
|
|
1093
|
+
cursor: pointer;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.ge-table-filter-select-all label {
|
|
1097
|
+
cursor: pointer;
|
|
1098
|
+
user-select: none;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.ge-table-filter-values-notice {
|
|
1102
|
+
font-size: 0.82em;
|
|
1103
|
+
color: var(--ge-table-filter-popup-muted);
|
|
1104
|
+
padding-block: 2px;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.ge-table-filter-values-viewport {
|
|
1108
|
+
position: relative;
|
|
1109
|
+
height: 196px;
|
|
1110
|
+
max-height: 196px;
|
|
1111
|
+
overflow-y: auto;
|
|
1112
|
+
overscroll-behavior: contain;
|
|
1113
|
+
border: 1px solid var(--ge-table-filter-popup-border);
|
|
1114
|
+
border-radius: 4px;
|
|
1115
|
+
background: var(--ge-table-filter-input-bg);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.ge-table-filter-values-spacer {
|
|
1119
|
+
position: relative;
|
|
1120
|
+
width: 100%;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.ge-table-filter-value-row {
|
|
1124
|
+
position: absolute;
|
|
1125
|
+
inset-inline: 0;
|
|
1126
|
+
box-sizing: border-box;
|
|
1127
|
+
display: flex;
|
|
1128
|
+
align-items: center;
|
|
1129
|
+
gap: 6px;
|
|
1130
|
+
padding-inline: 6px;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.ge-table-filter-value-row:hover {
|
|
1134
|
+
background: var(--ge-table-filter-hover-bg);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
.ge-table-filter-value-label {
|
|
1138
|
+
flex: 1 1 auto;
|
|
1139
|
+
min-width: 0;
|
|
1140
|
+
overflow: hidden;
|
|
1141
|
+
text-overflow: ellipsis;
|
|
1142
|
+
white-space: nowrap;
|
|
1143
|
+
cursor: pointer;
|
|
1144
|
+
user-select: none;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.ge-table-filter-value-count {
|
|
1148
|
+
flex: 0 0 auto;
|
|
1149
|
+
font-size: 0.82em;
|
|
1150
|
+
color: var(--ge-table-filter-popup-muted);
|
|
1151
|
+
font-variant-numeric: tabular-nums;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.ge-table-filter-values-empty {
|
|
1155
|
+
padding: 12px 8px;
|
|
1156
|
+
text-align: center;
|
|
1157
|
+
color: var(--ge-table-filter-popup-muted);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.ge-table-filter-menu-footer {
|
|
1161
|
+
display: flex;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
justify-content: space-between;
|
|
1164
|
+
gap: 6px;
|
|
1165
|
+
padding-block: 8px;
|
|
1166
|
+
padding-inline: 10px;
|
|
1167
|
+
border-block-start: 1px solid var(--ge-table-filter-popup-border);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.ge-table-filter-menu-footer-actions {
|
|
1171
|
+
display: flex;
|
|
1172
|
+
align-items: center;
|
|
1173
|
+
gap: 6px;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.ge-table-filter-btn {
|
|
1177
|
+
box-sizing: border-box;
|
|
1178
|
+
min-height: 28px;
|
|
1179
|
+
padding-block: 4px;
|
|
1180
|
+
padding-inline: 10px;
|
|
1181
|
+
font: inherit;
|
|
1182
|
+
border: 1px solid var(--ge-table-filter-input-border);
|
|
1183
|
+
border-radius: 4px;
|
|
1184
|
+
background: var(--ge-table-filter-input-bg);
|
|
1185
|
+
color: var(--ge-table-filter-input-text);
|
|
1186
|
+
cursor: pointer;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.ge-table-filter-btn:hover {
|
|
1190
|
+
background: var(--ge-table-filter-hover-bg);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.ge-table-filter-btn:focus-visible {
|
|
1194
|
+
outline: 2px solid var(--ge-table-filter-focus-ring);
|
|
1195
|
+
outline-offset: 1px;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.ge-table-filter-btn-primary {
|
|
1199
|
+
background: var(--ge-table-filter-active-color);
|
|
1200
|
+
border-color: var(--ge-table-filter-active-color);
|
|
1201
|
+
color: #fff;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
html[data-theme="dark"] .ge-table-filter-btn-primary {
|
|
1205
|
+
color: #111827;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.ge-table-filter-btn-primary:hover {
|
|
1209
|
+
filter: brightness(0.94);
|
|
1210
|
+
background: var(--ge-table-filter-active-color);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/* ------------------------------------------------------------------ Column chooser popup */
|
|
1214
|
+
|
|
1215
|
+
.ge-table-column-chooser-list {
|
|
1216
|
+
max-height: 240px;
|
|
1217
|
+
overflow-y: auto;
|
|
1218
|
+
overscroll-behavior: contain;
|
|
1219
|
+
border: 1px solid var(--ge-table-filter-popup-border);
|
|
1220
|
+
border-radius: 4px;
|
|
1221
|
+
background: var(--ge-table-filter-input-bg);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.ge-table-column-chooser-row {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
align-items: center;
|
|
1227
|
+
gap: 6px;
|
|
1228
|
+
min-height: 28px;
|
|
1229
|
+
padding-inline: 6px;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.ge-table-column-chooser-row:hover {
|
|
1233
|
+
background: var(--ge-table-filter-hover-bg);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.ge-table-column-chooser-row input[type="checkbox"] {
|
|
1237
|
+
margin: 0;
|
|
1238
|
+
flex: 0 0 auto;
|
|
1239
|
+
accent-color: var(--ge-table-filter-active-color);
|
|
1240
|
+
cursor: pointer;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.ge-table-column-chooser-row input[type="checkbox"]:disabled {
|
|
1244
|
+
cursor: not-allowed;
|
|
1245
|
+
opacity: 0.55;
|
|
744
1246
|
}
|
|
745
1247
|
/* Fill handle and batch edit (since 1.1.96) – colors in table-color-vars.css (--ge-table-fill-*, --ge-table-cell-*) */
|
|
746
1248
|
|
package/css/table-color-vars.css
CHANGED
|
@@ -164,6 +164,24 @@ html, html[data-theme="light"] {
|
|
|
164
164
|
--ge-table-formula-bar-text: #111;
|
|
165
165
|
--ge-table-formula-bar-muted: #5f6368;
|
|
166
166
|
--ge-table-formula-bar-border: #c4c7c5;
|
|
167
|
+
|
|
168
|
+
/* Column filters (since 1.1.114): light theme contrast >= 4.5:1 text, >= 3:1 borders & icons */
|
|
169
|
+
--ge-table-filter-row-bg: var(--ge-table-header-center-bg);
|
|
170
|
+
--ge-table-filter-row-border: var(--ge-table-header-center-horizontal-border);
|
|
171
|
+
--ge-table-filter-input-bg: #fff;
|
|
172
|
+
--ge-table-filter-input-readonly-bg: #f3f4f6;
|
|
173
|
+
--ge-table-filter-input-text: #111;
|
|
174
|
+
--ge-table-filter-input-placeholder: #595959;
|
|
175
|
+
--ge-table-filter-input-border: #767676;
|
|
176
|
+
--ge-table-filter-focus-ring: #0a6ebd;
|
|
177
|
+
--ge-table-filter-active-color: #0a6ebd;
|
|
178
|
+
--ge-table-filter-clear-color: #555;
|
|
179
|
+
--ge-table-filter-hover-bg: rgba(0, 0, 0, 0.08);
|
|
180
|
+
--ge-table-filter-popup-bg: #fff;
|
|
181
|
+
--ge-table-filter-popup-text: #111;
|
|
182
|
+
--ge-table-filter-popup-muted: #555;
|
|
183
|
+
--ge-table-filter-popup-border: #c4c7c5;
|
|
184
|
+
--ge-table-filter-popup-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
|
|
167
185
|
}
|
|
168
186
|
|
|
169
187
|
|
|
@@ -319,4 +337,22 @@ html[data-theme="dark"] {
|
|
|
319
337
|
--ge-table-formula-bar-text: #f3f4f6;
|
|
320
338
|
--ge-table-formula-bar-muted: #9aa0a6;
|
|
321
339
|
--ge-table-formula-bar-border: #4b5563;
|
|
340
|
+
|
|
341
|
+
/* Column filters (since 1.1.114): dark theme contrast >= 4.5:1 text, >= 3:1 borders & icons */
|
|
342
|
+
--ge-table-filter-row-bg: var(--ge-table-header-center-bg);
|
|
343
|
+
--ge-table-filter-row-border: var(--ge-table-header-center-horizontal-border);
|
|
344
|
+
--ge-table-filter-input-bg: #1f2937;
|
|
345
|
+
--ge-table-filter-input-readonly-bg: #2a3444;
|
|
346
|
+
--ge-table-filter-input-text: #f3f4f6;
|
|
347
|
+
--ge-table-filter-input-placeholder: #9ca3af;
|
|
348
|
+
--ge-table-filter-input-border: #6b7280;
|
|
349
|
+
--ge-table-filter-focus-ring: #8ab4f8;
|
|
350
|
+
--ge-table-filter-active-color: #8ab4f8;
|
|
351
|
+
--ge-table-filter-clear-color: #cbd5e1;
|
|
352
|
+
--ge-table-filter-hover-bg: rgba(255, 255, 255, 0.12);
|
|
353
|
+
--ge-table-filter-popup-bg: #1f2937;
|
|
354
|
+
--ge-table-filter-popup-text: #f3f4f6;
|
|
355
|
+
--ge-table-filter-popup-muted: #9ca3af;
|
|
356
|
+
--ge-table-filter-popup-border: #4b5563;
|
|
357
|
+
--ge-table-filter-popup-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
|
|
322
358
|
}
|