@agile-team/mach-table 0.13.0 → 0.15.0
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 +20 -2
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +237 -25
- package/dist/index.d.ts +237 -25
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/mach-table.css +110 -3
package/package.json
CHANGED
package/styles/mach-table.css
CHANGED
|
@@ -67,6 +67,113 @@
|
|
|
67
67
|
font-variant-numeric: tabular-nums;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.mach-root.mach-dom-layout--auto-height {
|
|
71
|
+
height: auto;
|
|
72
|
+
min-height: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mach-root.mach-dom-layout--auto-height .mach-body {
|
|
76
|
+
flex: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.mach-root.mach-dom-layout--auto-height .mach-body-viewport--scroll {
|
|
80
|
+
overflow-y: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.mach-toolbar {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
gap: 10px;
|
|
88
|
+
min-height: 44px;
|
|
89
|
+
padding: 6px 8px;
|
|
90
|
+
font: 13px/1.4 var(--mach-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
|
|
91
|
+
color: var(--mach-body-fg, #26303f);
|
|
92
|
+
background: var(--mach-body-bg, #fff);
|
|
93
|
+
border: 1px solid var(--mach-border-color, #e6eaf0);
|
|
94
|
+
border-bottom: 0;
|
|
95
|
+
border-radius: var(--mach-radius-lg, 8px) var(--mach-radius-lg, 8px) 0 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mach-toolbar__main,
|
|
99
|
+
.mach-toolbar__aside {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 6px;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mach-toolbar__search {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 6px;
|
|
110
|
+
width: min(240px, 32vw);
|
|
111
|
+
height: 32px;
|
|
112
|
+
padding: 0 9px;
|
|
113
|
+
color: #64748b;
|
|
114
|
+
background: var(--mach-header-bg, #fafbfd);
|
|
115
|
+
border: 1px solid var(--mach-border-color, #e6eaf0);
|
|
116
|
+
border-radius: 6px;
|
|
117
|
+
transition: border-color var(--mach-transition, .15s ease), box-shadow var(--mach-transition, .15s ease);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.mach-toolbar__search:focus-within {
|
|
121
|
+
border-color: var(--mach-primary, #2563eb);
|
|
122
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--mach-primary, #2563eb) 12%, transparent);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mach-toolbar__search input {
|
|
126
|
+
min-width: 0;
|
|
127
|
+
width: 100%;
|
|
128
|
+
color: inherit;
|
|
129
|
+
background: transparent;
|
|
130
|
+
border: 0;
|
|
131
|
+
outline: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.mach-toolbar__button,
|
|
135
|
+
.mach-toolbar__select,
|
|
136
|
+
.mach-toolbar__selection {
|
|
137
|
+
height: 32px;
|
|
138
|
+
padding: 0 10px;
|
|
139
|
+
color: inherit;
|
|
140
|
+
background: var(--mach-body-bg, #fff);
|
|
141
|
+
border: 1px solid var(--mach-border-color, #e6eaf0);
|
|
142
|
+
border-radius: 6px;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
transition: color var(--mach-transition, .15s ease), border-color var(--mach-transition, .15s ease), background var(--mach-transition, .15s ease);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.mach-toolbar__button {
|
|
148
|
+
min-width: 32px;
|
|
149
|
+
padding: 0 8px;
|
|
150
|
+
font-size: 16px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.mach-toolbar__button:hover:not(:disabled),
|
|
154
|
+
.mach-toolbar__select:hover {
|
|
155
|
+
color: var(--mach-primary, #2563eb);
|
|
156
|
+
border-color: var(--mach-primary, #2563eb);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.mach-toolbar__button:disabled {
|
|
160
|
+
cursor: not-allowed;
|
|
161
|
+
opacity: .45;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.mach-toolbar__selection {
|
|
165
|
+
color: var(--mach-primary, #2563eb);
|
|
166
|
+
background: var(--mach-primary-weak, #dbeafe);
|
|
167
|
+
border-color: transparent;
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media (max-width: 640px) {
|
|
172
|
+
.mach-toolbar { align-items: stretch; flex-direction: column; }
|
|
173
|
+
.mach-toolbar__main, .mach-toolbar__aside { flex-wrap: wrap; }
|
|
174
|
+
.mach-toolbar__search { flex: 1; width: auto; }
|
|
175
|
+
}
|
|
176
|
+
|
|
70
177
|
.mach-size--compact {
|
|
71
178
|
--mach-font-size: 12px;
|
|
72
179
|
--mach-cell-padding: 6px;
|
|
@@ -322,8 +429,8 @@
|
|
|
322
429
|
.mach-header-resize {
|
|
323
430
|
position: absolute;
|
|
324
431
|
top: 0;
|
|
325
|
-
right:
|
|
326
|
-
width:
|
|
432
|
+
right: 0;
|
|
433
|
+
width: 8px;
|
|
327
434
|
height: 100%;
|
|
328
435
|
cursor: col-resize;
|
|
329
436
|
z-index: 2;
|
|
@@ -334,7 +441,7 @@
|
|
|
334
441
|
.mach-root--resizing .mach-header-resize::after {
|
|
335
442
|
content: "";
|
|
336
443
|
position: absolute;
|
|
337
|
-
inset: 0;
|
|
444
|
+
inset: 0 3px;
|
|
338
445
|
background: var(--mach-primary);
|
|
339
446
|
opacity: 0.45;
|
|
340
447
|
border-radius: 1px;
|