@nanahoshi/mona-ui 0.32.3 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/docs/api/file-upload.md +174 -0
  2. package/docs/api/grid.md +46 -13
  3. package/docs/api/i18n.md +46 -0
  4. package/docs/api/locales.md +14 -14
  5. package/docs/file-upload.md +516 -0
  6. package/docs/forms.md +2 -0
  7. package/docs/grid-columns.md +121 -17
  8. package/docs/grid-state-export.md +24 -7
  9. package/docs/grid.md +1 -1
  10. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +2 -2
  11. package/fesm2022/nanahoshi-mona-ui-command.mjs +4 -3
  12. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +2 -2
  13. package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +1137 -0
  14. package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs} +2 -2
  15. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs} +8 -3
  16. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-C1qjq2s7.mjs → nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs} +10 -6
  17. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-CgOt2A6O.mjs → nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs} +23 -8
  18. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-tguG2LpN.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs} +5 -5
  19. package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs → nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs} +230 -18
  20. package/fesm2022/nanahoshi-mona-ui-grid.mjs +425 -31
  21. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +74 -0
  22. package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +10 -0
  23. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +3 -2
  24. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +2 -2
  25. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +50 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +38 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +38 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +38 -0
  29. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +38 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +38 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -0
  37. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -0
  38. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -0
  39. package/fesm2022/nanahoshi-mona-ui-notification.mjs +2 -2
  40. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +2 -2
  41. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -2
  42. package/file-upload/package.json +4 -0
  43. package/i18n/catalogs/en-US.messages.json +29 -0
  44. package/internal/live-announcer/package.json +4 -0
  45. package/llms.txt +6 -4
  46. package/locales/ar-sa/ar-sa.messages.json +29 -0
  47. package/locales/de-de/de-de.messages.json +29 -0
  48. package/locales/es-es/es-es.messages.json +29 -0
  49. package/locales/fr-fr/fr-fr.messages.json +29 -0
  50. package/locales/id-id/id-id.messages.json +29 -0
  51. package/locales/it-it/it-it.messages.json +29 -0
  52. package/locales/ja-jp/ja-jp.messages.json +29 -0
  53. package/locales/ko-kr/ko-kr.messages.json +29 -0
  54. package/locales/pl-pl/pl-pl.messages.json +29 -0
  55. package/locales/pt-br/pt-br.messages.json +29 -0
  56. package/locales/ru-ru/ru-ru.messages.json +29 -0
  57. package/locales/tr-tr/tr-tr.messages.json +29 -0
  58. package/locales/zh-cn/zh-cn.messages.json +29 -0
  59. package/locales/zh-tw/zh-tw.messages.json +29 -0
  60. package/package.json +9 -1
  61. package/types/nanahoshi-mona-ui-file-upload.d.ts +366 -0
  62. package/types/nanahoshi-mona-ui-grid.d.ts +142 -64
  63. package/types/nanahoshi-mona-ui-i18n.d.ts +60 -0
  64. package/types/nanahoshi-mona-ui-internal-live-announcer.d.ts +12 -0
  65. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
  66. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
  67. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
  68. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
  69. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
  70. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
  71. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
  72. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
  73. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +29 -0
  74. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
  75. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
  76. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
  77. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
  78. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
@@ -564,6 +564,80 @@ const MONA_MESSAGE_PARAMETERS = {
564
564
  undo: null,
565
565
  widthPx: null
566
566
  },
567
+ fileUpload: {
568
+ browse: null,
569
+ browseFile: null,
570
+ cancel: [{
571
+ name: "name",
572
+ type: "string"
573
+ }],
574
+ clear: null,
575
+ dropFile: null,
576
+ dropFiles: null,
577
+ dropToAdd: null,
578
+ fileFailed: [{
579
+ name: "name",
580
+ type: "string"
581
+ }],
582
+ fileRejected: [{
583
+ name: "name",
584
+ type: "string"
585
+ }, {
586
+ name: "reason",
587
+ type: "string"
588
+ }],
589
+ fileRemoved: [{
590
+ name: "name",
591
+ type: "string"
592
+ }],
593
+ fileTypes: [{
594
+ name: "types",
595
+ type: "string"
596
+ }],
597
+ fileUploaded: [{
598
+ name: "name",
599
+ type: "string"
600
+ }],
601
+ files: null,
602
+ filesAdded: [{
603
+ name: "count",
604
+ type: "number"
605
+ }],
606
+ invalidType: null,
607
+ maxFileSize: [{
608
+ name: "size",
609
+ type: "string"
610
+ }],
611
+ maxFiles: [{
612
+ name: "count",
613
+ type: "number"
614
+ }],
615
+ readyToUpload: null,
616
+ remove: [{
617
+ name: "name",
618
+ type: "string"
619
+ }],
620
+ retry: [{
621
+ name: "name",
622
+ type: "string"
623
+ }],
624
+ tooLarge: [{
625
+ name: "size",
626
+ type: "string"
627
+ }],
628
+ tooMany: [{
629
+ name: "count",
630
+ type: "number"
631
+ }],
632
+ tooSmall: [{
633
+ name: "size",
634
+ type: "string"
635
+ }],
636
+ upload: null,
637
+ uploadFailed: null,
638
+ uploaded: null,
639
+ uploading: null
640
+ },
567
641
  filter: {
568
642
  and: null,
569
643
  apply: null,
@@ -0,0 +1,10 @@
1
+ import { LiveAnnouncer } from "@angular/cdk/a11y";
2
+ import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from "@angular/cdk/private";
3
+ import { inject } from "@angular/core";
4
+ function injectLiveAnnouncer() {
5
+ inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
6
+ return inject(LiveAnnouncer);
7
+ }
8
+ export { injectLiveAnnouncer };
9
+
10
+ //# sourceMappingURL=nanahoshi-mona-ui-internal-live-announcer.mjs.map
@@ -1,9 +1,10 @@
1
- import { FocusMonitor, LiveAnnouncer } from "@angular/cdk/a11y";
1
+ import { FocusMonitor } from "@angular/cdk/a11y";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injectable, Injector, NgZone, Pipe, TemplateRef, afterNextRender, afterRenderEffect, computed, contentChild, effect, inject, input, signal, untracked } from "@angular/core";
4
4
  import { takeUntilDestroyed, toObservable, toSignal } from "@angular/core/rxjs-interop";
5
5
  import { MonaI18nService, formatNumber, injectComponentDirection } from "@nanahoshi/mona-ui/i18n";
6
6
  import { isTypeaheadKey, setupTypeahead, themeOverlaySurfaceClasses, themeSelectionBarClasses } from "@nanahoshi/mona-ui/internal";
7
+ import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
7
8
  import { BehaviorSubject, Observable, ReplaySubject, Subject, asapScheduler, distinctUntilChanged, filter, fromEvent, map, merge, switchMap, take, takeWhile, tap } from "rxjs";
8
9
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
9
10
  import { EnumerableSet, ImmutableSet, List, forEach, from, sequenceEqual } from "@mirei/ts-collections";
@@ -2025,7 +2026,7 @@ var TreeComponent = class TreeComponent {
2025
2026
  #zone;
2026
2027
  #lastNavigatedNode;
2027
2028
  constructor() {
2028
- this.#announcer = inject(LiveAnnouncer);
2029
+ this.#announcer = injectLiveAnnouncer();
2029
2030
  this.#destroyRef = inject(DestroyRef);
2030
2031
  this.#direction = injectComponentDirection();
2031
2032
  this.#document = inject(DOCUMENT);
@@ -1,4 +1,3 @@
1
- import { LiveAnnouncer } from "@angular/cdk/a11y";
2
1
  import { NgTemplateOutlet } from "@angular/common";
3
2
  import * as i0 from "@angular/core";
4
3
  import { Component, Directive, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, output, signal, untracked } from "@angular/core";
@@ -9,6 +8,7 @@ import { ButtonDirective } from "@nanahoshi/mona-ui/button";
9
8
  import { MonaI18nService, formatNumber, injectComponentDirection } from "@nanahoshi/mona-ui/i18n";
10
9
  import { injectLabelledByText } from "@nanahoshi/mona-ui/internal";
11
10
  import { LIST_VIEW_HOST_LIST_SERVICE, ListService } from "@nanahoshi/mona-ui/internal/list";
11
+ import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
12
12
  import { ListViewComponent, ListViewFooterTemplateDirective, ListViewHeaderTemplateDirective, ListViewItemTemplateDirective, ListViewNavigableDirective, ListViewNoDataTemplateDirective, ListViewSelectableDirective } from "@nanahoshi/mona-ui/list-view";
13
13
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
14
14
  import { cva } from "class-variance-authority";
@@ -357,7 +357,7 @@ var ListBoxComponent = class ListBoxComponent {
357
357
  }, ...ngDevMode ? [{ debugName: "#itemIndexes" }] : /* istanbul ignore next */ []);
358
358
  this.#labelledByText = injectLabelledByText(() => this.ariaLabelledBy());
359
359
  this.#listService = inject(ListService);
360
- this.#liveAnnouncer = inject(LiveAnnouncer);
360
+ this.#liveAnnouncer = injectLiveAnnouncer();
361
361
  this.#name = computed(() => this.ariaLabel().trim() || this.#labelledByText(), ...ngDevMode ? [{ debugName: "#name" }] : /* istanbul ignore next */ []);
362
362
  this.#owner = signal(null, ...ngDevMode ? [{ debugName: "#owner" }] : /* istanbul ignore next */ []);
363
363
  this.#toolbarFocus = signal(null, ...ngDevMode ? [{ debugName: "#toolbarFocus" }] : /* istanbul ignore next */ []);
@@ -303,6 +303,56 @@ const MONA_AR_SA_LOCALE = {
303
303
  undo: "تراجع",
304
304
  widthPx: "العرض (px)"
305
305
  },
306
+ fileUpload: {
307
+ browse: "استعراض الملفات",
308
+ browseFile: "اختيار ملف",
309
+ cancel: (name) => `إلغاء رفع ${name}`,
310
+ clear: "مسح",
311
+ dropFile: "اسحب ملفًا إلى هنا",
312
+ dropFiles: "اسحب الملفات إلى هنا",
313
+ dropToAdd: "أفلِت للإضافة",
314
+ fileFailed: (name) => `تعذّر رفع ${name}.`,
315
+ fileRejected: (name, reason) => `لم تتم إضافة ${name}. ${reason}`,
316
+ fileRemoved: (name) => `تمت إزالة ${name}.`,
317
+ fileTypes: (types) => `أنواع الملفات: ${types}`,
318
+ fileUploaded: (name) => `تم رفع ${name}.`,
319
+ files: "الملفات",
320
+ filesAdded: (count) => plural(PLURAL_RULES.select(count), {
321
+ zero: () => "لم تتم إضافة أي ملف.",
322
+ one: () => "تمت إضافة ملف واحد.",
323
+ two: () => "تمت إضافة ملفين.",
324
+ few: () => `تمت إضافة ${localizeNumber(count)} ملفات.`,
325
+ many: () => `تمت إضافة ${localizeNumber(count)} ملفًا.`,
326
+ other: () => `تمت إضافة ${localizeNumber(count)} ملف.`
327
+ }),
328
+ invalidType: "نوع هذا الملف غير مقبول.",
329
+ maxFileSize: (size) => `الحد الأقصى لحجم الملف: ${size}`,
330
+ maxFiles: (count) => `حتى ${plural(PLURAL_RULES.select(count), {
331
+ zero: () => `${localizeNumber(count)} ملف`,
332
+ one: () => "ملف واحد",
333
+ two: () => "ملفين",
334
+ few: () => `${localizeNumber(count)} ملفات`,
335
+ many: () => `${localizeNumber(count)} ملفًا`,
336
+ other: () => `${localizeNumber(count)} ملف`
337
+ })}`,
338
+ readyToUpload: "جاهز للرفع",
339
+ remove: (name) => `إزالة ${name}`,
340
+ retry: (name) => `إعادة محاولة رفع ${name}`,
341
+ tooLarge: (size) => `حجم الملف أكبر من ${size}.`,
342
+ tooMany: (count) => `لا يمكن إضافة أكثر من ${plural(PLURAL_RULES.select(count), {
343
+ zero: () => `${localizeNumber(count)} ملف`,
344
+ one: () => "ملف واحد",
345
+ two: () => "ملفين",
346
+ few: () => `${localizeNumber(count)} ملفات`,
347
+ many: () => `${localizeNumber(count)} ملفًا`,
348
+ other: () => `${localizeNumber(count)} ملف`
349
+ })}.`,
350
+ tooSmall: (size) => `حجم الملف أصغر من ${size}.`,
351
+ upload: "رفع",
352
+ uploadFailed: "فشل الرفع.",
353
+ uploaded: "تم الرفع",
354
+ uploading: "جارٍ الرفع"
355
+ },
306
356
  filter: {
307
357
  and: "و",
308
358
  apply: "تطبيق",
@@ -287,6 +287,44 @@ const MONA_DE_DE_LOCALE = {
287
287
  undo: "Rückgängig",
288
288
  widthPx: "Breite (px)"
289
289
  },
290
+ fileUpload: {
291
+ browse: "Dateien durchsuchen",
292
+ browseFile: "Datei auswählen",
293
+ cancel: (name) => `Hochladen von ${name} abbrechen`,
294
+ clear: "Leeren",
295
+ dropFile: "Datei hierher ziehen",
296
+ dropFiles: "Dateien hierher ziehen",
297
+ dropToAdd: "Zum Hinzufügen ablegen",
298
+ fileFailed: (name) => `${name} konnte nicht hochgeladen werden.`,
299
+ fileRejected: (name, reason) => `${name} wurde nicht hinzugefügt. ${reason}`,
300
+ fileRemoved: (name) => `${name} entfernt.`,
301
+ fileTypes: (types) => `Dateitypen: ${types}`,
302
+ fileUploaded: (name) => `${name} hochgeladen.`,
303
+ files: "Dateien",
304
+ filesAdded: (count) => plural(PLURAL_RULES.select(count), {
305
+ one: () => `${localizeNumber(count)} Datei hinzugefügt.`,
306
+ other: () => `${localizeNumber(count)} Dateien hinzugefügt.`
307
+ }),
308
+ invalidType: "Dieser Dateityp wird nicht akzeptiert.",
309
+ maxFileSize: (size) => `Max. Dateigröße: ${size}`,
310
+ maxFiles: (count) => `Bis zu ${plural(PLURAL_RULES.select(count), {
311
+ one: () => `${localizeNumber(count)} Datei`,
312
+ other: () => `${localizeNumber(count)} Dateien`
313
+ })}`,
314
+ readyToUpload: "Bereit zum Hochladen",
315
+ remove: (name) => `${name} entfernen`,
316
+ retry: (name) => `Hochladen von ${name} wiederholen`,
317
+ tooLarge: (size) => `Die Datei ist größer als ${size}.`,
318
+ tooMany: (count) => `Es können höchstens ${plural(PLURAL_RULES.select(count), {
319
+ one: () => `${localizeNumber(count)} Datei`,
320
+ other: () => `${localizeNumber(count)} Dateien`
321
+ })} hinzugefügt werden.`,
322
+ tooSmall: (size) => `Die Datei ist kleiner als ${size}.`,
323
+ upload: "Hochladen",
324
+ uploadFailed: "Das Hochladen ist fehlgeschlagen.",
325
+ uploaded: "Hochgeladen",
326
+ uploading: "Wird hochgeladen"
327
+ },
290
328
  filter: {
291
329
  and: "Und",
292
330
  apply: "Anwenden",
@@ -287,6 +287,44 @@ const MONA_ES_ES_LOCALE = {
287
287
  undo: "Deshacer",
288
288
  widthPx: "Anchura (px)"
289
289
  },
290
+ fileUpload: {
291
+ browse: "Examinar archivos",
292
+ browseFile: "Elegir un archivo",
293
+ cancel: (name) => `Cancelar la subida de ${name}`,
294
+ clear: "Borrar",
295
+ dropFile: "Arrastra un archivo aquí",
296
+ dropFiles: "Arrastra archivos aquí",
297
+ dropToAdd: "Suelta para añadir",
298
+ fileFailed: (name) => `No se ha podido subir ${name}.`,
299
+ fileRejected: (name, reason) => `No se ha añadido ${name}. ${reason}`,
300
+ fileRemoved: (name) => `Se ha quitado ${name}.`,
301
+ fileTypes: (types) => `Tipos de archivo: ${types}`,
302
+ fileUploaded: (name) => `Se ha subido ${name}.`,
303
+ files: "Archivos",
304
+ filesAdded: (count) => plural(PLURAL_RULES.select(count), {
305
+ one: () => `${localizeNumber(count)} archivo añadido.`,
306
+ other: () => `${localizeNumber(count)} archivos añadidos.`
307
+ }),
308
+ invalidType: "Este tipo de archivo no se admite.",
309
+ maxFileSize: (size) => `Tamaño máx. de archivo: ${size}`,
310
+ maxFiles: (count) => `Hasta ${plural(PLURAL_RULES.select(count), {
311
+ one: () => `${localizeNumber(count)} archivo`,
312
+ other: () => `${localizeNumber(count)} archivos`
313
+ })}`,
314
+ readyToUpload: "Listo para subir",
315
+ remove: (name) => `Quitar ${name}`,
316
+ retry: (name) => `Reintentar la subida de ${name}`,
317
+ tooLarge: (size) => `El archivo ocupa más de ${size}.`,
318
+ tooMany: (count) => `No se pueden añadir más de ${plural(PLURAL_RULES.select(count), {
319
+ one: () => `${localizeNumber(count)} archivo`,
320
+ other: () => `${localizeNumber(count)} archivos`
321
+ })}.`,
322
+ tooSmall: (size) => `El archivo ocupa menos de ${size}.`,
323
+ upload: "Subir",
324
+ uploadFailed: "No se ha podido subir.",
325
+ uploaded: "Subido",
326
+ uploading: "Subiendo"
327
+ },
290
328
  filter: {
291
329
  and: "Y",
292
330
  apply: "Aplicar",
@@ -287,6 +287,44 @@ const MONA_FR_FR_LOCALE = {
287
287
  undo: "Annuler",
288
288
  widthPx: "Largeur (px)"
289
289
  },
290
+ fileUpload: {
291
+ browse: "Parcourir les fichiers",
292
+ browseFile: "Choisir un fichier",
293
+ cancel: (name) => `Annuler l’envoi de ${name}`,
294
+ clear: "Effacer",
295
+ dropFile: "Faites glisser un fichier ici",
296
+ dropFiles: "Faites glisser des fichiers ici",
297
+ dropToAdd: "Déposez pour ajouter",
298
+ fileFailed: (name) => `${name} n’a pas pu être envoyé.`,
299
+ fileRejected: (name, reason) => `${name} n’a pas été ajouté. ${reason}`,
300
+ fileRemoved: (name) => `${name} retiré.`,
301
+ fileTypes: (types) => `Types de fichiers : ${types}`,
302
+ fileUploaded: (name) => `${name} envoyé.`,
303
+ files: "Fichiers",
304
+ filesAdded: (count) => plural(PLURAL_RULES.select(count), {
305
+ one: () => `${localizeNumber(count)} fichier ajouté.`,
306
+ other: () => `${localizeNumber(count)} fichiers ajoutés.`
307
+ }),
308
+ invalidType: "Ce type de fichier n’est pas accepté.",
309
+ maxFileSize: (size) => `Taille max. du fichier : ${size}`,
310
+ maxFiles: (count) => `Jusqu’à ${plural(PLURAL_RULES.select(count), {
311
+ one: () => `${localizeNumber(count)} fichier`,
312
+ other: () => `${localizeNumber(count)} fichiers`
313
+ })}`,
314
+ readyToUpload: "Prêt à envoyer",
315
+ remove: (name) => `Retirer ${name}`,
316
+ retry: (name) => `Relancer l’envoi de ${name}`,
317
+ tooLarge: (size) => `Le fichier dépasse ${size}.`,
318
+ tooMany: (count) => `Vous ne pouvez pas ajouter plus de ${plural(PLURAL_RULES.select(count), {
319
+ one: () => `${localizeNumber(count)} fichier`,
320
+ other: () => `${localizeNumber(count)} fichiers`
321
+ })}.`,
322
+ tooSmall: (size) => `Le fichier fait moins de ${size}.`,
323
+ upload: "Envoyer",
324
+ uploadFailed: "L’envoi a échoué.",
325
+ uploaded: "Envoyé",
326
+ uploading: "Envoi en cours"
327
+ },
290
328
  filter: {
291
329
  and: "Et",
292
330
  apply: "Appliquer",
@@ -271,6 +271,35 @@ const MONA_ID_ID_LOCALE = {
271
271
  undo: "Urungkan",
272
272
  widthPx: "Lebar (px)"
273
273
  },
274
+ fileUpload: {
275
+ browse: "Telusuri file",
276
+ browseFile: "Pilih file",
277
+ cancel: (name) => `Batalkan unggahan ${name}`,
278
+ clear: "Hapus semua",
279
+ dropFile: "Seret file ke sini",
280
+ dropFiles: "Seret file ke sini",
281
+ dropToAdd: "Lepaskan untuk menambahkan",
282
+ fileFailed: (name) => `${name} gagal diunggah.`,
283
+ fileRejected: (name, reason) => `${name} tidak ditambahkan. ${reason}`,
284
+ fileRemoved: (name) => `${name} dihapus.`,
285
+ fileTypes: (types) => `Jenis file: ${types}`,
286
+ fileUploaded: (name) => `${name} berhasil diunggah.`,
287
+ files: "Daftar file",
288
+ filesAdded: (count) => `${localizeNumber(count)} file ditambahkan.`,
289
+ invalidType: "Jenis file ini tidak diterima.",
290
+ maxFileSize: (size) => `Ukuran file maks.: ${size}`,
291
+ maxFiles: (count) => `Hingga ${localizeNumber(count)} file`,
292
+ readyToUpload: "Siap diunggah",
293
+ remove: (name) => `Hapus ${name}`,
294
+ retry: (name) => `Coba unggah ulang ${name}`,
295
+ tooLarge: (size) => `File lebih besar dari ${size}.`,
296
+ tooMany: (count) => `Tidak dapat menambahkan lebih dari ${localizeNumber(count)} file.`,
297
+ tooSmall: (size) => `File lebih kecil dari ${size}.`,
298
+ upload: "Unggah",
299
+ uploadFailed: "Unggahan gagal.",
300
+ uploaded: "Terunggah",
301
+ uploading: "Mengunggah"
302
+ },
274
303
  filter: {
275
304
  and: "Dan",
276
305
  apply: "Terapkan",
@@ -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",