@logimaxx/kgrid 0.5.2 → 0.5.4
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/AGENTS.md +2 -0
- package/README.md +1 -1
- package/dist/kgrid.js +166 -67
- package/dist/kgrid.min.js +2 -2
- package/docs/ai-guide.md +6 -5
- package/docs/api.md +8 -4
- package/docs/configuration.md +2 -2
- package/docs/table-shell.md +2 -2
- package/package.json +1 -1
- package/src/cells.js +1 -2
- package/src/dom.js +68 -4
- package/src/events.js +3 -0
- package/src/init.js +4 -4
- package/src/labels.js +1 -3
- package/src/preferences.js +32 -29
- package/src/row-actions.js +56 -24
- package/styles/table.css +289 -205
package/styles/table.css
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
/* KGrid table shell — Linear/Notion-style defaults via CSS variables.
|
|
2
|
+
Hosts (e.g. MaxxOps) override --kgrid-* on :root / .custom-table-shell. */
|
|
3
|
+
|
|
4
|
+
.custom-table-shell {
|
|
5
|
+
--kgrid-header-bg: var(--bs-secondary-bg, #f8f9fa);
|
|
6
|
+
--kgrid-header-fg: var(--bs-body-color, #212529);
|
|
7
|
+
--kgrid-header-link: var(--kgrid-header-fg);
|
|
8
|
+
--kgrid-header-link-hover: var(--bs-primary, #0d6efd);
|
|
9
|
+
--kgrid-filter-bg: transparent;
|
|
10
|
+
--kgrid-row-border: var(--bs-border-color, #e9ecef);
|
|
11
|
+
--kgrid-row-hover: rgba(13, 110, 253, 0.06);
|
|
12
|
+
--kgrid-row-alt: transparent;
|
|
13
|
+
--kgrid-surface: var(--bs-body-bg, #fff);
|
|
14
|
+
--kgrid-muted: var(--bs-secondary-color, #6c757d);
|
|
15
|
+
--kgrid-cell-pad-y: 0.65rem;
|
|
16
|
+
--kgrid-cell-pad-x: 0.85rem;
|
|
17
|
+
--kgrid-font-size: 0.875rem;
|
|
18
|
+
--kgrid-edit-bg: rgba(13, 110, 253, 0.08);
|
|
19
|
+
--kgrid-edit-accent: var(--bs-primary, #0d6efd);
|
|
20
|
+
--kgrid-new-bg: rgba(25, 135, 84, 0.1);
|
|
21
|
+
--kgrid-delete-bg: rgba(220, 53, 69, 0.1);
|
|
22
|
+
--kgrid-radius: var(--bs-border-radius, 0.375rem);
|
|
23
|
+
|
|
2
24
|
border-bottom-left-radius: var(--bs-border-radius-lg, 0.5rem);
|
|
3
25
|
border-bottom-right-radius: var(--bs-border-radius-lg, 0.5rem);
|
|
4
|
-
|
|
5
26
|
}
|
|
27
|
+
|
|
6
28
|
@media (max-width: 768px) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
29
|
+
.card-body {
|
|
30
|
+
padding: 10px;
|
|
31
|
+
}
|
|
10
32
|
.custom-table-shell table,
|
|
11
33
|
.custom-table-shell thead,
|
|
12
34
|
.custom-table-shell tbody,
|
|
@@ -21,14 +43,14 @@
|
|
|
21
43
|
}
|
|
22
44
|
|
|
23
45
|
.custom-table-shell tr {
|
|
24
|
-
margin-top:
|
|
25
|
-
border: 1px solid
|
|
26
|
-
border-radius:
|
|
27
|
-
background:
|
|
46
|
+
margin-top: 0.5rem;
|
|
47
|
+
border: 1px solid var(--kgrid-row-border);
|
|
48
|
+
border-radius: var(--kgrid-radius);
|
|
49
|
+
background: var(--kgrid-surface);
|
|
28
50
|
}
|
|
29
51
|
|
|
30
52
|
.custom-table-shell td {
|
|
31
|
-
padding:
|
|
53
|
+
padding: 0.5rem 0;
|
|
32
54
|
border: 0 !important;
|
|
33
55
|
}
|
|
34
56
|
|
|
@@ -36,11 +58,11 @@
|
|
|
36
58
|
content: attr(data-label);
|
|
37
59
|
display: block;
|
|
38
60
|
font-weight: 600;
|
|
39
|
-
font-size:
|
|
40
|
-
color:
|
|
61
|
+
font-size: 0.78rem;
|
|
62
|
+
color: var(--kgrid-muted);
|
|
41
63
|
margin-bottom: 6px;
|
|
42
64
|
padding-bottom: 4px;
|
|
43
|
-
border-bottom: 1px solid
|
|
65
|
+
border-bottom: 1px solid var(--kgrid-row-border);
|
|
44
66
|
}
|
|
45
67
|
|
|
46
68
|
.custom-table-shell td input,
|
|
@@ -54,6 +76,21 @@
|
|
|
54
76
|
max-width: 100%;
|
|
55
77
|
box-sizing: border-box;
|
|
56
78
|
}
|
|
79
|
+
/* Row actions stay horizontal; do not stretch each button to full card width */
|
|
80
|
+
.custom-table-shell td.kgrid-row-actions {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 0.35rem;
|
|
85
|
+
}
|
|
86
|
+
.custom-table-shell td.kgrid-row-actions > * {
|
|
87
|
+
margin-inline-start: 0;
|
|
88
|
+
}
|
|
89
|
+
.custom-table-shell td.kgrid-row-actions button,
|
|
90
|
+
.custom-table-shell td.kgrid-row-actions .btn {
|
|
91
|
+
width: auto;
|
|
92
|
+
max-width: none;
|
|
93
|
+
}
|
|
57
94
|
.custom-table-shell td .kgrid-flag-switch .form-check-input {
|
|
58
95
|
width: 2em;
|
|
59
96
|
max-width: 2em;
|
|
@@ -64,303 +101,350 @@
|
|
|
64
101
|
}
|
|
65
102
|
}
|
|
66
103
|
|
|
67
|
-
tr.new-record-row{
|
|
68
|
-
|
|
104
|
+
tr.new-record-row {
|
|
105
|
+
background-color: var(--kgrid-new-bg) !important;
|
|
69
106
|
}
|
|
70
|
-
tr.new-record-row td{
|
|
71
|
-
|
|
107
|
+
tr.new-record-row td {
|
|
108
|
+
background-color: transparent !important;
|
|
72
109
|
}
|
|
73
|
-
tr.
|
|
74
|
-
|
|
110
|
+
tr.new-record-row td:first-child {
|
|
111
|
+
box-shadow: inset 3px 0 0 var(--bs-success, #198754);
|
|
75
112
|
}
|
|
76
|
-
tr.confirm-delete
|
|
77
|
-
|
|
113
|
+
tr.confirm-delete {
|
|
114
|
+
background-color: var(--kgrid-delete-bg) !important;
|
|
78
115
|
}
|
|
79
|
-
tr.
|
|
80
|
-
|
|
81
|
-
border-radius: 5px;
|
|
82
|
-
padding: 5px;
|
|
83
|
-
margin: 5px;
|
|
84
|
-
font-weight: bold;
|
|
85
|
-
color: #007bff;
|
|
86
|
-
font-size: 14px;
|
|
116
|
+
tr.confirm-delete td {
|
|
117
|
+
background-color: transparent !important;
|
|
87
118
|
}
|
|
88
|
-
tr.
|
|
89
|
-
|
|
119
|
+
tr.confirm-delete td:first-child {
|
|
120
|
+
box-shadow: inset 3px 0 0 var(--bs-danger, #dc3545);
|
|
90
121
|
}
|
|
91
|
-
|
|
92
|
-
|
|
122
|
+
tr.editing {
|
|
123
|
+
background-color: var(--kgrid-edit-bg) !important;
|
|
124
|
+
font-weight: inherit;
|
|
125
|
+
color: inherit;
|
|
126
|
+
font-size: inherit;
|
|
127
|
+
border: none;
|
|
128
|
+
border-radius: 0;
|
|
129
|
+
padding: 0;
|
|
130
|
+
margin: 0;
|
|
131
|
+
}
|
|
132
|
+
tr.editing td {
|
|
133
|
+
background-color: transparent !important;
|
|
134
|
+
}
|
|
135
|
+
tr.editing td:first-child {
|
|
136
|
+
box-shadow: inset 3px 0 0 var(--kgrid-edit-accent);
|
|
93
137
|
}
|
|
94
|
-
|
|
95
|
-
|
|
138
|
+
div.save-item {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
.editing div.save-item {
|
|
142
|
+
display: inline-flex;
|
|
96
143
|
}
|
|
97
144
|
|
|
98
|
-
.editing .default-action-buttons{
|
|
99
|
-
|
|
145
|
+
.editing .default-action-buttons {
|
|
146
|
+
display: none;
|
|
100
147
|
}
|
|
101
|
-
.cell-input{
|
|
102
|
-
|
|
148
|
+
.cell-input {
|
|
149
|
+
display: none;
|
|
103
150
|
}
|
|
104
151
|
.kgrid-flag-switch {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
min-height: 1.5rem;
|
|
108
155
|
}
|
|
109
156
|
.custom-table-shell td .kgrid-flag-switch .form-check-input {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
157
|
+
width: 2em;
|
|
158
|
+
max-width: 2em;
|
|
159
|
+
float: none;
|
|
113
160
|
}
|
|
114
161
|
.custom-table-shell[data-interaction="view"] .cell-input,
|
|
115
162
|
.custom-table-shell[data-interaction="view"] .delete-item,
|
|
116
|
-
.custom-table-shell[data-interaction="view"] .clone-item{
|
|
117
|
-
|
|
163
|
+
.custom-table-shell[data-interaction="view"] .clone-item {
|
|
164
|
+
display: none;
|
|
118
165
|
}
|
|
119
166
|
.custom-table-shell[data-interaction="edit"] .cell-input,
|
|
120
167
|
.custom-table-shell[data-interaction="edit"] .delete-item,
|
|
121
|
-
.custom-table-shell[data-interaction="edit"] .clone-item{
|
|
122
|
-
|
|
168
|
+
.custom-table-shell[data-interaction="edit"] .clone-item {
|
|
169
|
+
display: block;
|
|
123
170
|
}
|
|
124
|
-
.new-record-row{
|
|
125
|
-
|
|
171
|
+
.new-record-row {
|
|
172
|
+
display: none;
|
|
126
173
|
}
|
|
127
|
-
.custom-table-shell[data-interaction="edit"] .new-record-row{
|
|
128
|
-
|
|
174
|
+
.custom-table-shell[data-interaction="edit"] .new-record-row {
|
|
175
|
+
display: table-row;
|
|
129
176
|
}
|
|
130
177
|
|
|
131
178
|
.custom-table-shell[data-allow-insert="false"] .new-record-row {
|
|
132
|
-
|
|
179
|
+
display: none !important;
|
|
133
180
|
}
|
|
134
181
|
.custom-table-shell[data-allow-delete="false"] button.delete-item {
|
|
135
|
-
|
|
182
|
+
display: none !important;
|
|
136
183
|
}
|
|
137
184
|
.custom-table-shell[data-allow-clone="false"] button.clone-item {
|
|
138
|
-
|
|
185
|
+
display: none !important;
|
|
139
186
|
}
|
|
140
|
-
.custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-input{
|
|
141
|
-
|
|
187
|
+
.custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-input {
|
|
188
|
+
display: none;
|
|
142
189
|
}
|
|
143
|
-
.custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-content{
|
|
144
|
-
|
|
190
|
+
.custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-content {
|
|
191
|
+
display: block;
|
|
145
192
|
}
|
|
146
|
-
.custom-table-shell[data-interaction="view"] .cell-content{
|
|
147
|
-
|
|
193
|
+
.custom-table-shell[data-interaction="view"] .cell-content {
|
|
194
|
+
display: block;
|
|
148
195
|
}
|
|
149
|
-
.custom-table-shell[data-interaction="edit"] .cell-content{
|
|
150
|
-
|
|
196
|
+
.custom-table-shell[data-interaction="edit"] .cell-content {
|
|
197
|
+
display: none;
|
|
151
198
|
}
|
|
152
199
|
.edit-item-grp {
|
|
153
|
-
|
|
200
|
+
display: none;
|
|
154
201
|
}
|
|
155
|
-
.editing .edit-item-grp{
|
|
156
|
-
|
|
202
|
+
.editing .edit-item-grp {
|
|
203
|
+
display: inline-flex;
|
|
157
204
|
}
|
|
158
205
|
|
|
159
206
|
/* Row-actions: collapse in view only when there is no idle menu (delete/clone/custom).
|
|
160
207
|
Menu-only tables stay usable in view; save/cancel remain hidden until .editing. */
|
|
161
208
|
.custom-table-shell[data-interaction="view"]:not([data-has-row-menu="true"]) col.kgrid-row-actions-col {
|
|
162
|
-
|
|
163
|
-
|
|
209
|
+
visibility: collapse;
|
|
210
|
+
width: 0 !important;
|
|
164
211
|
}
|
|
165
212
|
.custom-table-shell[data-interaction="view"]:not([data-has-row-menu="true"]) th.kgrid-row-actions,
|
|
166
213
|
.custom-table-shell[data-interaction="view"]:not([data-has-row-menu="true"]) td.kgrid-row-actions {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
214
|
+
visibility: collapse;
|
|
215
|
+
width: 0 !important;
|
|
216
|
+
max-width: 0;
|
|
217
|
+
padding: 0;
|
|
218
|
+
border-width: 0 !important;
|
|
219
|
+
overflow: hidden;
|
|
173
220
|
}
|
|
174
221
|
/* Width set inline via actionColumnWidth(); fallback if colgroup sync skipped */
|
|
175
222
|
.custom-table-shell[data-interaction="edit"] col.kgrid-row-actions-col {
|
|
176
|
-
|
|
223
|
+
width: 5.75rem;
|
|
177
224
|
}
|
|
178
225
|
.custom-table-shell[data-interaction="edit"] th.kgrid-row-actions,
|
|
179
226
|
.custom-table-shell[data-interaction="edit"] td.kgrid-row-actions,
|
|
180
227
|
.custom-table-shell[data-has-row-menu="true"] th.kgrid-row-actions,
|
|
181
228
|
.custom-table-shell[data-has-row-menu="true"] td.kgrid-row-actions {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
/*
|
|
229
|
+
white-space: nowrap;
|
|
230
|
+
overflow: visible;
|
|
231
|
+
}
|
|
232
|
+
/* Button-mode: each action is its own wrapper — keep them on one line with a small gap */
|
|
233
|
+
.custom-table-shell td.kgrid-row-actions > .delete-item-grp,
|
|
234
|
+
.custom-table-shell td.kgrid-row-actions > .clone-item-grp,
|
|
235
|
+
.custom-table-shell td.kgrid-row-actions > .kgrid-custom-action-grp,
|
|
236
|
+
.custom-table-shell td.kgrid-row-actions > .edit-item-grp,
|
|
237
|
+
.custom-table-shell td.kgrid-row-actions > .btn-group {
|
|
238
|
+
display: inline-flex;
|
|
239
|
+
vertical-align: middle;
|
|
240
|
+
align-items: center;
|
|
241
|
+
}
|
|
242
|
+
.custom-table-shell td.kgrid-row-actions > .delete-item-grp + *,
|
|
243
|
+
.custom-table-shell td.kgrid-row-actions > .clone-item-grp + *,
|
|
244
|
+
.custom-table-shell td.kgrid-row-actions > .kgrid-custom-action-grp + *,
|
|
245
|
+
.custom-table-shell td.kgrid-row-actions > .edit-item-grp + *,
|
|
246
|
+
.custom-table-shell td.kgrid-row-actions > .btn-group + * {
|
|
247
|
+
margin-inline-start: 0.25rem;
|
|
248
|
+
}
|
|
249
|
+
/* Kebab row-actions menu: fixed while open (set inline); escape table stacking. */
|
|
186
250
|
.kgrid-row-actions-menu .dropdown-menu {
|
|
187
|
-
|
|
251
|
+
z-index: 1055;
|
|
252
|
+
}
|
|
253
|
+
.kgrid-row-actions-menu .dropdown-menu.show {
|
|
254
|
+
display: block;
|
|
188
255
|
}
|
|
189
|
-
.custom-table-shell tr:has(.kgrid-row-actions-menu .dropdown-toggle.show) {
|
|
190
|
-
|
|
191
|
-
|
|
256
|
+
.custom-table-shell tr:has(.kgrid-row-actions-menu .kgrid-actions-dropdown-toggle.show) {
|
|
257
|
+
position: relative;
|
|
258
|
+
z-index: 6;
|
|
192
259
|
}
|
|
193
260
|
.editing .delete-item-grp,
|
|
194
261
|
.editing .clone-item-grp,
|
|
195
262
|
.editing .kgrid-row-actions-menu,
|
|
196
263
|
.editing .kgrid-custom-action-grp:not(.kgrid-action-always) {
|
|
197
|
-
|
|
264
|
+
display: none !important;
|
|
198
265
|
}
|
|
199
266
|
|
|
200
|
-
/* User-hidden columns (chooser):
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
267
|
+
/* User-hidden columns (chooser): keep cells in the DOM for filters/forms, but
|
|
268
|
+
they must not occupy a table-layout slot. `display:none` removes the cell from
|
|
269
|
+
the column mapping, so colgroup must omit that column too (see layoutVisibleColumns).
|
|
270
|
+
Do not leave a width:0 <col> — remaining cells then map onto the wrong widths
|
|
271
|
+
(letter-stacked headers, blank gaps after paging). Chrome also treats
|
|
272
|
+
visibility:collapse as hidden, so that is not a substitute. */
|
|
205
273
|
th.kgrid-user-hidden,
|
|
206
274
|
td.kgrid-user-hidden {
|
|
207
|
-
|
|
208
|
-
width: 0 !important;
|
|
209
|
-
max-width: 0;
|
|
210
|
-
padding: 0 !important;
|
|
211
|
-
border-width: 0 !important;
|
|
212
|
-
overflow: hidden;
|
|
213
|
-
white-space: nowrap;
|
|
214
|
-
line-height: 0;
|
|
215
|
-
font-size: 0;
|
|
275
|
+
display: none !important;
|
|
216
276
|
}
|
|
217
277
|
|
|
218
278
|
.kgrid-column-chooser {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
279
|
+
position: relative;
|
|
280
|
+
display: flex;
|
|
281
|
+
justify-content: flex-end;
|
|
282
|
+
padding: 0.25rem 0.5rem;
|
|
223
283
|
}
|
|
224
284
|
.kgrid-column-chooser-panel {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
285
|
+
position: absolute;
|
|
286
|
+
right: 0.5rem;
|
|
287
|
+
top: 100%;
|
|
288
|
+
z-index: 20;
|
|
289
|
+
min-width: 16rem;
|
|
290
|
+
max-height: 20rem;
|
|
291
|
+
overflow: auto;
|
|
292
|
+
background: var(--bs-body-bg, #fff);
|
|
293
|
+
color: var(--bs-body-color, #212529);
|
|
294
|
+
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
295
|
+
border-radius: 0.375rem;
|
|
296
|
+
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
|
297
|
+
padding: 0.5rem;
|
|
238
298
|
}
|
|
239
299
|
.kgrid-column-chooser-list {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
300
|
+
list-style: none;
|
|
301
|
+
margin: 0 0 0.5rem;
|
|
302
|
+
padding: 0;
|
|
243
303
|
}
|
|
244
304
|
.kgrid-column-chooser-list li {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
gap: 0.35rem;
|
|
308
|
+
padding: 0.2rem 0.25rem;
|
|
309
|
+
cursor: grab;
|
|
250
310
|
}
|
|
251
311
|
.kgrid-column-chooser-list li.kgrid-column-chooser-dragging {
|
|
252
|
-
|
|
312
|
+
opacity: 0.5;
|
|
253
313
|
}
|
|
254
314
|
.kgrid-column-chooser-handle {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
315
|
+
color: #6c757d;
|
|
316
|
+
user-select: none;
|
|
317
|
+
letter-spacing: -0.15em;
|
|
258
318
|
}
|
|
259
319
|
.kgrid-column-chooser-list label {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
320
|
+
margin: 0;
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
flex: 1;
|
|
263
323
|
}
|
|
264
324
|
.kgrid-column-chooser-reset {
|
|
265
|
-
|
|
325
|
+
width: 100%;
|
|
266
326
|
}
|
|
267
327
|
|
|
268
328
|
/* multi_select: checkbox list (dropdown in filter row) */
|
|
269
329
|
.kgrid-multi-select {
|
|
270
|
-
|
|
271
|
-
|
|
330
|
+
position: relative;
|
|
331
|
+
min-width: 0;
|
|
272
332
|
}
|
|
273
333
|
.kgrid-multi-select-toggle {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
334
|
+
width: 100%;
|
|
335
|
+
text-align: left;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
text-overflow: ellipsis;
|
|
338
|
+
white-space: nowrap;
|
|
339
|
+
cursor: pointer;
|
|
280
340
|
}
|
|
281
341
|
.kgrid-multi-select-panel {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
342
|
+
max-height: 14rem;
|
|
343
|
+
overflow-x: hidden;
|
|
344
|
+
overflow-y: auto;
|
|
345
|
+
padding: 0.4rem 0.55rem;
|
|
346
|
+
background: var(--bs-body-bg, #fff);
|
|
347
|
+
color: var(--bs-body-color, #212529);
|
|
348
|
+
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
349
|
+
border-radius: 0.375rem;
|
|
350
|
+
box-sizing: border-box;
|
|
291
351
|
}
|
|
292
352
|
.kgrid-multi-select-panel.kgrid-multi-select-panel-floating {
|
|
293
|
-
|
|
353
|
+
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
|
294
354
|
}
|
|
295
355
|
.kgrid-multi-select[data-mode="insert"] .kgrid-multi-select-panel,
|
|
296
356
|
.kgrid-multi-select[data-mode="update"] .kgrid-multi-select-panel {
|
|
297
|
-
|
|
357
|
+
max-height: 10rem;
|
|
298
358
|
}
|
|
299
359
|
.kgrid-multi-select-option {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
360
|
+
display: flex;
|
|
361
|
+
align-items: flex-start;
|
|
362
|
+
gap: 0.5rem;
|
|
363
|
+
margin: 0;
|
|
364
|
+
padding: 0.3rem 0.15rem;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
min-height: 1.5rem;
|
|
307
367
|
}
|
|
308
368
|
.kgrid-multi-select-check {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
369
|
+
flex: 0 0 auto;
|
|
370
|
+
width: 1.05em;
|
|
371
|
+
height: 1.05em;
|
|
372
|
+
margin: 0.15rem 0 0;
|
|
373
|
+
accent-color: var(--bs-primary, #0d6efd);
|
|
374
|
+
cursor: pointer;
|
|
315
375
|
}
|
|
316
376
|
.kgrid-multi-select-label {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
377
|
+
flex: 1 1 auto;
|
|
378
|
+
min-width: 0;
|
|
379
|
+
font-weight: 400;
|
|
380
|
+
line-height: 1.35;
|
|
381
|
+
user-select: none;
|
|
322
382
|
}
|
|
323
383
|
|
|
384
|
+
/* —— Visual chrome (Linear / Notion) —— */
|
|
385
|
+
.custom-table {
|
|
386
|
+
font-size: var(--kgrid-font-size);
|
|
387
|
+
box-sizing: content-box;
|
|
388
|
+
margin-bottom: 0;
|
|
389
|
+
width: 100%;
|
|
390
|
+
table-layout: fixed;
|
|
391
|
+
color: var(--kgrid-header-fg);
|
|
392
|
+
}
|
|
393
|
+
.custom-table .thead-labels th {
|
|
394
|
+
background-color: var(--kgrid-header-bg);
|
|
395
|
+
color: var(--kgrid-header-fg);
|
|
396
|
+
font-weight: 600;
|
|
397
|
+
white-space: nowrap;
|
|
398
|
+
overflow: hidden;
|
|
399
|
+
text-overflow: ellipsis;
|
|
400
|
+
}
|
|
401
|
+
.custom-table .thead-labels th a {
|
|
402
|
+
color: var(--kgrid-header-link);
|
|
403
|
+
text-decoration: none;
|
|
404
|
+
}
|
|
405
|
+
.custom-table .thead-labels th a:hover {
|
|
406
|
+
color: var(--kgrid-header-link-hover);
|
|
407
|
+
}
|
|
408
|
+
.custom-table .thead-filters th {
|
|
409
|
+
background-color: var(--kgrid-filter-bg);
|
|
410
|
+
overflow: visible;
|
|
411
|
+
}
|
|
412
|
+
.custom-table .main-tbody td {
|
|
413
|
+
overflow: hidden;
|
|
414
|
+
vertical-align: middle;
|
|
415
|
+
}
|
|
416
|
+
.custom-table th,
|
|
417
|
+
.custom-table td {
|
|
418
|
+
padding: var(--kgrid-cell-pad-y) var(--kgrid-cell-pad-x);
|
|
419
|
+
}
|
|
324
420
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
421
|
+
@media (min-width: 769px) {
|
|
422
|
+
table.custom-table {
|
|
423
|
+
border-collapse: separate !important;
|
|
424
|
+
border-spacing: 0 !important;
|
|
425
|
+
border: none !important;
|
|
328
426
|
}
|
|
329
|
-
|
|
330
|
-
|
|
427
|
+
/* Row separators only — no vertical cell grid */
|
|
428
|
+
table.custom-table > * > tr > th,
|
|
429
|
+
table.custom-table > * > tr > td {
|
|
430
|
+
border-style: solid !important;
|
|
431
|
+
border-width: 0 0 1px 0 !important;
|
|
432
|
+
border-color: var(--kgrid-row-border) !important;
|
|
433
|
+
box-shadow: none !important;
|
|
434
|
+
background-clip: padding-box;
|
|
331
435
|
}
|
|
332
|
-
.custom-table .thead-
|
|
333
|
-
|
|
334
|
-
overflow: visible;
|
|
436
|
+
table.custom-table .thead-labels th {
|
|
437
|
+
border-bottom-color: var(--kgrid-row-border) !important;
|
|
335
438
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
color: #fff;
|
|
439
|
+
table.custom-table .main-tbody > tr:nth-child(even) > td {
|
|
440
|
+
background-color: var(--kgrid-row-alt);
|
|
339
441
|
}
|
|
340
|
-
.custom-table{
|
|
341
|
-
|
|
342
|
-
box-sizing: content-box;
|
|
343
|
-
margin-bottom: 0;
|
|
344
|
-
width: 100%;
|
|
345
|
-
table-layout: fixed;
|
|
442
|
+
table.custom-table .main-tbody > tr:hover > td {
|
|
443
|
+
background-color: var(--kgrid-row-hover);
|
|
346
444
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
border-top: 1px solid var(--bs-border-color, #dee2e6) !important;
|
|
352
|
-
border-left: 1px solid var(--bs-border-color, #dee2e6) !important;
|
|
353
|
-
}
|
|
354
|
-
table.custom-table > * > tr > th,
|
|
355
|
-
table.custom-table > * > tr > td {
|
|
356
|
-
border-style: solid !important;
|
|
357
|
-
border-width: 0 1px 1px 0 !important;
|
|
358
|
-
border-color: var(--bs-border-color, #dee2e6) !important;
|
|
359
|
-
box-shadow: none !important;
|
|
360
|
-
background-clip: padding-box;
|
|
361
|
-
}
|
|
362
|
-
table.custom-table .thead-labels th {
|
|
363
|
-
border-right-color: rgba(255, 255, 255, 0.28) !important;
|
|
364
|
-
border-bottom-color: rgba(255, 255, 255, 0.28) !important;
|
|
365
|
-
}
|
|
445
|
+
table.custom-table .main-tbody > tr.editing:hover > td,
|
|
446
|
+
table.custom-table .main-tbody > tr.new-record-row:hover > td,
|
|
447
|
+
table.custom-table .main-tbody > tr.confirm-delete:hover > td {
|
|
448
|
+
background-color: transparent;
|
|
366
449
|
}
|
|
450
|
+
}
|