@seanyeh77/ui 0.22.0 → 0.24.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/dist/bundle.js +18 -18
- package/dist/bundle.js.map +1 -1
- package/dist/{format-entry-CKLBdBpY.js → format-entry-CwOAT4YT.js} +19 -1
- package/dist/format-entry-CwOAT4YT.js.map +1 -0
- package/dist/format.js +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +435 -108
- package/dist/index.js.map +1 -1
- package/dist/styles.css +285 -17
- package/docs/Card.md +7 -1
- package/docs/DataTable.md +19 -3
- package/docs/InlineCode.md +1 -0
- package/docs/guidelines.md +2 -2
- package/package.json +2 -2
- package/dist/format-entry-CKLBdBpY.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -1629,20 +1629,121 @@ body {
|
|
|
1629
1629
|
flex-direction: column;
|
|
1630
1630
|
gap: var(--space-3);
|
|
1631
1631
|
min-width: 0;
|
|
1632
|
+
/* The toolbar wraps by the table's own width (a table beside a panel is narrow on a wide screen). As a size
|
|
1633
|
+
container it cannot take its width from its content, so it fills its parent. */
|
|
1634
|
+
container: ui-dt / inline-size;
|
|
1635
|
+
width: 100%;
|
|
1632
1636
|
}
|
|
1633
1637
|
.ui-dt-caption {
|
|
1634
|
-
|
|
1638
|
+
/* The same size as a Card title: a table's heading is a block heading whether or not it sits in a card. */
|
|
1639
|
+
font-size: 17px;
|
|
1635
1640
|
font-weight: 700;
|
|
1636
1641
|
}
|
|
1637
1642
|
.ui-dt-tools {
|
|
1638
1643
|
display: flex;
|
|
1639
|
-
flex-wrap: wrap;
|
|
1640
1644
|
align-items: center;
|
|
1641
1645
|
gap: 8px;
|
|
1642
1646
|
}
|
|
1643
|
-
|
|
1647
|
+
/* Search on the left; the count and every button in one group on the right that keeps to one line: when it runs out of
|
|
1648
|
+
room the sort button's text is cut with … first. */
|
|
1649
|
+
.ui-dt-tools > .ui-dt-search {
|
|
1644
1650
|
flex: 0 1 260px;
|
|
1645
|
-
min-width:
|
|
1651
|
+
min-width: 160px;
|
|
1652
|
+
}
|
|
1653
|
+
.ui-dt-actions {
|
|
1654
|
+
flex: 1 1 auto;
|
|
1655
|
+
min-width: 0;
|
|
1656
|
+
display: flex;
|
|
1657
|
+
align-items: center;
|
|
1658
|
+
justify-content: flex-end;
|
|
1659
|
+
gap: 8px;
|
|
1660
|
+
}
|
|
1661
|
+
.ui-dt-actions > * {
|
|
1662
|
+
flex: none;
|
|
1663
|
+
}
|
|
1664
|
+
.ui-dt-actions > .ui-dt-sortbtn {
|
|
1665
|
+
flex: 0 1 auto;
|
|
1666
|
+
min-width: 96px;
|
|
1667
|
+
max-width: 280px;
|
|
1668
|
+
}
|
|
1669
|
+
/* No search field: the caption on the left of the buttons; they move under it, right-aligned, when the caption would
|
|
1670
|
+
get narrower than about 12 characters. */
|
|
1671
|
+
.ui-dt-tools > .ui-dt-caption {
|
|
1672
|
+
flex: 1 1 12em;
|
|
1673
|
+
min-width: 0;
|
|
1674
|
+
overflow: hidden;
|
|
1675
|
+
text-overflow: ellipsis;
|
|
1676
|
+
white-space: nowrap;
|
|
1677
|
+
}
|
|
1678
|
+
.ui-dt-tools > .ui-dt-caption + .ui-dt-actions {
|
|
1679
|
+
flex: none;
|
|
1680
|
+
margin-left: auto;
|
|
1681
|
+
}
|
|
1682
|
+
.ui-dt-sortbtn-short {
|
|
1683
|
+
display: none;
|
|
1684
|
+
align-items: center;
|
|
1685
|
+
gap: 6px;
|
|
1686
|
+
}
|
|
1687
|
+
/* By the table's own width (a table beside a panel is narrow on a wide screen). Under 760 px: the search field on a row
|
|
1688
|
+
of its own, the buttons on the next. */
|
|
1689
|
+
@container ui-dt (max-width: 759px) {
|
|
1690
|
+
.ui-dt-tools {
|
|
1691
|
+
flex-wrap: wrap;
|
|
1692
|
+
}
|
|
1693
|
+
.ui-dt-tools > .ui-dt-search,
|
|
1694
|
+
.ui-dt-tools > .ui-dt-search + .ui-dt-actions {
|
|
1695
|
+
flex: 1 1 100%;
|
|
1696
|
+
min-width: 0;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
/* Under 480 px: 「排序」 and the number of levels instead of the whole sort. With copy, columns and zoom as well (not
|
|
1700
|
+
on phones, which hide them), 「篩選」「排序」「欄位」 keep only their icons and counts; the words stay in the
|
|
1701
|
+
accessible names. The buttons wrap only when even that does not fit. */
|
|
1702
|
+
@container ui-dt (max-width: 479px) {
|
|
1703
|
+
.ui-dt-sortbtn-text {
|
|
1704
|
+
display: none;
|
|
1705
|
+
}
|
|
1706
|
+
.ui-dt-sortbtn-short {
|
|
1707
|
+
display: inline-flex;
|
|
1708
|
+
}
|
|
1709
|
+
.ui-dt-actions > .ui-dt-sortbtn {
|
|
1710
|
+
min-width: 0;
|
|
1711
|
+
}
|
|
1712
|
+
.ui-dt-actions:has(> .ui-dt-zoombtn) .ui-dt-btntext {
|
|
1713
|
+
position: absolute;
|
|
1714
|
+
width: 1px;
|
|
1715
|
+
height: 1px;
|
|
1716
|
+
overflow: hidden;
|
|
1717
|
+
clip: rect(0 0 0 0);
|
|
1718
|
+
white-space: nowrap;
|
|
1719
|
+
}
|
|
1720
|
+
.ui-dt-actions:has(> .ui-dt-zoombtn) :is(.ui-dt-filterbtn, .ui-dt-sortbtn, .ui-dt-colbtn) {
|
|
1721
|
+
padding-inline: 10px;
|
|
1722
|
+
}
|
|
1723
|
+
.ui-dt-actions {
|
|
1724
|
+
flex-wrap: wrap;
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
/* Phones, also for tools that moved into a Card title row (outside the table, so not reached by the container). */
|
|
1728
|
+
@media (max-width: 599px) {
|
|
1729
|
+
.ui-dt-sortbtn-text {
|
|
1730
|
+
display: none;
|
|
1731
|
+
}
|
|
1732
|
+
.ui-dt-sortbtn-short {
|
|
1733
|
+
display: inline-flex;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
.ui-card-head:has(> .ui-dt-tools.is-inhead) {
|
|
1737
|
+
flex-wrap: wrap;
|
|
1738
|
+
row-gap: var(--space-2);
|
|
1739
|
+
}
|
|
1740
|
+
/* The title keeps about 12 characters before the tools move to a row of their own under it, right-aligned. */
|
|
1741
|
+
.ui-card-head:has(> .ui-dt-tools.is-inhead) > .ui-card-title {
|
|
1742
|
+
flex: 1 1 12em;
|
|
1743
|
+
}
|
|
1744
|
+
.ui-card-head > .ui-dt-tools.is-inhead {
|
|
1745
|
+
flex: none;
|
|
1746
|
+
margin-left: auto;
|
|
1646
1747
|
}
|
|
1647
1748
|
/* Wider than its box (a narrow container beside a panel): a fade on the right while columns are to the right. */
|
|
1648
1749
|
.ui-dt-scroller {
|
|
@@ -1664,10 +1765,12 @@ body {
|
|
|
1664
1765
|
.ui-dt-scroller.has-more::after {
|
|
1665
1766
|
opacity: 1;
|
|
1666
1767
|
}
|
|
1768
|
+
/* A table without page numbers can hold many rows: it scrolls in a box up to 560 px tall, its header staying on top.
|
|
1769
|
+
With page numbers (is-paged) a page is short, so it has no height limit and no box of its own to scroll in. Either
|
|
1770
|
+
way the wheel passes on to the page at the box's end (no overscroll-behavior: contain). */
|
|
1667
1771
|
.ui-dt-scroll {
|
|
1668
1772
|
max-height: var(--dt-max-height, 560px);
|
|
1669
1773
|
overflow: auto;
|
|
1670
|
-
overscroll-behavior: contain;
|
|
1671
1774
|
border: 1px solid var(--line);
|
|
1672
1775
|
border-radius: var(--radius-md);
|
|
1673
1776
|
background: var(--surface);
|
|
@@ -1761,10 +1864,8 @@ body {
|
|
|
1761
1864
|
transform: none;
|
|
1762
1865
|
}
|
|
1763
1866
|
/* B2: 「放大表格」 above the table's top right, as on Markdown tables. */
|
|
1764
|
-
.ui-dt-
|
|
1765
|
-
|
|
1766
|
-
justify-content: flex-end;
|
|
1767
|
-
margin-bottom: var(--space-1);
|
|
1867
|
+
.ui-dt-scroll.is-paged {
|
|
1868
|
+
max-height: none;
|
|
1768
1869
|
}
|
|
1769
1870
|
.ui-dt-zoomed .ui-dt-scroll {
|
|
1770
1871
|
max-height: calc(100vh - 280px);
|
|
@@ -2032,13 +2133,6 @@ body {
|
|
|
2032
2133
|
border: 0;
|
|
2033
2134
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
2034
2135
|
}
|
|
2035
|
-
.ui-dt-tools {
|
|
2036
|
-
flex-wrap: nowrap;
|
|
2037
|
-
}
|
|
2038
|
-
.ui-dt-search {
|
|
2039
|
-
flex: 1 1 auto;
|
|
2040
|
-
min-width: 0;
|
|
2041
|
-
}
|
|
2042
2136
|
.ui-dt-colbtn {
|
|
2043
2137
|
display: none !important;
|
|
2044
2138
|
}
|
|
@@ -3446,6 +3540,150 @@ html.ui-theme-fade * {
|
|
|
3446
3540
|
box-shadow: var(--shadow-overlay);
|
|
3447
3541
|
animation: ui-pop-fade 150ms ease both;
|
|
3448
3542
|
}
|
|
3543
|
+
/* S2C: the 「排序」 button writes the current sort (「排序:程式 ↑、ΔT ↓」, cut with … when long); on phones 「排序」 and
|
|
3544
|
+
the number of levels. Its panel looks like the filter panel. */
|
|
3545
|
+
.ui-dt-sortbtn {
|
|
3546
|
+
height: 36px;
|
|
3547
|
+
}
|
|
3548
|
+
.ui-dt-sortbtn-text {
|
|
3549
|
+
min-width: 0;
|
|
3550
|
+
overflow: hidden;
|
|
3551
|
+
text-overflow: ellipsis;
|
|
3552
|
+
white-space: nowrap;
|
|
3553
|
+
}
|
|
3554
|
+
.ui-dt-sortpop {
|
|
3555
|
+
width: 400px;
|
|
3556
|
+
max-width: min(calc(100vw - 16px), var(--available-width, 100vw));
|
|
3557
|
+
padding: 16px;
|
|
3558
|
+
box-sizing: border-box;
|
|
3559
|
+
border-radius: var(--radius-lg);
|
|
3560
|
+
background: var(--surface);
|
|
3561
|
+
border: 1px solid var(--line);
|
|
3562
|
+
box-shadow: var(--shadow-overlay);
|
|
3563
|
+
}
|
|
3564
|
+
.ui-dt-sortlist {
|
|
3565
|
+
list-style: none;
|
|
3566
|
+
margin: 0;
|
|
3567
|
+
padding: 0;
|
|
3568
|
+
display: flex;
|
|
3569
|
+
flex-direction: column;
|
|
3570
|
+
gap: 4px;
|
|
3571
|
+
}
|
|
3572
|
+
.ui-dt-sortlvl {
|
|
3573
|
+
display: flex;
|
|
3574
|
+
align-items: center;
|
|
3575
|
+
gap: 8px;
|
|
3576
|
+
min-height: 44px;
|
|
3577
|
+
border-radius: var(--radius-sm);
|
|
3578
|
+
}
|
|
3579
|
+
.ui-dt-sortlvl.is-dragging {
|
|
3580
|
+
opacity: 0.4;
|
|
3581
|
+
}
|
|
3582
|
+
.ui-dt-sortlvl.is-over {
|
|
3583
|
+
box-shadow: 0 -2px 0 var(--accent);
|
|
3584
|
+
}
|
|
3585
|
+
.ui-dt-sortgrip,
|
|
3586
|
+
.ui-dt-sortrm {
|
|
3587
|
+
flex: none;
|
|
3588
|
+
width: 32px;
|
|
3589
|
+
height: 32px;
|
|
3590
|
+
display: inline-flex;
|
|
3591
|
+
align-items: center;
|
|
3592
|
+
justify-content: center;
|
|
3593
|
+
border: 0;
|
|
3594
|
+
border-radius: var(--radius-sm);
|
|
3595
|
+
background: transparent;
|
|
3596
|
+
color: var(--ink-muted);
|
|
3597
|
+
cursor: pointer;
|
|
3598
|
+
}
|
|
3599
|
+
.ui-dt-sortgrip {
|
|
3600
|
+
cursor: grab;
|
|
3601
|
+
}
|
|
3602
|
+
.ui-dt-sortgrip:hover,
|
|
3603
|
+
.ui-dt-sortrm:hover {
|
|
3604
|
+
background: var(--surface-sub);
|
|
3605
|
+
color: var(--ink);
|
|
3606
|
+
}
|
|
3607
|
+
.ui-dt-sortn {
|
|
3608
|
+
flex: none;
|
|
3609
|
+
width: 1ch;
|
|
3610
|
+
font-family: var(--font-mono);
|
|
3611
|
+
font-size: 13px;
|
|
3612
|
+
color: var(--ink-muted);
|
|
3613
|
+
}
|
|
3614
|
+
.ui-dt-sortname {
|
|
3615
|
+
flex: 1 1 auto;
|
|
3616
|
+
min-width: 0;
|
|
3617
|
+
font-weight: 600;
|
|
3618
|
+
overflow: hidden;
|
|
3619
|
+
text-overflow: ellipsis;
|
|
3620
|
+
white-space: nowrap;
|
|
3621
|
+
}
|
|
3622
|
+
.ui-dt-sortdir {
|
|
3623
|
+
flex: none;
|
|
3624
|
+
display: inline-flex;
|
|
3625
|
+
border: 1px solid var(--line-strong);
|
|
3626
|
+
border-radius: var(--radius-sm);
|
|
3627
|
+
overflow: hidden;
|
|
3628
|
+
}
|
|
3629
|
+
.ui-dt-sortdir button {
|
|
3630
|
+
min-height: 32px;
|
|
3631
|
+
padding: 0 10px;
|
|
3632
|
+
border: 0;
|
|
3633
|
+
background: transparent;
|
|
3634
|
+
color: var(--ink);
|
|
3635
|
+
font: inherit;
|
|
3636
|
+
font-size: 13px;
|
|
3637
|
+
white-space: nowrap;
|
|
3638
|
+
cursor: pointer;
|
|
3639
|
+
}
|
|
3640
|
+
.ui-dt-sortdir button + button {
|
|
3641
|
+
border-left: 1px solid var(--line-strong);
|
|
3642
|
+
}
|
|
3643
|
+
.ui-dt-sortdir button.is-on {
|
|
3644
|
+
background: var(--accent-soft);
|
|
3645
|
+
color: var(--accent-text);
|
|
3646
|
+
font-weight: 600;
|
|
3647
|
+
}
|
|
3648
|
+
:is(.ui-dt-sortgrip, .ui-dt-sortrm, .ui-dt-sortdir button):focus-visible {
|
|
3649
|
+
outline: none;
|
|
3650
|
+
box-shadow: inset 0 0 0 2px var(--focus-ring);
|
|
3651
|
+
}
|
|
3652
|
+
.ui-dt-sortnone {
|
|
3653
|
+
margin: 0;
|
|
3654
|
+
font-size: 13px;
|
|
3655
|
+
color: var(--ink-muted);
|
|
3656
|
+
}
|
|
3657
|
+
.ui-dt-sortmore {
|
|
3658
|
+
display: inline-flex;
|
|
3659
|
+
align-items: center;
|
|
3660
|
+
gap: 4px;
|
|
3661
|
+
min-height: 40px;
|
|
3662
|
+
margin-top: 4px;
|
|
3663
|
+
font-size: 14px;
|
|
3664
|
+
}
|
|
3665
|
+
.ui-dt-sortadd {
|
|
3666
|
+
margin-top: 8px;
|
|
3667
|
+
padding-top: 8px;
|
|
3668
|
+
border-top: 1px solid var(--line);
|
|
3669
|
+
}
|
|
3670
|
+
.ui-dt-sortaddhead {
|
|
3671
|
+
display: block;
|
|
3672
|
+
margin-bottom: 4px;
|
|
3673
|
+
font-size: 13px;
|
|
3674
|
+
color: var(--ink-muted);
|
|
3675
|
+
}
|
|
3676
|
+
.ui-dt-sortadd .ui-dt-opt {
|
|
3677
|
+
color: var(--accent-text);
|
|
3678
|
+
}
|
|
3679
|
+
/* The heading's place in a multi-column sort, after its arrow. */
|
|
3680
|
+
.ui-dt-sortpri {
|
|
3681
|
+
font-family: var(--font-mono);
|
|
3682
|
+
font-size: 11px;
|
|
3683
|
+
line-height: 1;
|
|
3684
|
+
color: var(--accent-text);
|
|
3685
|
+
margin-left: -2px;
|
|
3686
|
+
}
|
|
3449
3687
|
.ui-dt-filterhead {
|
|
3450
3688
|
display: flex;
|
|
3451
3689
|
justify-content: space-between;
|
|
@@ -3919,6 +4157,13 @@ html.ui-theme-fade * {
|
|
|
3919
4157
|
color: var(--ink);
|
|
3920
4158
|
overflow-wrap: anywhere;
|
|
3921
4159
|
}
|
|
4160
|
+
/* In a table (DataTable rows and their details, Markdown tables) every other row is surface-sub, the same as the code
|
|
4161
|
+
background, so code there is surface with a 1 px line border: it reads the same on both row colours and on the
|
|
4162
|
+
hovered row. Inset shadow, not a border, so the size and line height do not change. */
|
|
4163
|
+
:is(.ui-dt-body, .ui-dt-detail, .ui-md-table td) .ui-code {
|
|
4164
|
+
background: var(--surface);
|
|
4165
|
+
box-shadow: inset 0 0 0 1px var(--line);
|
|
4166
|
+
}
|
|
3922
4167
|
.ui-code.is-short {
|
|
3923
4168
|
white-space: nowrap;
|
|
3924
4169
|
}
|
|
@@ -5899,6 +6144,28 @@ html.ui-theme-fade * {
|
|
|
5899
6144
|
.ui-card-head:only-child {
|
|
5900
6145
|
margin-bottom: 0;
|
|
5901
6146
|
}
|
|
6147
|
+
/* padding: false: the card has no padding so a table or tree list can reach its edges, but the title row, a
|
|
6148
|
+
DataTable's tools, caption, tabs and footer keep the same 16 px as a padded card. The table keeps its top and bottom
|
|
6149
|
+
lines and loses the side borders and rounded corners that would double the card's edge. */
|
|
6150
|
+
.ui-card.is-flush > .ui-card-head {
|
|
6151
|
+
padding: var(--space-4) var(--space-4) 0;
|
|
6152
|
+
}
|
|
6153
|
+
.ui-card.is-flush > .ui-card-head:only-child {
|
|
6154
|
+
padding-bottom: var(--space-4);
|
|
6155
|
+
}
|
|
6156
|
+
.ui-card.is-flush > .ui-dt {
|
|
6157
|
+
padding-bottom: var(--space-4);
|
|
6158
|
+
}
|
|
6159
|
+
.ui-card.is-flush > .ui-dt:first-child {
|
|
6160
|
+
padding-top: var(--space-4);
|
|
6161
|
+
}
|
|
6162
|
+
.ui-card.is-flush > .ui-dt > :not(.ui-dt-scroller) {
|
|
6163
|
+
padding-inline: var(--space-4);
|
|
6164
|
+
}
|
|
6165
|
+
.ui-card.is-flush > .ui-dt .ui-dt-scroll {
|
|
6166
|
+
border-inline: 0;
|
|
6167
|
+
border-radius: 0;
|
|
6168
|
+
}
|
|
5902
6169
|
.ui-card-title {
|
|
5903
6170
|
flex: 1 1 auto;
|
|
5904
6171
|
min-width: 0;
|
|
@@ -6051,8 +6318,9 @@ html.ui-theme-fade * {
|
|
|
6051
6318
|
border-radius: var(--radius-md);
|
|
6052
6319
|
background: var(--surface);
|
|
6053
6320
|
color: var(--accent-text);
|
|
6054
|
-
box-shadow: var(--shadow-overlay);
|
|
6055
6321
|
font-weight: 600;
|
|
6322
|
+
/* Off screen until focused. No shadow there: the overlay shadow (0 20px 48px) reached below the top edge and
|
|
6323
|
+
darkened the corner above the sidebar brand. */
|
|
6056
6324
|
transform: translateY(calc(-100% - var(--space-6)));
|
|
6057
6325
|
}
|
|
6058
6326
|
.ui-skip:focus {
|
package/docs/Card.md
CHANGED
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
- 卡片裡不再放卡片,避免一層層的陰影。TreeList、KpiCard、Alert、SettingsSection 本身就有卡片樣式:單獨使用時直接當成區塊,不要再包一層;放進 `UI.Card` 時會自動拿掉自己的陰影,TreeList 也拿掉底色。
|
|
6
6
|
- 自己寫的區塊不要另外加陰影,改用 `UI.Card`;需要分出一塊時用 `surface-sub` 底色或分隔線。
|
|
7
7
|
- `title` 和 `actions`:標題列,左邊標題,右邊按鈕。
|
|
8
|
-
- `padding: false
|
|
8
|
+
- `padding: false`:沒有內距,給整張卡片放表格或樹狀清單時用。標題列、DataTable 的工具列、`summary` 分段控制、頁碼和「向右捲動」提示仍留 16 px 左右內距,表格本身貼齊卡片左右兩邊(拿掉表格自己的左右框線與圓角)。
|
|
9
|
+
- 卡片裡放表格時,標題寫在 Card 的 `title`,DataTable 不再給 `caption`,改給同樣文字的 `label`:螢幕閱讀器用它念表格名稱,放大表格的對話框也用它當標題。`caption` 留給沒有包在 Card 裡、直接放在頁面上的表格。
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
h(UI.Card, { title: '每個程式的耗時', padding: false },
|
|
13
|
+
h(UI.DataTable, { label: '每個程式的耗時', columns, rows }))
|
|
14
|
+
```
|
|
9
15
|
|
|
10
16
|
```js
|
|
11
17
|
h(UI.Card, { title: '流程', actions: h(UI.Button, { icon: 'magnifying-glass' }, '換起點函式') },
|
package/docs/DataTable.md
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
## 外觀
|
|
6
6
|
|
|
7
|
+
- 標題(`caption`):17 px 粗體,和 Card 標題同一個大小;放在 Card 裡時不給 `caption`,改用 Card 的 `title` 加 DataTable 的 `label`。
|
|
7
8
|
- 表頭:灰底(`surface-sub`)粗體 14 px,往下捲動時固定在上方。
|
|
8
9
|
- 列高 48 px。
|
|
9
10
|
- 分隔:斑馬紋加格線。偶數列用 `surface-sub`,每列之間有橫線,欄之間有直線,外圍有框,全部用 `line`。
|
|
10
11
|
- 滑過列:整列變成強調淺底 `accent-soft`;勾選中的列也用 `accent-soft`。
|
|
11
12
|
- 數字欄 `numeric: true`:Geist Mono、等寬數字、靠右對齊。
|
|
13
|
+
- 格子裡的 InlineCode:白底加 1 px 框線,奇數列、偶數列和滑過的列上都看得出範圍。
|
|
12
14
|
- 單位寫在每格數字後面:欄位設定 `unit`,例如 `unit: 'GB'` 會顯示「3,480.3 GB」。表格裡的數字不縮寫。
|
|
13
15
|
- 欄位格式 `format`:`money`(NT$ 1,280,000)、`date`(2026/11/04(三))、`datetime`、`relative`(一週內寫「2 小時前」)、`percent`(一位小數,% 用 `unit: '%'` 加上,和 KpiCard 一樣)。
|
|
14
16
|
- 狀態欄使用 Badge。
|
|
@@ -20,6 +22,13 @@
|
|
|
20
22
|
- 點欄位標題排序。第一下:文字欄從小到大,數字欄從大到小;第二下:反過來;第三下:還原成原本的順序。
|
|
21
23
|
- 排序箭頭滑過標題才顯示;正在排序的欄位一直顯示箭頭,標題變成 `accent-text`。
|
|
22
24
|
- 不能排序的欄位設 `sortable: false`;排序依據和顯示內容不同時用 `sortValue`。
|
|
25
|
+
- 多欄排序(例如先依程式、再依 ΔT):第一層決定順序,第一層相同的列才看第二層,再相同時照資料原本的順序。預設不限層數(最多就是能排序的欄位數);頁面要限制時給 `maxSort`。
|
|
26
|
+
- Shift+點標題(鍵盤是 Shift+Enter):把這一欄加成下一層;再按一次反過來,第三次移除。不按 Shift 點標題時,照上面的規則換成只排這一欄。
|
|
27
|
+
- 標題:有兩層以上時,排序中的標題在箭頭後面寫它是第幾層(小字);螢幕閱讀器念「ΔT,第 2 排序,由大到小」。`aria-sort` 只放在第一層的標題上。
|
|
28
|
+
- 工具列「欄位」左邊的「排序」按鈕直接寫目前的排序,例如「排序:程式 ↑、ΔT ↓」,太長時用「…」省略;手機上寫「排序」加層數。點開是和「篩選」相同的彈出框:每層一列,拖曳握把(鍵盤 Alt+↑ ↓)調順序、「由小到大/由大到小」切換方向、✕ 移除,下面「再依…」展開「再依哪一欄」與還沒排序的欄位,點一欄加成下一層;右上角「清除全部」。手機的卡片沒有標題可以點,用這個按鈕排序。
|
|
29
|
+
- 每次改排序都用 `announce` 念出完整的排序,例如「依 程式 由小到大,再依 ΔT 由大到小排序」。
|
|
30
|
+
- `defaultSort={[{ key: 'prog' }, { key: 'dt', dir: 'desc' }]}`:一開始的排序;沒給 `dir` 時照點標題的第一下(文字從小到大、數字從大到小)。`resetKey` 換了時回到它。
|
|
31
|
+
- 排序寫進網址:`?sort=prog,-dt`(依層級順序,`-` 是由大到小),有 `urlKey` 時是 `?procs.sort=…`,和搜尋、篩選一起由 `urlSync` 控制。和 `defaultSort` 相同時不寫;有 `defaultSort` 而全部清除時寫 `?sort=`,重新整理後維持沒有排序。網址裡不存在或不能排序的欄位會略過。
|
|
23
32
|
|
|
24
33
|
## 勾選與操作
|
|
25
34
|
|
|
@@ -40,6 +49,7 @@
|
|
|
40
49
|
- 沒有結果時顯示一句話,再加「清除篩選」按鈕。
|
|
41
50
|
- 條件寫進網址(`?status=doing,review&q=…`),重新整理或分享連結時保留;同一頁有兩個表格時用 `urlKey` 分開;`urlSync={false}` 關掉。
|
|
42
51
|
- 換成另一份資料(例如切換專案)時,給新的 `resetKey`:搜尋、篩選、排序、頁碼、勾選、摘要和顯示的欄位都回到預設。只換內容、條件要保留時不用給。
|
|
52
|
+
- 高度:沒有分頁的表格最高 560 px,超過時在表格內捲動,表頭固定在上方;有頁碼的表格不限高度,跟著頁面捲動。捲到表格內的底端後,滾輪接著捲動整頁。
|
|
43
53
|
- 分頁:頁碼,每頁 10 筆(`pageSize`),左下顯示「第 1–10 筆,共 24 筆」。只有一頁時不顯示這一行和頁碼:右上的「6 / 6 筆」已經寫了筆數,同一件事只說一次。
|
|
44
54
|
|
|
45
55
|
## 看情況決定的功能
|
|
@@ -54,6 +64,12 @@
|
|
|
54
64
|
## 欄位顯示
|
|
55
65
|
|
|
56
66
|
- 工具列右邊的「欄位」按鈕可以隱藏或顯示欄位,第一欄不能隱藏。`columnMenu={false}` 關掉。
|
|
67
|
+
- 工具列的順序:搜尋框、「篩選」,右邊是筆數、複製、「排序」、「欄位」、放大。怎麼排看的是表格自己的寬度(container query),不是視窗寬度,所以旁邊開著面板的表格在大螢幕上也照窄的排:
|
|
68
|
+
- 760 px 以上:一列。放不下時「排序」按鈕的文字先用「…」省略,不換行。
|
|
69
|
+
- 760 px 以下:搜尋框一列,其他按鈕一列(「篩選」靠左,筆數和其他按鈕靠右)。
|
|
70
|
+
- 480 px 以下:「排序」只寫「排序」加層數;同時有複製、「欄位」、放大時(不是手機),「篩選」「排序」「欄位」只留圖示和數字,名稱仍在按鈕的無障礙名稱裡。連這樣都放不下才換行。
|
|
71
|
+
- 沒有搜尋框(`search: false`)時,標題和工具同一列:有 `caption` 時標題在左、按鈕在右;直接放在 Card 標題下面時,按鈕放進 Card 的標題列。標題剩不到約 12 個字寬時,按鈕換到標題下一列、靠右。
|
|
72
|
+
- DataTable 填滿父元素的寬度(量寬度需要),不會依內容縮小。
|
|
57
73
|
- 一開始不顯示的欄位設 `hidden: true`(預設 `false`):仍列在「欄位」選單裡,沒有勾選,使用者勾選後顯示。給新的 `resetKey` 時,所有欄位回到預設(`hidden: true` 的欄位又隱藏,使用者關掉的欄位又顯示)。第一欄一定顯示,設了也沒有作用;沒有「欄位」選單時(`columnMenu={false}`,或表格只有 2 欄以下)使用者打不開,開發時 console 會警告。手機不顯示「欄位」按鈕,所以手機上這些欄位一直隱藏。
|
|
58
74
|
|
|
59
75
|
## 欄寬、放大與複製
|
|
@@ -67,8 +83,8 @@
|
|
|
67
83
|
- 拖過之後,格子裡不能換行的內容(路徑)不再自動加寬欄位:讀者給的寬度優先。
|
|
68
84
|
- `widthKey` 把拖出的寬度存在 localStorage(`ui-dt-width:<widthKey>`),重新整理後還在;讀寫失敗時照常運作,只是不記住。`resetKey` 不會清掉它(那是讀者的偏好);Enter 或雙擊回到預設時一併清掉。
|
|
69
85
|
- 不到 600 px 的卡片與觸控螢幕不顯示邊框;記住的寬度保留給桌機。
|
|
70
|
-
- 放大表格(`zoom
|
|
71
|
-
- 複製成 Markdown(`copy
|
|
86
|
+
- 放大表格(`zoom`,預設開):工具列最右邊一個「放大表格」圖示,在最寬 1200 px 的對話框裡顯示同一張表,連同工具列與頁碼。搜尋、篩選、排序、分頁、展開和頁面上是同一份狀態,關閉後頁面上的表格維持對話框裡的樣子。對話框裡拖拉的欄寬只在對話框裡,不改頁面上的寬度。點對話框裡的連結(函式名稱、InlineCode 位置)會先做連結的事,再關閉對話框;Ctrl、⌘、Shift 或中鍵點擊在新分頁開啟,對話框不關。標題是 `caption` 或 `label`。手機上不顯示。
|
|
87
|
+
- 複製成 Markdown(`copy`,預設開):工具列筆數右邊一個只有圖示的複製按鈕(tooltip「複製成 Markdown」),複製後 2 秒變成勾,提示「已複製」。手機上不顯示。
|
|
72
88
|
- 內容:搜尋與篩選後留下的所有列(所有頁,不只這一頁),照目前的排序;欄位是目前顯示的欄,依顯示順序。
|
|
73
89
|
- 每格的文字依序用欄位的 `fullText`、`searchText`,再其次是欄位值(含格式與單位)。`|` 會跳脫,換行變成空格。
|
|
74
90
|
- `copyText: (rows) => string` 自訂內容,拿到同樣的列(例如把位置寫成 `harness/controller.py:540`、函式帶 `fn:` 連結)。
|
|
@@ -98,7 +114,7 @@
|
|
|
98
114
|
- 觸控裝置(`pointer: coarse`)不用 Tooltip:點一下會留在畫面上蓋住其他列。用左邊的箭頭看全文。
|
|
99
115
|
- 卡片裡的 Badge 自動改成「圓點加文字」:沒有底色和陰影,文字用該狀態的文字色。
|
|
100
116
|
- 勾選框在標題列最左邊,一直顯示;操作按鈕一直顯示,不用滑過。
|
|
101
|
-
-
|
|
117
|
+
- 工具列在手機上:搜尋框一列,「篩選」、筆數和「排序」一列;「欄位」、複製和放大不顯示。
|
|
102
118
|
- 筆數和頁碼文字只有數字用 Geist Mono,「筆」等文字用一般字體;有單位的數字欄也一樣(「1 層」)。
|
|
103
119
|
|
|
104
120
|
## 無障礙
|
package/docs/InlineCode.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
句子裡的程式碼、檔案路徑和 ID。
|
|
4
4
|
|
|
5
5
|
- 外觀:淺灰底(`surface-sub`)、Geist Mono、字級是周圍文字的 0.875 倍,圓角 4 px,左右 5 px 內距。
|
|
6
|
+
- 在表格裡(DataTable 的格子與展開詳細、Markdown 表格)改成白底(`surface`)加 1 px 框線(`line`):表格的偶數列也是 `surface-sub`,灰底在那裡看不出範圍。
|
|
6
7
|
- 指向某個地方的(例如檔案和行號 `child.c:86`)是連結:強調文字色(`accent-text`)加底線,給 `href` 或 `onClick`。
|
|
7
8
|
- 24 個字元以內的不會從中間斷行(例如 `h->post_send` 不會斷成 `h-` 和 `>post_send`);更長的路徑才會換行。
|
|
8
9
|
- Geist Mono 只用在程式碼本身,周圍的中文句子維持一般字體。
|
package/docs/guidelines.md
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
- 例外:句子裡的文字連結和名詞說明(句中的 `Term` 和 InlineCode 連結)。Term 和 InlineCode 連結會自己判斷:旁邊有文字就是句中;單獨出現時(例如 Tag 裡的關係標籤、圖例、卡片裡單獨一個位置連結)照樣擴大到 48 px,照 WCAG 2.2 的行內例外,不擴大,以免蓋到上下行。
|
|
95
95
|
- Badge:浮起 Chip,前置標記為進度圓圈,5 種狀態,高度 32 px(`chip-height`),文字用主要文字色。放在卡片上時改成圓點加文字(沒有底色和陰影,文字用狀態文字色)。
|
|
96
96
|
- Alert:頂部色條(3 px,`alert-bar`),只有資訊與成功可以關閉,動作用外框按鈕。
|
|
97
|
-
-
|
|
97
|
+
- 表格:標題(`caption`)17 px 粗體,和卡片標題同一個大小;灰底粗體表頭(捲動時固定);列高 48 px;斑馬紋加格線;滑過列用強調淺底(`accent-soft`);數字靠右;單位寫在每格數字後面;欄位標題不換行;排序箭頭滑過才顯示,點第三下還原;多欄排序用 Shift+點標題,或工具列直接寫出目前排序的「排序」按鈕(「排序:程式 ↑、ΔT ↓」)與彈出框,排序寫進網址;勾選框滑過才顯示,勾選後表頭換成批次操作列;換篩選、搜尋、檢視或摘要後看不到的已選列自動取消勾選,批次操作只處理畫面上的列;單筆操作滑過才顯示圖示,跟著表格捲動;同一列的連結已經做得到的事不再加單筆操作按鈕;搜尋所有欄位並標示,「篩選」按鈕(按鈕上顯示條件數、勾選就生效、選項旁有筆數),右側顯示結果筆數,沒有結果時加「清除篩選」,條件寫進網址,可以隱藏欄位;合計列、固定第一欄、常用檢視、同一欄位多選依情況決定;頁碼分頁,只有一頁時不顯示「第 1–6 筆,共 6 筆」和頁碼(右上已經有筆數)。手機寬度(小於 600 px)時,所有列放在同一張卡片裡用分隔線隔開;每列第一行是標題列(標題欄位加狀態),其他欄位名稱在上(12 px)、值在下並靠左,欄位之間 4 px;操作按鈕放在標題列最右邊;長文字最多 2 行加「顯示全部」;工具列依表格自己的寬度排:760 px 以上一列,以下搜尋框一列、其他按鈕一列,沒有搜尋框時和標題同一列;手機工具列不顯示「欄位」、複製和放大按鈕。有頁碼的表格不限高度,沒有分頁的表格最高 560 px 在表格內捲動,捲到底後滾輪接著捲整頁。電腦上長文字一行,被截掉的格子滑過或用 Tab 移到時用 Tooltip 顯示全文。有長文字欄位時每列最左邊有展開箭頭,展開後在列的下方列出全文;點列上任何地方也會展開(連結、按鈕除外)。容器比表格窄時維持原欄寬左右捲動,右緣有漸層,下方有捲動提示,和 LayerGraph 一樣。表頭的欄位邊框可以拖拉調整欄寬(`widthKey` 記住);工具列最右邊的「放大表格」圖示在全寬對話框裡看同一張表,點裡面的連結先關閉對話框;工具列有只用圖示的「複製成 Markdown」,複製篩選後的全部列。這三項和 Markdown 表格共用同一份實作。
|
|
98
98
|
- 結果清單:上方用分段控制當摘要(全部加各狀態,附筆數,筆數帶單位,例如「錯誤 4 筆」),點了就篩選;排序看情況,預設照資料原本的順序。
|
|
99
99
|
- 載入:骨架,立即顯示(延遲 0 ms)。
|
|
100
100
|
- 空狀態:引導步驟,下方放次要按鈕;搜尋沒有結果時只顯示一句話。
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
|
|
137
137
|
- 日期 `2026/11/04(三)`:年份一律顯示,加星期;時間 24 小時制;一週內用相對時間(「2 小時前」、「昨天」)。
|
|
138
138
|
- 大數字只有 KPI 卡片縮寫(萬、億);金額 `NT$ 1,280`;負數用減號;小數位數依單位(金額 0、百分比 1、容量 1)。表格和 KPI 卡片的 `percent` 只決定一位小數,% 一律用 `unit: '%'` 加上。
|
|
139
|
-
- 行內程式碼:句子裡的程式碼、檔案路徑和 ID 用淺灰底等寬字(`InlineCode`,底色 `surface-sub
|
|
139
|
+
- 行內程式碼:句子裡的程式碼、檔案路徑和 ID 用淺灰底等寬字(`InlineCode`,底色 `surface-sub`;在表格裡改成 `surface` 底加 1 px `line` 框線,斑馬紋的兩種列上都看得出範圍);指向檔案位置的(例如 `child.c:86`)是連結,強調文字色加底線。含反引號的文字用 `CodeText` 轉換,不顯示反引號。
|
|
140
140
|
- 檔案大小 `format.fileSize()`:未滿 1 MB 寫整數 KB(「186 KB」),以上寫一位小數的 MB 或 GB(「54.9 MB」)。
|
|
141
141
|
- 介面文字都經過 `t()` 可以翻譯;日期和數字都經過 `format`,其他語系自動用該語系的習慣。細節見元件「Format」。
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "SeanYeh's design system: typed React components on Base UI, styled with design tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "^19.3.1",
|
|
50
50
|
"tsdown": "^0.23.7",
|
|
51
51
|
"vitest": "^5.1.0",
|
|
52
|
-
"@seanyeh77/tokens": "^0.
|
|
52
|
+
"@seanyeh77/tokens": "^0.24.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@base-ui/react": "^1.9.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-entry-CKLBdBpY.js","names":[],"sources":["../src/i18n.ts","../src/format.ts"],"sourcesContent":["/* ---------- i18n and formats ----------\n Every built-in string is the zh-TW text passed through tr(); other languages come from UI.addMessages().\n Dates and numbers go through UI.format, which uses Intl for the current locale. The zh-TW rules are the\n ones the design system chose; other locales use their own conventions from Intl. */\ninterface I18nState {\n locale: string;\n currency: string;\n messages: Record<string, Record<string, string>>;\n}\n\nexport const I18N: I18nState = {\n locale: 'zh-TW',\n currency: 'TWD',\n messages: {\n en: {\n 'Email 或帳號': 'Email or username',\n '{label}:{a} 到 {b}': '{label}: {a} to {b}',\n '{n} 個百分點': '{n} pts',\n 上一頁: 'Previous page',\n 上個月: 'Previous month',\n '上傳失敗,請再試一次。': 'Upload failed. Try again.',\n 下一頁: 'Next page',\n 下個月: 'Next month',\n 主要導覽: 'Main navigation',\n 主題: 'Theme',\n 今天: 'Today',\n 全選: 'Select all',\n 全部: 'All',\n 全部標為已讀: 'Mark all as read',\n '共 {n} 筆': '{n} items',\n 分頁: 'Pagination',\n 刪除: 'Delete',\n 危險操作: 'Danger zone',\n 取消選取: 'Clear selection',\n '可以直接輸入,例如 2026/11/14': 'Type a date, e.g. 2026/11/14',\n 回上一頁: 'Go back',\n 回首頁: 'Go home',\n '完成 ✓': 'Done ✓',\n 密碼: 'Password',\n 展開側邊欄: 'Expand sidebar',\n '已選 {n} 筆': '{n} selected',\n 帳號: 'Username',\n 強調色: 'Accent color',\n '忘記密碼?': 'Forgot password?',\n 找不到符合的選項: 'No matching options',\n '拖放檔案,或 ': 'Drop files here, or ',\n 搜尋: 'Search',\n 操作: 'Actions',\n 收合側邊欄: 'Collapse sidebar',\n 放棄: 'Discard',\n '放棄未儲存的變更?': 'Discard unsaved changes?',\n '{label}?': '{label}?',\n '{name} 上傳進度': 'Upload progress of {name}',\n 左右方向鍵查看每一項的數值: 'Use ← and → to read each value',\n 左右方向鍵查看每一個時間點的數值: 'Use ← and → to read each point',\n '新增「{q}」': 'Add “{q}”',\n '日期格式不正確,請寫成 2026/11/14': 'Invalid date. Use 2026/11/14.',\n 更多操作: 'More actions',\n 更多: 'More',\n 左右滑動: 'Scroll sideways',\n 跳到主要內容: 'Skip to main content',\n 說明: 'Explain',\n 開啟導覽: 'Open navigation',\n 顯示方式: 'View',\n 顯示線上文字: 'Show line labels',\n 線上文字: 'Line labels',\n 圖: 'Diagram',\n 清單: 'List',\n 項目: 'Items',\n 關係: 'Relations',\n 已展開: 'Expanded',\n 已收合: 'Collapsed',\n '已展開,{n} 個子項目': 'Expanded, {n} items',\n '顯示 {n} 筆': 'Showing {n} rows',\n '找到 {n} 筆結果': '{n} results',\n '第 {a} 步,共 {b} 步': 'Step {a} of {b}',\n '說明 {name}': 'Explain {name}',\n 程式碼: 'Code',\n '第 {n} 行': 'Line {n}',\n '第 {n} 層': 'Level {n}',\n 第一行: 'First line',\n 最後一行: 'Last line',\n '上 20 行': '20 lines up',\n '下 20 行': '20 lines down',\n 上一段: 'Previous section',\n 下一段: 'Next section',\n '上一行/下一行': 'Previous / next line',\n '上一個/下一個連結': 'Previous / next link',\n 回到這一行: 'Back to the line',\n 開啟: 'Open',\n '{name},第 {n} 行': '{name}, line {n}',\n '顯示 {n} 筆,另有 {m} 筆,請輸入更長的字': 'Showing {n}, {m} more: type more to narrow it down',\n '縮排 {n} 格': 'indented {n} spaces',\n '縮排 {n} 個 tab': 'indented {n} tabs',\n '縮排 {a} 個 tab、{b} 格': 'indented {a} tabs and {b} spaces',\n 向右捲動: 'Scroll right',\n 筆: 'rows',\n '1 筆': '1 row',\n // Separators: full-width in Chinese, ASCII and a space in English.\n ',': ', ',\n ':': ': ',\n '。': '. ',\n '來自 {from},{label}': 'From {from}, {label}',\n '{from} 到 {to},{what}': '{from} to {to}, {what}',\n 到: 'to',\n '{label}({inferred})': '{label} ({inferred})',\n 調整面板寬度: 'Resize the panel',\n 調整架構圖高度: 'Resize the diagram height',\n '調整「{name}」欄寬': 'Resize the column {name}',\n 放大表格: 'Enlarge the table',\n 表格: 'Table',\n '{n} px': '{n} px',\n '主要區域 {a} px,面板 {b} px': 'Main area {a} px, panel {b} px',\n 'repo 外': 'outside the repo',\n 詳細: 'Details',\n '展開 {name}': 'Expand {name}',\n '收合 {name}': 'Collapse {name}',\n 字: 'characters',\n 'C 語言': 'C',\n 程式語言: 'Language',\n 全部頁面: 'All pages',\n '最近 30 天': 'Last 30 days',\n '最近 7 天': 'Last 7 days',\n 期間: 'Period',\n 未讀: 'Unread',\n 本月: 'This month',\n 沒有符合的資料: 'No matching data',\n 沒有通知: 'No notifications',\n 清除: 'Clear',\n 清除搜尋: 'Clear search',\n 登入: 'Sign in',\n 發生錯誤: 'Something went wrong',\n '移除 {name}': 'Remove {name}',\n '第 {a}–{b} 筆,共 {n} 筆': '{a}–{b} of {n}',\n 繼續編輯: 'Keep editing',\n '自訂強調色(色碼)': 'Custom accent color (hex)',\n '色碼格式不正確,例如 #2457d6': 'Invalid hex, e.g. #2457d6',\n 設定分類: 'Settings sections',\n 請輸入密碼: 'Enter your password',\n 請輸入帳號: 'Enter your username',\n 請選擇: 'Select',\n 路徑: 'Breadcrumb',\n 較上週: 'vs last week',\n 載入中: 'Loading',\n '輸入 # 加 6 碼': 'Enter # and 6 digits',\n 通知: 'Notifications',\n '通知,{n} 則未讀': 'Notifications, {n} unread',\n '選取第 {n} 筆': 'Select row {n}',\n 選擇日期: 'Choose date',\n 選擇期間: 'Choose period',\n 選擇檔案: 'choose files',\n 重試: 'Retry',\n 開啟日曆: 'Open calendar',\n 關閉: 'Close',\n '關閉後,剛才的修改不會保留。': 'If you close now, your changes will be lost.',\n 關閉提示: 'Dismiss',\n 隱藏密碼: 'Hide password',\n 顯示密碼: 'Show password',\n '(今天)': ' (today)',\n 伺服器暫時無法回應: 'The server is not responding',\n 找不到這個頁面: 'Page not found',\n 沒有權限查看這個頁面: 'You do not have access to this page',\n '網址可能打錯了,或這個頁面已經移除。': 'The address may be wrong, or the page has been removed.',\n '這個問題已經記錄下來,請稍後重新整理再試。': 'The problem has been logged. Refresh the page later.',\n '請向管理員申請權限,或切換成有權限的帳號。': 'Ask an admin for access, or switch to an account that has it.',\n 自動: 'Auto',\n 淺色: 'Light',\n 深色: 'Dark',\n 藍: 'Blue',\n 靛: 'Indigo',\n 紫: 'Purple',\n 桃紅: 'Pink',\n 紅: 'Red',\n 橘: 'Orange',\n 綠: 'Green',\n 青: 'Teal',\n 草稿: 'Draft',\n 進行中: 'In progress',\n 審核中: 'In review',\n 完成: 'Done',\n 失敗: 'Failed',\n 檢視: 'Views',\n '{n} / {total} 筆': '{n} / {total}',\n '{n} / {total} {unit}': '{n} / {total} {unit}',\n '{n} / {total}': '{n} / {total}',\n '{total} {unit}中的 {n} {unit}': '{n} of {total} {unit}',\n '{total} 中的 {n}': '{n} of {total}',\n 欄位: 'Columns',\n 顯示的欄位: 'Visible columns',\n 清除篩選: 'Clear filters',\n 清除全部: 'Clear all',\n 篩選: 'Filter',\n 最低: 'Min',\n 最高: 'Max',\n '合計 {n} 筆': 'Total: {n}',\n 平均: 'Avg',\n '選取 {name}': 'Select {name}',\n '{n} 個新': '{n} new',\n '{n} 個檔案': '{n} files',\n '下載 {name}': 'Download {name}',\n '已選 {n} 個檔案': '{n} files selected',\n '共 {size}': '{size} total',\n 清除選取: 'Clear selection',\n 下載: 'Download',\n 全部展開: 'Expand all',\n 全部收合: 'Collapse all',\n 這裡還沒有檔案: 'No files here yet',\n 顯示全部: 'Show all',\n 收合: 'Show less',\n 依狀態篩選: 'Filter by status',\n 展開: 'Expand',\n 沒有項目: 'Nothing here',\n 即時: 'Live',\n 已過期: 'Stale',\n 離線: 'Offline',\n 切換專案: 'Switch project',\n '切換專案,目前是 {name}': 'Switch project, now {name}',\n 推測: 'Inferred',\n '{n} 個項目': '{n} items',\n '1 個項目': '1 item',\n '{a} 個項目使用,共 {b} 次': 'Used {b} times by {a} items',\n 共用項目: 'Shared',\n 次數越多線越粗: 'Thicker lines mean more often',\n 架構圖: 'Architecture',\n '{n} 次': '{n} calls',\n '1 次': '1 call',\n 原始碼: 'Source',\n '顯示全部 {n} 行': 'Show all {n} lines',\n '只顯示第 {n} 行前後': 'Show only around line {n}',\n '無法載入 {name} 的子項目': 'Could not load the children of {name}',\n '找不到符合「{q}」的結果': 'No results for “{q}”',\n 輸入名稱開始搜尋: 'Type a name to search',\n 搜尋中: 'Searching',\n 搜尋結果: 'Search results',\n 最近開啟: 'Recently opened',\n 選擇: 'Select',\n 打開: 'Open',\n 取消: 'Cancel',\n 略過: 'Skip',\n 上一步: 'Back',\n 下一步: 'Next',\n 建議修正: 'Suggested fix',\n 複製修正: 'Copy fix',\n 已複製: 'Copied',\n 複製程式碼: 'Copy code',\n '原本:': 'Before: ',\n '改成:': 'After: ',\n 關閉說明: 'Close explanation',\n '(說明)': ' (explain)',\n '搜尋({k})': 'Search ({k})',\n 確定的關係: 'Confirmed',\n 推測的關係: 'Inferred',\n 專案宣告的關係: 'Declared by the project',\n 宣告: 'Declared',\n 外部項目: 'External',\n },\n },\n};\n\nfunction msgsFor(loc: string): Record<string, string> | null {\n return I18N.messages[loc] || I18N.messages[loc.split('-')[0]] || null;\n}\n\n/** Translates a built-in zh-TW string into the current locale; {name} placeholders take vars. */\nexport function tr(key: string, vars?: Record<string, string | number>): string {\n // zh-TW (and zh-Hant) is the source text; other Chinese locales (zh-CN) use the messages an app adds for them.\n const m = isZhTW() ? null : msgsFor(I18N.locale);\n const out = m?.[key] ?? key;\n return vars ? out.replace(/\\{(\\w+)\\}/g, (a, k: string) => (vars[k] !== undefined ? String(vars[k]) : a)) : out;\n}\n\n/** A count's unit: a function gets the count (for plurals, 「1 row」「2 rows」); a string goes through tr(), and for 1\n * the message 「1 <unit>」 is used when the locale has one (「1 筆」 → 「1 row」), without the number. */\nexport type CountUnit = string | ((n: number) => string);\nexport function unitFor(unit: CountUnit | undefined, n: number): string {\n if (!unit) return '';\n if (typeof unit === 'function') return unit(n);\n if (n === 1) {\n const one = tr('1 ' + unit);\n if (one !== '1 ' + unit) return one.replace(/^1\\s*/, '');\n }\n return tr(unit);\n}\n\n/** Switches the interface language and, optionally, the currency used by format.money. */\nexport function setLocale(locale: string, opts?: { currency?: string }): void {\n I18N.locale = locale || 'zh-TW';\n if (opts?.currency) I18N.currency = opts.currency;\n if (typeof document !== 'undefined') document.documentElement.setAttribute('lang', I18N.locale);\n}\n\n/** Adds or overrides translations for a locale. Keys are the zh-TW strings. */\nexport function addMessages(locale: string, dict: Record<string, string>): void {\n I18N.messages[locale] = { ...I18N.messages[locale], ...dict };\n}\n\nexport const isZhTW = (): boolean => /^zh-(TW|Hant)/i.test(I18N.locale);\n","import { I18N, isZhTW, tr } from './i18n';\n\n/* Dates and numbers for the current locale (setLocale). zh-TW follows the design system's rules\n (2026/11/04(三), 24-hour clock, NT$ 1,280, 萬 and 億 in KPI cards); other locales use Intl's conventions. */\n\nexport type Decimals = number | 'money' | 'percent' | 'size' | 'count';\n\nconst DECIMALS = { money: 0, percent: 1, size: 1, count: 0 } as const;\n\nconst pad2 = (n: number): string => String(n).padStart(2, '0');\n\nfunction locale(): string {\n return I18N.locale;\n}\n\n/** zh-TW: 2026/11/04(三). Other locales: their short date with weekday. */\nfunction date(d: Date | null | undefined, o: { weekday?: boolean; long?: boolean } = {}): string {\n if (!d) return '';\n const wd = o.weekday !== false;\n if (o.long) return new Intl.DateTimeFormat(I18N.locale, { year: 'numeric', month: 'long', day: 'numeric', weekday: wd ? 'long' : undefined }).format(d);\n if (isZhTW()) return fmtDate(d) + (wd ? `(${new Intl.DateTimeFormat('zh-TW', { weekday: 'narrow' }).format(d)})` : '');\n return new Intl.DateTimeFormat(I18N.locale, { year: 'numeric', month: '2-digit', day: '2-digit', weekday: wd ? 'short' : undefined }).format(d);\n}\n\n/** zh-TW: 24-hour 15:57. Other locales: their own clock. */\nfunction time(d: Date | null | undefined): string {\n if (!d) return '';\n return new Intl.DateTimeFormat(\n I18N.locale,\n isZhTW() ? { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' } : { hour: 'numeric', minute: '2-digit' },\n ).format(d);\n}\n\nfunction dateTime(d: Date | null | undefined, o?: { weekday?: boolean }): string {\n return d ? `${date(d, o)} ${time(d)}` : '';\n}\n\n/** Within 7 days: 「2 小時前」、「昨天」. Older: full date and time. Pass now to test. */\nfunction relative(d: Date | null | undefined, now: Date = new Date()): string {\n if (!d) return '';\n const s = (now.getTime() - d.getTime()) / 1000;\n if (s < 0 || s >= 604800) return dateTime(d);\n const rt = new Intl.RelativeTimeFormat(I18N.locale, { numeric: 'auto' });\n if (s < 60) return rt.format(0, 'second');\n if (s < 3600) return rt.format(-Math.floor(s / 60), 'minute');\n if (s < 86400) return rt.format(-Math.floor(s / 3600), 'hour');\n return rt.format(-Math.floor(s / 86400), 'day');\n}\n\nfunction month(d: Date): string {\n return new Intl.DateTimeFormat(I18N.locale, { year: 'numeric', month: 'long' }).format(d);\n}\n\n/** Week starts on Sunday for zh-TW; other locales use Intl's week info when the browser has it. */\nfunction firstDay(): number {\n if (isZhTW()) return 0;\n try {\n const l = new Intl.Locale(I18N.locale) as Intl.Locale & { getWeekInfo?: () => { firstDay: number }; weekInfo?: { firstDay: number } };\n const w = l.getWeekInfo ? l.getWeekInfo() : l.weekInfo;\n if (w?.firstDay) return w.firstDay % 7;\n } catch {\n /* older browsers have no week info */\n }\n return 0;\n}\n\n/** Narrow weekday names, starting from firstDay(). */\nfunction weekdays(): string[] {\n const fd = firstDay();\n const f = new Intl.DateTimeFormat(I18N.locale, { weekday: 'narrow' });\n // 2026/11/01 is a Sunday.\n return Array.from({ length: 7 }, (_, i) => f.format(new Date(2026, 10, 1 + ((fd + i) % 7))));\n}\n\n/** Decimals by unit: money 0, percent 1, size 1, count 0; pass a number to force it. */\nfunction number(v: number, dec?: Decimals): string {\n const dd = typeof dec === 'number' ? dec : dec ? DECIMALS[dec] : 0;\n return new Intl.NumberFormat(I18N.locale, { minimumFractionDigits: dd, maximumFractionDigits: dd }).format(v);\n}\n\nfunction percent(v: number, dec = 1): string {\n return new Intl.NumberFormat(I18N.locale, { style: 'percent', minimumFractionDigits: dec, maximumFractionDigits: dec }).format(v / 100);\n}\n\n/** Only KPI cards abbreviate: 1,284 萬 in zh-TW (萬、億), 12.8M in English.\n * like: format v with the unit and decimals that `like` gets, so a counting KPI keeps its width. */\nfunction compact(v: number, like?: number): string {\n const ref = like ?? v;\n if (Math.abs(ref) < 1e4) return number(v);\n if (/^zh/i.test(I18N.locale)) {\n const a = Math.abs(ref);\n const [unit, div, maxDec] = a >= 1e8 ? (['億', 1e8, 2] as const) : (['萬', 1e4, 1] as const);\n const finalStr = new Intl.NumberFormat(I18N.locale, { maximumFractionDigits: maxDec }).format(a / div);\n const sign = v < 0 ? '-' : '';\n if (like === undefined) return `${sign}${finalStr} ${unit}`;\n const digits = (finalStr.split('.')[1] || '').length;\n return `${sign}${new Intl.NumberFormat(I18N.locale, { minimumFractionDigits: digits, maximumFractionDigits: digits }).format(Math.abs(v) / div)} ${unit}`;\n }\n const nf = new Intl.NumberFormat(I18N.locale, { notation: 'compact', maximumFractionDigits: 1 });\n if (like === undefined) return nf.format(v);\n const parts = nf.formatToParts(ref);\n let num = '';\n let dec = '';\n for (const pt of parts) {\n if (pt.type === 'integer') num += pt.value;\n if (pt.type === 'fraction') {\n num += '.' + pt.value;\n dec = pt.value;\n }\n }\n const mant = parseFloat(num) || 1;\n const scale = 10 ** Math.round(Math.log10(Math.abs(ref) / mant));\n const inner = new Intl.NumberFormat(I18N.locale, { minimumFractionDigits: dec.length, maximumFractionDigits: dec.length }).format(Math.abs(v) / scale);\n let done = false;\n const body = parts\n .map((pt) => {\n if (pt.type === 'integer' || pt.type === 'group' || pt.type === 'decimal' || pt.type === 'fraction') {\n if (done) return '';\n done = true;\n return inner;\n }\n return pt.value;\n })\n .join('');\n return (v < 0 && ref >= 0 ? '-' : '') + body;\n}\n\n/** zh-TW with TWD: NT$ 1,280, negatives -NT$ 1,280. Other locales and currencies: Intl's own symbol and order. */\nfunction money(v: number, o: { currency?: string; compact?: boolean; like?: number } = {}): string {\n const cur = o.currency || I18N.currency;\n const body = o.compact ? compact(Math.abs(v), o.like !== undefined ? Math.abs(o.like) : undefined) : number(Math.abs(v), 'money');\n if (isZhTW() && cur === 'TWD') return `${v < 0 ? '-' : ''}NT$ ${body}`;\n if (o.compact) return `${v < 0 ? '-' : ''}${body} ${cur}`;\n return new Intl.NumberFormat(I18N.locale, {\n style: 'currency',\n currency: cur,\n currencyDisplay: 'narrowSymbol',\n minimumFractionDigits: 0,\n maximumFractionDigits: cur === 'TWD' || cur === 'JPY' ? 0 : 2,\n }).format(v);\n}\n\n/** Bytes to 「186 KB」「54.9 MB」「1.2 GB」. */\nexport function fileSize(b: number | null | undefined): string {\n if (b == null || Number.isNaN(b)) return '';\n // An empty file is 0 KB; anything else at least 1 KB.\n if (b < 1048576) return number(b === 0 ? 0 : Math.max(1, Math.round(b / 1024))) + ' KB';\n if (b < 1073741824) return number(b / 1048576, 1) + ' MB';\n return number(b / 1073741824, 1) + ' GB';\n}\n\n/** Shortens a path: keeps the first segment and the last two, 「src/…/hooks/ops.c:58」. */\nfunction path(p: string | null | undefined, o: { head?: number; tail?: number } = {}): string {\n const head = o.head ?? 1;\n const tail = o.tail ?? 2;\n const parts = String(p ?? '').split('/');\n return parts.length > head + tail ? `${parts.slice(0, head).join('/')}/…/${parts.slice(-tail).join('/')}` : String(p ?? '');\n}\n\n/** A part of a whole, as shown: 「1 / 1 個」「6 / 6 筆」, or 「1 / 5」 without a unit. Give screen readers\n * `fractionLabel` with it: they read the slash as 「斜線」. */\nfunction fraction(n: number, total: number, unit?: string): string {\n return tr(unit ? '{n} / {total} {unit}' : '{n} / {total}', { n: number(n), total: number(total), unit: unit ?? '' });\n}\n\n/** The same fraction as read aloud: 「1 個中的 1 個」「6 筆中的 6 筆」, or 「5 中的 1」 without a unit (English:\n * 「1 of 1」). For `aria-label`, or for visually hidden text beside the shown fraction. */\nfunction fractionLabel(n: number, total: number, unit?: string): string {\n return tr(unit ? '{total} {unit}中的 {n} {unit}' : '{total} 中的 {n}', { n: number(n), total: number(total), unit: unit ?? '' });\n}\n\n/** Every date, number, amount, size and path shown in the UI goes through these. */\nexport const format = {\n locale,\n date,\n time,\n dateTime,\n relative,\n month,\n weekdays,\n firstDay,\n number,\n percent,\n compact,\n money,\n fileSize,\n path,\n fraction,\n fractionLabel,\n};\n\n/* Calendar helpers (local dates, no time). */\nexport const fmtDate = (d: Date | null | undefined): string => (d ? `${d.getFullYear()}/${pad2(d.getMonth() + 1)}/${pad2(d.getDate())}` : '');\n\nexport function parseDate(s: string | null | undefined): Date | null {\n const m = /^(\\d{4})\\/(\\d{1,2})\\/(\\d{1,2})$/.exec(s || '');\n if (!m) return null;\n const d = new Date(+m[1], +m[2] - 1, +m[3]);\n return d.getMonth() === +m[2] - 1 ? d : null;\n}\n\nexport const sameDay = (a: Date | null | undefined, b: Date | null | undefined): boolean =>\n !!a && !!b && a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();\n\nexport const dayAdd = (d: Date, n: number): Date => new Date(d.getFullYear(), d.getMonth(), d.getDate() + n);\n"],"mappings":";AAUA,MAAa,OAAkB;CAC7B,QAAQ;CACR,UAAU;CACV,UAAU,EACR,IAAI;EACF,aAAa;EACb,qBAAqB;EACrB,YAAY;EACZ,KAAK;EACL,KAAK;EACL,eAAe;EACf,KAAK;EACL,KAAK;EACL,MAAM;EACN,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,QAAQ;EACR,WAAW;EACX,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,MAAM;EACN,wBAAwB;EACxB,MAAM;EACN,KAAK;EACL,QAAQ;EACR,IAAI;EACJ,OAAO;EACP,YAAY;EACZ,IAAI;EACJ,KAAK;EACL,SAAS;EACT,UAAU;EACV,WAAW;EACX,IAAI;EACJ,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