@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
1
|
+
import { V as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, inject } from "@angular/core";
|
|
4
4
|
import { take } from "rxjs";
|
|
@@ -74,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
74
74
|
});
|
|
75
75
|
export { removeGridRow as n, GridColgroupComponent as t };
|
|
76
76
|
|
|
77
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-colgroup.component-
|
|
77
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as GridLockedCellDirective, I as GridLogicalCellDirective, V as GridService, h as gridFooterTableRowThemeVariants, m as gridFooterTableCellThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
1
|
+
import { B as GridLockedCellDirective, I as GridLogicalCellDirective, V as GridService, h as gridFooterTableRowThemeVariants, m as gridFooterTableCellThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, Directive, computed, inject, input } from "@angular/core";
|
|
4
4
|
import { NgTemplateOutlet } from "@angular/common";
|
|
@@ -477,4 +477,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
477
477
|
});
|
|
478
478
|
export { GridFooterRowComponent };
|
|
479
479
|
|
|
480
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-footer-row.component-
|
|
480
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as gridListTableThemeVariants, B as GridLockedCellDirective, D as gridListBaseThemeVariants, M as gridRowDragPreviewThemeVariants, V as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
2
|
-
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-
|
|
3
|
-
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-
|
|
4
|
-
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-
|
|
1
|
+
import { A as gridListTableThemeVariants, B as GridLockedCellDirective, D as gridListBaseThemeVariants, M as gridRowDragPreviewThemeVariants, V as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
|
+
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs";
|
|
3
|
+
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs";
|
|
4
|
+
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import { Component, DestroyRef, ElementRef, afterNextRender, afterRenderEffect, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
|
|
7
7
|
import { NgTemplateOutlet } from "@angular/common";
|
|
@@ -467,4 +467,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
467
467
|
});
|
|
468
468
|
export { GridListComponent };
|
|
469
469
|
|
|
470
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-list.component-
|
|
470
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as GridLockedCellDirective, F as gridSelectionCellThemeVariants, I as GridLogicalCellDirective, L as GRID_CELL_FOCUSABLE_SELECTOR, N as gridRowReorderHandleThemeVariants, O as gridListTableCellThemeVariants, U as GridNavigationService, V as GridService, a as gridCellEditorBaseThemeVariants, b as gridGroupRowThemeVariants, i as gridCellDirtyIndicatorThemeVariants, k as gridListTableRowThemeVariants, n as gridCellBaseThemeVariants, o as gridCellEditorInputThemeVariants, r as gridCellContainerThemeVariants, s as gridCellTextThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
2
|
-
import { n as removeGridRow } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-
|
|
1
|
+
import { B as GridLockedCellDirective, F as gridSelectionCellThemeVariants, I as GridLogicalCellDirective, L as GRID_CELL_FOCUSABLE_SELECTOR, N as gridRowReorderHandleThemeVariants, O as gridListTableCellThemeVariants, U as GridNavigationService, V as GridService, a as gridCellEditorBaseThemeVariants, b as gridGroupRowThemeVariants, i as gridCellDirtyIndicatorThemeVariants, k as gridListTableRowThemeVariants, n as gridCellBaseThemeVariants, o as gridCellEditorInputThemeVariants, r as gridCellContainerThemeVariants, s as gridCellTextThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
|
+
import { n as removeGridRow } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Component, Directive, ElementRef, Injector, LOCALE_ID, afterNextRender, computed, effect, inject, input, isDevMode, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
5
5
|
import { DialogService } from "@nanahoshi/mona-ui/dialog";
|
|
6
6
|
import { MonaI18nService, formatGregorianDateToLocaleString, parseLocalizedNumber } from "@nanahoshi/mona-ui/i18n";
|
|
7
7
|
import { v4 } from "uuid";
|
|
8
8
|
import { NgTemplateOutlet, formatDate } from "@angular/common";
|
|
9
|
-
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
10
9
|
import { FormField } from "@angular/forms/signals";
|
|
10
|
+
import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
|
|
11
11
|
import { CdkDragHandle } from "@angular/cdk/drag-drop";
|
|
12
12
|
import { LucideCheck, LucideChevronDown, LucideChevronRight, LucideDynamicIcon, LucideGripVertical, LucideMinus, LucideOctagonAlert, LucidePencil, LucidePlus, LucideTrash2, LucideX } from "@lucide/angular";
|
|
13
13
|
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
@@ -1612,7 +1612,7 @@ var GridRowReorderHandleComponent = class GridRowReorderHandleComponent {
|
|
|
1612
1612
|
this.#gridService = inject(GridService);
|
|
1613
1613
|
this.#hostElement = inject(ElementRef).nativeElement;
|
|
1614
1614
|
this.#injector = inject(Injector);
|
|
1615
|
-
this.#liveAnnouncer =
|
|
1615
|
+
this.#liveAnnouncer = injectLiveAnnouncer();
|
|
1616
1616
|
this.ariaLabel = computed(() => {
|
|
1617
1617
|
const absoluteIndex = this.pageIndex() + this.#gridService.paginationState().skip;
|
|
1618
1618
|
const label = this.#gridService.getRowReorderAriaLabel(this.row(), absoluteIndex);
|
|
@@ -1807,7 +1807,7 @@ var GridSelectionCheckboxComponent = class GridSelectionCheckboxComponent {
|
|
|
1807
1807
|
properties: { "class": "hostClass()" }
|
|
1808
1808
|
},
|
|
1809
1809
|
ngImport: i0,
|
|
1810
|
-
template: "<mona-check-box
|
|
1810
|
+
template: "<mona-check-box [checked]=\"checked()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ ariaLabel() }}</span>\n</mona-check-box>\n",
|
|
1811
1811
|
dependencies: [{
|
|
1812
1812
|
kind: "component",
|
|
1813
1813
|
type: CheckBoxComponent,
|
|
@@ -1858,7 +1858,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1858
1858
|
"[class]": "hostClass()",
|
|
1859
1859
|
"(click)": "$event.stopPropagation()"
|
|
1860
1860
|
},
|
|
1861
|
-
template: "<mona-check-box
|
|
1861
|
+
template: "<mona-check-box [checked]=\"checked()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ ariaLabel() }}</span>\n</mona-check-box>\n"
|
|
1862
1862
|
}]
|
|
1863
1863
|
}],
|
|
1864
1864
|
propDecorators: {
|
|
@@ -2112,4 +2112,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2112
2112
|
});
|
|
2113
2113
|
export { GridCellDirective as i, GridGroupRowComponent as n, GridAddRowComponent as r, GridRowComponent as t };
|
|
2114
2114
|
|
|
2115
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-row.component-
|
|
2115
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as gridListTableThemeVariants, D as gridListBaseThemeVariants, U as GridNavigationService, V as GridService, _ as gridFooterThemeVariants, g as gridFooterTableThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
2
|
-
import { n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-
|
|
3
|
-
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-
|
|
4
|
-
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-
|
|
1
|
+
import { A as gridListTableThemeVariants, D as gridListBaseThemeVariants, U as GridNavigationService, V as GridService, _ as gridFooterThemeVariants, g as gridFooterTableThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
|
+
import { n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs";
|
|
3
|
+
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs";
|
|
4
|
+
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import { Component, DestroyRef, ElementRef, Injector, afterNextRender, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
|
|
7
7
|
import { ImmutableList } from "@mirei/ts-collections";
|
|
@@ -327,4 +327,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
327
327
|
});
|
|
328
328
|
export { GridVirtualListComponent };
|
|
329
329
|
|
|
330
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
330
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs.map
|
|
@@ -6,9 +6,9 @@ import { v4 } from "uuid";
|
|
|
6
6
|
import { DOCUMENT as DOCUMENT$1, isPlatformBrowser } from "@angular/common";
|
|
7
7
|
import { Dictionary, ImmutableDictionary, ImmutableList, ImmutableSet, KeyValuePair, select } from "@mirei/ts-collections";
|
|
8
8
|
import { BehaviorSubject, Subject, fromEvent } from "rxjs";
|
|
9
|
-
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
10
9
|
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
|
|
11
10
|
import { form } from "@angular/forms/signals";
|
|
11
|
+
import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
|
|
12
12
|
import { Query, compareValues } from "@nanahoshi/mona-ui/query";
|
|
13
13
|
import { Clipboard } from "@angular/cdk/clipboard";
|
|
14
14
|
import { cva } from "class-variance-authority";
|
|
@@ -1067,7 +1067,7 @@ var GridService = class GridService {
|
|
|
1067
1067
|
this.#horizontalScrollLeft = signal(0, ...ngDevMode ? [{ debugName: "#horizontalScrollLeft" }] : /* istanbul ignore next */ []);
|
|
1068
1068
|
this.#i18n = inject(MonaI18nService);
|
|
1069
1069
|
this.#injector = inject(Injector);
|
|
1070
|
-
this.#liveAnnouncer =
|
|
1070
|
+
this.#liveAnnouncer = injectLiveAnnouncer();
|
|
1071
1071
|
this.#platformId = inject(PLATFORM_ID);
|
|
1072
1072
|
this.#reorderableOptions = signal({ enabled: false }, ...ngDevMode ? [{ debugName: "#reorderableOptions" }] : /* istanbul ignore next */ []);
|
|
1073
1073
|
this.#resizableOptions = signal({ enabled: false }, ...ngDevMode ? [{ debugName: "#resizableOptions" }] : /* istanbul ignore next */ []);
|
|
@@ -3763,4 +3763,4 @@ const gridNoDataThemeVariants = cva(`
|
|
|
3763
3763
|
`);
|
|
3764
3764
|
export { gridListTableThemeVariants as A, GridLockedCellDirective as B, gridHeaderTableColumnWrapThemeVariants as C, gridListBaseThemeVariants as D, gridHeaderThemeVariants as E, gridSelectionCellThemeVariants as F, GridSaveEvent as G, RowReorderEvent as H, GridLogicalCellDirective as I, GridCancelEvent as J, GridRemoveEvent as K, GRID_CELL_FOCUSABLE_SELECTOR as L, gridRowDragPreviewThemeVariants as M, gridRowReorderHandleThemeVariants as N, gridListTableCellThemeVariants as O, gridSelectAllCellThemeVariants as P, isKeyboardEntryElement as R, gridHeaderTableColumnTitleThemeVariants as S, gridHeaderTableThemeVariants as T, GridNavigationService as U, GridService as V, GRID_DEFAULT_MESSAGES as W, RowEditEvent as X, GridAddEvent as Y, CellEditEvent as Z, gridFooterThemeVariants as _, gridCellEditorBaseThemeVariants as a, gridGroupRowThemeVariants as b, gridColumnActionsThemeVariants as c, gridColumnResizerThemeVariants as d, gridFilterRowCellThemeVariants as f, gridFooterTableThemeVariants as g, gridFooterTableRowThemeVariants as h, gridCellDirtyIndicatorThemeVariants as i, gridNoDataThemeVariants as j, gridListTableRowThemeVariants as k, gridColumnDragPreviewThemeVariants as l, gridFooterTableCellThemeVariants as m, gridCellBaseThemeVariants as n, gridCellEditorInputThemeVariants as o, gridFilterRowHeaderCellThemeVariants as p, GridEditEvent as q, gridCellContainerThemeVariants as r, gridCellTextThemeVariants as s, gridBaseThemeVariants as t, gridColumnDropHintThemeVariants as u, gridGroupPanelPlaceholderThemeVariants as v, gridHeaderTableRowThemeVariants as w, gridHeaderTableCellThemeVariants as x, gridGroupPanelThemeVariants as y, observeGridCellTabStops as z };
|
|
3765
3765
|
|
|
3766
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid.styles-
|
|
3766
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as GridLockedCellDirective, C as gridHeaderTableColumnWrapThemeVariants, E as gridHeaderThemeVariants, G as GridSaveEvent, H as RowReorderEvent, I as GridLogicalCellDirective, J as GridCancelEvent, K as GridRemoveEvent, P as gridSelectAllCellThemeVariants, R as isKeyboardEntryElement, S as gridHeaderTableColumnTitleThemeVariants, T as gridHeaderTableThemeVariants, U as GridNavigationService, V as GridService, W as GRID_DEFAULT_MESSAGES, X as RowEditEvent, Y as GridAddEvent, Z as CellEditEvent, _ as gridFooterThemeVariants, c as gridColumnActionsThemeVariants, d as gridColumnResizerThemeVariants, f as gridFilterRowCellThemeVariants, g as gridFooterTableThemeVariants, j as gridNoDataThemeVariants, l as gridColumnDragPreviewThemeVariants, p as gridFilterRowHeaderCellThemeVariants, q as GridEditEvent, t as gridBaseThemeVariants, u as gridColumnDropHintThemeVariants, v as gridGroupPanelPlaceholderThemeVariants, w as gridHeaderTableRowThemeVariants, x as gridHeaderTableCellThemeVariants, y as gridGroupPanelThemeVariants, z as observeGridCellTabStops } from "./nanahoshi-mona-ui-grid-grid.styles-
|
|
2
|
-
import { n as removeGridRow, t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-
|
|
1
|
+
import { B as GridLockedCellDirective, C as gridHeaderTableColumnWrapThemeVariants, E as gridHeaderThemeVariants, G as GridSaveEvent, H as RowReorderEvent, I as GridLogicalCellDirective, J as GridCancelEvent, K as GridRemoveEvent, P as gridSelectAllCellThemeVariants, R as isKeyboardEntryElement, S as gridHeaderTableColumnTitleThemeVariants, T as gridHeaderTableThemeVariants, U as GridNavigationService, V as GridService, W as GRID_DEFAULT_MESSAGES, X as RowEditEvent, Y as GridAddEvent, Z as CellEditEvent, _ as gridFooterThemeVariants, c as gridColumnActionsThemeVariants, d as gridColumnResizerThemeVariants, f as gridFilterRowCellThemeVariants, g as gridFooterTableThemeVariants, j as gridNoDataThemeVariants, l as gridColumnDragPreviewThemeVariants, p as gridFilterRowHeaderCellThemeVariants, q as GridEditEvent, t as gridBaseThemeVariants, u as gridColumnDropHintThemeVariants, v as gridGroupPanelPlaceholderThemeVariants, w as gridHeaderTableRowThemeVariants, x as gridHeaderTableCellThemeVariants, y as gridGroupPanelThemeVariants, z as observeGridCellTabStops } from "./nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs";
|
|
2
|
+
import { n as removeGridRow, t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs";
|
|
3
3
|
import { PreventableEvent, deepEquals } from "@nanahoshi/mona-ui/common";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, PLATFORM_ID, Pipe, TemplateRef, afterEveryRender, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, isDevMode, linkedSignal, model, output, signal, untracked, viewChild, viewChildren } from "@angular/core";
|
|
@@ -9,8 +9,8 @@ import { v4 } from "uuid";
|
|
|
9
9
|
import { DOCUMENT as DOCUMENT$1, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
10
10
|
import { ImmutableSet } from "@mirei/ts-collections";
|
|
11
11
|
import { Subject, fromEvent, map, of, pairwise, startWith, switchMap, take, timer } from "rxjs";
|
|
12
|
-
import { FocusTrapFactory, LiveAnnouncer } from "@angular/cdk/a11y";
|
|
13
12
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
13
|
+
import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
|
|
14
14
|
import { ContextMenuItemComponent } from "@nanahoshi/mona-ui/contextmenu";
|
|
15
15
|
import { CdkDrag, CdkDragPlaceholder, CdkDragPreview, CdkDropList } from "@angular/cdk/drag-drop";
|
|
16
16
|
import { LucideArrowDown, LucideArrowLeft, LucideArrowRight, LucideArrowUp, LucideEllipsisVertical, LucideFunnel, LucideFunnelX } from "@lucide/angular";
|
|
@@ -24,6 +24,7 @@ import { PopupMenuCheckboxItemComponent, PopupMenuComponent, PopupMenuItemCompon
|
|
|
24
24
|
import { twMerge } from "tailwind-merge";
|
|
25
25
|
import { FilterInputComponent } from "@nanahoshi/mona-ui/internal/filter-input";
|
|
26
26
|
import { ListViewComponent, ListViewFooterTemplateDirective, ListViewHeaderTemplateDirective, ListViewSelectableDirective } from "@nanahoshi/mona-ui/list-view";
|
|
27
|
+
import { FocusTrapFactory } from "@angular/cdk/a11y";
|
|
27
28
|
import * as i1 from "@angular/forms";
|
|
28
29
|
import { FormsModule } from "@angular/forms";
|
|
29
30
|
import { createElementControlId } from "@nanahoshi/mona-ui/internal";
|
|
@@ -3042,7 +3043,7 @@ var GridColumnChooserComponent = class GridColumnChooserComponent {
|
|
|
3042
3043
|
cancel: "cancel"
|
|
3043
3044
|
},
|
|
3044
3045
|
ngImport: i0,
|
|
3045
|
-
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\"
|
|
3046
|
+
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\">\n {{ messages().apply }}\n </button>\n <button class=\"flex-1\" monaButton [size]=\"'small'\" (click)=\"onCancelClick()\">\n {{ messages().cancel }}\n </button>\n </div>\n </ng-template>\n</mona-list-view>\n",
|
|
3046
3047
|
dependencies: [
|
|
3047
3048
|
{
|
|
3048
3049
|
kind: "component",
|
|
@@ -3154,7 +3155,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3154
3155
|
ListViewSelectableDirective,
|
|
3155
3156
|
ListViewFooterTemplateDirective
|
|
3156
3157
|
],
|
|
3157
|
-
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\"
|
|
3158
|
+
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\">\n {{ messages().apply }}\n </button>\n <button class=\"flex-1\" monaButton [size]=\"'small'\" (click)=\"onCancelClick()\">\n {{ messages().cancel }}\n </button>\n </div>\n </ng-template>\n</mona-list-view>\n"
|
|
3158
3159
|
}]
|
|
3159
3160
|
}],
|
|
3160
3161
|
ctorParameters: () => [],
|
|
@@ -3905,7 +3906,7 @@ var GridSelectAllCheckboxComponent = class GridSelectAllCheckboxComponent {
|
|
|
3905
3906
|
properties: { "class": "hostClass" }
|
|
3906
3907
|
},
|
|
3907
3908
|
ngImport: i0,
|
|
3908
|
-
template: "<mona-check-box
|
|
3909
|
+
template: "<mona-check-box [checked]=\"checked()\" [indeterminate]=\"indeterminate()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ messages().selectAllRows }}</span>\n</mona-check-box>\n",
|
|
3909
3910
|
dependencies: [{
|
|
3910
3911
|
kind: "component",
|
|
3911
3912
|
type: CheckBoxComponent,
|
|
@@ -3956,7 +3957,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3956
3957
|
"[class]": "hostClass",
|
|
3957
3958
|
"(click)": "$event.stopPropagation()"
|
|
3958
3959
|
},
|
|
3959
|
-
template: "<mona-check-box
|
|
3960
|
+
template: "<mona-check-box [checked]=\"checked()\" [indeterminate]=\"indeterminate()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ messages().selectAllRows }}</span>\n</mona-check-box>\n"
|
|
3960
3961
|
}]
|
|
3961
3962
|
}]
|
|
3962
3963
|
});
|
|
@@ -3985,7 +3986,7 @@ var GridComponent = class GridComponent {
|
|
|
3985
3986
|
this.#gridNavigationService = inject(GridNavigationService);
|
|
3986
3987
|
this.#hostElementRef = inject(ElementRef);
|
|
3987
3988
|
this.#injector = inject(Injector);
|
|
3988
|
-
this.#liveAnnouncer =
|
|
3989
|
+
this.#liveAnnouncer = injectLiveAnnouncer();
|
|
3989
3990
|
this.#manuallyResized = signal(false, ...ngDevMode ? [{ debugName: "#manuallyResized" }] : /* istanbul ignore next */ []);
|
|
3990
3991
|
this.#registeredFooterScrollElement = signal(null, ...ngDevMode ? [{ debugName: "#registeredFooterScrollElement" }] : /* istanbul ignore next */ []);
|
|
3991
3992
|
this.#dragCancelled = false;
|
|
@@ -5171,9 +5172,9 @@ var GridComponent = class GridComponent {
|
|
|
5171
5172
|
deferBlockDependencies: [() => [
|
|
5172
5173
|
NgTemplateOutlet,
|
|
5173
5174
|
GridColgroupComponent,
|
|
5174
|
-
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-
|
|
5175
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5176
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5175
|
+
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs").then((m) => m.GridFooterRowComponent),
|
|
5176
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs").then((m) => m.GridListComponent),
|
|
5177
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs").then((m) => m.GridVirtualListComponent),
|
|
5177
5178
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5178
5179
|
]]
|
|
5179
5180
|
});
|
|
@@ -5185,9 +5186,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
5185
5186
|
ngImport: i0,
|
|
5186
5187
|
type: GridComponent,
|
|
5187
5188
|
resolveDeferredDeps: () => [
|
|
5188
|
-
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-
|
|
5189
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5190
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5189
|
+
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs").then((m) => m.GridFooterRowComponent),
|
|
5190
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs").then((m) => m.GridListComponent),
|
|
5191
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs").then((m) => m.GridVirtualListComponent),
|
|
5191
5192
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5192
5193
|
],
|
|
5193
5194
|
resolveMetadata: (GridFooterRowComponent, GridListComponent, GridVirtualListComponent, SpinnerComponent) => ({
|
|
@@ -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
|
|
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 =
|
|
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 =
|
|
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",
|