@nanahoshi/mona-ui 0.32.2 → 0.33.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/docs/api/calendar.md +1 -1
- package/docs/api/file-upload.md +174 -0
- package/docs/api/i18n.md +49 -3
- package/docs/api/list-box.md +1 -1
- package/docs/api/locales.md +14 -14
- package/docs/api/tabs.md +1 -1
- package/docs/breadcrumb.md +6 -1
- package/docs/chart-line-area.md +6 -1
- package/docs/chart-treemap.md +1 -1
- package/docs/checkbox.md +1 -3
- package/docs/circular-progress-bar.md +26 -5
- package/docs/collapsible.md +28 -6
- package/docs/color-palette.md +24 -3
- package/docs/date-range-picker.md +1 -5
- package/docs/dropdown-button.md +6 -1
- package/docs/editor.md +8 -2
- package/docs/expansion-panel.md +6 -1
- package/docs/file-upload.md +516 -0
- package/docs/forms.md +2 -0
- package/docs/otp-input.md +12 -4
- package/docs/popup.md +2 -6
- package/docs/progress-bar.md +12 -3
- package/docs/scroll-view.md +6 -3
- package/docs/sheet.md +6 -2
- package/docs/sidebar.md +5 -1
- package/docs/skeleton.md +9 -2
- package/docs/stepper.md +3 -1
- package/docs/textarea.md +7 -1
- package/docs/textbox.md +7 -1
- package/docs/window.md +1 -1
- package/fesm2022/nanahoshi-mona-ui-card.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-command.mjs +4 -3
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +6 -3
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +10 -5
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +1137 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs → nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs → nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs → nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs} +3 -3
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +74 -0
- package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +50 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-window.mjs +15 -67
- package/file-upload/package.json +4 -0
- package/i18n/catalogs/en-US.messages.json +29 -0
- package/internal/live-announcer/package.json +4 -0
- package/llms.txt +3 -1
- package/locales/ar-sa/ar-sa.messages.json +29 -0
- package/locales/de-de/de-de.messages.json +29 -0
- package/locales/es-es/es-es.messages.json +29 -0
- package/locales/fr-fr/fr-fr.messages.json +29 -0
- package/locales/id-id/id-id.messages.json +29 -0
- package/locales/it-it/it-it.messages.json +29 -0
- package/locales/ja-jp/ja-jp.messages.json +29 -0
- package/locales/ko-kr/ko-kr.messages.json +29 -0
- package/locales/pl-pl/pl-pl.messages.json +29 -0
- package/locales/pt-br/pt-br.messages.json +29 -0
- package/locales/ru-ru/ru-ru.messages.json +29 -0
- package/locales/tr-tr/tr-tr.messages.json +29 -0
- package/locales/zh-cn/zh-cn.messages.json +29 -0
- package/locales/zh-tw/zh-tw.messages.json +29 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
- package/types/nanahoshi-mona-ui-file-upload.d.ts +366 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +73 -13
- package/types/nanahoshi-mona-ui-internal-live-announcer.d.ts +12 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
|
@@ -287,6 +287,44 @@ const MONA_IT_IT_LOCALE = {
|
|
|
287
287
|
undo: "Annulla",
|
|
288
288
|
widthPx: "Larghezza (px)"
|
|
289
289
|
},
|
|
290
|
+
fileUpload: {
|
|
291
|
+
browse: "Sfoglia i file",
|
|
292
|
+
browseFile: "Scegli un file",
|
|
293
|
+
cancel: (name) => `Annulla il caricamento di ${name}`,
|
|
294
|
+
clear: "Cancella",
|
|
295
|
+
dropFile: "Trascina qui un file",
|
|
296
|
+
dropFiles: "Trascina qui i file",
|
|
297
|
+
dropToAdd: "Rilascia per aggiungere",
|
|
298
|
+
fileFailed: (name) => `Impossibile caricare ${name}.`,
|
|
299
|
+
fileRejected: (name, reason) => `${name} non è stato aggiunto. ${reason}`,
|
|
300
|
+
fileRemoved: (name) => `${name} rimosso.`,
|
|
301
|
+
fileTypes: (types) => `Tipi di file: ${types}`,
|
|
302
|
+
fileUploaded: (name) => `${name} caricato.`,
|
|
303
|
+
files: "Elenco dei file",
|
|
304
|
+
filesAdded: (count) => plural(PLURAL_RULES.select(count), {
|
|
305
|
+
one: () => `${localizeNumber(count)} file aggiunto.`,
|
|
306
|
+
other: () => `${localizeNumber(count)} file aggiunti.`
|
|
307
|
+
}),
|
|
308
|
+
invalidType: "Questo tipo di file non è accettato.",
|
|
309
|
+
maxFileSize: (size) => `Dimensione max. del file: ${size}`,
|
|
310
|
+
maxFiles: (count) => `Fino a ${plural(PLURAL_RULES.select(count), {
|
|
311
|
+
one: () => `${localizeNumber(count)} file`,
|
|
312
|
+
other: () => `${localizeNumber(count)} file`
|
|
313
|
+
})}`,
|
|
314
|
+
readyToUpload: "Pronto per il caricamento",
|
|
315
|
+
remove: (name) => `Rimuovi ${name}`,
|
|
316
|
+
retry: (name) => `Riprova il caricamento di ${name}`,
|
|
317
|
+
tooLarge: (size) => `Il file supera ${size}.`,
|
|
318
|
+
tooMany: (count) => `Non si possono aggiungere più di ${plural(PLURAL_RULES.select(count), {
|
|
319
|
+
one: () => `${localizeNumber(count)} file`,
|
|
320
|
+
other: () => `${localizeNumber(count)} file`
|
|
321
|
+
})}.`,
|
|
322
|
+
tooSmall: (size) => `Il file è più piccolo di ${size}.`,
|
|
323
|
+
upload: "Carica",
|
|
324
|
+
uploadFailed: "Caricamento non riuscito.",
|
|
325
|
+
uploaded: "Caricato",
|
|
326
|
+
uploading: "Caricamento in corso"
|
|
327
|
+
},
|
|
290
328
|
filter: {
|
|
291
329
|
and: "E",
|
|
292
330
|
apply: "Applica",
|
|
@@ -271,6 +271,35 @@ const MONA_JA_JP_LOCALE = {
|
|
|
271
271
|
undo: "元に戻す",
|
|
272
272
|
widthPx: "幅 (px)"
|
|
273
273
|
},
|
|
274
|
+
fileUpload: {
|
|
275
|
+
browse: "ファイルを参照",
|
|
276
|
+
browseFile: "ファイルを選択",
|
|
277
|
+
cancel: (name) => `${name} のアップロードをキャンセル`,
|
|
278
|
+
clear: "クリア",
|
|
279
|
+
dropFile: "ここにファイルをドラッグ",
|
|
280
|
+
dropFiles: "ここにファイルをドラッグ",
|
|
281
|
+
dropToAdd: "ドロップして追加",
|
|
282
|
+
fileFailed: (name) => `${name} をアップロードできませんでした。`,
|
|
283
|
+
fileRejected: (name, reason) => `${name} は追加されませんでした。${reason}`,
|
|
284
|
+
fileRemoved: (name) => `${name} を削除しました。`,
|
|
285
|
+
fileTypes: (types) => `ファイル形式:${types}`,
|
|
286
|
+
fileUploaded: (name) => `${name} をアップロードしました。`,
|
|
287
|
+
files: "ファイル",
|
|
288
|
+
filesAdded: (count) => `${localizeNumber(count)} 件のファイルを追加しました。`,
|
|
289
|
+
invalidType: "このファイル形式は使用できません。",
|
|
290
|
+
maxFileSize: (size) => `最大ファイルサイズ:${size}`,
|
|
291
|
+
maxFiles: (count) => `最大 ${localizeNumber(count)} 件`,
|
|
292
|
+
readyToUpload: "アップロード待ち",
|
|
293
|
+
remove: (name) => `${name} を削除`,
|
|
294
|
+
retry: (name) => `${name} のアップロードを再試行`,
|
|
295
|
+
tooLarge: (size) => `ファイルが ${size} を超えています。`,
|
|
296
|
+
tooMany: (count) => `追加できるファイルは ${localizeNumber(count)} 件までです。`,
|
|
297
|
+
tooSmall: (size) => `ファイルが ${size} より小さいです。`,
|
|
298
|
+
upload: "アップロード",
|
|
299
|
+
uploadFailed: "アップロードに失敗しました。",
|
|
300
|
+
uploaded: "アップロード済み",
|
|
301
|
+
uploading: "アップロード中"
|
|
302
|
+
},
|
|
274
303
|
filter: {
|
|
275
304
|
and: "かつ",
|
|
276
305
|
apply: "適用",
|
|
@@ -271,6 +271,35 @@ const MONA_KO_KR_LOCALE = {
|
|
|
271
271
|
undo: "실행 취소",
|
|
272
272
|
widthPx: "너비 (px)"
|
|
273
273
|
},
|
|
274
|
+
fileUpload: {
|
|
275
|
+
browse: "파일 찾아보기",
|
|
276
|
+
browseFile: "파일 선택",
|
|
277
|
+
cancel: (name) => `${name} 업로드 취소`,
|
|
278
|
+
clear: "지우기",
|
|
279
|
+
dropFile: "여기로 파일을 끌어 오세요",
|
|
280
|
+
dropFiles: "여기로 파일을 끌어 오세요",
|
|
281
|
+
dropToAdd: "놓아서 추가",
|
|
282
|
+
fileFailed: (name) => `${name}을(를) 업로드하지 못했습니다.`,
|
|
283
|
+
fileRejected: (name, reason) => `${name}을(를) 추가하지 않았습니다. ${reason}`,
|
|
284
|
+
fileRemoved: (name) => `${name}을(를) 제거했습니다.`,
|
|
285
|
+
fileTypes: (types) => `파일 형식: ${types}`,
|
|
286
|
+
fileUploaded: (name) => `${name}을(를) 업로드했습니다.`,
|
|
287
|
+
files: "파일",
|
|
288
|
+
filesAdded: (count) => `파일 ${localizeNumber(count)}개를 추가했습니다.`,
|
|
289
|
+
invalidType: "허용되지 않는 파일 형식입니다.",
|
|
290
|
+
maxFileSize: (size) => `최대 파일 크기: ${size}`,
|
|
291
|
+
maxFiles: (count) => `최대 ${localizeNumber(count)}개`,
|
|
292
|
+
readyToUpload: "업로드 대기 중",
|
|
293
|
+
remove: (name) => `${name} 제거`,
|
|
294
|
+
retry: (name) => `${name} 업로드 다시 시도`,
|
|
295
|
+
tooLarge: (size) => `파일이 ${size}보다 큽니다.`,
|
|
296
|
+
tooMany: (count) => `파일은 최대 ${localizeNumber(count)}개까지 추가할 수 있습니다.`,
|
|
297
|
+
tooSmall: (size) => `파일이 ${size}보다 작습니다.`,
|
|
298
|
+
upload: "업로드",
|
|
299
|
+
uploadFailed: "업로드에 실패했습니다.",
|
|
300
|
+
uploaded: "업로드됨",
|
|
301
|
+
uploading: "업로드 중"
|
|
302
|
+
},
|
|
274
303
|
filter: {
|
|
275
304
|
and: "그리고",
|
|
276
305
|
apply: "적용",
|
|
@@ -305,6 +305,50 @@ const MONA_PL_PL_LOCALE = {
|
|
|
305
305
|
undo: "Cofnij",
|
|
306
306
|
widthPx: "Szerokość (px)"
|
|
307
307
|
},
|
|
308
|
+
fileUpload: {
|
|
309
|
+
browse: "Przeglądaj pliki",
|
|
310
|
+
browseFile: "Wybierz plik",
|
|
311
|
+
cancel: (name) => `Anuluj przesyłanie pliku ${name}`,
|
|
312
|
+
clear: "Wyczyść",
|
|
313
|
+
dropFile: "Przeciągnij plik tutaj",
|
|
314
|
+
dropFiles: "Przeciągnij pliki tutaj",
|
|
315
|
+
dropToAdd: "Upuść, aby dodać",
|
|
316
|
+
fileFailed: (name) => `Nie udało się przesłać pliku ${name}.`,
|
|
317
|
+
fileRejected: (name, reason) => `Nie dodano pliku ${name}. ${reason}`,
|
|
318
|
+
fileRemoved: (name) => `Usunięto plik ${name}.`,
|
|
319
|
+
fileTypes: (types) => `Typy plików: ${types}`,
|
|
320
|
+
fileUploaded: (name) => `Przesłano plik ${name}.`,
|
|
321
|
+
files: "Pliki",
|
|
322
|
+
filesAdded: (count) => plural(PLURAL_RULES.select(count), {
|
|
323
|
+
one: () => `Dodano ${localizeNumber(count)} plik.`,
|
|
324
|
+
few: () => `Dodano ${localizeNumber(count)} pliki.`,
|
|
325
|
+
many: () => `Dodano ${localizeNumber(count)} plików.`,
|
|
326
|
+
other: () => `Dodano ${localizeNumber(count)} pliku.`
|
|
327
|
+
}),
|
|
328
|
+
invalidType: "Ten typ pliku nie jest akceptowany.",
|
|
329
|
+
maxFileSize: (size) => `Maks. rozmiar pliku: ${size}`,
|
|
330
|
+
maxFiles: (count) => `Maksymalnie ${plural(PLURAL_RULES.select(count), {
|
|
331
|
+
one: () => `${localizeNumber(count)} plik`,
|
|
332
|
+
few: () => `${localizeNumber(count)} pliki`,
|
|
333
|
+
many: () => `${localizeNumber(count)} plików`,
|
|
334
|
+
other: () => `${localizeNumber(count)} pliku`
|
|
335
|
+
})}`,
|
|
336
|
+
readyToUpload: "Gotowy do przesłania",
|
|
337
|
+
remove: (name) => `Usuń plik ${name}`,
|
|
338
|
+
retry: (name) => `Ponów przesyłanie pliku ${name}`,
|
|
339
|
+
tooLarge: (size) => `Plik jest większy niż ${size}.`,
|
|
340
|
+
tooMany: (count) => `Można dodać najwyżej ${plural(PLURAL_RULES.select(count), {
|
|
341
|
+
one: () => `${localizeNumber(count)} plik`,
|
|
342
|
+
few: () => `${localizeNumber(count)} pliki`,
|
|
343
|
+
many: () => `${localizeNumber(count)} plików`,
|
|
344
|
+
other: () => `${localizeNumber(count)} pliku`
|
|
345
|
+
})}.`,
|
|
346
|
+
tooSmall: (size) => `Plik jest mniejszy niż ${size}.`,
|
|
347
|
+
upload: "Prześlij",
|
|
348
|
+
uploadFailed: "Przesyłanie nie powiodło się.",
|
|
349
|
+
uploaded: "Przesłano",
|
|
350
|
+
uploading: "Przesyłanie"
|
|
351
|
+
},
|
|
308
352
|
filter: {
|
|
309
353
|
and: "I",
|
|
310
354
|
apply: "Zastosuj",
|
|
@@ -287,6 +287,44 @@ const MONA_PT_BR_LOCALE = {
|
|
|
287
287
|
undo: "Desfazer",
|
|
288
288
|
widthPx: "Largura (px)"
|
|
289
289
|
},
|
|
290
|
+
fileUpload: {
|
|
291
|
+
browse: "Procurar arquivos",
|
|
292
|
+
browseFile: "Escolher um arquivo",
|
|
293
|
+
cancel: (name) => `Cancelar o envio de ${name}`,
|
|
294
|
+
clear: "Limpar",
|
|
295
|
+
dropFile: "Arraste um arquivo para cá",
|
|
296
|
+
dropFiles: "Arraste arquivos para cá",
|
|
297
|
+
dropToAdd: "Solte para adicionar",
|
|
298
|
+
fileFailed: (name) => `Não foi possível enviar ${name}.`,
|
|
299
|
+
fileRejected: (name, reason) => `${name} não foi adicionado. ${reason}`,
|
|
300
|
+
fileRemoved: (name) => `${name} removido.`,
|
|
301
|
+
fileTypes: (types) => `Tipos de arquivo: ${types}`,
|
|
302
|
+
fileUploaded: (name) => `${name} enviado.`,
|
|
303
|
+
files: "Arquivos",
|
|
304
|
+
filesAdded: (count) => plural(PLURAL_RULES.select(count), {
|
|
305
|
+
one: () => `${localizeNumber(count)} arquivo adicionado.`,
|
|
306
|
+
other: () => `${localizeNumber(count)} arquivos adicionados.`
|
|
307
|
+
}),
|
|
308
|
+
invalidType: "Este tipo de arquivo não é aceito.",
|
|
309
|
+
maxFileSize: (size) => `Tamanho máx. do arquivo: ${size}`,
|
|
310
|
+
maxFiles: (count) => `Até ${plural(PLURAL_RULES.select(count), {
|
|
311
|
+
one: () => `${localizeNumber(count)} arquivo`,
|
|
312
|
+
other: () => `${localizeNumber(count)} arquivos`
|
|
313
|
+
})}`,
|
|
314
|
+
readyToUpload: "Pronto para enviar",
|
|
315
|
+
remove: (name) => `Remover ${name}`,
|
|
316
|
+
retry: (name) => `Tentar enviar ${name} novamente`,
|
|
317
|
+
tooLarge: (size) => `O arquivo é maior que ${size}.`,
|
|
318
|
+
tooMany: (count) => `Não é possível adicionar mais de ${plural(PLURAL_RULES.select(count), {
|
|
319
|
+
one: () => `${localizeNumber(count)} arquivo`,
|
|
320
|
+
other: () => `${localizeNumber(count)} arquivos`
|
|
321
|
+
})}.`,
|
|
322
|
+
tooSmall: (size) => `O arquivo é menor que ${size}.`,
|
|
323
|
+
upload: "Enviar",
|
|
324
|
+
uploadFailed: "Falha no envio.",
|
|
325
|
+
uploaded: "Enviado",
|
|
326
|
+
uploading: "Enviando"
|
|
327
|
+
},
|
|
290
328
|
filter: {
|
|
291
329
|
and: "E",
|
|
292
330
|
apply: "Aplicar",
|
|
@@ -295,6 +295,50 @@ const MONA_RU_RU_LOCALE = {
|
|
|
295
295
|
undo: "Отменить",
|
|
296
296
|
widthPx: "Ширина (px)"
|
|
297
297
|
},
|
|
298
|
+
fileUpload: {
|
|
299
|
+
browse: "Выбрать файлы",
|
|
300
|
+
browseFile: "Выбрать файл",
|
|
301
|
+
cancel: (name) => `Отменить загрузку ${name}`,
|
|
302
|
+
clear: "Очистить",
|
|
303
|
+
dropFile: "Перетащите файл сюда",
|
|
304
|
+
dropFiles: "Перетащите файлы сюда",
|
|
305
|
+
dropToAdd: "Отпустите, чтобы добавить",
|
|
306
|
+
fileFailed: (name) => `Не удалось загрузить ${name}.`,
|
|
307
|
+
fileRejected: (name, reason) => `Файл ${name} не добавлен. ${reason}`,
|
|
308
|
+
fileRemoved: (name) => `Файл ${name} удалён.`,
|
|
309
|
+
fileTypes: (types) => `Типы файлов: ${types}`,
|
|
310
|
+
fileUploaded: (name) => `Файл ${name} загружен.`,
|
|
311
|
+
files: "Файлы",
|
|
312
|
+
filesAdded: (count) => plural(PLURAL_RULES.select(count), {
|
|
313
|
+
one: () => `Добавлен ${localizeNumber(count)} файл.`,
|
|
314
|
+
few: () => `Добавлено ${localizeNumber(count)} файла.`,
|
|
315
|
+
many: () => `Добавлено ${localizeNumber(count)} файлов.`,
|
|
316
|
+
other: () => `Добавлено ${localizeNumber(count)} файла.`
|
|
317
|
+
}),
|
|
318
|
+
invalidType: "Этот тип файлов не принимается.",
|
|
319
|
+
maxFileSize: (size) => `Макс. размер файла: ${size}`,
|
|
320
|
+
maxFiles: (count) => `Не более ${plural(PLURAL_RULES.select(count), {
|
|
321
|
+
one: () => `${localizeNumber(count)} файла`,
|
|
322
|
+
few: () => `${localizeNumber(count)} файлов`,
|
|
323
|
+
many: () => `${localizeNumber(count)} файлов`,
|
|
324
|
+
other: () => `${localizeNumber(count)} файла`
|
|
325
|
+
})}`,
|
|
326
|
+
readyToUpload: "Готов к загрузке",
|
|
327
|
+
remove: (name) => `Удалить ${name}`,
|
|
328
|
+
retry: (name) => `Повторить загрузку ${name}`,
|
|
329
|
+
tooLarge: (size) => `Размер файла больше ${size}.`,
|
|
330
|
+
tooMany: (count) => `Можно добавить не более ${plural(PLURAL_RULES.select(count), {
|
|
331
|
+
one: () => `${localizeNumber(count)} файла`,
|
|
332
|
+
few: () => `${localizeNumber(count)} файлов`,
|
|
333
|
+
many: () => `${localizeNumber(count)} файлов`,
|
|
334
|
+
other: () => `${localizeNumber(count)} файла`
|
|
335
|
+
})}.`,
|
|
336
|
+
tooSmall: (size) => `Размер файла меньше ${size}.`,
|
|
337
|
+
upload: "Загрузить",
|
|
338
|
+
uploadFailed: "Не удалось загрузить.",
|
|
339
|
+
uploaded: "Загружено",
|
|
340
|
+
uploading: "Загрузка"
|
|
341
|
+
},
|
|
298
342
|
filter: {
|
|
299
343
|
and: "И",
|
|
300
344
|
apply: "Применить",
|
|
@@ -287,6 +287,35 @@ const MONA_TR_TR_LOCALE = {
|
|
|
287
287
|
undo: "Geri al",
|
|
288
288
|
widthPx: "Genişlik (px)"
|
|
289
289
|
},
|
|
290
|
+
fileUpload: {
|
|
291
|
+
browse: "Dosyalara göz at",
|
|
292
|
+
browseFile: "Dosya seç",
|
|
293
|
+
cancel: (name) => `${name} yüklemesini iptal et`,
|
|
294
|
+
clear: "Temizle",
|
|
295
|
+
dropFile: "Dosyayı buraya sürükleyin",
|
|
296
|
+
dropFiles: "Dosyaları buraya sürükleyin",
|
|
297
|
+
dropToAdd: "Eklemek için bırakın",
|
|
298
|
+
fileFailed: (name) => `${name} yüklenemedi.`,
|
|
299
|
+
fileRejected: (name, reason) => `${name} eklenmedi. ${reason}`,
|
|
300
|
+
fileRemoved: (name) => `${name} kaldırıldı.`,
|
|
301
|
+
fileTypes: (types) => `Dosya türleri: ${types}`,
|
|
302
|
+
fileUploaded: (name) => `${name} yüklendi.`,
|
|
303
|
+
files: "Dosyalar",
|
|
304
|
+
filesAdded: (count) => `${localizeNumber(count)} dosya eklendi.`,
|
|
305
|
+
invalidType: "Bu dosya türü kabul edilmiyor.",
|
|
306
|
+
maxFileSize: (size) => `Maks. dosya boyutu: ${size}`,
|
|
307
|
+
maxFiles: (count) => `En fazla ${localizeNumber(count)} dosya`,
|
|
308
|
+
readyToUpload: "Yüklenmeye hazır",
|
|
309
|
+
remove: (name) => `${name} dosyasını kaldır`,
|
|
310
|
+
retry: (name) => `${name} yüklemesini yeniden dene`,
|
|
311
|
+
tooLarge: (size) => `Dosya ${size} boyutundan büyük.`,
|
|
312
|
+
tooMany: (count) => `En fazla ${localizeNumber(count)} dosya eklenebilir.`,
|
|
313
|
+
tooSmall: (size) => `Dosya ${size} boyutundan küçük.`,
|
|
314
|
+
upload: "Yükle",
|
|
315
|
+
uploadFailed: "Yükleme başarısız oldu.",
|
|
316
|
+
uploaded: "Yüklendi",
|
|
317
|
+
uploading: "Yükleniyor"
|
|
318
|
+
},
|
|
290
319
|
filter: {
|
|
291
320
|
and: "Ve",
|
|
292
321
|
apply: "Uygula",
|
|
@@ -271,6 +271,35 @@ const MONA_ZH_CN_LOCALE = {
|
|
|
271
271
|
undo: "撤销",
|
|
272
272
|
widthPx: "宽度 (px)"
|
|
273
273
|
},
|
|
274
|
+
fileUpload: {
|
|
275
|
+
browse: "浏览文件",
|
|
276
|
+
browseFile: "选择文件",
|
|
277
|
+
cancel: (name) => `取消上传 ${name}`,
|
|
278
|
+
clear: "清除",
|
|
279
|
+
dropFile: "将文件拖到此处",
|
|
280
|
+
dropFiles: "将文件拖到此处",
|
|
281
|
+
dropToAdd: "松开以添加",
|
|
282
|
+
fileFailed: (name) => `${name} 上传失败。`,
|
|
283
|
+
fileRejected: (name, reason) => `未添加 ${name}。${reason}`,
|
|
284
|
+
fileRemoved: (name) => `已移除 ${name}。`,
|
|
285
|
+
fileTypes: (types) => `文件类型:${types}`,
|
|
286
|
+
fileUploaded: (name) => `${name} 已上传。`,
|
|
287
|
+
files: "文件",
|
|
288
|
+
filesAdded: (count) => `已添加 ${localizeNumber(count)} 个文件。`,
|
|
289
|
+
invalidType: "不接受此文件类型。",
|
|
290
|
+
maxFileSize: (size) => `单个文件最大 ${size}`,
|
|
291
|
+
maxFiles: (count) => `最多 ${localizeNumber(count)} 个文件`,
|
|
292
|
+
readyToUpload: "等待上传",
|
|
293
|
+
remove: (name) => `移除 ${name}`,
|
|
294
|
+
retry: (name) => `重新上传 ${name}`,
|
|
295
|
+
tooLarge: (size) => `文件大于 ${size}。`,
|
|
296
|
+
tooMany: (count) => `最多只能添加 ${localizeNumber(count)} 个文件。`,
|
|
297
|
+
tooSmall: (size) => `文件小于 ${size}。`,
|
|
298
|
+
upload: "上传",
|
|
299
|
+
uploadFailed: "上传失败。",
|
|
300
|
+
uploaded: "已上传",
|
|
301
|
+
uploading: "正在上传"
|
|
302
|
+
},
|
|
274
303
|
filter: {
|
|
275
304
|
and: "与",
|
|
276
305
|
apply: "应用",
|
|
@@ -271,6 +271,35 @@ const MONA_ZH_TW_LOCALE = {
|
|
|
271
271
|
undo: "復原",
|
|
272
272
|
widthPx: "寬度 (px)"
|
|
273
273
|
},
|
|
274
|
+
fileUpload: {
|
|
275
|
+
browse: "瀏覽檔案",
|
|
276
|
+
browseFile: "選擇檔案",
|
|
277
|
+
cancel: (name) => `取消上傳 ${name}`,
|
|
278
|
+
clear: "清除",
|
|
279
|
+
dropFile: "將檔案拖曳到此處",
|
|
280
|
+
dropFiles: "將檔案拖曳到此處",
|
|
281
|
+
dropToAdd: "放開以新增",
|
|
282
|
+
fileFailed: (name) => `${name} 上傳失敗。`,
|
|
283
|
+
fileRejected: (name, reason) => `未新增 ${name}。${reason}`,
|
|
284
|
+
fileRemoved: (name) => `已移除 ${name}。`,
|
|
285
|
+
fileTypes: (types) => `檔案類型:${types}`,
|
|
286
|
+
fileUploaded: (name) => `${name} 已上傳。`,
|
|
287
|
+
files: "檔案",
|
|
288
|
+
filesAdded: (count) => `已新增 ${localizeNumber(count)} 個檔案。`,
|
|
289
|
+
invalidType: "不接受此檔案類型。",
|
|
290
|
+
maxFileSize: (size) => `單一檔案上限 ${size}`,
|
|
291
|
+
maxFiles: (count) => `最多 ${localizeNumber(count)} 個檔案`,
|
|
292
|
+
readyToUpload: "等待上傳",
|
|
293
|
+
remove: (name) => `移除 ${name}`,
|
|
294
|
+
retry: (name) => `重新上傳 ${name}`,
|
|
295
|
+
tooLarge: (size) => `檔案大於 ${size}。`,
|
|
296
|
+
tooMany: (count) => `最多只能新增 ${localizeNumber(count)} 個檔案。`,
|
|
297
|
+
tooSmall: (size) => `檔案小於 ${size}。`,
|
|
298
|
+
upload: "上傳",
|
|
299
|
+
uploadFailed: "上傳失敗。",
|
|
300
|
+
uploaded: "已上傳",
|
|
301
|
+
uploading: "正在上傳"
|
|
302
|
+
},
|
|
274
303
|
filter: {
|
|
275
304
|
and: "且",
|
|
276
305
|
apply: "套用",
|
|
@@ -4,10 +4,10 @@ import { ApplicationRef, Component, DOCUMENT, DestroyRef, ElementRef, Injectable
|
|
|
4
4
|
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
5
5
|
import { createElementControlId, themeOverlaySurfaceClasses } from "@nanahoshi/mona-ui/internal";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
|
-
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
8
7
|
import { DOCUMENT as DOCUMENT$1, NgTemplateOutlet } from "@angular/common";
|
|
9
8
|
import { LucideBadgeInfo, LucideCircleCheckBig, LucideOctagonAlert, LucideOctagonX, LucideX } from "@lucide/angular";
|
|
10
9
|
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
10
|
+
import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
|
|
11
11
|
import { ProgressBarComponent } from "@nanahoshi/mona-ui/progress-bar";
|
|
12
12
|
import { Subject } from "rxjs";
|
|
13
13
|
const NOTIFICATION_DEFAULT_MESSAGES = {
|
|
@@ -106,7 +106,7 @@ var NotificationComponent = class NotificationComponent {
|
|
|
106
106
|
#remaining;
|
|
107
107
|
#startedAt;
|
|
108
108
|
constructor() {
|
|
109
|
-
this.#announcer =
|
|
109
|
+
this.#announcer = injectLiveAnnouncer();
|
|
110
110
|
this.#defaults = inject(NOTIFICATION_DEFAULTS);
|
|
111
111
|
this.#destroyRef = inject(DestroyRef);
|
|
112
112
|
this.#document = inject(DOCUMENT$1);
|
|
@@ -805,7 +805,7 @@ var PagerComponent = class PagerComponent {
|
|
|
805
805
|
isSignal: true
|
|
806
806
|
}],
|
|
807
807
|
ngImport: i0,
|
|
808
|
-
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"pagerInfoTemplateRef\" [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n",
|
|
808
|
+
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pagerInfoTemplateRef\"\n [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n",
|
|
809
809
|
dependencies: [
|
|
810
810
|
{
|
|
811
811
|
kind: "directive",
|
|
@@ -964,7 +964,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
964
964
|
"(keydown)": "onKeydown($event)",
|
|
965
965
|
role: "navigation"
|
|
966
966
|
},
|
|
967
|
-
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"pagerInfoTemplateRef\" [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n"
|
|
967
|
+
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pagerInfoTemplateRef\"\n [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n"
|
|
968
968
|
}]
|
|
969
969
|
}],
|
|
970
970
|
ctorParameters: () => [],
|
|
@@ -574,7 +574,7 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
574
574
|
isSignal: true
|
|
575
575
|
}],
|
|
576
576
|
ngImport: i0,
|
|
577
|
-
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span
|
|
577
|
+
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span class=\"pointer-events-none flex flex-1 items-center justify-center gap-1 [border-radius:inherit]\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"optionContexts()[$index]\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n",
|
|
578
578
|
dependencies: [{
|
|
579
579
|
kind: "directive",
|
|
580
580
|
type: NgTemplateOutlet,
|
|
@@ -613,7 +613,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
613
613
|
"[attr.role]": "'radiogroup'",
|
|
614
614
|
"[class]": "containerClasses()"
|
|
615
615
|
},
|
|
616
|
-
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span
|
|
616
|
+
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span class=\"pointer-events-none flex flex-1 items-center justify-center gap-1 [border-radius:inherit]\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"optionContexts()[$index]\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n"
|
|
617
617
|
}]
|
|
618
618
|
}],
|
|
619
619
|
ctorParameters: () => [],
|