@arbidocs/blocks 0.3.156 → 0.3.158
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/grid.css +29 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.158",
|
|
4
4
|
"description": "Composable AI-native back-office blocks on top of @arbidocs/react — prompt library, theme system, shell, builders and vertical primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arbidocs/react": "0.3.
|
|
41
|
-
"@arbidocs/sdk": "0.3.
|
|
40
|
+
"@arbidocs/react": "0.3.158",
|
|
41
|
+
"@arbidocs/sdk": "0.3.158",
|
|
42
42
|
"ag-grid-community": "^35.3.0",
|
|
43
43
|
"ag-grid-react": "^35.3.0",
|
|
44
44
|
"class-variance-authority": "^0.7.1",
|
package/src/components/grid.css
CHANGED
|
@@ -138,29 +138,38 @@
|
|
|
138
138
|
align-items: flex-start;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
/*
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
never a sliced half-line against the top or bottom
|
|
147
|
-
on a line boundary with an ellipsis. The value
|
|
148
|
-
(it is itself .ag-cell-value), so we target the
|
|
149
|
-
non-editing display (editing opens
|
|
150
|
-
.cell-
|
|
151
|
-
display
|
|
141
|
+
/* Multiline text columns (Abstract, Author, custom text/select fields):
|
|
142
|
+
height-driven multi-line text. The text wraps and the row height decides how
|
|
143
|
+
many lines show — so the density slider doubles as "how much text do I want
|
|
144
|
+
to see" (one line when compact, several when tall). It reads from the FIRST
|
|
145
|
+
line down and clamps to a WHOLE number of lines (computed from the row height
|
|
146
|
+
in GridView) so there is never a sliced half-line against the top or bottom
|
|
147
|
+
hairline — the cut lands on a line boundary with an ellipsis. The value
|
|
148
|
+
renders directly on the cell (it is itself .ag-cell-value), so we target the
|
|
149
|
+
cell. Only affects the non-editing display (editing opens a popup editor). */
|
|
150
|
+
.cell-multiline.ag-cell {
|
|
151
|
+
/* line-clamp needs the -webkit-box display; it hides the clamped-away LINES
|
|
152
|
+
themselves (with an ellipsis on the last kept line), unlike a max-height +
|
|
153
|
+
overflow:hidden clip, which cuts at the PADDING edge and lets a half-line
|
|
154
|
+
of the next row's worth of text peek through the bottom padding. */
|
|
155
|
+
display: -webkit-box;
|
|
156
|
+
-webkit-box-orient: vertical;
|
|
157
|
+
-webkit-line-clamp: var(--multiline-line-clamp, 2);
|
|
158
|
+
line-clamp: var(--multiline-line-clamp, 2);
|
|
152
159
|
white-space: normal;
|
|
153
160
|
overflow: hidden;
|
|
154
161
|
line-height: 1.35;
|
|
155
|
-
/*
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
/* All three values are computed from the row height once in GridView (zero
|
|
163
|
+
per-row cost): --multiline-line-clamp is the whole number of lines that
|
|
164
|
+
fit, --multiline-pad-y shrinks on very short rows so a line always fits,
|
|
165
|
+
and --multiline-max-h ends the box exactly at line N's bottom (top padding
|
|
166
|
+
+ N lines + borders, NO bottom padding — AG Grid forces cell height, so
|
|
167
|
+
overflow clips at the padding-box edge and bottom padding would be a
|
|
168
|
+
window onto the next clamped-away line; see GridView). Fallbacks cover
|
|
169
|
+
grids without a density control. */
|
|
170
|
+
padding-top: var(--multiline-pad-y, 8px);
|
|
171
|
+
padding-bottom: var(--multiline-pad-y, 8px);
|
|
172
|
+
max-height: var(--multiline-max-h, calc(2 * 1.35em + 10px));
|
|
164
173
|
}
|
|
165
174
|
|
|
166
175
|
/* AG Grid structural customizations (not theme colors) */
|