@iyulab/data-components 0.16.0 → 0.17.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/CHANGELOG.md +19 -0
- package/README.md +10 -4
- package/dist/components/simple-sheet/USimpleSheet.styles.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.0] - 2026-08-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`u-simple-sheet` gained a `--dc-sheet-height` custom property**, defaulting to `400px` — the
|
|
8
|
+
value the host was previously hardcoded to. Every other size axis on this component (row height,
|
|
9
|
+
cell padding, font size) was already a consumer-adjustable custom property; the host's own height
|
|
10
|
+
was the one dimension left as a literal, so a consumer embedding the sheet in a constrained layout
|
|
11
|
+
(a form, a panel with a fixed footer) had no supported way to make it shorter or taller — only an
|
|
12
|
+
external `height` override that fought the component's own `:host` rule on specificity. Unset,
|
|
13
|
+
rendering is byte-identical to before. Like the other five tokens on this component, it does not
|
|
14
|
+
derive from a role-layer token and is set with an element selector (`u-simple-sheet { … }`) rather
|
|
15
|
+
than `:root`.
|
|
16
|
+
|
|
17
|
+
This token sets an upper bound, not a natural height: `rows` governs the grid's minimum row
|
|
18
|
+
*capacity*, not how many rows are visible, so lowering `--dc-sheet-height` does not shrink the
|
|
19
|
+
number of rows rendered — it constrains the box and leaves the existing `overflow-y: auto` to
|
|
20
|
+
reach the rest.
|
|
21
|
+
|
|
3
22
|
## [0.16.0] - 2026-08-16
|
|
4
23
|
|
|
5
24
|
### Added
|
package/README.md
CHANGED
|
@@ -221,6 +221,12 @@ u-rich-table { --dc-icon-color: #B0B0B0; }
|
|
|
221
221
|
| `--dc-font-size` | `13px`(`var(--u-density, 13px)`) | 본문 셀 · 편집 입력 · 드롭다운 항목 |
|
|
222
222
|
| `--dc-header-font-size` | `12px` | 열 머리 — `--u-density` 와 무관(본문과 독립) |
|
|
223
223
|
| `--dc-header-font-weight` | `600` | 〃 |
|
|
224
|
+
| `--dc-sheet-height` | `400px` | `:host` 전체 높이 (0.17.0~) |
|
|
225
|
+
|
|
226
|
+
⚠**`--dc-sheet-height` 는 "자연 높이로 준다"가 아니라 "상한을 정한다"입니다.** `rows` 는
|
|
227
|
+
표시 개수가 아니라 데이터 격자의 **최소 용량**이라, 이 값을 낮춰도 `rows` 만큼의 빈 행이
|
|
228
|
+
줄지는 않습니다 — 그 안에서 내장 `overflow-y: auto` 로 스크롤해 접근하십시오. 콘텐츠
|
|
229
|
+
분량에 맞춰 자동으로 줄어드는 옵트인은 별도 스코프입니다.
|
|
224
230
|
|
|
225
231
|
⚠**`--dc-font-size` 만 예외입니다 — `@iyulab/components`/`@iyulab/flex-table` 의 밀도
|
|
226
232
|
스위치(`--u-density`)를 폴백 원본으로 갖습니다**(0.15.0~). 조상에 `--u-density` 를 걸면
|
|
@@ -245,11 +251,11 @@ u-simple-sheet {
|
|
|
245
251
|
`30.5px` 를 선언하십시오. (같은 이유로 **빈 행은 데이터 행보다 1.5px 낮습니다** —
|
|
246
252
|
`0.11.0` 이전부터 그랬고, 교정하면 기본 렌더가 바뀌므로 이 릴리스에서는 두었습니다.)
|
|
247
253
|
|
|
248
|
-
|
|
254
|
+
⚠**조절점만 엽니다** — 선언하지 않으면 종전과 같은 값으로 그려집니다.
|
|
249
255
|
`--dc-row-height`·`--dc-cell-padding-block`·`--dc-cell-padding-inline`·
|
|
250
|
-
`--dc-header-font-size`·`--dc-header-font-weight
|
|
251
|
-
(`u-data-view`·`u-rich-table` 은 읽지 않습니다).
|
|
252
|
-
아래 `u-rich-table` 절 참조.
|
|
256
|
+
`--dc-header-font-size`·`--dc-header-font-weight`·`--dc-sheet-height` 여섯은
|
|
257
|
+
`u-simple-sheet` 전용입니다(`u-data-view`·`u-rich-table` 은 읽지 않습니다).
|
|
258
|
+
`--dc-font-size` 만 예외입니다 — 바로 아래 `u-rich-table` 절 참조.
|
|
253
259
|
|
|
254
260
|
### 그리드 밀도 조절 (`u-rich-table` · 0.16.0~)
|
|
255
261
|
|
|
@@ -44,9 +44,23 @@ var baseStyles = css`
|
|
|
44
44
|
--dc-header-font-size: 12px; /* 열 머리 — --u-density 와 무관(독립 계약 유지) */
|
|
45
45
|
--dc-header-font-weight: 600; /* 〃 */
|
|
46
46
|
|
|
47
|
+
/* ── 소비자 조절점 — 호스트 높이 ──
|
|
48
|
+
★위 다섯과 같은 이유로 열렸지만 축이 다르다 — 저것들은 "셀 하나"의 치수이고
|
|
49
|
+
이것은 "시트 전체(:host)"의 치수다. 종전에는 여기만 리터럴이라, 셀 치수는 전부
|
|
50
|
+
조절되는데 그 합인 호스트 크기만 조절 불가능한 비대칭이 있었다.
|
|
51
|
+
⚠**역할 토큰에서 파생하지 않는다** — --dc-font-size 와 달리 대응하는 --u- 층
|
|
52
|
+
스위치가 없다(호스트 크기는 밀도 개념이 아니다). 그래서 var() 폴백이 아니라
|
|
53
|
+
이 리터럴 기본값 자체가 정본이다.
|
|
54
|
+
⚠**rows 를 낮춰도 이 값은 안 줄어든다 — 그리고 그것이 의도다.** rows 는 표시
|
|
55
|
+
개수가 아니라 데이터 격자의 최소 용량이라, 자연 높이로 접으면 빈 행 개수만큼
|
|
56
|
+
상자가 늘어나는 별개 결함이 생긴다. 이 토큰이 여는 것은 "소비자가 상한을
|
|
57
|
+
명시하고 그 안에서 overflow-y:auto 로 스크롤"이지 "내용에 맞춰 줄어든다"가
|
|
58
|
+
아니다 — 후자가 필요하면 별도 옵트인으로 낸다. */
|
|
59
|
+
--dc-sheet-height: 400px;
|
|
60
|
+
|
|
47
61
|
display: block;
|
|
48
62
|
width: 100%;
|
|
49
|
-
height:
|
|
63
|
+
height: var(--dc-sheet-height);
|
|
50
64
|
}
|
|
51
65
|
|
|
52
66
|
.sheet-container {
|