@tedi-design-system/angular 6.5.0-rc.1 → 6.5.0-rc.2
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/fesm2022/tedi-design-system-angular-tedi.mjs +4451 -2795
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/package.json +2 -1
- package/tedi/components/buttons/collapse/collapse.component.d.ts +21 -5
- package/tedi/components/buttons/collapse/collapse.component.d.ts.map +1 -1
- package/tedi/components/buttons/collapse-button/collapse-button.component.d.ts +76 -0
- package/tedi/components/buttons/collapse-button/collapse-button.component.d.ts.map +1 -0
- package/tedi/components/buttons/index.d.ts +1 -0
- package/tedi/components/buttons/index.d.ts.map +1 -1
- package/tedi/components/content/index.d.ts +1 -0
- package/tedi/components/content/index.d.ts.map +1 -1
- package/tedi/components/content/table/index.d.ts +9 -0
- package/tedi/components/content/table/index.d.ts.map +1 -0
- package/tedi/components/content/table/row-span.utils.d.ts +10 -0
- package/tedi/components/content/table/row-span.utils.d.ts.map +1 -0
- package/tedi/components/content/table/table-columns-menu/index.d.ts +2 -0
- package/tedi/components/content/table/table-columns-menu/index.d.ts.map +1 -0
- package/tedi/components/content/table/table-columns-menu/table-columns-menu.component.d.ts +19 -0
- package/tedi/components/content/table/table-columns-menu/table-columns-menu.component.d.ts.map +1 -0
- package/tedi/components/content/table/table-header-button/index.d.ts +2 -0
- package/tedi/components/content/table/table-header-button/index.d.ts.map +1 -0
- package/tedi/components/content/table/table-header-button/table-header-button.component.d.ts +36 -0
- package/tedi/components/content/table/table-header-button/table-header-button.component.d.ts.map +1 -0
- package/tedi/components/content/table/table-toolbar/index.d.ts +2 -0
- package/tedi/components/content/table/table-toolbar/index.d.ts.map +1 -0
- package/tedi/components/content/table/table-toolbar/table-toolbar.component.d.ts +6 -0
- package/tedi/components/content/table/table-toolbar/table-toolbar.component.d.ts.map +1 -0
- package/tedi/components/content/table/table.component.d.ts +499 -0
- package/tedi/components/content/table/table.component.d.ts.map +1 -0
- package/tedi/components/content/table/table.context.d.ts +5 -0
- package/tedi/components/content/table/table.context.d.ts.map +1 -0
- package/tedi/components/content/table/table.persistence.d.ts +21 -0
- package/tedi/components/content/table/table.persistence.d.ts.map +1 -0
- package/tedi/components/content/table/table.types.d.ts +196 -0
- package/tedi/components/content/table/table.types.d.ts.map +1 -0
- package/tedi/components/helpers/empty-state/empty-state.component.d.ts +54 -0
- package/tedi/components/helpers/empty-state/empty-state.component.d.ts.map +1 -0
- package/tedi/components/helpers/empty-state/index.d.ts +2 -0
- package/tedi/components/helpers/empty-state/index.d.ts.map +1 -0
- package/tedi/components/helpers/index.d.ts +1 -0
- package/tedi/components/helpers/index.d.ts.map +1 -1
- package/tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.d.ts +14 -1
- package/tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.d.ts.map +1 -1
- package/tedi/services/translation/translations.d.ts +84 -0
- package/tedi/services/translation/translations.d.ts.map +1 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { Signal, TemplateRef } from "@angular/core";
|
|
2
|
+
import type { CellContext, Column, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnSizingState, ExpandedState, PaginationState, RowSelectionState, SortingState, Table as TanstackTable, VisibilityState } from "@tanstack/angular-table";
|
|
3
|
+
import type { PaginationComponent } from "../../navigation/pagination/pagination.component";
|
|
4
|
+
import type { ComponentInputs } from "../../../types/inputs.type";
|
|
5
|
+
export type TableSize = "medium" | "small";
|
|
6
|
+
/**
|
|
7
|
+
* Selection mode for `<tedi-table>` row selection. `multiple` (default) shows
|
|
8
|
+
* a checkbox per row plus a select-all checkbox in the header. `single` shows
|
|
9
|
+
* a radio per row sharing one `name`, and no header control.
|
|
10
|
+
*/
|
|
11
|
+
export type TableSelectionMode = "multiple" | "single";
|
|
12
|
+
/**
|
|
13
|
+
* How an expandable row is toggled. `button` (default) only reacts to clicks
|
|
14
|
+
* on the chevron button. `row` lets a click anywhere on the row toggle
|
|
15
|
+
* expansion. Both render the chevron in the `secondary` (bordered) arrow style
|
|
16
|
+
* by default — override it with the table's `expandButtonVariant` input.
|
|
17
|
+
*/
|
|
18
|
+
export type TableExpandTrigger = "button" | "row";
|
|
19
|
+
/**
|
|
20
|
+
* Optional shape that columns can put in `columnDef.meta` to:
|
|
21
|
+
*
|
|
22
|
+
* - drive the column-filter aria-label when the header is non-textual (`label`),
|
|
23
|
+
* - align the column's `<th>` / `<td>` content horizontally (`align`) or vertically
|
|
24
|
+
* (`vAlign`) without wrapping every cell render in a styled span.
|
|
25
|
+
*/
|
|
26
|
+
export interface TableColumnMeta {
|
|
27
|
+
/** Accessible label used when the column header isn't a plain string. */
|
|
28
|
+
label?: string;
|
|
29
|
+
/** Horizontal alignment applied to every header / body / footer cell. */
|
|
30
|
+
align?: "left" | "center" | "right";
|
|
31
|
+
/** Vertical alignment applied to every header / body / footer cell. */
|
|
32
|
+
vAlign?: "top" | "middle" | "bottom";
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Persistable state slices owned by Table. Each slice can be controlled via
|
|
36
|
+
* `state`/`stateChange`, defaulted via `defaultState`, or persisted via `persist`.
|
|
37
|
+
*/
|
|
38
|
+
export interface TableState {
|
|
39
|
+
columnVisibility?: VisibilityState;
|
|
40
|
+
columnOrder?: ColumnOrderState;
|
|
41
|
+
rowOrder?: string[];
|
|
42
|
+
columnSizing?: ColumnSizingState;
|
|
43
|
+
rowSelection?: RowSelectionState;
|
|
44
|
+
expanded?: ExpandedState;
|
|
45
|
+
columnFilters?: ColumnFiltersState;
|
|
46
|
+
sorting?: SortingState;
|
|
47
|
+
pagination?: PaginationState;
|
|
48
|
+
}
|
|
49
|
+
export type TableStatePatch = Partial<TableState> | ((prev: TableState) => Partial<TableState>);
|
|
50
|
+
export interface TablePersistOptions {
|
|
51
|
+
/** Storage key used to read/write persisted state. Must be stable per table. */
|
|
52
|
+
key: string;
|
|
53
|
+
/** Storage backend. Defaults to `window.localStorage` when available. */
|
|
54
|
+
storage?: Storage;
|
|
55
|
+
/**
|
|
56
|
+
* Subset of state slices to persist. Defaults to user-preference slices only:
|
|
57
|
+
* `columnVisibility`, `columnOrder`, `rowOrder`, `columnSizing`.
|
|
58
|
+
*/
|
|
59
|
+
include?: (keyof TableState)[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Inputs on `tedi-pagination` that the table manages itself or replaces with a
|
|
63
|
+
* differently typed version, so they are stripped from the forwarded shape.
|
|
64
|
+
*/
|
|
65
|
+
type TableManagedPaginationInputs = "pageCount" | "totalItems" | "pageSizeOptions";
|
|
66
|
+
/**
|
|
67
|
+
* All pagination inputs the consumer can pass through `pagination` /
|
|
68
|
+
* `paginationTop`. Mirrors `PaginationComponent`'s public inputs (except the
|
|
69
|
+
* state-driven ones owned by the table) and adds the table-specific
|
|
70
|
+
* `pageSize` / `pageSizeOptions` configuration.
|
|
71
|
+
*
|
|
72
|
+
* Note: `pageSize` lives on `PaginationComponent` as a `model()` and is therefore
|
|
73
|
+
* not part of `ComponentInputs` — we redeclare it here so consumers configure
|
|
74
|
+
* the initial/default page size via this options object.
|
|
75
|
+
*/
|
|
76
|
+
export type TablePaginationOptions = Partial<Omit<ComponentInputs<PaginationComponent>, TableManagedPaginationInputs>> & {
|
|
77
|
+
/** Rows per page. @default 10 */
|
|
78
|
+
pageSize?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Options rendered in the built-in page-size selector. Pass `false` to hide.
|
|
81
|
+
* @default [10, 25, 50]
|
|
82
|
+
*/
|
|
83
|
+
pageSizeOptions?: number[] | false;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Tuning knobs for the built-in filter popover. Forwarded by `filterable`
|
|
87
|
+
* when the consumer needs more than just "on / off".
|
|
88
|
+
*/
|
|
89
|
+
export interface TableFilterOptions {
|
|
90
|
+
/**
|
|
91
|
+
* Reset the in-popover draft to the applied filter value every time the
|
|
92
|
+
* popover closes. Useful for filters where stale draft state (a partially
|
|
93
|
+
* typed string, half-selected checkboxes) would confuse the user.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
clearOnClose?: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Context exposed by the built-in filter popover to the consumer's
|
|
100
|
+
* `filterTemplate`. The consumer binds inputs to `value` / `setValue` and
|
|
101
|
+
* optionally calls `apply()` / `clear()` (e.g. on Enter / Escape) — the
|
|
102
|
+
* popover's footer already wires Apply / Clear buttons.
|
|
103
|
+
*
|
|
104
|
+
* `$implicit` aliases the context itself, so `<ng-template let-ctx>` binds
|
|
105
|
+
* `ctx` to a full `TediTableFilterContext` (the consumer reads `ctx.value`,
|
|
106
|
+
* `ctx.setValue`, etc. through the same name).
|
|
107
|
+
*/
|
|
108
|
+
export interface TediTableFilterContext<TValue = unknown, TData = unknown> {
|
|
109
|
+
/**
|
|
110
|
+
* Aliases the context itself, so `let-ctx` binds the full context — keeps
|
|
111
|
+
* `ctx.value` / `ctx.setValue` / `ctx.column` discoverable without forcing
|
|
112
|
+
* the consumer to spell out `let-value="value"`, `let-setValue="setValue"`, etc.
|
|
113
|
+
*/
|
|
114
|
+
$implicit: TediTableFilterContext<TValue, TData>;
|
|
115
|
+
/** Current draft (what the input should bind to). */
|
|
116
|
+
value: TValue;
|
|
117
|
+
/** Write to the draft. Does not apply yet — call `apply()` to commit. */
|
|
118
|
+
setValue: (next: TValue) => void;
|
|
119
|
+
/** Commit the draft via `column.setFilterValue` and close the popover. */
|
|
120
|
+
apply: () => void;
|
|
121
|
+
/** Reset the filter (calls `setFilterValue(undefined)`) and close. */
|
|
122
|
+
clear: () => void;
|
|
123
|
+
/** TanStack `Column` for the column whose filter popover is open. */
|
|
124
|
+
column: Column<TData>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Angular-only extension to TanStack's `ColumnDef`. Supports body-level row
|
|
128
|
+
* spanning via the `rowSpan` callback and a one-flag opt-in to the built-in
|
|
129
|
+
* sort affordance via `sortable`.
|
|
130
|
+
*/
|
|
131
|
+
export type TediColumnDef<TData, TValue = unknown> = ColumnDef<TData, TValue> & {
|
|
132
|
+
/**
|
|
133
|
+
* Body-level row spanning. Return `>1` to emit `rowspan="N"` and skip the
|
|
134
|
+
* next `N-1` rows in this column; return `0` to skip rendering the cell
|
|
135
|
+
* entirely (covered by a previous spanning cell). Defaults to `1`.
|
|
136
|
+
*/
|
|
137
|
+
rowSpan?: number | ((info: CellContext<TData, TValue>) => number);
|
|
138
|
+
/**
|
|
139
|
+
* Opts the column into the built-in sort affordance. When `true` and the
|
|
140
|
+
* column's `header` is a string, the table renders a clickable sort button
|
|
141
|
+
* around the header title — the entire title becomes the affordance, an
|
|
142
|
+
* icon reflects the current sort direction, `aria-sort` is wired, and
|
|
143
|
+
* clicking toggles `asc → desc → none`.
|
|
144
|
+
*
|
|
145
|
+
* For fully custom sort UIs (e.g. combined sort + filter), provide a
|
|
146
|
+
* `TemplateRef` for `header` and call `column.toggleSorting()` yourself —
|
|
147
|
+
* the shorthand bows out when a non-string header is rendered.
|
|
148
|
+
*
|
|
149
|
+
* Pair with `sortingFn` on the same column to override the comparator
|
|
150
|
+
* (built-in: `'alphanumeric'`, `'text'`, `'datetime'`, `'basic'`, `'auto'`,
|
|
151
|
+
* or any `SortingFn`).
|
|
152
|
+
*
|
|
153
|
+
* @default false
|
|
154
|
+
*/
|
|
155
|
+
sortable?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Opts the column into the built-in filter popover. The table renders the
|
|
158
|
+
* trigger button (icon-only `filter_alt`), positions the popover, owns the
|
|
159
|
+
* in-popover draft state, and renders translated **Apply** / **Clear**
|
|
160
|
+
* actions in the footer. The consumer supplies the input UI through
|
|
161
|
+
* `filterTemplate`.
|
|
162
|
+
*
|
|
163
|
+
* Pass `true` for defaults, or `TableFilterOptions` to tune behaviour
|
|
164
|
+
* (e.g. `{ clearOnClose: true }` to discard half-typed drafts when the
|
|
165
|
+
* popover closes without applying). Requires `filterTemplate` when truthy.
|
|
166
|
+
*
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
filterable?: boolean | TableFilterOptions;
|
|
170
|
+
/**
|
|
171
|
+
* Input UI rendered inside the built-in filter popover. Receives a
|
|
172
|
+
* `TediTableFilterContext` with `value` / `setValue` for the draft and
|
|
173
|
+
* `apply()` / `clear()` for explicit commit + close. The footer Apply /
|
|
174
|
+
* Clear buttons cover the common path — call them from the template only
|
|
175
|
+
* for keyboard shortcuts (Enter, Escape).
|
|
176
|
+
*/
|
|
177
|
+
filterTemplate?: TemplateRef<TediTableFilterContext<unknown, TData>>;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Value exposed through `TEDI_TABLE_CONTEXT`. Sub-components like ColumnsMenu
|
|
181
|
+
* use it to read and mutate the table state without prop-drilling.
|
|
182
|
+
*/
|
|
183
|
+
export interface TediTableContextValue<TData = unknown> {
|
|
184
|
+
/** Signal exposing the current Tanstack table instance. Read inside computed/effect for reactivity. */
|
|
185
|
+
table: Signal<TanstackTable<TData>>;
|
|
186
|
+
/** Visual size of the table. */
|
|
187
|
+
size: Signal<TableSize>;
|
|
188
|
+
/** Stable id used as a prefix for synthetic ids. */
|
|
189
|
+
id: Signal<string>;
|
|
190
|
+
/** Merged table state signal. */
|
|
191
|
+
state: Signal<TableState>;
|
|
192
|
+
/** Id of the row currently under the pointer, or `null`. */
|
|
193
|
+
hoveredRowId: Signal<string | null>;
|
|
194
|
+
}
|
|
195
|
+
export {};
|
|
196
|
+
//# sourceMappingURL=table.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.types.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/content/table/table.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,kBAAkB,EACl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AIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,CAAC;IAClE;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAC;IAC1C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;CACtE,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,qBAAqB,CAAC,KAAK,GAAG,OAAO;IACpD,uGAAuG;IACvG,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IACxB,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACnB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC1B,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IconColor, IconSize } from "../../base/icon/icon.component";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type EmptyStateType = "separate" | "attached" | "inside";
|
|
4
|
+
export type EmptyStateSize = "default" | "small";
|
|
5
|
+
/**
|
|
6
|
+
* Communicates that there is nothing to display — empty search results, an
|
|
7
|
+
* unpopulated list, a freshly-created workspace — and optionally guides the
|
|
8
|
+
* user toward the next step via action buttons or a link.
|
|
9
|
+
*
|
|
10
|
+
* Description is projected via `<ng-content>`. Actions are projected via
|
|
11
|
+
* `<ng-content select="[tedi-empty-state-actions]">`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class EmptyStateComponent {
|
|
14
|
+
/**
|
|
15
|
+
* Container variant — matches the Figma "Types" section.
|
|
16
|
+
* - `'separate'` (default) — full border + radius, stands on its own.
|
|
17
|
+
* - `'attached'` — top border omitted so the block sits flush beneath a
|
|
18
|
+
* preceding card or table (same width + same bottom-radius).
|
|
19
|
+
* - `'inside'` — no border, no radius; intended to be placed inside another
|
|
20
|
+
* container such as a `<tedi-card>` or `<tedi-table>`.
|
|
21
|
+
* @default separate
|
|
22
|
+
*/
|
|
23
|
+
readonly type: import("@angular/core").InputSignal<EmptyStateType>;
|
|
24
|
+
/**
|
|
25
|
+
* Padding scale. `default` = 24px, `small` = 16px.
|
|
26
|
+
* @default default
|
|
27
|
+
*/
|
|
28
|
+
readonly size: import("@angular/core").InputSignal<EmptyStateSize>;
|
|
29
|
+
/**
|
|
30
|
+
* Material icon name rendered above the text block. Pass `null` to hide.
|
|
31
|
+
* @default spa
|
|
32
|
+
*/
|
|
33
|
+
readonly icon: import("@angular/core").InputSignal<string | null>;
|
|
34
|
+
/**
|
|
35
|
+
* Color of the icon. Defaults to brand so the empty state reads as a
|
|
36
|
+
* "fresh canvas" cue rather than a destructive state.
|
|
37
|
+
* @default brand
|
|
38
|
+
*/
|
|
39
|
+
readonly iconColor: import("@angular/core").InputSignal<IconColor>;
|
|
40
|
+
/**
|
|
41
|
+
* Size of the icon, in pixels.
|
|
42
|
+
* @default 36
|
|
43
|
+
*/
|
|
44
|
+
readonly iconSize: import("@angular/core").InputSignal<IconSize>;
|
|
45
|
+
/**
|
|
46
|
+
* Optional heading rendered above the description — appears as an `<h3>` in
|
|
47
|
+
* brand-primary text color.
|
|
48
|
+
*/
|
|
49
|
+
readonly heading: import("@angular/core").InputSignal<string | undefined>;
|
|
50
|
+
protected readonly hostClasses: import("@angular/core").Signal<string>;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "tedi-empty-state", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[tedi-empty-state-actions]"], true, never>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=empty-state.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/helpers/empty-state/empty-state.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAiB,QAAQ,EAAE,MAAM,gCAAgC,CAAC;;AAGpF,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjD;;;;;;;GAOG;AACH,qBAaa,mBAAmB;IAC9B;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,sDAAqC;IAElD;;;OAGG;IACH,QAAQ,CAAC,IAAI,sDAAoC;IAEjD;;;OAGG;IACH,QAAQ,CAAC,IAAI,qDAA+B;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,SAAS,iDAA6B;IAE/C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,gDAAuB;IAExC;;;OAGG;IACH,QAAQ,CAAC,OAAO,0DAAwC;IAExD,SAAS,CAAC,QAAQ,CAAC,WAAW,yCAM5B;yCAjDS,mBAAmB;2CAAnB,mBAAmB;CAkD/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/helpers/empty-state/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,YAAY,CAAC"}
|
|
@@ -7,6 +7,19 @@ export declare class DropdownItemComponent {
|
|
|
7
7
|
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
8
8
|
/** Is item disabled? */
|
|
9
9
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Whether selecting this item closes the dropdown. Set `false` for items
|
|
12
|
+
* that should keep the dropdown open after selection (e.g. multi-select
|
|
13
|
+
* checkboxes).
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
readonly closeOnSelect: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Fires when the item is activated via click or keyboard (Enter / Space).
|
|
19
|
+
* Use to react to selection without depending on click event ordering with
|
|
20
|
+
* the host's built-in `onClick` handler.
|
|
21
|
+
*/
|
|
22
|
+
readonly itemSelect: import("@angular/core").OutputEmitterRef<void>;
|
|
10
23
|
readonly host: ElementRef<HTMLLIElement>;
|
|
11
24
|
readonly dropdown: DropdownApi;
|
|
12
25
|
readonly dropdownContent: DropdownContentApi;
|
|
@@ -18,6 +31,6 @@ export declare class DropdownItemComponent {
|
|
|
18
31
|
onKeydown(event: KeyboardEvent): void;
|
|
19
32
|
private onItemSelect;
|
|
20
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "li[tedi-dropdown-item]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["customItemValue"], ["tedi-dropdown-item-value", "*"], true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "li[tedi-dropdown-item]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, ["customItemValue"], ["tedi-dropdown-item-value", "*"], true, never>;
|
|
22
35
|
}
|
|
23
36
|
//# sourceMappingURL=dropdown-item.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-item.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,
|
|
1
|
+
{"version":3,"file":"dropdown-item.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EAMX,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,WAAW,EACX,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;;AAGlG,qBAkBa,qBAAqB;IAChC,iBAAiB;IACjB,QAAQ,CAAC,KAAK,0DAAmB;IAEjC,wBAAwB;IACxB,QAAQ,CAAC,QAAQ,+CAAgB;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,+CAAe;IAErC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,iDAAkB;IAErC,QAAQ,CAAC,IAAI,4BAAiD;IAC9D,QAAQ,CAAC,QAAQ,cAAqC;IACtD,QAAQ,CAAC,eAAe,qBAAoD;IAE5E,sDAAsD;IACtD,QAAQ,CAAC,eAAe,yEAA4C;IAEpE,UAAU;IAIV,KAAK;IAKL,OAAO;IAOP,SAAS,CAAC,KAAK,EAAE,aAAa;IA2C9B,OAAO,CAAC,YAAY;yCAxFT,qBAAqB;2CAArB,qBAAqB;CAoGjC"}
|
|
@@ -419,6 +419,90 @@ export declare const translationsMap: {
|
|
|
419
419
|
en: (direction: "asc" | "desc" | false) => "Sort decending" | "Remove sorting" | "Sort ascending";
|
|
420
420
|
ru: (direction: "asc" | "desc" | false) => "Сортировать по убыванию" | "Отменить сортировку" | "Сортировать по возрастанию";
|
|
421
421
|
};
|
|
422
|
+
"table.no-data": {
|
|
423
|
+
description: string;
|
|
424
|
+
components: string[];
|
|
425
|
+
et: string;
|
|
426
|
+
en: string;
|
|
427
|
+
ru: string;
|
|
428
|
+
};
|
|
429
|
+
"table.row-details": {
|
|
430
|
+
description: string;
|
|
431
|
+
components: string[];
|
|
432
|
+
et: string;
|
|
433
|
+
en: string;
|
|
434
|
+
ru: string;
|
|
435
|
+
};
|
|
436
|
+
"table.filter-input": {
|
|
437
|
+
description: string;
|
|
438
|
+
components: string[];
|
|
439
|
+
et: (column: string) => string;
|
|
440
|
+
en: (column: string) => string;
|
|
441
|
+
ru: (column: string) => string;
|
|
442
|
+
};
|
|
443
|
+
"table.filter-placeholder": {
|
|
444
|
+
description: string;
|
|
445
|
+
components: string[];
|
|
446
|
+
et: string;
|
|
447
|
+
en: string;
|
|
448
|
+
ru: string;
|
|
449
|
+
};
|
|
450
|
+
"table.filter-apply": {
|
|
451
|
+
description: string;
|
|
452
|
+
components: string[];
|
|
453
|
+
et: string;
|
|
454
|
+
en: string;
|
|
455
|
+
ru: string;
|
|
456
|
+
};
|
|
457
|
+
"table.filter-clear": {
|
|
458
|
+
description: string;
|
|
459
|
+
components: string[];
|
|
460
|
+
et: string;
|
|
461
|
+
en: string;
|
|
462
|
+
ru: string;
|
|
463
|
+
};
|
|
464
|
+
"table.filter-button-aria": {
|
|
465
|
+
description: string;
|
|
466
|
+
components: string[];
|
|
467
|
+
et: (column: string) => string;
|
|
468
|
+
en: (column: string) => string;
|
|
469
|
+
ru: (column: string) => string;
|
|
470
|
+
};
|
|
471
|
+
"table.columns": {
|
|
472
|
+
description: string;
|
|
473
|
+
components: string[];
|
|
474
|
+
et: string;
|
|
475
|
+
en: string;
|
|
476
|
+
ru: string;
|
|
477
|
+
};
|
|
478
|
+
"table.expand-row": {
|
|
479
|
+
description: string;
|
|
480
|
+
components: string[];
|
|
481
|
+
et: string;
|
|
482
|
+
en: string;
|
|
483
|
+
ru: string;
|
|
484
|
+
};
|
|
485
|
+
"table.collapse-row": {
|
|
486
|
+
description: string;
|
|
487
|
+
components: string[];
|
|
488
|
+
et: string;
|
|
489
|
+
en: string;
|
|
490
|
+
ru: string;
|
|
491
|
+
};
|
|
492
|
+
"table.drag-column": {
|
|
493
|
+
description: string;
|
|
494
|
+
components: string[];
|
|
495
|
+
et: string;
|
|
496
|
+
en: string;
|
|
497
|
+
ru: string;
|
|
498
|
+
};
|
|
499
|
+
"table.drag-row": {
|
|
500
|
+
description: string;
|
|
501
|
+
components: string[];
|
|
502
|
+
et: string;
|
|
503
|
+
en: string;
|
|
504
|
+
ru: string;
|
|
505
|
+
};
|
|
422
506
|
"tooltip.icon-trigger": {
|
|
423
507
|
description: string;
|
|
424
508
|
components: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../tedi/services/translation/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiFX,OAAO;qBACP,OAAO;qBACP,OAAO;;;;;;;;;;;;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