@nanahoshi/mona-ui 0.24.10 → 0.25.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/README.md +9 -0
- package/chart/README.md +223 -77
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
- package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
- package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +1909 -666
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
- package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +146 -5
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
- package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +111 -5
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +100 -6
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +105 -5
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
- package/i18n/catalogs/en-US.messages.json +90 -5
- package/locales/ar-sa/ar-sa.messages.json +90 -5
- package/locales/de-de/de-de.messages.json +90 -5
- package/locales/es-es/es-es.messages.json +90 -5
- package/locales/fr-fr/fr-fr.messages.json +91 -6
- package/locales/id-id/id-id.messages.json +90 -5
- package/locales/it-it/it-it.messages.json +90 -5
- package/locales/ja-jp/ja-jp.messages.json +90 -5
- package/locales/ko-kr/ko-kr.messages.json +90 -5
- package/locales/pt-br/pt-br.messages.json +90 -5
- package/locales/ru-ru/ru-ru.messages.json +90 -5
- package/locales/tr-tr/tr-tr.messages.json +90 -5
- package/locales/zh-cn/zh-cn.messages.json +90 -5
- package/locales/zh-tw/zh-tw.messages.json +90 -5
- package/package.json +2 -1
- package/styles.css +156 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
- package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
- package/types/nanahoshi-mona-ui-button.d.ts +26 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
- package/types/nanahoshi-mona-ui-card.d.ts +22 -6
- package/types/nanahoshi-mona-ui-chart.d.ts +519 -527
- package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
- package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
- package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
- package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
- package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-common.d.ts +28 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
- package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +130 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
- package/types/nanahoshi-mona-ui-label.d.ts +17 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +85 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
- package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
- package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
- package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
- package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
- package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
- package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
- package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
- package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
- package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
- package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
- package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
- package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
|
@@ -10,7 +10,8 @@ const ZH_TW_MESSAGES = {
|
|
|
10
10
|
clear: "清除"
|
|
11
11
|
},
|
|
12
12
|
breadcrumb: {
|
|
13
|
-
breadcrumb: "階層連結導航"
|
|
13
|
+
breadcrumb: "階層連結導航",
|
|
14
|
+
showFullPath: "顯示完整路徑"
|
|
14
15
|
},
|
|
15
16
|
buttonGroup: {
|
|
16
17
|
buttonGroup: "按鈕群組"
|
|
@@ -36,59 +37,129 @@ const ZH_TW_MESSAGES = {
|
|
|
36
37
|
actionsLabel: "卡片動作"
|
|
37
38
|
},
|
|
38
39
|
chart: {
|
|
40
|
+
announcementSeparator: ",",
|
|
41
|
+
brushApplied: (count) => `已套用框選,${localizeNumber(count)} 個點`,
|
|
42
|
+
brushCleared: "已清除框選",
|
|
43
|
+
brushRange: (from, to) => `框選 ${from} 至 ${to}`,
|
|
44
|
+
category: "類別",
|
|
45
|
+
categoryFallbackName: (index) => `類別 ${localizeNumber(index)}`,
|
|
46
|
+
categoryRange: (from, to) => `從 ${from} 到 ${to}。`,
|
|
39
47
|
change: "變動",
|
|
48
|
+
changeValue: (change) => `變動 ${change}`,
|
|
40
49
|
chart: "圖表",
|
|
41
50
|
chartLegend: "圖例",
|
|
51
|
+
chartRoleDescription: "圖表",
|
|
42
52
|
close: "收盤價",
|
|
43
53
|
closeAbbreviation: "收",
|
|
44
54
|
colorScale: "色標",
|
|
45
55
|
conversion: "轉換",
|
|
56
|
+
conversionOfPrevious: (rate) => `相對上一階段的轉換率 ${rate}`,
|
|
57
|
+
dataTableTruncated: (shown, total) => `顯示 ${localizeNumber(total)} 列中的前 ${localizeNumber(shown)} 列。`,
|
|
58
|
+
decrease: "減少",
|
|
59
|
+
decreaseAnnouncement: (delta, from, to) => `減少 ${delta},累計從 ${from} 到 ${to}`,
|
|
46
60
|
divergingRangeDescription: (title, minimum, midpoint, maximum) => `${title},${minimum} 至 ${midpoint} 至 ${maximum}`,
|
|
47
61
|
dropOff: "流失",
|
|
62
|
+
dropOffValue: (value) => `流失 ${value}`,
|
|
48
63
|
falling: "下跌",
|
|
64
|
+
gaugeRange: (minimum, maximum) => `範圍 ${minimum} 至 ${maximum}`,
|
|
49
65
|
high: "最高價",
|
|
50
66
|
highAbbreviation: "高",
|
|
67
|
+
increase: "增加",
|
|
68
|
+
increaseAnnouncement: (delta, from, to) => `增加 ${delta},累計從 ${from} 到 ${to}`,
|
|
69
|
+
itemDeselected: (item) => `${item},已取消選取`,
|
|
70
|
+
itemFallbackName: (index) => `項目 ${localizeNumber(index)}`,
|
|
71
|
+
itemSelected: (item) => `${item},已選取`,
|
|
72
|
+
keyboardHelp: "使用方向鍵在資料點之間移動,Home 和 End 跳到第一個和最後一個,Enter 或空白鍵啟用,Escape 清除。",
|
|
51
73
|
labelValueSeparator: ":",
|
|
74
|
+
labeledValue: (label, value) => `${label}:${value}`,
|
|
52
75
|
low: "最低價",
|
|
53
76
|
lowAbbreviation: "低",
|
|
77
|
+
noChange: "無變化",
|
|
78
|
+
noChangeAnnouncement: (value) => `無變化,累計 ${value}`,
|
|
54
79
|
noData: "沒有可用資料",
|
|
80
|
+
ohlcValues: (open, high, low, close) => `開盤價 ${open},最高價 ${high},最低價 ${low},收盤價 ${close}`,
|
|
55
81
|
open: "開盤價",
|
|
56
82
|
openAbbreviation: "開",
|
|
57
83
|
overall: "整體",
|
|
84
|
+
overallConversion: (rate) => `整體轉換率 ${rate}`,
|
|
85
|
+
pannedDown: "已向下平移",
|
|
86
|
+
pannedLeft: "已向左平移",
|
|
87
|
+
pannedRight: "已向右平移",
|
|
88
|
+
pannedUp: "已向上平移",
|
|
89
|
+
pathSeparator: " / ",
|
|
90
|
+
pointPosition: (position, total) => `第 ${localizeNumber(position)} 個,共 ${localizeNumber(total)} 個`,
|
|
58
91
|
range: "範圍",
|
|
59
92
|
rangeDescription: (title, minimum, maximum) => `${title},${minimum} 至 ${maximum}`,
|
|
93
|
+
rangeValue: (from, to) => `${from} 至 ${to}`,
|
|
60
94
|
rising: "上漲",
|
|
61
95
|
runningTotal: "累計",
|
|
96
|
+
seriesFallbackName: (index) => `數列 ${localizeNumber(index)}`,
|
|
97
|
+
seriesHidden: (series) => `已隱藏${series}`,
|
|
98
|
+
seriesShown: (series) => `已顯示${series}`,
|
|
99
|
+
seriesSummary: (count, names) => `${localizeNumber(count)} 個數列:${names}。`,
|
|
100
|
+
seriesValueRange: (series, minimum, maximum) => `${series}:最低 ${minimum},最高 ${maximum}。`,
|
|
101
|
+
shareOfTotal: (share) => `佔總計的 ${share}`,
|
|
62
102
|
size: "大小",
|
|
103
|
+
sizeValue: (size) => `大小 ${size}`,
|
|
104
|
+
stackShare: (share) => `堆疊占比 ${share}`,
|
|
105
|
+
stageFallbackName: (index) => `階段 ${localizeNumber(index)}`,
|
|
106
|
+
stagePosition: (position, total) => `第 ${localizeNumber(position)} 階段,共 ${localizeNumber(total)} 個`,
|
|
107
|
+
stepFallbackName: (index) => `步驟 ${localizeNumber(index)}`,
|
|
108
|
+
stepPosition: (position, total) => `第 ${localizeNumber(position)} 步,共 ${localizeNumber(total)} 步`,
|
|
109
|
+
subtotal: "小計",
|
|
110
|
+
subtotalAnnouncement: (value) => `小計 ${value}`,
|
|
111
|
+
total: "總計",
|
|
112
|
+
totalAnnouncement: (value) => `總計 ${value}`,
|
|
113
|
+
treemapGroup: (count) => `群組(${localizeNumber(count)} 個子項目)`,
|
|
114
|
+
treemapLeaf: "葉節點",
|
|
63
115
|
unchanged: "持平",
|
|
64
116
|
value: "數值",
|
|
65
|
-
|
|
117
|
+
valueRange: (from, to) => `${from} – ${to}`,
|
|
118
|
+
viewportResetToDefault: "檢視已重設為預設範圍",
|
|
119
|
+
viewportResetToFull: "檢視已重設為完整範圍",
|
|
120
|
+
visualIndicatorClamped: "視覺指示器已達極限",
|
|
121
|
+
zoomedIn: "已放大",
|
|
122
|
+
zoomedOut: "已縮小"
|
|
66
123
|
},
|
|
67
124
|
chip: {
|
|
68
125
|
removeLabel: (label) => (label ? `移除${label}` : "移除項目")
|
|
69
126
|
},
|
|
70
127
|
colorGradient: {
|
|
128
|
+
alpha: "透明通道",
|
|
129
|
+
alphaText: (opacity) => `不透明度${localizeNumber(opacity)}%`,
|
|
71
130
|
apply: "套用",
|
|
131
|
+
blue: "藍色",
|
|
72
132
|
cancel: "取消",
|
|
73
133
|
clearColor: "清除顏色",
|
|
134
|
+
colorCopied: "已複製顏色",
|
|
135
|
+
colorGradient: "色彩漸層",
|
|
74
136
|
copyAsHex: "複製為 HEX",
|
|
75
137
|
copyAsRgb: "複製為 RGB",
|
|
76
138
|
copyColor: "複製顏色",
|
|
139
|
+
copyFailed: "無法複製顏色",
|
|
77
140
|
currentColor: "目前顏色",
|
|
141
|
+
green: "綠色",
|
|
142
|
+
hexColor: "十六進位色彩",
|
|
143
|
+
hue: "色相",
|
|
78
144
|
previousColor: "先前顏色",
|
|
145
|
+
red: "紅色",
|
|
146
|
+
saturation: "飽和度",
|
|
79
147
|
saturationAndValue: "飽和度與明度",
|
|
80
148
|
saturationAndValueText: (saturation, value) => `飽和度${localizeNumber(saturation)}%,明度${localizeNumber(value)}%`,
|
|
81
|
-
switchColorMode: "切換色彩模式"
|
|
149
|
+
switchColorMode: "切換色彩模式",
|
|
150
|
+
value: "明度"
|
|
82
151
|
},
|
|
83
152
|
colorPalette: {
|
|
84
153
|
color: (color) => `顏色: ${color}`,
|
|
85
|
-
colorPalette: "調色盤"
|
|
154
|
+
colorPalette: "調色盤",
|
|
155
|
+
namedColor: (name, color) => `${name},${color}`
|
|
86
156
|
},
|
|
87
157
|
colorPicker: {
|
|
88
158
|
clearColor: "清除顏色",
|
|
89
159
|
colorGradientPicker: "漸層色彩選取器",
|
|
90
160
|
colorPalettePicker: "調色盤選取器",
|
|
91
|
-
colorPicker: "色彩選取器"
|
|
161
|
+
colorPicker: "色彩選取器",
|
|
162
|
+
noColor: "無色彩"
|
|
92
163
|
},
|
|
93
164
|
comboBox: {
|
|
94
165
|
clear: "清除"
|
|
@@ -278,6 +349,9 @@ const ZH_TW_MESSAGES = {
|
|
|
278
349
|
sortOrder: (position) => `排序順序 ${localizeNumber(position)}`,
|
|
279
350
|
toolbar: "表格工具列"
|
|
280
351
|
},
|
|
352
|
+
label: {
|
|
353
|
+
optional: "選填"
|
|
354
|
+
},
|
|
281
355
|
list: {
|
|
282
356
|
filterList: "篩選清單",
|
|
283
357
|
loading: "載入中",
|
|
@@ -343,6 +417,9 @@ const ZH_TW_MESSAGES = {
|
|
|
343
417
|
previousPageLabel: "上一頁",
|
|
344
418
|
rangeStatus: (start, end, total) => `第 ${localizeNumber(start)} - ${localizeNumber(end)} 項,共 ${localizeNumber(total)} 項`
|
|
345
419
|
},
|
|
420
|
+
progressBar: {
|
|
421
|
+
label: "進度"
|
|
422
|
+
},
|
|
346
423
|
rating: {
|
|
347
424
|
notRated: "未評分",
|
|
348
425
|
valueText: (value, max) => `第 ${localizeNumber(value)} 級,共 ${localizeNumber(max)} 級`
|
|
@@ -352,6 +429,7 @@ const ZH_TW_MESSAGES = {
|
|
|
352
429
|
nextPage: "下一頁",
|
|
353
430
|
page: (current) => `第 ${localizeNumber(current)} 頁`,
|
|
354
431
|
pageOf: (current, total) => `第 ${localizeNumber(current)} 頁,共 ${localizeNumber(total)} 頁`,
|
|
432
|
+
pages: "頁面",
|
|
355
433
|
previousPage: "上一頁",
|
|
356
434
|
scrollPagerNext: "向後捲動分頁器",
|
|
357
435
|
scrollPagerPrevious: "向前捲動分頁器",
|
|
@@ -360,6 +438,10 @@ const ZH_TW_MESSAGES = {
|
|
|
360
438
|
sheet: {
|
|
361
439
|
closeSheet: "關閉面板"
|
|
362
440
|
},
|
|
441
|
+
sidebar: {
|
|
442
|
+
drawerLabel: "側邊欄",
|
|
443
|
+
rail: "顯示或隱藏側邊欄"
|
|
444
|
+
},
|
|
363
445
|
slider: {
|
|
364
446
|
maximumValue: "最大值",
|
|
365
447
|
minimumValue: "最小值",
|
|
@@ -382,6 +464,9 @@ const ZH_TW_MESSAGES = {
|
|
|
382
464
|
resizer: "調整大小控點"
|
|
383
465
|
},
|
|
384
466
|
stepper: {
|
|
467
|
+
stepCompleted: "已完成",
|
|
468
|
+
stepInvalid: "有錯誤",
|
|
469
|
+
stepPosition: (current, total) => `第 ${localizeNumber(current)} 步,共 ${localizeNumber(total)} 步`,
|
|
385
470
|
stepProgress: "步驟進度",
|
|
386
471
|
stepper: "步驟指示器"
|
|
387
472
|
},
|
|
@@ -427,7 +427,7 @@ const menuItemShortcutThemeVariants = cva(`flex flex-1 items-center justify-end
|
|
|
427
427
|
const menuItemTextThemeVariants = cva(`flex flex-1 items-center justify-start gap-2`);
|
|
428
428
|
const menuItemThemeVariants = cva(`
|
|
429
429
|
relative flex cursor-default select-none items-center gap-4 px-2 py-1.5
|
|
430
|
-
text-foreground outline-none
|
|
430
|
+
text-foreground outline-none focus-visible:outline-hidden
|
|
431
431
|
hover:bg-[var(--mona-menu-item-hover-background,var(--color-hover))] hover:text-foreground
|
|
432
432
|
focus-within:bg-[var(--mona-menu-item-hover-background,var(--color-hover))]
|
|
433
433
|
focus-within:text-foreground focus-within:outline-none
|
|
@@ -471,7 +471,7 @@ const menubarBaseThemeVariants = cva(`
|
|
|
471
471
|
});
|
|
472
472
|
const menubarListItemThemeVariants = cva(`
|
|
473
473
|
flex h-full items-center justify-center px-2 py-1.5
|
|
474
|
-
cursor-pointer text-foreground outline-none
|
|
474
|
+
cursor-pointer text-foreground outline-none focus-visible:outline-hidden
|
|
475
475
|
hover:bg-[var(--mona-menu-item-hover-background,var(--color-hover))] hover:text-foreground
|
|
476
476
|
focus-within:bg-[var(--mona-menu-item-hover-background,var(--color-hover))]
|
|
477
477
|
focus-within:text-foreground focus-within:outline-none
|
|
@@ -7,7 +7,7 @@ import { CHIP_DEFAULT_MESSAGES, ChipComponent } from '@nanahoshi/mona-ui/chip';
|
|
|
7
7
|
import * as i1 from '@nanahoshi/mona-ui/dropdowns';
|
|
8
8
|
import { DropdownService, DropdownFooterTemplateDirective, DropdownGroupHeaderTemplateDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, dropdownPopupThemeVariants, DropdownNoDataTemplateDirective, DropdownPrefixTemplateDirective, DROPDOWN_DATA_INPUT_TOKEN, DROPDOWN_POPUP_INPUT_TOKEN, DropdownDataHandlerDirective, DropdownListPopupHandlerDirective, DropdownLiveRegionDirective } from '@nanahoshi/mona-ui/dropdowns';
|
|
9
9
|
import { formatNumber, MonaI18nService } from '@nanahoshi/mona-ui/i18n';
|
|
10
|
-
import { themeControlSurfaceClasses, createElementControlId, restoreOverlayScroll, rxFromResize } from '@nanahoshi/mona-ui/internal';
|
|
10
|
+
import { themeControlSurfaceClasses, injectEffectiveDisabled, createElementControlId, restoreOverlayScroll, rxFromResize } from '@nanahoshi/mona-ui/internal';
|
|
11
11
|
import { IndicatorIconComponent } from '@nanahoshi/mona-ui/internal/indicator-icon';
|
|
12
12
|
import { ListService, ListComponent, ListGroupHeaderTemplateDirective, ListItemTemplateDirective, ListFooterTemplateDirective, ListHeaderTemplateDirective, ListNoDataTemplateDirective } from '@nanahoshi/mona-ui/internal/list';
|
|
13
13
|
import { filter, tap } from 'rxjs';
|
|
@@ -54,7 +54,7 @@ const multiSelectBaseThemeVariants = cva(`
|
|
|
54
54
|
flex items-center justify-between
|
|
55
55
|
cursor-pointer
|
|
56
56
|
${themeControlSurfaceClasses} text-foreground
|
|
57
|
-
border border-input-border shadow-(--shadow-control) outline-none
|
|
57
|
+
border border-input-border shadow-(--shadow-control) outline-none focus-visible:outline-hidden
|
|
58
58
|
transition-[color,box-shadow,border] duration-(--mona-motion-standard) ease-in-out
|
|
59
59
|
data-[readonly='true']:cursor-default
|
|
60
60
|
focus-within:border-focus-indicator focus-within:ring-2 focus-within:ring-focus-indicator/35
|
|
@@ -145,7 +145,7 @@ class MultiSelectComponent {
|
|
|
145
145
|
}, /* @ts-ignore */
|
|
146
146
|
...(ngDevMode ? [{ debugName: "affixClass" }] : /* istanbul ignore next */ []));
|
|
147
147
|
this.baseClass = computed(() => {
|
|
148
|
-
const disabled = this.
|
|
148
|
+
const disabled = this.effectiveDisabled();
|
|
149
149
|
const focused = this.#popupRef() != null;
|
|
150
150
|
const invalid = this.invalidState();
|
|
151
151
|
const rounded = this.rounded();
|
|
@@ -159,11 +159,12 @@ class MultiSelectComponent {
|
|
|
159
159
|
this.clearButtonVisible = computed(() => this.showClearButton() &&
|
|
160
160
|
this.selectedListItems().any() &&
|
|
161
161
|
!this.loading() &&
|
|
162
|
-
!this.
|
|
162
|
+
!this.effectiveDisabled() &&
|
|
163
163
|
!this.readonly(), /* @ts-ignore */
|
|
164
164
|
...(ngDevMode ? [{ debugName: "clearButtonVisible" }] : /* istanbul ignore next */ []));
|
|
165
165
|
this.effectiveAriaLabel = computed(() => this.ariaLabel() || (this.ariaLabelledBy() ? "" : this.placeholder()), /* @ts-ignore */
|
|
166
166
|
...(ngDevMode ? [{ debugName: "effectiveAriaLabel" }] : /* istanbul ignore next */ []));
|
|
167
|
+
this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
|
|
167
168
|
this.expanded = computed(() => this.#dropdownService.popupRef() !== null, /* @ts-ignore */
|
|
168
169
|
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
169
170
|
this.footerTemplate = contentChild(DropdownFooterTemplateDirective, { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
@@ -465,7 +466,7 @@ class MultiSelectComponent {
|
|
|
465
466
|
}
|
|
466
467
|
onSelectedItemGroupRemove(event) {
|
|
467
468
|
event.stopImmediatePropagation();
|
|
468
|
-
if (this.readonly() || this.
|
|
469
|
+
if (this.readonly() || this.effectiveDisabled()) {
|
|
469
470
|
return;
|
|
470
471
|
}
|
|
471
472
|
const selectedItemCount = this.selectedListItems().size();
|
|
@@ -478,7 +479,7 @@ class MultiSelectComponent {
|
|
|
478
479
|
}
|
|
479
480
|
onSelectedItemRemove(event, listItem) {
|
|
480
481
|
event.stopImmediatePropagation();
|
|
481
|
-
if (this.readonly() || this.
|
|
482
|
+
if (this.readonly() || this.effectiveDisabled()) {
|
|
482
483
|
return;
|
|
483
484
|
}
|
|
484
485
|
this.#listService.deselectItems([listItem]);
|
|
@@ -486,7 +487,7 @@ class MultiSelectComponent {
|
|
|
486
487
|
this.focus();
|
|
487
488
|
}
|
|
488
489
|
onValueClear(event) {
|
|
489
|
-
if (this.
|
|
490
|
+
if (this.effectiveDisabled() ||
|
|
490
491
|
this.readonly() ||
|
|
491
492
|
(event instanceof KeyboardEvent && event.key !== "Enter" && event.key !== " ")) {
|
|
492
493
|
return;
|
|
@@ -600,7 +601,7 @@ class MultiSelectComponent {
|
|
|
600
601
|
this.value.set(value);
|
|
601
602
|
}
|
|
602
603
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
603
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: MultiSelectComponent, isStandalone: true, selector: "mona-multi-select", inputs: { ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null }, checkboxes: { classPropertyName: "checkboxes", publicName: "checkboxes", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, itemDisabled: { classPropertyName: "itemDisabled", publicName: "itemDisabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, popupClass: { classPropertyName: "popupClass", publicName: "popupClass", isSignal: true, isRequired: false, transformFunction: null }, popupHeight: { classPropertyName: "popupHeight", publicName: "popupHeight", isSignal: true, isRequired: false, transformFunction: null }, popupWidth: { classPropertyName: "popupWidth", publicName: "popupWidth", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, valuePrimitive: { classPropertyName: "valuePrimitive", publicName: "valuePrimitive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", closed: "closed", open: "open", opened: "opened", touch: "touch", value: "valueChange" }, host: { listeners: { "focusout": "onFocusOut($event)" }, properties: { "attr.aria-activedescendant": "activeDescendant()", "attr.aria-busy": "loading() ? 'true' : undefined", "attr.aria-controls": "listId", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.aria-disabled": "
|
|
604
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: MultiSelectComponent, isStandalone: true, selector: "mona-multi-select", inputs: { ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null }, checkboxes: { classPropertyName: "checkboxes", publicName: "checkboxes", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, itemDisabled: { classPropertyName: "itemDisabled", publicName: "itemDisabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, popupClass: { classPropertyName: "popupClass", publicName: "popupClass", isSignal: true, isRequired: false, transformFunction: null }, popupHeight: { classPropertyName: "popupHeight", publicName: "popupHeight", isSignal: true, isRequired: false, transformFunction: null }, popupWidth: { classPropertyName: "popupWidth", publicName: "popupWidth", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, valuePrimitive: { classPropertyName: "valuePrimitive", publicName: "valuePrimitive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", closed: "closed", open: "open", opened: "opened", touch: "touch", value: "valueChange" }, host: { listeners: { "focusout": "onFocusOut($event)" }, properties: { "attr.aria-activedescendant": "activeDescendant()", "attr.aria-busy": "loading() ? 'true' : undefined", "attr.aria-controls": "listId", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.aria-disabled": "effectiveDisabled() ? true : undefined", "attr.aria-expanded": "expanded()", "attr.aria-haspopup": "'listbox'", "attr.aria-invalid": "invalidState() ? true : undefined", "attr.aria-label": "effectiveAriaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-readonly": "readonly() ? true : undefined", "attr.aria-required": "required() ? true : undefined", "attr.data-disabled": "effectiveDisabled() || null", "attr.data-invalid": "invalidState() || null", "attr.data-readonly": "readonly() || null", "attr.role": "'combobox'", "attr.tabindex": "effectiveDisabled() ? null : 0", "class": "baseClass()" } }, providers: [
|
|
604
605
|
ListService,
|
|
605
606
|
DropdownService,
|
|
606
607
|
MultiSelectService,
|
|
@@ -614,7 +615,7 @@ class MultiSelectComponent {
|
|
|
614
615
|
useExisting: forwardRef(() => MultiSelectComponent),
|
|
615
616
|
multi: false
|
|
616
617
|
}
|
|
617
|
-
], queries: [{ propertyName: "footerTemplate", first: true, predicate: DropdownFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: DropdownGroupHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: DropdownHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: DropdownItemTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "noDataTemplate", first: true, predicate: DropdownNoDataTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "prefixTemplate", first: true, predicate: DropdownPrefixTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "tagTemplate", first: true, predicate: MultiSelectTagTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DropdownDataHandlerDirective }, { directive: i1.DropdownListPopupHandlerDirective }, { directive: i1.DropdownLiveRegionDirective }], ngImport: i0, template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<div [class]=\"itemContainerClass()\">\n @for (pair of valueTextMap(); track pair.key) {\n <mona-chip\n look=\"default\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"
|
|
618
|
+
], queries: [{ propertyName: "footerTemplate", first: true, predicate: DropdownFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: DropdownGroupHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: DropdownHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: DropdownItemTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "noDataTemplate", first: true, predicate: DropdownNoDataTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "prefixTemplate", first: true, predicate: DropdownPrefixTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "tagTemplate", first: true, predicate: MultiSelectTagTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DropdownDataHandlerDirective }, { directive: i1.DropdownListPopupHandlerDirective }, { directive: i1.DropdownLiveRegionDirective }], ngImport: i0, template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<div [class]=\"itemContainerClass()\">\n @for (pair of valueTextMap(); track pair.key) {\n <mona-chip\n look=\"default\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"effectiveDisabled()\"\n [removeLabel]=\"chipMessages().removeLabel(pair.value)\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (remove)=\"onSelectedItemRemove($event, pair.key!)\">\n @if (tagTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tagTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: pair.key!.data }\"></ng-container>\n } @else {\n {{ pair.value }}\n }\n </mona-chip>\n }\n\n @if (tagCount() >= 0 && selectedListItems().length > tagCount()) {\n @let remainingCount = selectedDataItems().length - tagCount();\n <mona-chip\n look=\"outline\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"effectiveDisabled()\"\n [removeLabel]=\"messages().removeMoreItems(remainingCount)\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (remove)=\"onSelectedItemGroupRemove($event)\">\n @if (summaryTagTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"summaryTagTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItems(), tagCount: tagCount() }\"></ng-container>\n } @else {\n {{ messages().itemsCount(remainingCount) }}\n }\n </mona-chip>\n }\n\n @if (placeholder() && selectedListItems().isEmpty()) {\n <span class=\"px-1.5 text-muted-foreground\">{{ placeholder() }}</span>\n }\n</div>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [class]=\"indicatorClass()\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [class]=\"indicatorClass()\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [class]=\"indicatorClass()\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <div [class]=\"listPopupClass()\" (pointerdown)=\"onPopupPointerDown($event)\">\n <mona-list [listId]=\"listId\" [focusOnMount]=\"false\" [size]=\"size()\" (itemSelect)=\"onItemSelect()\">\n @if (footerTemplate()) {\n <ng-template monaListFooterTemplate>\n <ng-container [ngTemplateOutlet]=\"footerTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n @if (groupHeaderTemplate()) {\n <ng-template monaListGroupHeaderTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupHeaderTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (headerTemplate()) {\n <ng-template monaListHeaderTemplate>\n <ng-container [ngTemplateOutlet]=\"headerTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n @if (itemTemplate()) {\n <ng-template monaListItemTemplate let-dataItem>\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem }\"></ng-container>\n </ng-template>\n }\n @if (noDataTemplate()) {\n <ng-template monaListNoDataTemplate>\n <ng-container [ngTemplateOutlet]=\"noDataTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n </mona-list>\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: ChipComponent, selector: "mona-chip", inputs: ["aria-label", "disabled", "label", "look", "removable", "removeLabel", "removeTabIndex", "rounded", "selected", "size", "tabindex", "toggleable", "class", "value"], outputs: ["contentClick", "remove", "selectedChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ListComponent, selector: "mona-list", inputs: ["ariaLabel", "ariaLabelledBy", "busy", "data", "focusOnMount", "height", "listClass", "listId", "listItemClass", "listItemStyle", "listRole", "listStyle", "maxHeight", "maxWidth", "size", "textField", "width"], outputs: ["itemActivate", "itemSelect"] }, { kind: "directive", type: ListGroupHeaderTemplateDirective, selector: "ng-template[monaListGroupHeaderTemplate]" }, { kind: "directive", type: ListItemTemplateDirective, selector: "ng-template[monaListItemTemplate]" }, { kind: "directive", type: ListFooterTemplateDirective, selector: "ng-template[monaListFooterTemplate]" }, { kind: "directive", type: ListHeaderTemplateDirective, selector: "ng-template[monaListHeaderTemplate]" }, { kind: "directive", type: ListNoDataTemplateDirective, selector: "ng-template[monaListNoDataTemplate]" }, { kind: "component", type: IndicatorIconComponent, selector: "mona-indicator-icon", inputs: ["icon", "interactive", "label", "preset", "size", "class"], outputs: ["activate"] }] }); }
|
|
618
619
|
}
|
|
619
620
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
620
621
|
type: Component,
|
|
@@ -647,7 +648,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
647
648
|
"[attr.aria-busy]": "loading() ? 'true' : undefined",
|
|
648
649
|
"[attr.aria-controls]": "listId",
|
|
649
650
|
"[attr.aria-describedby]": "ariaDescribedBy() || null",
|
|
650
|
-
"[attr.aria-disabled]": "
|
|
651
|
+
"[attr.aria-disabled]": "effectiveDisabled() ? true : undefined",
|
|
651
652
|
"[attr.aria-expanded]": "expanded()",
|
|
652
653
|
"[attr.aria-haspopup]": "'listbox'",
|
|
653
654
|
"[attr.aria-invalid]": "invalidState() ? true : undefined",
|
|
@@ -655,14 +656,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
655
656
|
"[attr.aria-labelledby]": "ariaLabelledBy() || null",
|
|
656
657
|
"[attr.aria-readonly]": "readonly() ? true : undefined",
|
|
657
658
|
"[attr.aria-required]": "required() ? true : undefined",
|
|
658
|
-
"[attr.data-disabled]": "
|
|
659
|
+
"[attr.data-disabled]": "effectiveDisabled() || null",
|
|
659
660
|
"[attr.data-invalid]": "invalidState() || null",
|
|
660
661
|
"[attr.data-readonly]": "readonly() || null",
|
|
661
662
|
"[attr.role]": "'combobox'",
|
|
662
|
-
"[attr.tabindex]": "
|
|
663
|
+
"[attr.tabindex]": "effectiveDisabled() ? null : 0",
|
|
663
664
|
"[class]": "baseClass()",
|
|
664
665
|
"(focusout)": "onFocusOut($event)"
|
|
665
|
-
}, template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<div [class]=\"itemContainerClass()\">\n @for (pair of valueTextMap(); track pair.key) {\n <mona-chip\n look=\"default\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"
|
|
666
|
+
}, template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<div [class]=\"itemContainerClass()\">\n @for (pair of valueTextMap(); track pair.key) {\n <mona-chip\n look=\"default\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"effectiveDisabled()\"\n [removeLabel]=\"chipMessages().removeLabel(pair.value)\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (remove)=\"onSelectedItemRemove($event, pair.key!)\">\n @if (tagTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tagTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: pair.key!.data }\"></ng-container>\n } @else {\n {{ pair.value }}\n }\n </mona-chip>\n }\n\n @if (tagCount() >= 0 && selectedListItems().length > tagCount()) {\n @let remainingCount = selectedDataItems().length - tagCount();\n <mona-chip\n look=\"outline\"\n [tabindex]=\"-1\"\n [removable]=\"true\"\n [removeTabIndex]=\"-1\"\n [disabled]=\"effectiveDisabled()\"\n [removeLabel]=\"messages().removeMoreItems(remainingCount)\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (remove)=\"onSelectedItemGroupRemove($event)\">\n @if (summaryTagTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"summaryTagTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItems(), tagCount: tagCount() }\"></ng-container>\n } @else {\n {{ messages().itemsCount(remainingCount) }}\n }\n </mona-chip>\n }\n\n @if (placeholder() && selectedListItems().isEmpty()) {\n <span class=\"px-1.5 text-muted-foreground\">{{ placeholder() }}</span>\n }\n</div>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [class]=\"indicatorClass()\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [class]=\"indicatorClass()\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [class]=\"indicatorClass()\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <div [class]=\"listPopupClass()\" (pointerdown)=\"onPopupPointerDown($event)\">\n <mona-list [listId]=\"listId\" [focusOnMount]=\"false\" [size]=\"size()\" (itemSelect)=\"onItemSelect()\">\n @if (footerTemplate()) {\n <ng-template monaListFooterTemplate>\n <ng-container [ngTemplateOutlet]=\"footerTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n @if (groupHeaderTemplate()) {\n <ng-template monaListGroupHeaderTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupHeaderTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (headerTemplate()) {\n <ng-template monaListHeaderTemplate>\n <ng-container [ngTemplateOutlet]=\"headerTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n @if (itemTemplate()) {\n <ng-template monaListItemTemplate let-dataItem>\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem }\"></ng-container>\n </ng-template>\n }\n @if (noDataTemplate()) {\n <ng-template monaListNoDataTemplate>\n <ng-container [ngTemplateOutlet]=\"noDataTemplate() ?? null\"></ng-container>\n </ng-template>\n }\n </mona-list>\n </div>\n</ng-template>\n" }]
|
|
666
667
|
}], ctorParameters: () => [], propDecorators: { footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownFooterTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], groupHeaderTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownGroupHeaderTemplateDirective), { ...{
|
|
667
668
|
read: TemplateRef
|
|
668
669
|
}, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownHeaderTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownItemTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], noDataTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownNoDataTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], popupTemplate: [{ type: i0.ViewChild, args: ["popupTemplate", { isSignal: true }] }], prefixTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownPrefixTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], tagTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MultiSelectTagTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], autoClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClose", required: false }] }], checkboxes: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkboxes", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], closed: [{ type: i0.Output, args: ["closed"] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], itemDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemDisabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], open: [{ type: i0.Output, args: ["open"] }], opened: [{ type: i0.Output, args: ["opened"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], popupClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupClass", required: false }] }], popupHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupHeight", required: false }] }], popupWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupWidth", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], showClearButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearButton", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], touch: [{ type: i0.Output, args: ["touch"] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], valuePrimitive: [{ type: i0.Input, args: [{ isSignal: true, alias: "valuePrimitive", required: false }] }] } });
|
|
@@ -440,7 +440,7 @@ class NotificationComponent {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
443
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: NotificationComponent, isStandalone: true, selector: "mona-notification", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)", "pointerenter": "onPointerChange(true)", "pointerleave": "onPointerChange(false)" }, properties: { "attr.data-closing": "data().closing() ? '' : null", "class.notification-leave-bottom": "data().closing() && side() === 'bottom'", "class.notification-leave-top": "data().closing() && side() !== 'bottom'" } }, viewQueries: [{ propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "messageElement", first: true, predicate: ["message"], descendants: true, isSignal: true }], ngImport: i0, template: "@let opts = options();\n@let width = typeof opts.width === \"string\" ? opts.width : `${opts.width}px`;\n@let height = typeof opts.height === \"string\" ? opts.height : `${opts.height}px`;\n\n<div [class]=\"baseClass()\" [style.width]=\"width\" [style.height]=\"height\">\n @if (contentTemplate(); as template) {\n <div #message class=\"contents\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n [ngTemplateOutletInjector]=\"contentInjector()\"></ng-container>\n </div>\n } @else if (contentComponent()) {\n <div #message class=\"contents\">\n <ng-container #contentHost></ng-container>\n </div>\n } @else {\n <div #message [class]=\"bodyClass()\">\n <div [class]=\"iconClass()\" aria-hidden=\"true\">\n @switch (type()) {\n @case (\"error\") {\n <svg lucideOctagonX aria-hidden=\"true\"></svg>\n }\n @case (\"info\") {\n <svg lucideBadgeInfo aria-hidden=\"true\"></svg>\n }\n @case (\"success\") {\n <svg lucideCircleCheckBig aria-hidden=\"true\"></svg>\n }\n @case (\"warning\") {\n <svg lucideOctagonAlert aria-hidden=\"true\"></svg>\n }\n }\n </div>\n <div class=\"flex flex-col flex-1\">\n <div [class]=\"headerClass()\">{{ title() }}</div>\n <div [class]=\"contentClass()\">\n <span [class]=\"textClass()\">{{ stringContent() }}</span>\n </div>\n </div>\n </div>\n @if (opts.progressBar && opts.duration !== undefined) {\n <!-- Decorative: the time left isn't worth announcing. -->\n <div class=\"w-full h-1\" aria-hidden=\"true\">\n <mona-progress-bar\n [value]=\"progressValue()\"\n [color]=\"progressColor()\"\n [labelVisible]=\"false\"\n [animate]=\"false\"\n rounded=\"none\"\n class=\"h-full\"></mona-progress-bar>\n </div>\n }\n }\n @if (opts.closable) {\n <div [class]=\"actionClass()\">\n <button\n monaButton\n size=\"small\"\n look=\"link\"\n rounded=\"none\"\n [iconOnly]=\"true\"\n [title]=\"closeTitle()\"\n [attr.aria-label]=\"closeTitle()\"\n (click)=\"close()\">\n <svg lucideX [size]=\"14\" aria-hidden=\"true\"></svg>\n </button>\n </div>\n }\n</div>\n", styles: [":host{display:block}@keyframes notification-slide-in-top{0%{clip-path:inset(0 -20px 100% -20px);transform:translateY(-12px);opacity:0}to{clip-path:inset(-20px);transform:translateY(0);opacity:1}}@keyframes notification-slide-out-top{0%{clip-path:inset(-20px);transform:translateY(0);opacity:1}to{clip-path:inset(0 -20px 100% -20px);transform:translateY(-12px);opacity:0}}@keyframes notification-slide-in-bottom{0%{clip-path:inset(100% -20px 0 -20px);transform:translateY(12px);opacity:0}to{clip-path:inset(-20px);transform:translateY(0);opacity:1}}@keyframes notification-slide-out-bottom{0%{clip-path:inset(-20px);transform:translateY(0);opacity:1}to{clip-path:inset(100% -20px 0 -20px);transform:translateY(12px);opacity:0}}:host.notification-enter-top{animation:notification-slide-in-top .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-enter-bottom{animation:notification-slide-in-bottom .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-leave-top{animation:notification-slide-out-top .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-leave-bottom{animation:notification-slide-out-bottom .3s cubic-bezier(.4,0,.2,1) forwards}@media(prefers-reduced-motion:reduce){:host.notification-enter-top,:host.notification-enter-bottom,:host.notification-leave-top,:host.notification-leave-bottom{animation:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ProgressBarComponent, selector: "mona-progress-bar", inputs: ["animate", "aria-label", "aria-valuetext", "color", "disabled", "indeterminate", "labelPosition", "labelStyles", "labelVisible", "max", "min", "rounded", "class", "value"] }, { kind: "directive", type: ButtonDirective, selector: "button[monaButton]", inputs: ["aria-haspopup", "disabled", "iconOnly", "loading", "look", "rounded", "selected", "size", "tabindex", "toggleable", "type", "class"], outputs: ["lookChange", "selectedChange"] }, { kind: "component", type: LucideOctagonX, selector: "svg[lucideOctagonX], svg[lucideXOctagon]" }, { kind: "component", type: LucideBadgeInfo, selector: "svg[lucideBadgeInfo]" }, { kind: "component", type: LucideCircleCheckBig, selector: "svg[lucideCircleCheckBig], svg[lucideCheckCircle]" }, { kind: "component", type: LucideOctagonAlert, selector: "svg[lucideOctagonAlert], svg[lucideAlertOctagon]" }, { kind: "component", type: LucideX, selector: "svg[lucideX]" }] }); }
|
|
443
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: NotificationComponent, isStandalone: true, selector: "mona-notification", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)", "pointerenter": "onPointerChange(true)", "pointerleave": "onPointerChange(false)" }, properties: { "attr.data-closing": "data().closing() ? '' : null", "class.notification-leave-bottom": "data().closing() && side() === 'bottom'", "class.notification-leave-top": "data().closing() && side() !== 'bottom'" } }, viewQueries: [{ propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "messageElement", first: true, predicate: ["message"], descendants: true, isSignal: true }], ngImport: i0, template: "@let opts = options();\n@let width = typeof opts.width === \"string\" ? opts.width : `${opts.width}px`;\n@let height = typeof opts.height === \"string\" ? opts.height : `${opts.height}px`;\n\n<div [class]=\"baseClass()\" [style.width]=\"width\" [style.height]=\"height\">\n @if (contentTemplate(); as template) {\n <div #message class=\"contents\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n [ngTemplateOutletInjector]=\"contentInjector()\"></ng-container>\n </div>\n } @else if (contentComponent()) {\n <div #message class=\"contents\">\n <ng-container #contentHost></ng-container>\n </div>\n } @else {\n <div #message [class]=\"bodyClass()\">\n <div [class]=\"iconClass()\" aria-hidden=\"true\">\n @switch (type()) {\n @case (\"error\") {\n <svg lucideOctagonX aria-hidden=\"true\"></svg>\n }\n @case (\"info\") {\n <svg lucideBadgeInfo aria-hidden=\"true\"></svg>\n }\n @case (\"success\") {\n <svg lucideCircleCheckBig aria-hidden=\"true\"></svg>\n }\n @case (\"warning\") {\n <svg lucideOctagonAlert aria-hidden=\"true\"></svg>\n }\n }\n </div>\n <div class=\"flex flex-col flex-1\">\n <div [class]=\"headerClass()\">{{ title() }}</div>\n <div [class]=\"contentClass()\">\n <span [class]=\"textClass()\">{{ stringContent() }}</span>\n </div>\n </div>\n </div>\n @if (opts.progressBar && opts.duration !== undefined) {\n <!-- Decorative: the time left isn't worth announcing. -->\n <div class=\"w-full h-1\" aria-hidden=\"true\">\n <mona-progress-bar\n [value]=\"progressValue()\"\n [color]=\"progressColor()\"\n [labelVisible]=\"false\"\n [animate]=\"false\"\n rounded=\"none\"\n class=\"h-full\"></mona-progress-bar>\n </div>\n }\n }\n @if (opts.closable) {\n <div [class]=\"actionClass()\">\n <button\n monaButton\n size=\"small\"\n look=\"link\"\n rounded=\"none\"\n [iconOnly]=\"true\"\n [title]=\"closeTitle()\"\n [attr.aria-label]=\"closeTitle()\"\n (click)=\"close()\">\n <svg lucideX [size]=\"14\" aria-hidden=\"true\"></svg>\n </button>\n </div>\n }\n</div>\n", styles: [":host{display:block}@keyframes notification-slide-in-top{0%{clip-path:inset(0 -20px 100% -20px);transform:translateY(-12px);opacity:0}to{clip-path:inset(-20px);transform:translateY(0);opacity:1}}@keyframes notification-slide-out-top{0%{clip-path:inset(-20px);transform:translateY(0);opacity:1}to{clip-path:inset(0 -20px 100% -20px);transform:translateY(-12px);opacity:0}}@keyframes notification-slide-in-bottom{0%{clip-path:inset(100% -20px 0 -20px);transform:translateY(12px);opacity:0}to{clip-path:inset(-20px);transform:translateY(0);opacity:1}}@keyframes notification-slide-out-bottom{0%{clip-path:inset(-20px);transform:translateY(0);opacity:1}to{clip-path:inset(100% -20px 0 -20px);transform:translateY(12px);opacity:0}}:host.notification-enter-top{animation:notification-slide-in-top .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-enter-bottom{animation:notification-slide-in-bottom .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-leave-top{animation:notification-slide-out-top .3s cubic-bezier(.4,0,.2,1) forwards}:host.notification-leave-bottom{animation:notification-slide-out-bottom .3s cubic-bezier(.4,0,.2,1) forwards}@media(prefers-reduced-motion:reduce){:host.notification-enter-top,:host.notification-enter-bottom,:host.notification-leave-top,:host.notification-leave-bottom{animation:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ProgressBarComponent, selector: "mona-progress-bar", inputs: ["animate", "aria-label", "aria-valuetext", "color", "disabled", "indeterminate", "labelPosition", "labelStyles", "labelVisible", "max", "min", "rounded", "class", "value"] }, { kind: "directive", type: ButtonDirective, selector: "button[monaButton]", inputs: ["aria-haspopup", "disabled", "iconOnly", "loading", "look", "rounded", "selected", "size", "tabindex", "toggleable", "type", "class", "value"], outputs: ["lookChange", "selectedChange"] }, { kind: "component", type: LucideOctagonX, selector: "svg[lucideOctagonX], svg[lucideXOctagon]" }, { kind: "component", type: LucideBadgeInfo, selector: "svg[lucideBadgeInfo]" }, { kind: "component", type: LucideCircleCheckBig, selector: "svg[lucideCircleCheckBig], svg[lucideCheckCircle]" }, { kind: "component", type: LucideOctagonAlert, selector: "svg[lucideOctagonAlert], svg[lucideAlertOctagon]" }, { kind: "component", type: LucideX, selector: "svg[lucideX]" }] }); }
|
|
444
444
|
}
|
|
445
445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
446
446
|
type: Component,
|