@nanahoshi/mona-ui 0.23.2 → 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.
Files changed (109) hide show
  1. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +2 -0
  2. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +2 -0
  3. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +2 -0
  4. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +15 -10
  5. package/fesm2022/nanahoshi-mona-ui-card.mjs +2 -0
  6. package/fesm2022/nanahoshi-mona-ui-chart.mjs +4 -2
  7. package/fesm2022/nanahoshi-mona-ui-chip.mjs +2 -0
  8. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +8 -3
  9. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +2 -0
  10. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +2 -0
  11. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +2 -0
  12. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -0
  13. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -0
  14. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -0
  15. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +2 -0
  16. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +8 -3
  17. package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -3
  18. package/fesm2022/nanahoshi-mona-ui-filter.mjs +3 -1
  19. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-CIMXz60d.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-CnPhVIr4.mjs} +2 -2
  20. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-CpeheGXU.mjs → nanahoshi-mona-ui-grid-grid-list.component-DxY6bfTX.mjs} +4 -4
  21. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-B_5ay_Nz.mjs → nanahoshi-mona-ui-grid-grid-row.component-CaO5Lae6.mjs} +3 -3
  22. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BzKywU5b.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-jNYtqg5B.mjs} +4 -4
  23. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-IewqeT4m.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-9FtfCutf.mjs} +18 -13
  24. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  25. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +888 -0
  26. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +398 -116
  27. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2 -0
  28. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2 -0
  29. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +2 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +401 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +399 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +399 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +399 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +397 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +399 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +397 -0
  37. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +397 -0
  38. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +399 -0
  39. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +401 -0
  40. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +397 -0
  41. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +397 -0
  42. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +397 -0
  43. package/fesm2022/nanahoshi-mona-ui-locales.mjs +77 -4988
  44. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +7 -2
  45. package/fesm2022/nanahoshi-mona-ui-notification.mjs +19 -2
  46. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +299 -167
  47. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +2 -0
  48. package/fesm2022/nanahoshi-mona-ui-pager.mjs +13 -8
  49. package/fesm2022/nanahoshi-mona-ui-popup.mjs +15 -1
  50. package/fesm2022/nanahoshi-mona-ui-rating.mjs +7 -2
  51. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +9 -4
  52. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -0
  53. package/fesm2022/nanahoshi-mona-ui-slider.mjs +2 -0
  54. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +2 -0
  55. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +2 -0
  56. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +2 -0
  57. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +2 -0
  58. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +2 -0
  59. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +2 -0
  60. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -0
  61. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +2 -0
  62. package/fesm2022/nanahoshi-mona-ui-window.mjs +2 -0
  63. package/i18n/catalogs/en-US.messages.json +373 -0
  64. package/i18n/icu/package.json +4 -0
  65. package/locales/ar-sa/ar-sa.messages.json +373 -0
  66. package/locales/ar-sa/package.json +4 -0
  67. package/locales/de-de/de-de.messages.json +373 -0
  68. package/locales/de-de/package.json +4 -0
  69. package/locales/es-es/es-es.messages.json +373 -0
  70. package/locales/es-es/package.json +4 -0
  71. package/locales/fr-fr/fr-fr.messages.json +373 -0
  72. package/locales/fr-fr/package.json +4 -0
  73. package/locales/id-id/id-id.messages.json +373 -0
  74. package/locales/id-id/package.json +4 -0
  75. package/locales/it-it/it-it.messages.json +373 -0
  76. package/locales/it-it/package.json +4 -0
  77. package/locales/ja-jp/ja-jp.messages.json +373 -0
  78. package/locales/ja-jp/package.json +4 -0
  79. package/locales/ko-kr/ko-kr.messages.json +373 -0
  80. package/locales/ko-kr/package.json +4 -0
  81. package/locales/pt-br/package.json +4 -0
  82. package/locales/pt-br/pt-br.messages.json +373 -0
  83. package/locales/ru-ru/package.json +4 -0
  84. package/locales/ru-ru/ru-ru.messages.json +373 -0
  85. package/locales/tr-tr/package.json +4 -0
  86. package/locales/tr-tr/tr-tr.messages.json +373 -0
  87. package/locales/zh-cn/package.json +4 -0
  88. package/locales/zh-cn/zh-cn.messages.json +373 -0
  89. package/locales/zh-tw/package.json +4 -0
  90. package/locales/zh-tw/zh-tw.messages.json +373 -0
  91. package/package.json +111 -53
  92. package/types/nanahoshi-mona-ui-i18n-icu.d.ts +74 -0
  93. package/types/nanahoshi-mona-ui-i18n.d.ts +139 -9
  94. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +379 -0
  95. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +379 -0
  96. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +379 -0
  97. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +379 -0
  98. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +379 -0
  99. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +379 -0
  100. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +379 -0
  101. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +379 -0
  102. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +379 -0
  103. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +379 -0
  104. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +379 -0
  105. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +379 -0
  106. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +379 -0
  107. package/types/nanahoshi-mona-ui-locales.d.ts +30 -4915
  108. package/types/nanahoshi-mona-ui-notification.d.ts +1 -0
  109. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +113 -37
@@ -0,0 +1,373 @@
1
+ {
2
+ "autoComplete": {
3
+ "clear": "清除"
4
+ },
5
+ "breadcrumb": {
6
+ "breadcrumb": "階層連結導航"
7
+ },
8
+ "buttonGroup": {
9
+ "buttonGroup": "按鈕群組"
10
+ },
11
+ "calendar": {
12
+ "calendarLabel": "{formattedMonthAndYear}行事曆",
13
+ "decadeRange": "{start, number, ::group-off}年至{end, number, ::group-off}年",
14
+ "decadeViewLabel": "{start, number, ::group-off}年至{end, number, ::group-off}年十年檢視",
15
+ "goToToday": "移至今天({formattedDate})",
16
+ "nextDecade": "下個十年",
17
+ "nextMonth": "下個月",
18
+ "nextYear": "下一年",
19
+ "previousDecade": "上個十年",
20
+ "previousMonth": "上個月",
21
+ "previousYear": "上一年",
22
+ "switchToDecadeView": "切換至十年檢視,目前為{currentYear}",
23
+ "switchToYearView": "切換至年份檢視,目前為{currentMonthAndYear}",
24
+ "today": "今天",
25
+ "yearCellLabel": "{year, number, ::group-off}年",
26
+ "yearViewLabel": "年份檢視,{year}"
27
+ },
28
+ "card": {
29
+ "actionsLabel": "卡片動作"
30
+ },
31
+ "chart": {
32
+ "change": "變動",
33
+ "chart": "圖表",
34
+ "chartLegend": "圖例",
35
+ "close": "收盤價",
36
+ "closeAbbreviation": "收",
37
+ "colorScale": "色標",
38
+ "conversion": "轉換",
39
+ "divergingRangeDescription": "{title},{minimum} 至 {midpoint} 至 {maximum}",
40
+ "dropOff": "流失",
41
+ "falling": "下跌",
42
+ "high": "最高價",
43
+ "highAbbreviation": "高",
44
+ "labelValueSeparator": ":",
45
+ "low": "最低價",
46
+ "lowAbbreviation": "低",
47
+ "noData": "沒有可用資料",
48
+ "open": "開盤價",
49
+ "openAbbreviation": "開",
50
+ "overall": "整體",
51
+ "range": "範圍",
52
+ "rangeDescription": "{title},{minimum} 至 {maximum}",
53
+ "rising": "上漲",
54
+ "runningTotal": "累計",
55
+ "size": "大小",
56
+ "unchanged": "持平",
57
+ "value": "數值",
58
+ "visualIndicatorClamped": "視覺指示器已達極限"
59
+ },
60
+ "chip": {
61
+ "removeLabel": "{label, select, undefined {移除項目} other {移除{label}}}"
62
+ },
63
+ "colorGradient": {
64
+ "apply": "套用",
65
+ "cancel": "取消",
66
+ "clearColor": "清除顏色",
67
+ "copyAsHex": "複製為 HEX",
68
+ "copyAsRgb": "複製為 RGB",
69
+ "copyColor": "複製顏色",
70
+ "currentColor": "目前顏色",
71
+ "previousColor": "先前顏色",
72
+ "saturationAndValue": "飽和度與明度",
73
+ "saturationAndValueText": "飽和度{saturation}%,明度{value}%",
74
+ "switchColorMode": "切換色彩模式"
75
+ },
76
+ "colorPalette": {
77
+ "color": "顏色: {color}",
78
+ "colorPalette": "調色盤"
79
+ },
80
+ "colorPicker": {
81
+ "clearColor": "清除顏色",
82
+ "colorGradientPicker": "漸層色彩選取器",
83
+ "colorPalettePicker": "調色盤選取器",
84
+ "colorPicker": "色彩選取器"
85
+ },
86
+ "comboBox": {
87
+ "clear": "清除"
88
+ },
89
+ "datePicker": {
90
+ "datePicker": "日期選取器",
91
+ "openCalendar": "開啟行事曆"
92
+ },
93
+ "dateTimePicker": {
94
+ "calendar": "行事曆",
95
+ "cancel": "取消",
96
+ "date": "日期",
97
+ "dateTimePicker": "日期時間選取器",
98
+ "openDateTimePicker": "開啟日期時間選取器",
99
+ "set": "設定",
100
+ "time": "時間",
101
+ "timePicker": "時間選取器"
102
+ },
103
+ "dialog": {
104
+ "cancel": "取消",
105
+ "closeDialog": "關閉對話方塊",
106
+ "ok": "確定"
107
+ },
108
+ "dropdownList": {
109
+ "clear": "清除"
110
+ },
111
+ "dropdowns": {
112
+ "itemPosition": "{text},第 {position} 項(共 {total} 項)",
113
+ "noResultsFound": "找不到結果",
114
+ "resultsAvailable": "有 {count} 個可用結果"
115
+ },
116
+ "editor": {
117
+ "addColumnAfter": "在後方插入欄",
118
+ "addColumnBefore": "在前方插入欄",
119
+ "addHorizontalLine": "插入水平線",
120
+ "addRowAfter": "在後方插入列",
121
+ "addRowBefore": "在前方插入列",
122
+ "alignCenter": "置中對齊",
123
+ "alignLeft": "靠左對齊",
124
+ "alignRight": "靠右對齊",
125
+ "altText": "替代文字",
126
+ "backgroundColor": "背景顏色",
127
+ "bold": "粗體",
128
+ "cancel": "取消",
129
+ "codeBlock": "程式碼區塊",
130
+ "color": "顏色",
131
+ "deleteColumn": "刪除欄",
132
+ "deleteRow": "刪除列",
133
+ "deleteTable": "刪除表格",
134
+ "enterUrl": "輸入 URL",
135
+ "fontSize": "字型大小",
136
+ "format": "格式",
137
+ "heading": "標題 {level}",
138
+ "heightPx": "高度 (px)",
139
+ "imageUrl": "圖片 URL",
140
+ "indent": "增加縮排",
141
+ "insert": "插入",
142
+ "insertImage": "插入圖片",
143
+ "insertLink": "插入連結",
144
+ "insertOrderedList": "插入編號清單",
145
+ "insertTable": "插入表格",
146
+ "insertTaskList": "插入工作清單",
147
+ "insertUnorderedList": "插入項目符號清單",
148
+ "italic": "斜體",
149
+ "justify": "左右對齊",
150
+ "mergeCells": "合併選取的儲存格",
151
+ "outdent": "減少縮排",
152
+ "paragraph": "段落",
153
+ "quotation": "引用",
154
+ "redo": "重做",
155
+ "removeLink": "移除連結",
156
+ "selectFontFamily": "選取字型",
157
+ "selectFontSize": "選取字型大小",
158
+ "splitCell": "分割儲存格",
159
+ "strikethrough": "刪除線",
160
+ "subscript": "下標",
161
+ "superscript": "上標",
162
+ "toggleHeaderRow": "切換標題列",
163
+ "underline": "底線",
164
+ "undo": "復原",
165
+ "widthPx": "寬度 (px)"
166
+ },
167
+ "filter": {
168
+ "and": "且",
169
+ "apply": "套用",
170
+ "clear": "清除",
171
+ "contains": "包含",
172
+ "doesNotContain": "不包含",
173
+ "endsWith": "結尾為",
174
+ "isAfter": "晚於",
175
+ "isAfterOrEqualTo": "晚於或等於",
176
+ "isBefore": "早於",
177
+ "isBeforeOrEqualTo": "早於或等於",
178
+ "isEmpty": "為空",
179
+ "isEqualTo": "等於",
180
+ "isFalse": "為假",
181
+ "isGreaterThan": "大於",
182
+ "isGreaterThanOrEqualTo": "大於或等於",
183
+ "isLessThan": "小於",
184
+ "isLessThanOrEqualTo": "小於或等於",
185
+ "isNotEmpty": "不為空",
186
+ "isNotEqualTo": "不等於",
187
+ "isNotNull": "不為 Null",
188
+ "isNotNullOrEmpty": "不為 Null 且不為空",
189
+ "isNull": "為 Null",
190
+ "isNullOrEmpty": "為 Null 或為空",
191
+ "isTrue": "為真",
192
+ "or": "或",
193
+ "startsWith": "開頭為"
194
+ },
195
+ "grid": {
196
+ "all": "(全部)",
197
+ "apply": "套用",
198
+ "cancel": "取消",
199
+ "cancelRowEdit": "取消編輯資料列",
200
+ "columns": "欄",
201
+ "columnsSelected": "已選取 {count} 欄",
202
+ "delete": "刪除",
203
+ "deleteRowConfirmation": "確定要刪除此項目嗎?",
204
+ "deleteRowTitle": "刪除資料列?",
205
+ "dragColumnHeaderToGroup": "拖曳欄位標題至此進行群組",
206
+ "edit": "編輯",
207
+ "editRow": "編輯資料列",
208
+ "fieldValidationError": "無效值。",
209
+ "filterByColumn": "依 {column} 篩選",
210
+ "filterPlaceholder": "篩選…",
211
+ "modified": "已修改",
212
+ "moveAsNext": "移至下一項",
213
+ "moveAsPrevious": "移至上一項",
214
+ "moveRow": "移動資料列",
215
+ "noData": "沒有資料",
216
+ "remove": "移除",
217
+ "removeRow": "移除資料列",
218
+ "reorderRow": "重新排列第 {rowNumber} 個資料列",
219
+ "resizeColumn": "調整欄寬",
220
+ "rowReorder": "資料列重新排序",
221
+ "rowReorderDisabled": "資料列重新排序已停用。",
222
+ "rowReorderDisabledEditing": "請完成編輯後再重新排列資料列。",
223
+ "rowReorderDisabledFiltered": "請清除篩選後再重新排列資料列。",
224
+ "rowReorderDisabledGrouped": "請清除群組後再重新排列資料列。",
225
+ "rowReorderDisabledServerBinding": "伺服器繫結時無法重新排列資料列。",
226
+ "rowReorderDisabledSingleRow": "至少需要兩個資料列才能重新排序。",
227
+ "rowReorderDisabledSorted": "請清除排序後再重新排列資料列。",
228
+ "rowReorderDisabledVirtualScroll": "啟用虛擬捲動時無法重新排列資料列。",
229
+ "rowReorderHandleAriaLabel": "{rowLabel}。{keyboardHint}{disabledReason, select, undefined {} other { {disabledReason}}}",
230
+ "rowReorderKeyboardHint": "使用 Alt + 向上鍵或 Alt + 向下鍵移動。",
231
+ "rowReorderMoved": "已將第 {fromRowNumber} 個資料列移至位置 {toPosition}。",
232
+ "rowValidationError": "此資料列存在驗證錯誤。",
233
+ "save": "儲存",
234
+ "saveRow": "儲存資料列",
235
+ "selectAllRows": "選取所有資料列",
236
+ "selectRow": "選取第 {rowNumber} 個資料列"
237
+ },
238
+ "list": {
239
+ "filterList": "篩選清單",
240
+ "noData": "沒有資料"
241
+ },
242
+ "listBox": {
243
+ "clearSelection": "清除選取",
244
+ "moveDown": "向下移動",
245
+ "moveUp": "向上移動",
246
+ "remove": "移除",
247
+ "transferAllFrom": "從另一清單全部移入",
248
+ "transferAllTo": "全部移至另一清單",
249
+ "transferFrom": "從另一清單移入",
250
+ "transferTo": "移至另一清單"
251
+ },
252
+ "multiSelect": {
253
+ "clear": "清除",
254
+ "itemsCount": "+ {count} 項"
255
+ },
256
+ "notification": {
257
+ "close": "關閉",
258
+ "error": "錯誤",
259
+ "info": "資訊",
260
+ "success": "成功",
261
+ "warning": "警告"
262
+ },
263
+ "numericTextBox": {
264
+ "decrease": "減少數值",
265
+ "increase": "增加數值"
266
+ },
267
+ "otpInput": {
268
+ "verificationCode": "驗證碼"
269
+ },
270
+ "pager": {
271
+ "firstPageLabel": "第一頁",
272
+ "jumpBackwardLabel": "後退 {pages} 頁",
273
+ "jumpForwardLabel": "前進 {pages} 頁",
274
+ "lastPageLabel": "最後一頁",
275
+ "nextPageLabel": "下一頁",
276
+ "ofText": "/",
277
+ "pageLabel": "第 {page} 頁",
278
+ "pageSizeLabel": "每頁 {pageSize} 筆",
279
+ "pageStatus": "第 {page} 頁,共 {totalPages} 頁",
280
+ "pageText": "頁",
281
+ "previousPageLabel": "上一頁",
282
+ "rangeStatus": "第 {start} - {end} 項,共 {total} 項"
283
+ },
284
+ "rating": {
285
+ "notRated": "未評分",
286
+ "valueText": "第 {value} 級,共 {max} 級"
287
+ },
288
+ "scrollView": {
289
+ "carousel": "輪播",
290
+ "nextPage": "下一頁",
291
+ "page": "第 {current} 頁",
292
+ "pageOf": "第 {current} 頁,共 {total} 頁",
293
+ "previousPage": "上一頁",
294
+ "scrollPagerNext": "向後捲動分頁器",
295
+ "scrollPagerPrevious": "向前捲動分頁器",
296
+ "slide": "投影片"
297
+ },
298
+ "sheet": {
299
+ "closeSheet": "關閉面板"
300
+ },
301
+ "slider": {
302
+ "maximumValue": "最大值",
303
+ "minimumValue": "最小值",
304
+ "sliderValue": "滑桿數值"
305
+ },
306
+ "spinner": {
307
+ "cancel": "取消",
308
+ "loading": "載入中"
309
+ },
310
+ "splitButton": {
311
+ "menuButtonAriaLabel": "顯示選單選項",
312
+ "splitButton": "{text, select, undefined {分割按鈕} other {{text},分割按鈕}}"
313
+ },
314
+ "splitter": {
315
+ "collapseDown": "摺疊下方窗格",
316
+ "collapseNext": "摺疊下一個窗格",
317
+ "collapsePrevious": "摺疊上一個窗格",
318
+ "collapseUp": "摺疊上方窗格",
319
+ "resizer": "調整大小控點"
320
+ },
321
+ "stepper": {
322
+ "stepProgress": "步驟進度",
323
+ "stepper": "步驟指示器"
324
+ },
325
+ "tabs": {
326
+ "closeTab": "關閉分頁",
327
+ "scrollNext": "向後捲動分頁",
328
+ "scrollPrevious": "向前捲動分頁"
329
+ },
330
+ "textBox": {
331
+ "clear": "清除"
332
+ },
333
+ "timePicker": {
334
+ "openTimePicker": "開啟時間選取器",
335
+ "timePicker": "時間選取器"
336
+ },
337
+ "timeSelector": {
338
+ "am": "上午",
339
+ "amPm": "上午/下午",
340
+ "headerHours": "時",
341
+ "headerMinutes": "分",
342
+ "headerSeconds": "秒",
343
+ "hours": "小時",
344
+ "minutes": "分鐘",
345
+ "now": "目前時間",
346
+ "pm": "下午",
347
+ "seconds": "秒",
348
+ "set": "設定",
349
+ "timeSelector": "時間選取器"
350
+ },
351
+ "treeView": {
352
+ "collapse": "摺疊",
353
+ "expand": "展開",
354
+ "filter": "篩選",
355
+ "filterTree": "篩選樹狀檢視"
356
+ },
357
+ "window": {
358
+ "close": "關閉",
359
+ "closeWindow": "關閉視窗",
360
+ "maximize": "最大化",
361
+ "minimize": "最小化",
362
+ "moveWindow": "移動視窗。使用方向鍵移動。",
363
+ "resizeBottom": "從底部調整視窗大小。使用方向鍵調整大小。",
364
+ "resizeBottomLeft": "從左下角調整視窗大小。使用方向鍵調整大小。",
365
+ "resizeBottomRight": "從右下角調整視窗大小。使用方向鍵調整大小。",
366
+ "resizeLeft": "從左側調整視窗大小。使用方向鍵調整大小。",
367
+ "resizeRight": "從右側調整視窗大小。使用方向鍵調整大小。",
368
+ "resizeTop": "從頂部調整視窗大小。使用方向鍵調整大小。",
369
+ "resizeTopLeft": "從左上角調整視窗大小。使用方向鍵調整大小。",
370
+ "resizeTopRight": "從右上角調整視窗大小。使用方向鍵調整大小。",
371
+ "restore": "還原"
372
+ }
373
+ }
package/package.json CHANGED
@@ -1,65 +1,15 @@
1
1
  {
2
2
  "name": "@nanahoshi/mona-ui",
3
- "version": "0.23.2",
3
+ "version": "0.24.0",
4
4
  "description": "A very light Angular UI framework",
5
5
  "author": "Nanahoshi",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/nanahoshi-dev/mona-ui"
9
9
  },
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "peerDependencies": {
14
- "@angular/cdk": ">=22.0.0 <24.0.0",
15
- "@angular/common": ">=22.0.0 <24.0.0",
16
- "@angular/compiler": ">=22.0.0 <24.0.0",
17
- "@angular/core": ">=22.0.0 <24.0.0",
18
- "@angular/forms": ">=22.0.0 <24.0.0",
19
- "@angular/platform-browser": ">=22.0.0 <24.0.0",
20
- "@angular/platform-browser-dynamic": ">=22.0.0 <24.0.0",
21
- "@angular/router": ">=22.0.0 <24.0.0",
22
- "@tiptap/core": "^3.26.1",
23
- "@tiptap/extension-color": "^3.26.1",
24
- "@tiptap/extension-font-family": "^3.26.1",
25
- "@tiptap/extension-highlight": "^3.26.1",
26
- "@tiptap/extension-image": "^3.26.1",
27
- "@tiptap/extension-link": "^3.26.1",
28
- "@tiptap/extension-subscript": "^3.26.1",
29
- "@tiptap/extension-superscript": "^3.26.1",
30
- "@tiptap/extension-table": "^3.26.1",
31
- "@tiptap/extension-table-cell": "^3.26.1",
32
- "@tiptap/extension-table-header": "^3.26.1",
33
- "@tiptap/extension-table-row": "^3.26.1",
34
- "@tiptap/extension-task-item": "^3.26.1",
35
- "@tiptap/extension-task-list": "^3.26.1",
36
- "@tiptap/extension-text-align": "^3.26.1",
37
- "@tiptap/extension-text-style": "^3.26.1",
38
- "@tiptap/extension-underline": "^3.26.1",
39
- "@tiptap/pm": "^3.26.1",
40
- "@tiptap/starter-kit": "^3.26.1",
41
- "rxjs": "^7.8.2"
42
- },
43
- "dependencies": {
44
- "@lucide/angular": "^1.21.0",
45
- "@mirei/ts-collections": "^17.5.6",
46
- "class-variance-authority": "^0.7.1",
47
- "culori": "^4.0.2",
48
- "d3-hierarchy": "^3.1.2",
49
- "d3-scale": "^4.0.2",
50
- "d3-shape": "^3.2.0",
51
- "html2canvas-pro": "^2.3.9",
52
- "jspdf": "^4.2.1",
53
- "luxon": "^3.7.2",
54
- "remixicon": "^4.9.1",
55
- "svg2pdf.js": "^2.7.0",
56
- "tailwind-merge": "^3.6.0",
57
- "tslib": "^2.8.1",
58
- "uuid": "^14.0.0"
59
- },
60
- "module": "fesm2022/nanahoshi-mona-ui.mjs",
61
- "typings": "types/nanahoshi-mona-ui.d.ts",
62
10
  "exports": {
11
+ "./i18n/catalogs/*.json": "./i18n/catalogs/*.json",
12
+ "./locales/*.json": "./locales/*.json",
63
13
  "./package.json": {
64
14
  "default": "./package.json"
65
15
  },
@@ -191,6 +141,10 @@
191
141
  "types": "./types/nanahoshi-mona-ui-i18n.d.ts",
192
142
  "default": "./fesm2022/nanahoshi-mona-ui-i18n.mjs"
193
143
  },
144
+ "./i18n/icu": {
145
+ "types": "./types/nanahoshi-mona-ui-i18n-icu.d.ts",
146
+ "default": "./fesm2022/nanahoshi-mona-ui-i18n-icu.mjs"
147
+ },
194
148
  "./internal": {
195
149
  "types": "./types/nanahoshi-mona-ui-internal.d.ts",
196
150
  "default": "./fesm2022/nanahoshi-mona-ui-internal.mjs"
@@ -231,6 +185,58 @@
231
185
  "types": "./types/nanahoshi-mona-ui-locales.d.ts",
232
186
  "default": "./fesm2022/nanahoshi-mona-ui-locales.mjs"
233
187
  },
188
+ "./locales/ar-sa": {
189
+ "types": "./types/nanahoshi-mona-ui-locales-ar-sa.d.ts",
190
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs"
191
+ },
192
+ "./locales/de-de": {
193
+ "types": "./types/nanahoshi-mona-ui-locales-de-de.d.ts",
194
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-de-de.mjs"
195
+ },
196
+ "./locales/es-es": {
197
+ "types": "./types/nanahoshi-mona-ui-locales-es-es.d.ts",
198
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-es-es.mjs"
199
+ },
200
+ "./locales/fr-fr": {
201
+ "types": "./types/nanahoshi-mona-ui-locales-fr-fr.d.ts",
202
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs"
203
+ },
204
+ "./locales/id-id": {
205
+ "types": "./types/nanahoshi-mona-ui-locales-id-id.d.ts",
206
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-id-id.mjs"
207
+ },
208
+ "./locales/it-it": {
209
+ "types": "./types/nanahoshi-mona-ui-locales-it-it.d.ts",
210
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-it-it.mjs"
211
+ },
212
+ "./locales/ja-jp": {
213
+ "types": "./types/nanahoshi-mona-ui-locales-ja-jp.d.ts",
214
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs"
215
+ },
216
+ "./locales/ko-kr": {
217
+ "types": "./types/nanahoshi-mona-ui-locales-ko-kr.d.ts",
218
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs"
219
+ },
220
+ "./locales/pt-br": {
221
+ "types": "./types/nanahoshi-mona-ui-locales-pt-br.d.ts",
222
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs"
223
+ },
224
+ "./locales/ru-ru": {
225
+ "types": "./types/nanahoshi-mona-ui-locales-ru-ru.d.ts",
226
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs"
227
+ },
228
+ "./locales/tr-tr": {
229
+ "types": "./types/nanahoshi-mona-ui-locales-tr-tr.d.ts",
230
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs"
231
+ },
232
+ "./locales/zh-cn": {
233
+ "types": "./types/nanahoshi-mona-ui-locales-zh-cn.d.ts",
234
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs"
235
+ },
236
+ "./locales/zh-tw": {
237
+ "types": "./types/nanahoshi-mona-ui-locales-zh-tw.d.ts",
238
+ "default": "./fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs"
239
+ },
234
240
  "./menubar": {
235
241
  "types": "./types/nanahoshi-mona-ui-menubar.d.ts",
236
242
  "default": "./fesm2022/nanahoshi-mona-ui-menubar.mjs"
@@ -368,6 +374,58 @@
368
374
  "default": "./fesm2022/nanahoshi-mona-ui-window.mjs"
369
375
  }
370
376
  },
377
+ "publishConfig": {
378
+ "access": "public"
379
+ },
380
+ "peerDependencies": {
381
+ "@angular/cdk": ">=22.0.0 <24.0.0",
382
+ "@angular/common": ">=22.0.0 <24.0.0",
383
+ "@angular/compiler": ">=22.0.0 <24.0.0",
384
+ "@angular/core": ">=22.0.0 <24.0.0",
385
+ "@angular/forms": ">=22.0.0 <24.0.0",
386
+ "@angular/platform-browser": ">=22.0.0 <24.0.0",
387
+ "@angular/platform-browser-dynamic": ">=22.0.0 <24.0.0",
388
+ "@angular/router": ">=22.0.0 <24.0.0",
389
+ "@tiptap/core": "^3.26.1",
390
+ "@tiptap/extension-color": "^3.26.1",
391
+ "@tiptap/extension-font-family": "^3.26.1",
392
+ "@tiptap/extension-highlight": "^3.26.1",
393
+ "@tiptap/extension-image": "^3.26.1",
394
+ "@tiptap/extension-link": "^3.26.1",
395
+ "@tiptap/extension-subscript": "^3.26.1",
396
+ "@tiptap/extension-superscript": "^3.26.1",
397
+ "@tiptap/extension-table": "^3.26.1",
398
+ "@tiptap/extension-table-cell": "^3.26.1",
399
+ "@tiptap/extension-table-header": "^3.26.1",
400
+ "@tiptap/extension-table-row": "^3.26.1",
401
+ "@tiptap/extension-task-item": "^3.26.1",
402
+ "@tiptap/extension-task-list": "^3.26.1",
403
+ "@tiptap/extension-text-align": "^3.26.1",
404
+ "@tiptap/extension-text-style": "^3.26.1",
405
+ "@tiptap/extension-underline": "^3.26.1",
406
+ "@tiptap/pm": "^3.26.1",
407
+ "@tiptap/starter-kit": "^3.26.1",
408
+ "rxjs": "^7.8.2"
409
+ },
410
+ "dependencies": {
411
+ "@lucide/angular": "^1.21.0",
412
+ "@mirei/ts-collections": "^17.5.6",
413
+ "class-variance-authority": "^0.7.1",
414
+ "culori": "^4.0.2",
415
+ "d3-hierarchy": "^3.1.2",
416
+ "d3-scale": "^4.0.2",
417
+ "d3-shape": "^3.2.0",
418
+ "html2canvas-pro": "^2.3.9",
419
+ "jspdf": "^4.2.1",
420
+ "luxon": "^3.7.2",
421
+ "remixicon": "^4.9.1",
422
+ "svg2pdf.js": "^2.7.0",
423
+ "tailwind-merge": "^3.6.0",
424
+ "tslib": "^2.8.1",
425
+ "uuid": "^14.0.0"
426
+ },
427
+ "module": "fesm2022/nanahoshi-mona-ui.mjs",
428
+ "typings": "types/nanahoshi-mona-ui.d.ts",
371
429
  "sideEffects": false,
372
430
  "type": "module"
373
431
  }
@@ -0,0 +1,74 @@
1
+ import { MonaTextDirection, MonaLocaleMessages, MonaLocale } from '@nanahoshi/mona-ui/i18n';
2
+
3
+ /**
4
+ * The messages of a {@link MonaLocaleData}: the same namespaces and keys as `MonaLocaleMessages`, with every message
5
+ * written as an ICU MessageFormat string, so a catalog is plain JSON.
6
+ */
7
+ type MonaLocaleDataMessages = {
8
+ readonly [N in keyof MonaLocaleMessages]?: {
9
+ readonly [K in keyof MonaLocaleMessages[N]]?: string;
10
+ };
11
+ };
12
+ /** A locale as data, such as a JSON file exported from a translation-management system. */
13
+ interface MonaLocaleData {
14
+ readonly direction: MonaTextDirection;
15
+ readonly id: string;
16
+ readonly messages: MonaLocaleDataMessages;
17
+ }
18
+ type MonaLocaleDataIssueCode = "invalid-direction" | "invalid-id" | "invalid-structure" | "missing-other" | "not-a-string" | "parameter-type" | "syntax" | "unknown-key" | "unknown-namespace" | "unknown-parameter";
19
+ /** A problem found in a {@link MonaLocaleData} by `validateMonaLocaleData` or `compileMonaLocale`. */
20
+ interface MonaLocaleDataIssue {
21
+ readonly code: MonaLocaleDataIssueCode;
22
+ /** A sentence that describes the problem. */
23
+ readonly message: string;
24
+ /** Where the problem is, such as `messages.pager.pageStatus`. */
25
+ readonly path: string;
26
+ }
27
+ interface MonaCompileLocaleOptions {
28
+ /**
29
+ * Throws a `MonaLocaleDataError` listing every issue instead of skipping the messages that have one. Defaults to
30
+ * `false`.
31
+ */
32
+ readonly strict?: boolean;
33
+ }
34
+ /** A parameter of a message, from the message function's signature. */
35
+ interface MonaMessageParameter {
36
+ readonly name: string;
37
+ readonly optional?: boolean;
38
+ readonly type: "number" | "string";
39
+ }
40
+
41
+ /** Thrown by `compileMonaLocale` in strict mode when the data has issues. */
42
+ declare class MonaLocaleDataError extends Error {
43
+ readonly issues: readonly MonaLocaleDataIssue[];
44
+ constructor(issues: readonly MonaLocaleDataIssue[]);
45
+ }
46
+ /**
47
+ * Compiles locale data, such as a JSON catalog from a translation-management system, into a `MonaLocale`. Messages
48
+ * with parameters become functions; plain messages become strings.
49
+ *
50
+ * By default, a message with an issue (an unknown key or parameter, or a syntax error) is skipped, so components
51
+ * show their English default for it, and a dev-mode warning lists the issues. With `{ strict: true }`, any issue
52
+ * throws a {@link MonaLocaleDataError} instead.
53
+ *
54
+ * ```ts
55
+ * provideMonaI18n({
56
+ * loadLocale: id => fetch(`/i18n/${id}.json`).then(r => r.json()).then(data => compileMonaLocale(data))
57
+ * });
58
+ * ```
59
+ */
60
+ declare function compileMonaLocale(data: MonaLocaleData, options?: MonaCompileLocaleOptions): MonaLocale;
61
+ /**
62
+ * Checks locale data without compiling it, for example in CI before a catalog exported from a
63
+ * translation-management system ships. Returns every issue; an empty array means the data compiles cleanly.
64
+ */
65
+ declare function validateMonaLocaleData(data: unknown): readonly MonaLocaleDataIssue[];
66
+
67
+ /**
68
+ * The parameters of every message, by namespace and key, in the order the message function takes them. A plain
69
+ * string message has `null`.
70
+ */
71
+ declare const MONA_MESSAGE_PARAMETERS: Readonly<Record<string, Readonly<Record<string, readonly MonaMessageParameter[] | null>>>>;
72
+
73
+ export { MONA_MESSAGE_PARAMETERS, MonaLocaleDataError, compileMonaLocale, validateMonaLocaleData };
74
+ export type { MonaCompileLocaleOptions, MonaLocaleData, MonaLocaleDataIssue, MonaLocaleDataIssueCode, MonaLocaleDataMessages, MonaMessageParameter };