@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.
- package/docs/api/file-upload.md +174 -0
- package/docs/api/grid.md +46 -13
- package/docs/api/i18n.md +46 -0
- package/docs/api/locales.md +14 -14
- package/docs/file-upload.md +516 -0
- package/docs/forms.md +2 -0
- package/docs/grid-columns.md +121 -17
- package/docs/grid-state-export.md +24 -7
- package/docs/grid.md +1 -1
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-command.mjs +4 -3
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +2 -2
- 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-Lv3GunpV.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs} +8 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-C1qjq2s7.mjs → nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs} +10 -6
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-CgOt2A6O.mjs → nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs} +23 -8
- 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
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs → nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs} +230 -18
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +425 -31
- 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-spinner.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -2
- 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 +6 -4
- 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-file-upload.d.ts +366 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +142 -64
- package/types/nanahoshi-mona-ui-i18n.d.ts +60 -0
- 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
|
@@ -12,6 +12,13 @@ import { BehaviorSubject, Subject } from "rxjs";
|
|
|
12
12
|
import { VariantInputs } from "@nanahoshi/mona-ui/internal";
|
|
13
13
|
import { VariantProps } from "class-variance-authority";
|
|
14
14
|
type AggregateFunction = "sum" | "avg" | "count" | "min" | "max" | "custom";
|
|
15
|
+
/** A `mona-grid-column-group`: a header over the columns inside it. */
|
|
16
|
+
interface ColumnGroup {
|
|
17
|
+
/** A unique id generated for the group. */
|
|
18
|
+
readonly id: string;
|
|
19
|
+
/** The text shown in the group's header. */
|
|
20
|
+
readonly title: string;
|
|
21
|
+
}
|
|
15
22
|
type GridColumnLockedPosition = "left" | "right";
|
|
16
23
|
type ColumnKind = "command" | "data";
|
|
17
24
|
/**
|
|
@@ -57,6 +64,10 @@ interface ColumnConfig {
|
|
|
57
64
|
readonly format: ColumnFormat | null;
|
|
58
65
|
/** The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. */
|
|
59
66
|
readonly groupFooterTemplate: TemplateRef<unknown> | null;
|
|
67
|
+
/**
|
|
68
|
+
* The `mona-grid-column-group`s the column sits in, outermost first. Left out, or empty, when it isn't in a group.
|
|
69
|
+
*/
|
|
70
|
+
readonly groups?: readonly ColumnGroup[];
|
|
60
71
|
/**
|
|
61
72
|
* The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or
|
|
62
73
|
* `null`.
|
|
@@ -999,6 +1010,11 @@ export declare class GridExportDirective {
|
|
|
999
1010
|
#private;
|
|
1000
1011
|
/** Exports the visible columns of the current view as CSV (only the loaded page with server binding). */
|
|
1001
1012
|
exportCsv(filename?: string): void;
|
|
1013
|
+
/**
|
|
1014
|
+
* Exports the same rows and columns as `exportCsv` as an Excel workbook (`.xlsx`), with column groups as merged
|
|
1015
|
+
* header cells and values that keep their types. Resolves once the download has started.
|
|
1016
|
+
*/
|
|
1017
|
+
exportExcel(filename?: string): Promise<void>;
|
|
1002
1018
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridExportDirective, never>;
|
|
1003
1019
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GridExportDirective, "mona-grid[monaGridExport]", ["monaGridExport"], {}, {}, never, never, true, never>;
|
|
1004
1020
|
}
|
|
@@ -1289,11 +1305,120 @@ export declare class GridColumnComponent implements GridColumnDefinition {
|
|
|
1289
1305
|
};
|
|
1290
1306
|
}, {}, ["cellTemplate", "editTemplate", "footerTemplate", "groupFooterTemplate", "headerTemplate", "titleTemplate"], never, true, never>;
|
|
1291
1307
|
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Puts a header over the `mona-grid-column`s and `mona-grid-command-column`s inside it. Groups nest: each level adds a
|
|
1310
|
+
* header row above the column headers.
|
|
1311
|
+
*/
|
|
1312
|
+
export declare class GridColumnGroupComponent {
|
|
1313
|
+
#private;
|
|
1314
|
+
/**
|
|
1315
|
+
* @description The text shown in the group's header, which also names it for assistive technologies.
|
|
1316
|
+
*/
|
|
1317
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
1318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridColumnGroupComponent, never>;
|
|
1319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridColumnGroupComponent, "mona-grid-column-group", never, {
|
|
1320
|
+
"title": {
|
|
1321
|
+
"alias": "title";
|
|
1322
|
+
"required": false;
|
|
1323
|
+
"isSignal": true;
|
|
1324
|
+
};
|
|
1325
|
+
}, {}, never, never, true, never>;
|
|
1326
|
+
}
|
|
1292
1327
|
interface ColumnFilterState {
|
|
1293
1328
|
filter?: CompositeFilterDescriptor;
|
|
1294
1329
|
filterMenuValue?: FilterMenuValue;
|
|
1295
1330
|
}
|
|
1296
1331
|
type ResizeMethod = "auto" | "fitView" | number;
|
|
1332
|
+
/**
|
|
1333
|
+
* How a layout column stays pinned while the grid scrolls horizontally.
|
|
1334
|
+
* Sides are logical, so `start` is the left edge in LTR and the right edge in RTL.
|
|
1335
|
+
*/
|
|
1336
|
+
interface GridStickyState {
|
|
1337
|
+
/** Whether this is the innermost pinned column on its side, which draws the separator border. */
|
|
1338
|
+
readonly edge: boolean;
|
|
1339
|
+
/** The distance from the pinned side, in pixels. */
|
|
1340
|
+
readonly offset: number;
|
|
1341
|
+
readonly side: "end" | "start";
|
|
1342
|
+
}
|
|
1343
|
+
type StructuralColumnKind = "detail" | "reorder" | "selection";
|
|
1344
|
+
interface StructuralColumnDescriptor {
|
|
1345
|
+
readonly kind: StructuralColumnKind;
|
|
1346
|
+
readonly visible: boolean;
|
|
1347
|
+
readonly width: number;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* A single physical column of the grid tables, in inline-start to inline-end order.
|
|
1351
|
+
* Every table section (header, body, add row, footer) renders the same sequence of layout columns.
|
|
1352
|
+
*/
|
|
1353
|
+
type GridLayoutColumn = GridLayoutDataColumn | GridLayoutGroupColumn | GridLayoutStructuralColumn;
|
|
1354
|
+
/** A user-defined data or command column. */
|
|
1355
|
+
interface GridLayoutDataColumn {
|
|
1356
|
+
readonly column: Column;
|
|
1357
|
+
/** The index among the visible user columns. */
|
|
1358
|
+
readonly columnIndex: number;
|
|
1359
|
+
/** Whether ArrowLeft (inline-start) stops at this cell. */
|
|
1360
|
+
readonly firstInRow: boolean;
|
|
1361
|
+
readonly key: string;
|
|
1362
|
+
readonly kind: "column";
|
|
1363
|
+
/** Whether ArrowRight (inline-end) stops at this cell. */
|
|
1364
|
+
readonly lastInRow: boolean;
|
|
1365
|
+
/** The keyboard-navigation column index. */
|
|
1366
|
+
readonly logicalIndex: number;
|
|
1367
|
+
readonly sticky: GridStickyState | null;
|
|
1368
|
+
readonly width: number | null;
|
|
1369
|
+
}
|
|
1370
|
+
/** An indent column rendered for each active group level. It does not participate in keyboard navigation. */
|
|
1371
|
+
interface GridLayoutGroupColumn {
|
|
1372
|
+
readonly depth: number;
|
|
1373
|
+
readonly key: string;
|
|
1374
|
+
readonly kind: "group";
|
|
1375
|
+
readonly logicalIndex: null;
|
|
1376
|
+
readonly sticky: GridStickyState | null;
|
|
1377
|
+
readonly width: number;
|
|
1378
|
+
}
|
|
1379
|
+
/** A built-in column such as the row reorder handle, the detail toggle or the selection checkbox. */
|
|
1380
|
+
interface GridLayoutStructuralColumn {
|
|
1381
|
+
/** Whether ArrowLeft (inline-start) stops at this cell. */
|
|
1382
|
+
readonly firstInRow: boolean;
|
|
1383
|
+
readonly key: string;
|
|
1384
|
+
readonly kind: StructuralColumnKind;
|
|
1385
|
+
/** Whether ArrowRight (inline-end) stops at this cell. */
|
|
1386
|
+
readonly lastInRow: boolean;
|
|
1387
|
+
/** The keyboard-navigation column index. */
|
|
1388
|
+
readonly logicalIndex: number;
|
|
1389
|
+
readonly sticky: GridStickyState | null;
|
|
1390
|
+
readonly width: number;
|
|
1391
|
+
}
|
|
1392
|
+
/** A cell of a header row above the column headers. */
|
|
1393
|
+
type GridHeaderGroupCell = GridHeaderGroupSpacerCell | GridHeaderGroupTitleCell;
|
|
1394
|
+
/** The space above a column that isn't in a group at that level; it continues the column's header upwards. */
|
|
1395
|
+
interface GridHeaderGroupSpacerCell {
|
|
1396
|
+
readonly key: string;
|
|
1397
|
+
readonly kind: "spacer";
|
|
1398
|
+
/** The layout column the space is above, whose sticky state it follows. */
|
|
1399
|
+
readonly layoutKey: string;
|
|
1400
|
+
readonly width: number | null;
|
|
1401
|
+
}
|
|
1402
|
+
/** A group's header, over the group's columns that sit next to each other. */
|
|
1403
|
+
interface GridHeaderGroupTitleCell {
|
|
1404
|
+
/** The `aria-colindex` of its first column. */
|
|
1405
|
+
readonly ariaColIndex: number;
|
|
1406
|
+
/** The keyboard-navigation index of its first column. */
|
|
1407
|
+
readonly colIndex: number;
|
|
1408
|
+
/** How many columns it spans. */
|
|
1409
|
+
readonly colSpan: number;
|
|
1410
|
+
/** Whether ArrowLeft (inline-start) stops at this cell. */
|
|
1411
|
+
readonly firstInRow: boolean;
|
|
1412
|
+
readonly group: ColumnGroup;
|
|
1413
|
+
/** Unique in the header, also when locking splits a group's columns. */
|
|
1414
|
+
readonly key: string;
|
|
1415
|
+
readonly kind: "group";
|
|
1416
|
+
/** Whether ArrowRight (inline-end) stops at this cell. */
|
|
1417
|
+
readonly lastInRow: boolean;
|
|
1418
|
+
readonly sticky: GridStickyState | null;
|
|
1419
|
+
/** The sum of its columns' widths, or `null` while one of them isn't measured. */
|
|
1420
|
+
readonly width: number | null;
|
|
1421
|
+
}
|
|
1297
1422
|
interface GridAggregateBucket {
|
|
1298
1423
|
readonly avg?: number;
|
|
1299
1424
|
readonly count?: number;
|
|
@@ -1369,66 +1494,6 @@ interface GridViewDataRow {
|
|
|
1369
1494
|
readonly row: Row;
|
|
1370
1495
|
readonly type: "data";
|
|
1371
1496
|
}
|
|
1372
|
-
/**
|
|
1373
|
-
* How a layout column stays pinned while the grid scrolls horizontally.
|
|
1374
|
-
* Sides are logical, so `start` is the left edge in LTR and the right edge in RTL.
|
|
1375
|
-
*/
|
|
1376
|
-
interface GridStickyState {
|
|
1377
|
-
/** Whether this is the innermost pinned column on its side, which draws the separator border. */
|
|
1378
|
-
readonly edge: boolean;
|
|
1379
|
-
/** The distance from the pinned side, in pixels. */
|
|
1380
|
-
readonly offset: number;
|
|
1381
|
-
readonly side: "end" | "start";
|
|
1382
|
-
}
|
|
1383
|
-
type StructuralColumnKind = "detail" | "reorder" | "selection";
|
|
1384
|
-
interface StructuralColumnDescriptor {
|
|
1385
|
-
readonly kind: StructuralColumnKind;
|
|
1386
|
-
readonly visible: boolean;
|
|
1387
|
-
readonly width: number;
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* A single physical column of the grid tables, in inline-start to inline-end order.
|
|
1391
|
-
* Every table section (header, body, add row, footer) renders the same sequence of layout columns.
|
|
1392
|
-
*/
|
|
1393
|
-
type GridLayoutColumn = GridLayoutDataColumn | GridLayoutGroupColumn | GridLayoutStructuralColumn;
|
|
1394
|
-
/** A user-defined data or command column. */
|
|
1395
|
-
interface GridLayoutDataColumn {
|
|
1396
|
-
readonly column: Column;
|
|
1397
|
-
/** The index among the visible user columns. */
|
|
1398
|
-
readonly columnIndex: number;
|
|
1399
|
-
/** Whether ArrowLeft (inline-start) stops at this cell. */
|
|
1400
|
-
readonly firstInRow: boolean;
|
|
1401
|
-
readonly key: string;
|
|
1402
|
-
readonly kind: "column";
|
|
1403
|
-
/** Whether ArrowRight (inline-end) stops at this cell. */
|
|
1404
|
-
readonly lastInRow: boolean;
|
|
1405
|
-
/** The keyboard-navigation column index. */
|
|
1406
|
-
readonly logicalIndex: number;
|
|
1407
|
-
readonly sticky: GridStickyState | null;
|
|
1408
|
-
readonly width: number | null;
|
|
1409
|
-
}
|
|
1410
|
-
/** An indent column rendered for each active group level. It does not participate in keyboard navigation. */
|
|
1411
|
-
interface GridLayoutGroupColumn {
|
|
1412
|
-
readonly depth: number;
|
|
1413
|
-
readonly key: string;
|
|
1414
|
-
readonly kind: "group";
|
|
1415
|
-
readonly logicalIndex: null;
|
|
1416
|
-
readonly sticky: GridStickyState | null;
|
|
1417
|
-
readonly width: number;
|
|
1418
|
-
}
|
|
1419
|
-
/** A built-in column such as the row reorder handle, the detail toggle or the selection checkbox. */
|
|
1420
|
-
interface GridLayoutStructuralColumn {
|
|
1421
|
-
/** Whether ArrowLeft (inline-start) stops at this cell. */
|
|
1422
|
-
readonly firstInRow: boolean;
|
|
1423
|
-
readonly key: string;
|
|
1424
|
-
readonly kind: StructuralColumnKind;
|
|
1425
|
-
/** Whether ArrowRight (inline-end) stops at this cell. */
|
|
1426
|
-
readonly lastInRow: boolean;
|
|
1427
|
-
/** The keyboard-navigation column index. */
|
|
1428
|
-
readonly logicalIndex: number;
|
|
1429
|
-
readonly sticky: GridStickyState | null;
|
|
1430
|
-
readonly width: number;
|
|
1431
|
-
}
|
|
1432
1497
|
interface PaginationState {
|
|
1433
1498
|
readonly page: number;
|
|
1434
1499
|
readonly skip: number;
|
|
@@ -1495,8 +1560,12 @@ declare class GridService {
|
|
|
1495
1560
|
readonly hasFooter: import("@angular/core").Signal<boolean>;
|
|
1496
1561
|
readonly hasLeftLockedColumns: import("@angular/core").Signal<boolean>;
|
|
1497
1562
|
readonly hasLiveScrollbarGutterWidth: import("@angular/core").Signal<boolean>;
|
|
1498
|
-
/**
|
|
1499
|
-
readonly
|
|
1563
|
+
/** How many group rows sit above the column headers: the deepest `mona-grid-column-group` nesting shown. */
|
|
1564
|
+
readonly headerGroupDepth: import("@angular/core").Signal<number>;
|
|
1565
|
+
/** The rows of column group headers, outermost first; empty without groups. */
|
|
1566
|
+
readonly headerGroupRows: import("@angular/core").Signal<GridHeaderGroupCell[][]>;
|
|
1567
|
+
/** The header rows: the column group rows, the column headers and, when shown, the filter row. */
|
|
1568
|
+
readonly headerRowCount: import("@angular/core").Signal<number>;
|
|
1500
1569
|
readonly headerTableElement: import("@angular/core").WritableSignal<HTMLTableElement | null>;
|
|
1501
1570
|
readonly horizontalScrollLeft: import("@angular/core").Signal<number>;
|
|
1502
1571
|
readonly isInEditMode: import("@angular/core").Signal<boolean>;
|
|
@@ -1639,7 +1708,9 @@ declare class GridService {
|
|
|
1639
1708
|
removeRow(row: Row, originalEvent?: Event): boolean;
|
|
1640
1709
|
/**
|
|
1641
1710
|
* Moves a column in front of the column at `beforeIndex` in `columns()`, or to the end with
|
|
1642
|
-
* `columns().length`.
|
|
1711
|
+
* `columns().length`. A column in a `mona-grid-column-group` moves only among the group's columns and nested
|
|
1712
|
+
* groups, and no column lands inside a group it isn't in; past hidden columns, the nearest place allowed is used.
|
|
1713
|
+
* Reports `columnReorder$`, which can cancel the move. Returns whether it moved.
|
|
1643
1714
|
*/
|
|
1644
1715
|
reorderColumn(column: Column, beforeIndex: number): boolean;
|
|
1645
1716
|
/**
|
|
@@ -1733,6 +1804,7 @@ declare class GridService {
|
|
|
1733
1804
|
private getRowUidKey;
|
|
1734
1805
|
private measureElementScrollbarGutter;
|
|
1735
1806
|
private measureFallbackScrollbarGutter;
|
|
1807
|
+
/** Keeps each group's columns together, then moves left-locked columns to the start and right-locked ones to the end. */
|
|
1736
1808
|
private orderColumnsByLockBucket;
|
|
1737
1809
|
private reconcileColumn;
|
|
1738
1810
|
/** The column's `editable`, with the default (every column but the `rowKey` field) resolved. */
|
|
@@ -1825,11 +1897,17 @@ export declare class GridComponent<T> implements GridVariantInput {
|
|
|
1825
1897
|
protected readonly groupable: import("@angular/core").Signal<boolean>;
|
|
1826
1898
|
protected readonly groupingInProgress: import("@angular/core").WritableSignal<boolean>;
|
|
1827
1899
|
protected readonly headerClass: import("@angular/core").Signal<string>;
|
|
1900
|
+
protected readonly headerGroupCellClass: import("@angular/core").Signal<string>;
|
|
1901
|
+
protected readonly headerGroupRowClass: import("@angular/core").Signal<string>;
|
|
1902
|
+
protected readonly headerGroupSpacerCellClass: import("@angular/core").Signal<string>;
|
|
1903
|
+
protected readonly headerGroupTitleClass: import("@angular/core").Signal<string>;
|
|
1828
1904
|
/** Each header's keyboard shortcuts, for `aria-keyshortcuts`. */
|
|
1829
1905
|
protected readonly headerKeyShortcuts: import("@angular/core").Signal<Map<string, string>>;
|
|
1830
1906
|
protected readonly headerMarginInlineEnd: import("@angular/core").Signal<number>;
|
|
1831
1907
|
protected readonly headerTableCellClass: import("@angular/core").Signal<string>;
|
|
1832
1908
|
protected readonly headerTableClass: import("@angular/core").Signal<string>;
|
|
1909
|
+
/** The column header row: under group rows it draws no line of its own, as the group titles have one. */
|
|
1910
|
+
protected readonly headerTableColumnRowClass: import("@angular/core").Signal<string>;
|
|
1833
1911
|
protected readonly headerTableColumnTitleClass: import("@angular/core").Signal<string>;
|
|
1834
1912
|
protected readonly headerTableColumnWrapClass: import("@angular/core").Signal<string>;
|
|
1835
1913
|
protected readonly headerTableRowClass: import("@angular/core").Signal<string>;
|
|
@@ -2116,4 +2194,4 @@ export declare const GRID_DEFAULT_MESSAGES: {
|
|
|
2116
2194
|
sortOrder: (position: number) => string;
|
|
2117
2195
|
toolbar: string;
|
|
2118
2196
|
};
|
|
2119
|
-
export type { AggregateFunction, Column, ColumnConfig, ColumnFormat, ColumnFormatFunction, ColumnKind, ColumnReorderEvent, ColumnResizeEvent, ColumnSortComparator, ColumnSortEvent, EditableOptions, GridCancelReason, GridColumnLockedPosition, GridDataState, GridEditFormContext, GridEditOperation, GridEditSchemaFactory, GridEditSession, GridEditTemplateContext, GridKeySelector, GridRowClass, GridRowClassValue, GridRowCommand, GridSaveOperation, GridToolbarContext, GridToolbarTemplateContext, ReorderableOptions, ResizableOptions, ResizeMethod, Row, RowReorderableOptions };
|
|
2197
|
+
export type { AggregateFunction, Column, ColumnConfig, ColumnFormat, ColumnFormatFunction, ColumnGroup, ColumnKind, ColumnReorderEvent, ColumnResizeEvent, ColumnSortComparator, ColumnSortEvent, EditableOptions, GridCancelReason, GridColumnLockedPosition, GridDataState, GridEditFormContext, GridEditOperation, GridEditSchemaFactory, GridEditSession, GridEditTemplateContext, GridKeySelector, GridRowClass, GridRowClassValue, GridRowCommand, GridSaveOperation, GridToolbarContext, GridToolbarTemplateContext, ReorderableOptions, ResizableOptions, ResizeMethod, Row, RowReorderableOptions };
|
|
@@ -449,6 +449,65 @@ export interface MonaEditorMessages {
|
|
|
449
449
|
/** The label of the width field in the insert image form. */
|
|
450
450
|
readonly widthPx: string;
|
|
451
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* The file upload's drop zone, its list of files, and what it announces as files are added, uploaded and removed.
|
|
454
|
+
*/
|
|
455
|
+
export interface MonaFileUploadMessages {
|
|
456
|
+
/** The browse button's text, when several files can be added. */
|
|
457
|
+
readonly browse: string;
|
|
458
|
+
/** The browse button's text, when one file can be added. */
|
|
459
|
+
readonly browseFile: string;
|
|
460
|
+
/** Name of the button that stops a file's upload and removes it. */
|
|
461
|
+
cancel(name: string): string;
|
|
462
|
+
/** Text of the button that removes every file, shown with the upload button while `autoUpload` is off. */
|
|
463
|
+
readonly clear: string;
|
|
464
|
+
/** The drop zone's text, when one file can be added. */
|
|
465
|
+
readonly dropFile: string;
|
|
466
|
+
/** The drop zone's text, when several files can be added. */
|
|
467
|
+
readonly dropFiles: string;
|
|
468
|
+
/** The drop zone's text while files are dragged over it. */
|
|
469
|
+
readonly dropToAdd: string;
|
|
470
|
+
/** Announced when a file's upload fails. */
|
|
471
|
+
fileFailed(name: string): string;
|
|
472
|
+
/** Announced for a file that wasn't added, with the reason, which is one of the rejection messages. */
|
|
473
|
+
fileRejected(name: string, reason: string): string;
|
|
474
|
+
/** Announced when a file is removed. */
|
|
475
|
+
fileRemoved(name: string): string;
|
|
476
|
+
/** The accepted types under the drop zone, as a list such as "PDF, PNG or JPG". */
|
|
477
|
+
fileTypes(types: string): string;
|
|
478
|
+
/** Announced when a file's upload finishes. */
|
|
479
|
+
fileUploaded(name: string): string;
|
|
480
|
+
/** Name of the list of files. */
|
|
481
|
+
readonly files: string;
|
|
482
|
+
/** Announced when files are added. */
|
|
483
|
+
filesAdded(count: number): string;
|
|
484
|
+
/** Why a file of a type `accept` doesn't list wasn't added. */
|
|
485
|
+
readonly invalidType: string;
|
|
486
|
+
/** The largest file size under the drop zone, formatted in the locale. */
|
|
487
|
+
maxFileSize(size: string): string;
|
|
488
|
+
/** The most files under the drop zone. */
|
|
489
|
+
maxFiles(count: number): string;
|
|
490
|
+
/** A file's status while it waits for the upload button. */
|
|
491
|
+
readonly readyToUpload: string;
|
|
492
|
+
/** Name of the button that removes a file. */
|
|
493
|
+
remove(name: string): string;
|
|
494
|
+
/** Name of the button that uploads a failed file again. */
|
|
495
|
+
retry(name: string): string;
|
|
496
|
+
/** Why a file larger than `maxFileSize` wasn't added, with the size formatted in the locale. */
|
|
497
|
+
tooLarge(size: string): string;
|
|
498
|
+
/** Why a file past `maxFiles` wasn't added. */
|
|
499
|
+
tooMany(count: number): string;
|
|
500
|
+
/** Why a file smaller than `minFileSize` wasn't added, with the size formatted in the locale. */
|
|
501
|
+
tooSmall(size: string): string;
|
|
502
|
+
/** Text of the button that uploads the waiting files, while `autoUpload` is off. */
|
|
503
|
+
readonly upload: string;
|
|
504
|
+
/** A file's status when its upload failed. */
|
|
505
|
+
readonly uploadFailed: string;
|
|
506
|
+
/** A file's status once it's uploaded. */
|
|
507
|
+
readonly uploaded: string;
|
|
508
|
+
/** A file's status while it uploads. */
|
|
509
|
+
readonly uploading: string;
|
|
510
|
+
}
|
|
452
511
|
export interface MonaFilterMessages {
|
|
453
512
|
readonly and: string;
|
|
454
513
|
readonly apply: string;
|
|
@@ -859,6 +918,7 @@ export interface MonaLocaleMessages {
|
|
|
859
918
|
dropdownList: MonaDropdownListMessages;
|
|
860
919
|
dropdowns: MonaDropdownsMessages;
|
|
861
920
|
editor: MonaEditorMessages;
|
|
921
|
+
fileUpload: MonaFileUploadMessages;
|
|
862
922
|
filter: MonaFilterMessages;
|
|
863
923
|
formField: MonaFormFieldMessages;
|
|
864
924
|
grid: MonaGridMessages;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
2
|
+
/**
|
|
3
|
+
* Injects CDK's `LiveAnnouncer`, and loads the style that hides its live region.
|
|
4
|
+
*
|
|
5
|
+
* The announcer adds a `cdk-visually-hidden` element to the end of `<body>`, but doesn't load that class's rule. CDK's
|
|
6
|
+
* focus trap and `cdkAriaLive` load it, as a side effect. On a page with neither, everything announced shows as text
|
|
7
|
+
* below the page. This loads the rule as they do: once per application, with no global stylesheet, so it works for
|
|
8
|
+
* applications that don't import Mona UI's or CDK's CSS.
|
|
9
|
+
*
|
|
10
|
+
* Use it instead of `inject(LiveAnnouncer)`. Call it in an injection context.
|
|
11
|
+
*/
|
|
12
|
+
export declare function injectLiveAnnouncer(): LiveAnnouncer;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_AR_SA_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_DE_DE_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_ES_ES_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_FR_FR_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_ID_ID_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_IT_IT_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_JA_JP_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|
|
@@ -279,6 +279,35 @@ export declare const MONA_KO_KR_LOCALE: {
|
|
|
279
279
|
undo: string;
|
|
280
280
|
widthPx: string;
|
|
281
281
|
};
|
|
282
|
+
fileUpload: {
|
|
283
|
+
browse: string;
|
|
284
|
+
browseFile: string;
|
|
285
|
+
cancel: (name: string) => string;
|
|
286
|
+
clear: string;
|
|
287
|
+
dropFile: string;
|
|
288
|
+
dropFiles: string;
|
|
289
|
+
dropToAdd: string;
|
|
290
|
+
fileFailed: (name: string) => string;
|
|
291
|
+
fileRejected: (name: string, reason: string) => string;
|
|
292
|
+
fileRemoved: (name: string) => string;
|
|
293
|
+
fileTypes: (types: string) => string;
|
|
294
|
+
fileUploaded: (name: string) => string;
|
|
295
|
+
files: string;
|
|
296
|
+
filesAdded: (count: number) => string;
|
|
297
|
+
invalidType: string;
|
|
298
|
+
maxFileSize: (size: string) => string;
|
|
299
|
+
maxFiles: (count: number) => string;
|
|
300
|
+
readyToUpload: string;
|
|
301
|
+
remove: (name: string) => string;
|
|
302
|
+
retry: (name: string) => string;
|
|
303
|
+
tooLarge: (size: string) => string;
|
|
304
|
+
tooMany: (count: number) => string;
|
|
305
|
+
tooSmall: (size: string) => string;
|
|
306
|
+
upload: string;
|
|
307
|
+
uploadFailed: string;
|
|
308
|
+
uploaded: string;
|
|
309
|
+
uploading: string;
|
|
310
|
+
};
|
|
282
311
|
filter: {
|
|
283
312
|
and: string;
|
|
284
313
|
apply: string;
|