@seanyeh77/ui 0.3.0 → 0.4.1
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 +8 -8
- package/dist/bundle.js.map +1 -1
- package/dist/{format-entry-B1gAZnIN.js → format-entry-DDglckmU.js} +2 -1
- package/dist/format-entry-DDglckmU.js.map +1 -0
- package/dist/format.js +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +241 -74
- package/dist/index.js.map +1 -1
- package/dist/styles.css +99 -1
- package/docs/LayerGraph.md +31 -1
- package/docs/Tour.md +4 -0
- package/docs/guidelines.md +3 -1
- package/package.json +2 -2
- package/dist/format-entry-B1gAZnIN.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -4294,7 +4294,11 @@ html.ui-theme-fade * {
|
|
|
4294
4294
|
}
|
|
4295
4295
|
.ui-tour-card {
|
|
4296
4296
|
width: 320px;
|
|
4297
|
-
max-width: calc(100vw -
|
|
4297
|
+
max-width: calc(100vw - 2 * var(--space-3));
|
|
4298
|
+
/* Never taller than the window: the text scrolls, the buttons stay. */
|
|
4299
|
+
max-height: calc(100dvh - 2 * var(--space-3));
|
|
4300
|
+
display: flex;
|
|
4301
|
+
flex-direction: column;
|
|
4298
4302
|
box-sizing: border-box;
|
|
4299
4303
|
padding: var(--space-4);
|
|
4300
4304
|
border-radius: var(--radius-lg);
|
|
@@ -4304,6 +4308,10 @@ html.ui-theme-fade * {
|
|
|
4304
4308
|
line-height: 1.55;
|
|
4305
4309
|
animation: ui-pop-fade 200ms ease both;
|
|
4306
4310
|
}
|
|
4311
|
+
.ui-tour-body {
|
|
4312
|
+
min-height: 0;
|
|
4313
|
+
overflow-y: auto;
|
|
4314
|
+
}
|
|
4307
4315
|
.ui-tour-count {
|
|
4308
4316
|
font-size: 13px;
|
|
4309
4317
|
color: var(--ink-muted);
|
|
@@ -4313,6 +4321,7 @@ html.ui-theme-fade * {
|
|
|
4313
4321
|
font-weight: 700;
|
|
4314
4322
|
}
|
|
4315
4323
|
.ui-tour-actions {
|
|
4324
|
+
flex: 0 0 auto;
|
|
4316
4325
|
display: flex;
|
|
4317
4326
|
align-items: center;
|
|
4318
4327
|
gap: var(--space-2);
|
|
@@ -4862,10 +4871,45 @@ html.ui-theme-fade * {
|
|
|
4862
4871
|
}
|
|
4863
4872
|
|
|
4864
4873
|
/* LayerGraph */
|
|
4874
|
+
.ui-lg-scroller {
|
|
4875
|
+
position: relative;
|
|
4876
|
+
}
|
|
4865
4877
|
.ui-lg-scroll {
|
|
4866
4878
|
overflow-x: auto;
|
|
4867
4879
|
overscroll-behavior-x: contain;
|
|
4868
4880
|
}
|
|
4881
|
+
/* Wider than its box: a fade on the right edge while more is to the right. */
|
|
4882
|
+
.ui-lg-scroller::after {
|
|
4883
|
+
content: '';
|
|
4884
|
+
position: absolute;
|
|
4885
|
+
top: 0;
|
|
4886
|
+
right: 0;
|
|
4887
|
+
bottom: 0;
|
|
4888
|
+
width: 48px;
|
|
4889
|
+
pointer-events: none;
|
|
4890
|
+
background: linear-gradient(to right, transparent, var(--ui-graph-bg, var(--surface)));
|
|
4891
|
+
opacity: 0;
|
|
4892
|
+
transition: opacity 0.15s ease;
|
|
4893
|
+
}
|
|
4894
|
+
.ui-lg-scroller.has-more::after {
|
|
4895
|
+
opacity: 1;
|
|
4896
|
+
}
|
|
4897
|
+
.ui-lg-hint {
|
|
4898
|
+
position: absolute;
|
|
4899
|
+
right: 6px;
|
|
4900
|
+
bottom: 4px;
|
|
4901
|
+
z-index: 3;
|
|
4902
|
+
display: inline-flex;
|
|
4903
|
+
align-items: center;
|
|
4904
|
+
gap: 4px;
|
|
4905
|
+
padding: 2px 8px;
|
|
4906
|
+
border-radius: 999px;
|
|
4907
|
+
background: var(--ink);
|
|
4908
|
+
color: var(--bg);
|
|
4909
|
+
font-size: 12px;
|
|
4910
|
+
line-height: 20px;
|
|
4911
|
+
pointer-events: none;
|
|
4912
|
+
}
|
|
4869
4913
|
.ui-lg-canvas {
|
|
4870
4914
|
position: relative;
|
|
4871
4915
|
margin: 0 auto;
|
|
@@ -4900,6 +4944,60 @@ html.ui-theme-fade * {
|
|
|
4900
4944
|
.ui-lg .is-dim {
|
|
4901
4945
|
opacity: 0.4;
|
|
4902
4946
|
}
|
|
4947
|
+
/* Selectable edges (onSelectEdge): an invisible 12 px path over each line takes clicks and focus. It sits above the lines,
|
|
4948
|
+
under the boxes and labels, and comes after the boxes in tab order. */
|
|
4949
|
+
.ui-lg-hits {
|
|
4950
|
+
position: absolute;
|
|
4951
|
+
left: 0;
|
|
4952
|
+
top: 0;
|
|
4953
|
+
z-index: 1;
|
|
4954
|
+
overflow: visible;
|
|
4955
|
+
pointer-events: none;
|
|
4956
|
+
}
|
|
4957
|
+
.ui-lg-hit {
|
|
4958
|
+
fill: none;
|
|
4959
|
+
stroke: transparent;
|
|
4960
|
+
stroke-width: 12px;
|
|
4961
|
+
stroke-linecap: round;
|
|
4962
|
+
stroke-linejoin: round;
|
|
4963
|
+
pointer-events: stroke;
|
|
4964
|
+
cursor: pointer;
|
|
4965
|
+
}
|
|
4966
|
+
.ui-lg-hit:focus {
|
|
4967
|
+
outline: none;
|
|
4968
|
+
}
|
|
4969
|
+
.ui-lg-hit:focus-visible {
|
|
4970
|
+
stroke: var(--focus-ring);
|
|
4971
|
+
}
|
|
4972
|
+
.ui-lg-node,
|
|
4973
|
+
.ui-lg-label {
|
|
4974
|
+
z-index: 2;
|
|
4975
|
+
}
|
|
4976
|
+
.ui-lg-label.is-clickable {
|
|
4977
|
+
pointer-events: auto;
|
|
4978
|
+
cursor: pointer;
|
|
4979
|
+
}
|
|
4980
|
+
.ui-lg-label.is-clickable.is-hover {
|
|
4981
|
+
text-decoration: underline;
|
|
4982
|
+
}
|
|
4983
|
+
/* Hover on a line or its label: the line gets a little darker. */
|
|
4984
|
+
.ui-lg-edge.is-hover:not(.is-related) {
|
|
4985
|
+
stroke: color-mix(in srgb, var(--graph-edge), var(--ink) 35%);
|
|
4986
|
+
}
|
|
4987
|
+
.ui-lg-edge.is-hover:not(.is-related) + .ui-lg-arrow {
|
|
4988
|
+
fill: color-mix(in srgb, var(--graph-edge), var(--ink) 35%);
|
|
4989
|
+
}
|
|
4990
|
+
@media (pointer: coarse) {
|
|
4991
|
+
.ui-lg-label.is-clickable::after {
|
|
4992
|
+
content: '';
|
|
4993
|
+
position: absolute;
|
|
4994
|
+
left: 50%;
|
|
4995
|
+
top: 50%;
|
|
4996
|
+
width: max(100%, var(--touch-target));
|
|
4997
|
+
height: max(100%, var(--touch-target));
|
|
4998
|
+
transform: translate(-50%, -50%);
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
4903
5001
|
.ui-lg-node {
|
|
4904
5002
|
position: absolute;
|
|
4905
5003
|
display: flex;
|
package/docs/LayerGraph.md
CHANGED
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
- 方框:淡灰底,左側一條灰色色條;第一行是名稱(Geist Mono),第二行是大小長條和文字,長條長度和最大的項目相比。大小給 `size`(函式數、檔案數、端點數),文字用 `sizeLabel` 換成專案的單位,預設「{n} 個項目」。
|
|
8
8
|
- 線:直角轉彎、轉角是圓的,每條線接在方框上不同的位置。線的粗細依次數(`count`),全部灰色。推測的關係(`inferred`)是細虛線,箭頭旁寫 `label`。一個方框收到兩條以上有標籤的線時,左半邊箭頭的標籤寫在箭頭左側、右半邊的寫在右側,只有一條時寫在右側;仍會碰到已經放好的標籤或其他箭頭時往上移一行(18 px)。標籤不會超出圖的左右邊界:放不下時改放另一側。選取時的「N 次」(`countLabel`)也一樣。
|
|
9
9
|
- 選取(`selected`、`onSelect`):點方框選取,再點一次取消。選取時相關的方框和線維持原樣、線變強調色並在箭頭旁寫「N 次」,其他淡到 40%。
|
|
10
|
-
-
|
|
10
|
+
- 選線(`selectedEdge`、`onSelectEdge`,和 `selected`、`onSelect` 一樣是受控的):有傳 `onSelectEdge` 時線才能點。點線或線上的標籤選取,再點一次同一條線或點圖的空白處取消(`null`)。選到的線變粗並用強調色,箭頭用強調色,標籤用強調文字色;線兩端的方框維持原樣,其他方框和線淡到 40%。線和方框一次只選一個:選線會清掉方框的選取,選方框會清掉線的選取。
|
|
11
|
+
- 每條線的 `id` 預設是 `` `${from}->${to}` ``,同一對方框之間有兩條線時要自己給 `id`。
|
|
12
|
+
- 點擊範圍:每條線上疊一條看不見、12 px 寬的路徑;有標籤的線,標籤也能點,觸控螢幕上標籤的點擊範圍至少 48 px。沒有標籤的線在手機上比較難點到,需要時改用標籤或鍵盤。
|
|
13
|
+
- 滑鼠移到線或標籤上,游標變成手指,線和箭頭變深、線加粗 2 px,標籤加底線。
|
|
14
|
+
- 鍵盤:線排在方框之後,Tab 依序移到每條線,Enter 或 Space 選取,Escape 取消。焦點樣式和方框一樣用 `focus-ring` 色。`aria-label` 是「起點 → 終點,標籤」或「起點 → 終點,N 次」,選到時 `aria-pressed="true"`。
|
|
15
|
+
- 細節面板由 app 自己畫,`LayerGraph` 只負責選線並回報 `id`。
|
|
16
|
+
- 層與層之間 56 px。圖比畫面寬時維持原尺寸左右捲動,手機也一樣:右邊還有內容時右緣有漸層,第一次捲動前右下角有「左右滑動」提示。
|
|
11
17
|
- 圖例預設放在下方:「次數越多線越粗」和「推測的關係」;`inferredText` 是推測的說明(Term),`inferredLabel` 換掉「推測」這個詞。
|
|
12
18
|
- 放在卡片上。直接放在頁面底色上時,外層加 `style: { '--ui-graph-bg': 'var(--bg)' }`。
|
|
13
19
|
|
|
@@ -29,4 +35,28 @@
|
|
|
29
35
|
/>
|
|
30
36
|
```
|
|
31
37
|
|
|
38
|
+
點線在旁邊顯示細節:
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
const [box, setBox] = useState<string | null>(null);
|
|
42
|
+
const [edge, setEdge] = useState<string | null>(null);
|
|
43
|
+
|
|
44
|
+
<Grid columns={2}>
|
|
45
|
+
<Card>
|
|
46
|
+
<LayerGraph
|
|
47
|
+
nodes={nodes}
|
|
48
|
+
edges={[
|
|
49
|
+
{ id: 'shm', from: 'ibmon', to: 'lib', inferred: true, label: '環境變數 `IBTRACE_SHM`' },
|
|
50
|
+
{ from: 'cli', to: 'lib', count: 7 },
|
|
51
|
+
]}
|
|
52
|
+
selected={box}
|
|
53
|
+
onSelect={setBox}
|
|
54
|
+
selectedEdge={edge}
|
|
55
|
+
onSelectEdge={setEdge}
|
|
56
|
+
/>
|
|
57
|
+
</Card>
|
|
58
|
+
<Card title="關係">{edge ? <DetailList items={details[edge]} /> : '選一條線查看細節。'}</Card>
|
|
59
|
+
</Grid>;
|
|
60
|
+
```
|
|
61
|
+
|
|
32
62
|
從舊版升級:`fns` 改名 `size`,原本寫死的「N 個函式」「被 N 個元件呼叫」改用 `sizeLabel`、`sharedMeta` 傳入。
|
package/docs/Tour.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
第一次使用的導覽:一次介紹一個地方,整頁變暗,只亮出要介紹的地方。
|
|
4
4
|
|
|
5
5
|
- 亮出的地方加 3 px 強調色框;說明卡放在它下方(放不下時換到上方),寬 320 px,寫「1 / 3」、標題和一兩句說明(說明裡的反引號會變成行內程式碼)。
|
|
6
|
+
- 說明卡一定完整留在視窗內,四邊至少留 `--space-3`(12 px)。
|
|
7
|
+
- 目標很高、上下都放不下說明卡時(目標高度 + 說明卡高度 + 間距 > 視窗高度),說明卡放在目標裡面、視窗底部的中央,蓋在亮出的區域上方。
|
|
8
|
+
- 說明卡比視窗高時(手機上的長說明),說明文字在卡片內捲動,按鈕列固定在底部。
|
|
9
|
+
- 目標在視窗外時先捲動到看得見:比視窗矮的捲到中間,比視窗高的從頂端開始顯示。
|
|
6
10
|
- 按鈕:左邊「略過」,右邊「上一步」和主要按鈕「下一步」,最後一步是「完成」。按 Esc 等於略過。導覽進行時頁面不能操作。
|
|
7
11
|
- 用 `UI.useTour(key)` 記住這個瀏覽器看過了沒有:沒看過會自動打開,看完或略過後不再出現。
|
|
8
12
|
- 頁面上要有「重看導覽」(例如說明選單或頁面底部的連結),呼叫 `tour.start()`。
|
package/docs/guidelines.md
CHANGED
|
@@ -169,7 +169,8 @@
|
|
|
169
169
|
- 線:直角、轉角是圓的;每條線接在方框上不同的位置;全部灰色(`graph-edge`),粗細依呼叫次數;推測的關係是細虛線。
|
|
170
170
|
- 標籤放在箭頭旁:推測的關係一直顯示;其他線只有選取時、和選取元件有關的才寫「N 次」。同一個方框收到多條有標籤的線時,左半邊的標籤放箭頭左側、右半邊的放右側,必要時往上疊一行,不超出圖的邊界。文字用一般字體,程式名稱、路徑和數字用 Geist Mono。
|
|
171
171
|
- 選取一個方框時,沒有關係的方框和線變淡到 40%,相關的線變強調色。
|
|
172
|
-
-
|
|
172
|
+
- 選線(app 傳 `onSelectEdge` 時):點線或標籤選取,再點一次或點空白處取消;選到的線變粗、強調色,兩端方框維持原樣,其他淡到 40%;線和方框一次只選一個。細節由 app 在旁邊的面板顯示。每條線疊 12 px 的點擊路徑,滑過時游標變成手指、線變深並加粗 2 px、標籤加底線,標籤在觸控螢幕上至少 48 px;可以 Tab 到每條線,Enter 或 Space 選取,Escape 取消。
|
|
173
|
+
- 層與層之間 56 px。手機上和電腦一樣,圖比畫面寬時維持原尺寸左右捲動;右邊還有內容時右緣有漸層遮罩,第一次捲動前右下角有「左右滑動」提示。
|
|
173
174
|
- 圖例放在圖的下方一列。
|
|
174
175
|
- 其他方框與箭頭的圖:用 `ui-graph-*` class 和 `GraphDefs`、`GraphLegend`,見 Graph 元件;外觀照上面的規則。
|
|
175
176
|
- 程式碼檢視:`CodeView`。
|
|
@@ -244,6 +245,7 @@
|
|
|
244
245
|
- 第一次使用的導覽:`Tour`,用 `useTour(key)` 記住看過了沒有。
|
|
245
246
|
- 樣子:整頁變暗,只亮出要介紹的地方(外加強調色框),旁邊的說明卡寫「1 / 3」、標題和一兩句說明。
|
|
246
247
|
- 可以略過,看完或略過後不再自動出現;頁面上要有「重看導覽」能重新開始。
|
|
248
|
+
- 說明卡一定完整留在視窗內,四邊至少留 `--space-3`;目標上下都放不下時,放在目標裡面、視窗底部的中央;比視窗高時說明文字捲動,按鈕列固定在底部。
|
|
247
249
|
- 修正建議:`Suggestion`,舊的和新的上下兩行,舊的前面「−」淡紅底,新的前面「+」淡綠底;右上角是複製圖示,按了複製修正後的整句,圖示變成勾,提示寫「已複製」。
|
|
248
250
|
- 名詞與關係的說明:`Term`,用在讀者可能看不懂的名詞(例如「translation unit」)和關係標籤(例如「推測的關係」)。
|
|
249
251
|
- 記號:名詞後面加一個小問號。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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.4.1"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@base-ui/react": "^1.9.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-entry-B1gAZnIN.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 '新增「{q}」': 'Add “{q}”',\n '日期格式不正確,請寫成 2026/11/14': 'Invalid date. Use 2026/11/14.',\n 更多操作: 'More actions',\n 更多: 'More',\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 欄位: '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 '{a} 個項目使用,共 {b} 次': 'Used {b} times by {a} items',\n 共用項目: 'Shared',\n 次數越多線越粗: 'Thicker lines mean more often',\n 架構圖: 'Architecture',\n '{n} 次': '{n} calls',\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 '原本:': 'Before: ',\n '改成:': 'After: ',\n 關閉說明: 'Close explanation',\n '(說明)': ' (explain)',\n '搜尋({k})': 'Search ({k})',\n 確定的關係: 'Confirmed',\n 推測的關係: 'Inferred',\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 const m = I18N.locale.startsWith('zh') ? 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/** 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 } 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 if (b < 1048576) return number(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/** Every date, number, amount, size and path shown in the UI goes through these. */\nexport const format = { locale, date, time, dateTime, relative, month, weekdays, firstDay, number, percent, compact, money, fileSize, path };\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,IAAI;EACJ,OAAO;EACP,IAAI;EACJ,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B,MAAM;EACN,IAAI;EACJ,MAAM;EACN,WAAW;EACX,UAAU;EACV,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,SAAS;EACT,MAAM;EACN,IAAI;EACJ,MAAM;EACN,IAAI;EACJ,MAAM;EACN,aAAa;EACb,uBAAuB;EACvB,MAAM;EACN,aAAa;EACb,sBAAsB;EACtB,MAAM;EACN,OAAO;EACP,OAAO;EACP,KAAK;EACL,IAAI;EACJ,KAAK;EACL,KAAK;EACL,cAAc;EACd,IAAI;EACJ,cAAc;EACd,aAAa;EACb,MAAM;EACN,MAAM;EACN,MAAM;EACN,IAAI;EACJ,MAAM;EACN,IAAI;EACJ,kBAAkB;EAClB,MAAM;EACN,MAAM;EACN,MAAM;EACN,QAAQ;EACR,WAAW;EACX,SAAS;EACT,YAAY;EACZ,sBAAsB;EACtB,yBAAyB;EACzB,y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