@tedi-design-system/angular 10.0.0-rc.7 → 10.0.0-rc.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tedi-design-system/angular",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "community.mjs",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@angular/core": "^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
42
42
|
"@angular/forms": "^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
43
43
|
"@angular/platform-browser": "^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
44
|
-
"ngx-quill": "^28.0.2",
|
|
44
|
+
"ngx-quill": "^28.0.2 || ^29.0.0 || ^30.0.0 || ^31.0.0",
|
|
45
45
|
"quill": "^2.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
package/tedi/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _tedi_design_system_angular_tedi from '@tedi-design-system/angular/t
|
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
7
7
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
8
|
-
import { Table, VisibilityState, ColumnOrderState, ColumnSizingState, RowSelectionState, ExpandedState, ColumnFiltersState, SortingState, PaginationState, Column, ColumnDef, CellContext, Row } from '@tanstack/angular-table';
|
|
8
|
+
import { Table, VisibilityState, ColumnOrderState, ColumnSizingState, RowSelectionState, ExpandedState, ColumnFiltersState, SortingState, PaginationState, Column, ColumnDef, CellContext, Row, Header } from '@tanstack/angular-table';
|
|
9
9
|
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
10
10
|
import { ConnectedOverlayPositionChange, ConnectedPosition, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
11
11
|
import { CdkListbox } from '@angular/cdk/listbox';
|
|
@@ -798,9 +798,9 @@ declare const translationsMap: {
|
|
|
798
798
|
"table.sort": {
|
|
799
799
|
description: string;
|
|
800
800
|
components: string[];
|
|
801
|
-
et: (direction: "asc" | "desc" | false) =>
|
|
802
|
-
en: (direction: "asc" | "desc" | false) =>
|
|
803
|
-
ru: (direction: "asc" | "desc" | false) =>
|
|
801
|
+
et: (direction: "asc" | "desc" | false, columnLabel?: string) => string;
|
|
802
|
+
en: (direction: "asc" | "desc" | false, columnLabel?: string) => string;
|
|
803
|
+
ru: (direction: "asc" | "desc" | false, columnLabel?: string) => string;
|
|
804
804
|
};
|
|
805
805
|
"table.no-data": {
|
|
806
806
|
description: string;
|
|
@@ -4228,7 +4228,10 @@ type TableExpandTrigger = "button" | "row";
|
|
|
4228
4228
|
* - align the header cell separately from the body (`headerAlign`).
|
|
4229
4229
|
*/
|
|
4230
4230
|
interface TableColumnMeta {
|
|
4231
|
-
/**
|
|
4231
|
+
/**
|
|
4232
|
+
* Accessible label for a column whose header isn't a plain string. Names
|
|
4233
|
+
* the column in the built-in sort and filter buttons.
|
|
4234
|
+
*/
|
|
4232
4235
|
label?: string;
|
|
4233
4236
|
/**
|
|
4234
4237
|
* Horizontal alignment applied to every body / footer cell, and to the
|
|
@@ -4381,15 +4384,17 @@ type TediColumnDef<TData, TValue = unknown> = ColumnDef<TData, TValue> & {
|
|
|
4381
4384
|
*/
|
|
4382
4385
|
groupBy?: boolean | ((row: Row<TData>) => unknown);
|
|
4383
4386
|
/**
|
|
4384
|
-
* Opts the column into the built-in sort affordance
|
|
4385
|
-
*
|
|
4386
|
-
*
|
|
4387
|
-
*
|
|
4388
|
-
*
|
|
4387
|
+
* Opts the column into the built-in sort affordance: an icon reflects the
|
|
4388
|
+
* current sort direction, `aria-sort` is wired, and clicking toggles
|
|
4389
|
+
* `asc → desc → none`.
|
|
4390
|
+
*
|
|
4391
|
+
* - String header: the whole title becomes the sort button.
|
|
4392
|
+
* - Custom header (template or component): the header renders as-is,
|
|
4393
|
+
* followed by an icon-only sort button. Set `meta.label` so the button can
|
|
4394
|
+
* name the column (otherwise the column id is used).
|
|
4389
4395
|
*
|
|
4390
|
-
* For fully custom sort
|
|
4391
|
-
*
|
|
4392
|
-
* the shorthand bows out when a non-string header is rendered.
|
|
4396
|
+
* For a fully custom sort UI, leave `sortable` off, provide a `TemplateRef`
|
|
4397
|
+
* for `header` and call `column.toggleSorting()` yourself.
|
|
4393
4398
|
*
|
|
4394
4399
|
* Pair with `sortingFn` on the same column to override the comparator
|
|
4395
4400
|
* (built-in: `'alphanumeric'`, `'text'`, `'datetime'`, `'basic'`, `'auto'`,
|
|
@@ -5182,14 +5187,20 @@ declare class TediTableComponent<TData> {
|
|
|
5182
5187
|
protected getFilterValue(column: ReturnType<Table<TData>["getAllLeafColumns"]>[number]): string;
|
|
5183
5188
|
protected isString(value: unknown): value is string;
|
|
5184
5189
|
protected isNumber(value: unknown): value is number;
|
|
5190
|
+
/** True when the column sets `sortable: true` and TanStack can sort it. */
|
|
5191
|
+
private hasBuiltInSort;
|
|
5185
5192
|
/**
|
|
5186
|
-
*
|
|
5187
|
-
*
|
|
5188
|
-
* (`enableSorting !== false`), and the rendered header content is a plain
|
|
5189
|
-
* string / number. Custom header `TemplateRef`s and functions bow out of
|
|
5190
|
-
* the shorthand and render via `flexRender` as-is.
|
|
5193
|
+
* True for a sortable column with a plain string / number header: the title
|
|
5194
|
+
* itself becomes the sort button.
|
|
5191
5195
|
*/
|
|
5192
5196
|
protected shouldRenderSortableHeader(column: Column<TData, unknown>, content: unknown): boolean;
|
|
5197
|
+
/**
|
|
5198
|
+
* True for a sortable column with a custom header (template or component):
|
|
5199
|
+
* the header renders as-is and an icon-only sort button follows it.
|
|
5200
|
+
*/
|
|
5201
|
+
protected shouldRenderSortButtonAfterHeader(header: Header<TData, unknown>): boolean;
|
|
5202
|
+
/** Accessible name of the icon-only sort button: next action + column. */
|
|
5203
|
+
protected sortAriaLabel(column: Column<TData, unknown>): string;
|
|
5193
5204
|
/**
|
|
5194
5205
|
* Material icon name reflecting the column's current sort state.
|
|
5195
5206
|
* `asc → arrow_upward`, `desc → arrow_downward`, otherwise `unfold_more`.
|