@tectra-ng/blocks 0.3.2 → 0.4.1
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/tectra-ng-blocks-command-palette.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-mascot.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks.mjs +1 -1
- package/fesm2022/tectra-ng-blocks.mjs.map +1 -1
- package/package.json +6 -6
- package/types/tectra-ng-blocks-action-tile.d.ts +17 -42
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -1
- package/types/tectra-ng-blocks-actions-menu.d.ts +22 -25
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-footer.d.ts +26 -34
- package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-layout.d.ts +27 -79
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-command-palette.d.ts +51 -103
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
- package/types/tectra-ng-blocks-confetti.d.ts +21 -19
- package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
- package/types/tectra-ng-blocks-console-layout.d.ts +50 -189
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-cookie-notice.d.ts +25 -51
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -1
- package/types/tectra-ng-blocks-empty-state.d.ts +23 -61
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -1
- package/types/tectra-ng-blocks-filters-panel.d.ts +44 -106
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
- package/types/tectra-ng-blocks-hover-effect.d.ts +14 -8
- package/types/tectra-ng-blocks-hover-effect.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +71 -59
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-mascot.d.ts +31 -10
- package/types/tectra-ng-blocks-mascot.d.ts.map +1 -1
- package/types/tectra-ng-blocks-network-status.d.ts +23 -33
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
- package/types/tectra-ng-blocks-page-header.d.ts +15 -30
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +28 -42
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
- package/types/tectra-ng-blocks-public-header.d.ts +21 -55
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-qr-code.d.ts +31 -12
- package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -1
- package/types/tectra-ng-blocks-switch-language.d.ts +20 -29
- package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -1
- package/types/tectra-ng-blocks-switch-theme.d.ts +22 -21
- package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -1
- package/types/tectra-ng-blocks-topbar-preferences.d.ts +18 -33
- package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -1
- package/types/tectra-ng-blocks-wizard.d.ts +62 -386
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
- package/types/tectra-ng-blocks.d.ts +2 -1
- package/types/tectra-ng-blocks.d.ts.map +1 -1
|
@@ -2,68 +2,120 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
4
4
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
+
import { TectraDeepPartial, TectraKanbanTokens } from "@tectra-ng/themes";
|
|
6
|
+
/** One column of `tx-kanban` with its cards. */
|
|
6
7
|
export interface TxKanbanColumn<T> {
|
|
8
|
+
/** Unique id of the column. */
|
|
7
9
|
id: string;
|
|
10
|
+
/** Title in the column header. */
|
|
8
11
|
title: string;
|
|
12
|
+
/** Cards of the column, in order. */
|
|
9
13
|
items: T[];
|
|
10
14
|
}
|
|
15
|
+
/** A function that returns the id of a card. */
|
|
11
16
|
export type TxKanbanItemId<T> = (item: T) => string;
|
|
17
|
+
/** A card that was moved; the neighbours are among the shown cards of the target column. */
|
|
12
18
|
export interface TxKanbanItemDrop {
|
|
19
|
+
/** Id of the moved card. */
|
|
13
20
|
itemId: string;
|
|
21
|
+
/** Column the card came from. */
|
|
14
22
|
fromColumnId: string;
|
|
23
|
+
/** Column the card was dropped into. */
|
|
15
24
|
toColumnId: string;
|
|
25
|
+
/** Id of the card above, or `null` at the top. */
|
|
16
26
|
beforeId: string | null;
|
|
27
|
+
/** Id of the card below, or `null` at the bottom. */
|
|
17
28
|
afterId: string | null;
|
|
18
29
|
}
|
|
30
|
+
/** A column that was moved. */
|
|
19
31
|
export interface TxKanbanColumnDrop {
|
|
32
|
+
/** Id of the moved column. */
|
|
20
33
|
columnId: string;
|
|
34
|
+
/** Id of the column before it, or `null` at the start. */
|
|
21
35
|
beforeId: string | null;
|
|
36
|
+
/** Id of the column after it, or `null` at the end. */
|
|
22
37
|
afterId: string | null;
|
|
23
38
|
}
|
|
39
|
+
/** Context of the `txKanbanCard` template. */
|
|
24
40
|
export interface TxKanbanCardContext<T> {
|
|
41
|
+
/** The card item. */
|
|
25
42
|
$implicit: T;
|
|
43
|
+
/** The column the card is in. */
|
|
26
44
|
column: TxKanbanColumn<T>;
|
|
27
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Context of the column templates (`txKanbanColumnHeader`, `txKanbanColumnTop`,
|
|
48
|
+
* `txKanbanColumnFooter`, `txKanbanEmpty`).
|
|
49
|
+
*/
|
|
28
50
|
export interface TxKanbanColumnContext<T> {
|
|
51
|
+
/** The column. */
|
|
29
52
|
$implicit: TxKanbanColumn<T>;
|
|
30
53
|
}
|
|
54
|
+
/** A column as the board draws it: the cards shown now and how many wait behind "Show more". */
|
|
31
55
|
export interface TxKanbanColumnView<T> {
|
|
56
|
+
/** The column. */
|
|
32
57
|
column: TxKanbanColumn<T>;
|
|
58
|
+
/** The cards shown now. */
|
|
33
59
|
items: T[];
|
|
60
|
+
/** Number of cards not shown yet. */
|
|
34
61
|
hidden: number;
|
|
35
62
|
}
|
|
63
|
+
/** Names of the parts of `tx-kanban` that its `pt` input can style. */
|
|
36
64
|
export type TxKanbanPart = 'root' | 'column' | 'header' | 'list' | 'card' | 'empty';
|
|
65
|
+
/**
|
|
66
|
+
* Required. `<ng-template txKanbanCard let-item let-column="column">` — the card
|
|
67
|
+
* @see https://tectra-ng.com/components/kanban
|
|
68
|
+
*/
|
|
37
69
|
export declare class TxKanbanCard<T> {
|
|
38
70
|
readonly template: TemplateRef<TxKanbanCardContext<T>>;
|
|
39
71
|
static ngTemplateContextGuard<T>(_directive: TxKanbanCard<T>, context: unknown): context is TxKanbanCardContext<T>;
|
|
40
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanCard<any>, never>;
|
|
41
73
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanCard<any>, "ng-template[txKanbanCard]", never, {}, {}, never, never, true, never>;
|
|
42
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* `<ng-template txKanbanColumnHeader let-column>` — own header instead of the title and the count
|
|
77
|
+
* @see https://tectra-ng.com/components/kanban
|
|
78
|
+
*/
|
|
43
79
|
export declare class TxKanbanColumnHeader<T> {
|
|
44
80
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
45
81
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnHeader<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
46
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnHeader<any>, never>;
|
|
47
83
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnHeader<any>, "ng-template[txKanbanColumnHeader]", never, {}, {}, never, never, true, never>;
|
|
48
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* `<ng-template txKanbanColumnTop let-column>` — under the header, e.g. a quick-add field
|
|
87
|
+
* @see https://tectra-ng.com/components/kanban
|
|
88
|
+
*/
|
|
49
89
|
export declare class TxKanbanColumnTop<T> {
|
|
50
90
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
51
91
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnTop<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
52
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnTop<any>, never>;
|
|
53
93
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnTop<any>, "ng-template[txKanbanColumnTop]", never, {}, {}, never, never, true, never>;
|
|
54
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* `<ng-template txKanbanColumnFooter let-column>` — at the bottom of a column
|
|
97
|
+
* @see https://tectra-ng.com/components/kanban
|
|
98
|
+
*/
|
|
55
99
|
export declare class TxKanbanColumnFooter<T> {
|
|
56
100
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
57
101
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnFooter<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
58
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnFooter<any>, never>;
|
|
59
103
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnFooter<any>, "ng-template[txKanbanColumnFooter]", never, {}, {}, never, never, true, never>;
|
|
60
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* `<ng-template txKanbanEmpty let-column>` — content of an empty column
|
|
107
|
+
* @see https://tectra-ng.com/components/kanban
|
|
108
|
+
*/
|
|
61
109
|
export declare class TxKanbanEmpty<T> {
|
|
62
110
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
63
111
|
static ngTemplateContextGuard<T>(_directive: TxKanbanEmpty<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
64
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanEmpty<any>, never>;
|
|
65
113
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanEmpty<any>, "ng-template[txKanbanEmpty]", never, {}, {}, never, never, true, never>;
|
|
66
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* A board of columns with cards that move inside a column and between columns; it reports the move and
|
|
117
|
+
* the page updates its state.
|
|
118
|
+
*/
|
|
67
119
|
export declare class TxKanban<T> {
|
|
68
120
|
private readonly kanbanTheme;
|
|
69
121
|
private readonly document;
|
|
@@ -71,79 +123,39 @@ export declare class TxKanban<T> {
|
|
|
71
123
|
private readonly host;
|
|
72
124
|
private readonly announcer;
|
|
73
125
|
private readonly locale;
|
|
126
|
+
/** Required. Columns to show (`TxKanbanColumn<T>[]`: `id`, `title`, `items`) */
|
|
74
127
|
readonly columns: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[]>;
|
|
128
|
+
/** Required. `(item) => string` — the card id, used for tracking and in the events */
|
|
75
129
|
readonly itemId: import("@angular/core").InputSignal<TxKanbanItemId<T>>;
|
|
130
|
+
/** Cards move inside and between columns */
|
|
76
131
|
readonly itemsDraggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
132
|
+
/** Columns move; a handle shows in every header */
|
|
77
133
|
readonly columnsDraggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
134
|
+
/** The card wrappers take the focus for the keyboard moves (default on). Turn it off when the card template is focusable itself — Alt and the arrows then work from inside the card */
|
|
78
135
|
readonly focusableCards: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
136
|
+
/** Width of every column (`252px` by default, the `column.width` token) */
|
|
79
137
|
readonly columnWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
138
|
+
/** Name of the board; the translated "Board" by default */
|
|
80
139
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
140
|
+
/** Text of an empty column without a `txKanbanEmpty` template; translated by default */
|
|
81
141
|
readonly emptyText: import("@angular/core").InputSignal<string | undefined>;
|
|
142
|
+
/** Name of the column handle; translated by default */
|
|
82
143
|
readonly columnDragLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
144
|
+
/** Cards per column before "Show N more"; `0` shows all (default 30) */
|
|
83
145
|
readonly pageSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
146
|
+
/** Height of the board, e.g. `70vh`; the columns then scroll inside */
|
|
84
147
|
readonly height: import("@angular/core").InputSignal<string | undefined>;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
paddingBottom: string;
|
|
89
|
-
inset: string;
|
|
90
|
-
minHeight: string;
|
|
91
|
-
columnWidth: string;
|
|
92
|
-
};
|
|
93
|
-
column: {
|
|
94
|
-
gap: string;
|
|
95
|
-
padding: string;
|
|
96
|
-
borderRadius: string;
|
|
97
|
-
background: string;
|
|
98
|
-
shadow: string;
|
|
99
|
-
headerGap: string;
|
|
100
|
-
headerMinHeight: string;
|
|
101
|
-
titleColor: string;
|
|
102
|
-
titleFontSize: string;
|
|
103
|
-
titleFontWeight: string;
|
|
104
|
-
};
|
|
105
|
-
handle: {
|
|
106
|
-
size: string;
|
|
107
|
-
borderRadius: string;
|
|
108
|
-
color: string;
|
|
109
|
-
hoverColor: string;
|
|
110
|
-
hoverBackground: string;
|
|
111
|
-
iconSize: string;
|
|
112
|
-
};
|
|
113
|
-
list: {
|
|
114
|
-
gap: string;
|
|
115
|
-
minHeight: string;
|
|
116
|
-
padding: string;
|
|
117
|
-
receivingBackground: string;
|
|
118
|
-
scrollbarColor: string;
|
|
119
|
-
};
|
|
120
|
-
placeholder: {
|
|
121
|
-
minHeight: string;
|
|
122
|
-
borderColor: string;
|
|
123
|
-
background: string;
|
|
124
|
-
};
|
|
125
|
-
empty: {
|
|
126
|
-
minHeight: string;
|
|
127
|
-
padding: string;
|
|
128
|
-
fontSize: string;
|
|
129
|
-
color: string;
|
|
130
|
-
borderColor: string;
|
|
131
|
-
};
|
|
132
|
-
card: {
|
|
133
|
-
borderRadius: string;
|
|
134
|
-
dragShadow: string;
|
|
135
|
-
focusRingShadow: string;
|
|
136
|
-
};
|
|
137
|
-
motion: {
|
|
138
|
-
duration: string;
|
|
139
|
-
easing: string;
|
|
140
|
-
fadeDuration: string;
|
|
141
|
-
};
|
|
142
|
-
}> | undefined>;
|
|
148
|
+
/** Design tokens of this instance (`kanban`) */
|
|
149
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraKanbanTokens> | undefined>;
|
|
150
|
+
/** Classes and styles of the parts: `root`, `column`, `header`, `list`, `card`, `empty` */
|
|
143
151
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxKanbanPart, import("@tectra-ng/core/config").TxPassThroughValue<TxKanban<T>>>> | undefined>;
|
|
152
|
+
/** How `pt` merges with the global pass-through */
|
|
144
153
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
154
|
+
/** Removes the tectra styles */
|
|
145
155
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
156
|
+
/** A card moved: `{ itemId, fromColumnId, toColumnId, beforeId, afterId }` */
|
|
146
157
|
readonly itemDropped: import("@angular/core").OutputEmitterRef<TxKanbanItemDrop>;
|
|
158
|
+
/** A column moved: `{ columnId, beforeId, afterId }` */
|
|
147
159
|
readonly columnDropped: import("@angular/core").OutputEmitterRef<TxKanbanColumnDrop>;
|
|
148
160
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
149
161
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxKanbanPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-kanban.d.ts","names":[],"sources":["../../../../packages/blocks/kanban/src/kanban.types.ts","../../../../packages/blocks/kanban/src/kanban-templates.directive.ts","../../../../packages/blocks/kanban/src/kanban.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-kanban.d.ts","names":[],"sources":["../../../../packages/blocks/kanban/src/kanban.types.ts","../../../../packages/blocks/kanban/src/kanban-templates.directive.ts","../../../../packages/blocks/kanban/src/kanban.component.ts"],"mappings":"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"}
|
|
@@ -1,42 +1,63 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraMascotTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** A short animation the mascot plays: `waving`, `looking`, `hopping`, `dancing` or `stretching`. */
|
|
4
5
|
export type TxMascotTrick = 'waving' | 'looking' | 'hopping' | 'dancing' | 'stretching';
|
|
6
|
+
/** State of `tx-mascot`: `idle`, `thinking`, `happy`, `sleeping`, `walking` or a trick. */
|
|
5
7
|
export type TxMascotState = 'idle' | 'thinking' | 'happy' | 'sleeping' | 'walking' | TxMascotTrick;
|
|
8
|
+
/** A part of the mascot body that is animated on its own. */
|
|
6
9
|
export type TxMascotBodyPart = 'antenna' | 'stem' | 'body' | 'eye' | 'mouth' | 'arm-left' | 'arm-right' | 'leg-left' | 'leg-right';
|
|
10
|
+
/** Names of the parts of `tx-mascot` that its `pt` input can style. */
|
|
7
11
|
export type TxMascotPart = 'root' | 'svg';
|
|
12
|
+
/** A pixel of the sprite in grid units. */
|
|
8
13
|
export interface TxMascotPixel {
|
|
14
|
+
/** Column, from the left. */
|
|
9
15
|
x: number;
|
|
16
|
+
/** Row, from the top. */
|
|
10
17
|
y: number;
|
|
11
18
|
}
|
|
19
|
+
/** All pixels of one body part. */
|
|
12
20
|
export interface TxMascotLayer {
|
|
21
|
+
/** The body part. */
|
|
13
22
|
part: TxMascotBodyPart;
|
|
23
|
+
/** Pixels the part is drawn with. */
|
|
14
24
|
pixels: TxMascotPixel[];
|
|
15
25
|
}
|
|
26
|
+
/** The mascot as rows of letters, one letter per pixel; each letter stands for a body part. */
|
|
16
27
|
export declare const TX_MASCOT_SPRITE: readonly string[];
|
|
28
|
+
/** Tricks an idle mascot plays, in turn. */
|
|
17
29
|
export declare const TX_MASCOT_TRICKS: readonly TxMascotTrick[];
|
|
30
|
+
/** Length of one time slot in ms; an idle mascot may start a trick every few slots. */
|
|
18
31
|
export declare const TX_MASCOT_TRICK_SLOT_MS = 3000;
|
|
32
|
+
/** A playful idle mascot starts a trick every this many slots. */
|
|
19
33
|
export declare const TX_MASCOT_TRICK_EVERY_SLOTS = 3;
|
|
34
|
+
/** Cuts the sprite into one layer of pixels per body part; the sprite is `TX_MASCOT_SPRITE` by default. */
|
|
20
35
|
export declare function txMascotLayers(parts: TxMascotBodyPart[], sprite?: readonly string[]): TxMascotLayer[];
|
|
36
|
+
/** Layers of the upper body: stem, antenna, arms, body, eyes and mouth. */
|
|
21
37
|
export declare const TX_MASCOT_UPPER_LAYERS: TxMascotLayer[];
|
|
38
|
+
/** Layers of the two legs. */
|
|
22
39
|
export declare const TX_MASCOT_LEG_LAYERS: TxMascotLayer[];
|
|
40
|
+
/**
|
|
41
|
+
* A pixel-art mascot drawn as SVG in the accent colour, with animated states: idle, thinking, happy, sleeping, walking and short tricks (waving, looking, hopping, dancing, stretching). For assistants, empty states and onboarding. While idle it plays a random trick from time to time.
|
|
42
|
+
* @see https://tectra-ng.com/components/mascot
|
|
43
|
+
*/
|
|
23
44
|
export declare class TxMascot {
|
|
24
45
|
private readonly mascotTheme;
|
|
46
|
+
/** `idle`, `thinking`, `happy`, `sleeping`, `walking`, or a trick: `waving`, `looking`, `hopping`, `dancing`, `stretching` */
|
|
25
47
|
readonly state: import("@angular/core").InputSignal<TxMascotState>;
|
|
48
|
+
/** Accessible name; empty makes the mascot decorative (`aria-hidden`) */
|
|
26
49
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
50
|
+
/** While `state` is `idle`, plays a random trick every 9 seconds; `false` keeps it plain idle */
|
|
27
51
|
readonly playful: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
/** Width as a number of px or any CSS length; the height follows (15 : 12). 48px by default */
|
|
28
53
|
readonly size: import("@angular/core").InputSignal<string | number | undefined>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
bodyColor: string;
|
|
33
|
-
shadeColor: string;
|
|
34
|
-
glowColor: string;
|
|
35
|
-
eyeColor: string;
|
|
36
|
-
};
|
|
37
|
-
}> | undefined>;
|
|
54
|
+
/** Design tokens of this instance (`mascot`): size and the body, shade, glow and eye colours */
|
|
55
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMascotTokens> | undefined>;
|
|
56
|
+
/** Classes and styles of the parts: `root`, `svg` */
|
|
38
57
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMascotPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMascot>>> | undefined>;
|
|
58
|
+
/** How `pt` merges with the global pass-through */
|
|
39
59
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
60
|
+
/** Removes the tectra styles (colours and motion) */
|
|
40
61
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
41
62
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
42
63
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxMascotPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-mascot.d.ts","names":[],"sources":["../../../../packages/blocks/mascot/src/mascot.types.ts","../../../../packages/blocks/mascot/src/mascot.data.ts","../../../../packages/blocks/mascot/src/mascot.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-mascot.d.ts","names":[],"sources":["../../../../packages/blocks/mascot/src/mascot.types.ts","../../../../packages/blocks/mascot/src/mascot.data.ts","../../../../packages/blocks/mascot/src/mascot.component.ts"],"mappings":";;;;YACY;;YAEA,yEAAyE;;YAEzE;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf,MAAM;;EAEN,QAAQ;;;qBCnBG;;qBAgBA,2BAA2B;;qBAkB3B;;qBAEA;;wBAGG,eAAe,OAAO,oBAAoB,6BAA+C;;qBAQ5F,wBAAsB;;qBAEtB,sBAAoB;;;;;qBCzBpB;mBACM;;WAER,+BAAK,YAAA;;WACL,+BAAK;;WACL,iCAAO;;WACP,8BAAI;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,+CAAA;WACX;WACA,gDAAW;WACX,8CAAS;mBAED;mBACA;WAER,sCAAY,OAAA;WAQZ,mCAAS;;;;SA7BP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -1,51 +1,38 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraNetworkStatusTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* State of the connection shown by `tx-network-status`: `online`, `offline` or `restored` just after
|
|
6
|
+
* it came back.
|
|
7
|
+
*/
|
|
4
8
|
export type TxNetworkState = 'online' | 'offline' | 'restored';
|
|
9
|
+
/** Names of the parts of `tx-network-status` that its `pt` input can style. */
|
|
5
10
|
export type TxNetworkStatusPart = 'root' | 'pill' | 'icon' | 'text';
|
|
11
|
+
/**
|
|
12
|
+
* A pill at the bottom of the window that says "No internet connection" while the browser is offline, and "Connection restored" for three seconds once it is back. Put it once in the app root.
|
|
13
|
+
* @see https://tectra-ng.com/components/network-status
|
|
14
|
+
*/
|
|
6
15
|
export declare class TxNetworkStatus {
|
|
7
16
|
private readonly networkStatusTheme;
|
|
8
17
|
private readonly document;
|
|
9
18
|
private restoreTimer;
|
|
19
|
+
/** Text while offline (translated "No internet connection" by default) */
|
|
10
20
|
readonly offlineText: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/** Text after the connection is back (translated "Connection restored" by default) */
|
|
11
22
|
readonly restoredText: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/** How long "Connection restored" stays, in ms (default 3000) */
|
|
12
24
|
readonly restoredDuration: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
25
|
+
/** Class on `<body>` while the pill is shown (default `tx-offline`; empty — none) */
|
|
13
26
|
readonly bodyClass: import("@angular/core").InputSignal<string>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
zIndex: string;
|
|
18
|
-
gap: string;
|
|
19
|
-
padding: string;
|
|
20
|
-
borderRadius: string;
|
|
21
|
-
fontSize: string;
|
|
22
|
-
fontWeight: string;
|
|
23
|
-
color: string;
|
|
24
|
-
background: string;
|
|
25
|
-
backdropFilter: string;
|
|
26
|
-
ringColor: string;
|
|
27
|
-
shadow: string;
|
|
28
|
-
};
|
|
29
|
-
icon: {
|
|
30
|
-
size: string;
|
|
31
|
-
fontSize: string;
|
|
32
|
-
tint: string;
|
|
33
|
-
};
|
|
34
|
-
offline: {
|
|
35
|
-
color: string;
|
|
36
|
-
};
|
|
37
|
-
restored: {
|
|
38
|
-
color: string;
|
|
39
|
-
};
|
|
40
|
-
motion: {
|
|
41
|
-
enterDuration: string;
|
|
42
|
-
enterEasing: string;
|
|
43
|
-
leaveDuration: string;
|
|
44
|
-
};
|
|
45
|
-
}> | undefined>;
|
|
27
|
+
/** Design tokens of this instance (`networkStatus`) */
|
|
28
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraNetworkStatusTokens> | undefined>;
|
|
29
|
+
/** Classes and styles of the parts: `root`, `pill`, `icon`, `text` */
|
|
46
30
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxNetworkStatusPart, import("@tectra-ng/core/config").TxPassThroughValue<TxNetworkStatus>>> | undefined>;
|
|
31
|
+
/** How `pt` merges with the global pass-through */
|
|
47
32
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
33
|
+
/** Removes the tectra styles */
|
|
48
34
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
35
|
+
/** The new state: `offline`, `restored` or `online` */
|
|
49
36
|
readonly statusChange: import("@angular/core").OutputEmitterRef<TxNetworkState>;
|
|
50
37
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
51
38
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxNetworkStatusPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -53,11 +40,14 @@ export declare class TxNetworkStatus {
|
|
|
53
40
|
readonly hostStyle: import("@angular/core").Signal<{
|
|
54
41
|
[x: string]: string;
|
|
55
42
|
}>;
|
|
43
|
+
/** Signal: `online`, `offline` or `restored` */
|
|
56
44
|
readonly status: import("@angular/core").WritableSignal<TxNetworkState>;
|
|
57
45
|
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
58
46
|
protected readonly message: import("@angular/core").Signal<string>;
|
|
59
47
|
constructor();
|
|
48
|
+
/** Shows the offline pill, as the browser `offline` event does */
|
|
60
49
|
onOffline(): void;
|
|
50
|
+
/** Shows "Connection restored", as the browser `online` event does */
|
|
61
51
|
onOnline(): void;
|
|
62
52
|
private setStatus;
|
|
63
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxNetworkStatus, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-network-status.d.ts","names":[],"sources":["../../../../packages/blocks/network-status/src/network-status.types.ts","../../../../packages/blocks/network-status/src/network-status.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-network-status.d.ts","names":[],"sources":["../../../../packages/blocks/network-status/src/network-status.types.ts","../../../../packages/blocks/network-status/src/network-status.component.ts"],"mappings":";;;;;;;YAIY;;YAGA;;;;;qBCmCC;mBACM;mBAEA;UACT;;WAEC,qCAAW;;WACX,sCAAY;;WACZ,0CAAgB;;WAChB,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,sCAAY,iBAAA;WAEZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;qBACD,sCAAY,wCAAA;WACtB,mCAAS;;;;WAET,gCAAM,eAAA;qBACI,iCAAO;qBACP,iCAAO;;;EAmC1B;;EAKA;UAaQ;SA7EG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -1,44 +1,29 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraPageHeaderTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Names of the parts of `tx-page-header` that its `pt` input can style. */
|
|
4
5
|
export type TxPageHeaderPart = 'root' | 'heading' | 'title' | 'subtitle' | 'actions';
|
|
6
|
+
/** Level of the heading in `tx-page-header`, from 1 to 6 (`h1` to `h6`). */
|
|
5
7
|
export type TxPageHeaderLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
/**
|
|
9
|
+
* The header of a page: a title, an optional subtitle and the page actions on the right. The actions wrap under the title when the space runs out. Use it at the top of every page instead of a hand-made heading row.
|
|
10
|
+
* @see https://tectra-ng.com/components/page-header
|
|
11
|
+
*/
|
|
6
12
|
export declare class TxPageHeader {
|
|
7
13
|
private readonly pageHeaderTheme;
|
|
14
|
+
/** Required. Text of the page heading */
|
|
8
15
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/** Muted line under the title — a short description or a count (tabular digits) */
|
|
9
17
|
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
/** Level of the heading element, `1` (default) to `6` */
|
|
10
19
|
readonly headingLevel: import("@angular/core").InputSignal<TxPageHeaderLevel>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
heading: {
|
|
16
|
-
gap: string;
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
color: string;
|
|
20
|
-
fontSize: string;
|
|
21
|
-
fontWeight: string;
|
|
22
|
-
lineHeight: string;
|
|
23
|
-
letterSpacing: string;
|
|
24
|
-
};
|
|
25
|
-
subtitle: {
|
|
26
|
-
color: string;
|
|
27
|
-
fontSize: string;
|
|
28
|
-
lineHeight: string;
|
|
29
|
-
};
|
|
30
|
-
actions: {
|
|
31
|
-
gap: string;
|
|
32
|
-
};
|
|
33
|
-
secondaryButton: {
|
|
34
|
-
background: string;
|
|
35
|
-
hoverBackground: string;
|
|
36
|
-
activeBackground: string;
|
|
37
|
-
borderColor: string;
|
|
38
|
-
};
|
|
39
|
-
}> | undefined>;
|
|
20
|
+
/** Design tokens of this instance (`pageHeader`) */
|
|
21
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraPageHeaderTokens> | undefined>;
|
|
22
|
+
/** Classes and styles of the parts: `root`, `heading`, `title`, `subtitle`, `actions` */
|
|
40
23
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPageHeaderPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPageHeader>>> | undefined>;
|
|
24
|
+
/** How `pt` merges with the global pass-through */
|
|
41
25
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
26
|
+
/** Removes the tectra styles */
|
|
42
27
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
43
28
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
44
29
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxPageHeaderPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-page-header.d.ts","names":[],"sources":["../../../../packages/blocks/page-header/src/page-header.types.ts","../../../../packages/blocks/page-header/src/page-header.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-page-header.d.ts","names":[],"sources":["../../../../packages/blocks/page-header/src/page-header.types.ts","../../../../packages/blocks/page-header/src/page-header.component.ts"],"mappings":";;;;YACY;;YAGA;;;;;qBCoBC;mBACM;;WAER,+BAAK;;WACL,kCAAQ;;WACR,sCAAY,YAAA;;WACZ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;WACX,mCAAS;;;SAbP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
|
+
import { TectraDeepPartial, TectraPinnedTabsTokens } from "@tectra-ng/themes";
|
|
4
4
|
import { TxTabItem, TxTabValue } from "@tectra-ng/ui/tabs";
|
|
5
|
+
/** A value of `tx-pinned-tabs` that can be pinned. */
|
|
5
6
|
export interface TxPinnedTabOption {
|
|
7
|
+
/** Value that is selected when its tab is picked. */
|
|
6
8
|
value: string;
|
|
9
|
+
/** Text of the tab and of the option in the dialog. */
|
|
7
10
|
label: string;
|
|
8
11
|
}
|
|
12
|
+
/** Data of the pinned tabs settings dialog. */
|
|
9
13
|
export interface TxPinnedTabsDialogData {
|
|
14
|
+
/** Values that can be pinned. */
|
|
10
15
|
options: readonly TxPinnedTabOption[];
|
|
16
|
+
/** Values pinned now. */
|
|
11
17
|
pinned: readonly string[];
|
|
18
|
+
/** Dialog title; the translated "Pinned tabs" by default. */
|
|
12
19
|
title?: string;
|
|
20
|
+
/** Explanation in the dialog; a translated hint by default. */
|
|
13
21
|
text?: string;
|
|
14
22
|
}
|
|
23
|
+
/** Names of the parts of `tx-pinned-tabs` that its `pt` input can style. */
|
|
15
24
|
export type TxPinnedTabsPart = 'root' | 'tabs' | 'button';
|
|
25
|
+
/** The dialog where the user picks the values to pin as tabs; opened by `tx-pinned-tabs`. */
|
|
16
26
|
export declare class TxPinnedTabsDialog {
|
|
17
27
|
private readonly pinnedTabsTheme;
|
|
18
28
|
private readonly locale;
|
|
@@ -27,61 +37,36 @@ export declare class TxPinnedTabsDialog {
|
|
|
27
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxPinnedTabsDialog, never>;
|
|
28
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxPinnedTabsDialog, "tx-pinned-tabs-dialog", never, {}, {}, never, never, true, never>;
|
|
29
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Quick-switch tabs for a filter with many values: the user pins the values they use often in a dialog, and those values appear as tabs next to an "All" tab. The choice is saved in `localStorage`. Put it above a list next to the full select of the same filter and bind both to one value.
|
|
42
|
+
* @see https://tectra-ng.com/components/pinned-tabs
|
|
43
|
+
*/
|
|
30
44
|
export declare class TxPinnedTabs {
|
|
31
45
|
private readonly pinnedTabsTheme;
|
|
32
46
|
private readonly document;
|
|
33
47
|
private readonly dialogs;
|
|
34
48
|
private readonly destroyRef;
|
|
49
|
+
/** Required. `localStorage` key of the pinned values; add the user id to keep the choice per user. Read again when it changes */
|
|
35
50
|
readonly stateKey: import("@angular/core").InputSignal<string>;
|
|
51
|
+
/** Required. Values that can be pinned (`TxPinnedTabOption[]`: `value`, `label`); the tabs follow this order, a pinned value missing here shows no tab */
|
|
36
52
|
readonly options: import("@angular/core").InputSignal<readonly TxPinnedTabOption[]>;
|
|
53
|
+
/** Label of the tab that clears the selection; the translated "All" by default */
|
|
37
54
|
readonly allLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
55
|
+
/** Two-way: the selection of the filter. Empty — the "All" tab is active, one value — its tab, several values — no tab */
|
|
38
56
|
readonly selected: import("@angular/core").ModelSignal<readonly string[]>;
|
|
57
|
+
/** Title of the settings dialog; the translated "Pinned tabs" by default */
|
|
39
58
|
readonly dialogTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
59
|
+
/** Explanation in the settings dialog; a translated hint by default */
|
|
40
60
|
readonly dialogText: import("@angular/core").InputSignal<string | undefined>;
|
|
61
|
+
/** Name of the tab list */
|
|
41
62
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
dialog: {
|
|
47
|
-
gap: string;
|
|
48
|
-
sectionGap: string;
|
|
49
|
-
counterColor: string;
|
|
50
|
-
counterFontSize: string;
|
|
51
|
-
counterFontWeight: string;
|
|
52
|
-
optionsGap: string;
|
|
53
|
-
optionsMinWidth: string;
|
|
54
|
-
optionsMaxHeight: string;
|
|
55
|
-
};
|
|
56
|
-
option: {
|
|
57
|
-
height: string;
|
|
58
|
-
padding: string;
|
|
59
|
-
gap: string;
|
|
60
|
-
borderRadius: string;
|
|
61
|
-
fontSize: string;
|
|
62
|
-
fontWeight: string;
|
|
63
|
-
color: string;
|
|
64
|
-
background: string;
|
|
65
|
-
hoverBackground: string;
|
|
66
|
-
hoverRingColor: string;
|
|
67
|
-
selectedBackground: string;
|
|
68
|
-
selectedRingColor: string;
|
|
69
|
-
selectedHoverBackground: string;
|
|
70
|
-
selectedHoverRingColor: string;
|
|
71
|
-
activeScale: string;
|
|
72
|
-
focusRingShadow: string;
|
|
73
|
-
duration: string;
|
|
74
|
-
};
|
|
75
|
-
check: {
|
|
76
|
-
size: string;
|
|
77
|
-
ringColor: string;
|
|
78
|
-
iconSize: string;
|
|
79
|
-
background: string;
|
|
80
|
-
color: string;
|
|
81
|
-
};
|
|
82
|
-
}> | undefined>;
|
|
63
|
+
/** Design tokens of this instance (`pinnedTabs`) */
|
|
64
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraPinnedTabsTokens> | undefined>;
|
|
65
|
+
/** Classes and styles of the parts: `root`, `tabs`, `button` */
|
|
83
66
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPinnedTabsPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPinnedTabs>>> | undefined>;
|
|
67
|
+
/** How `pt` merges with the global pass-through */
|
|
84
68
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
69
|
+
/** Removes the tectra styles */
|
|
85
70
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
86
71
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
87
72
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxPinnedTabsPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -93,6 +78,7 @@ export declare class TxPinnedTabs {
|
|
|
93
78
|
readonly tabs: import("@angular/core").Signal<TxTabItem[]>;
|
|
94
79
|
protected readonly activeTab: import("@angular/core").Signal<TxTabValue | undefined>;
|
|
95
80
|
protected pick(value: TxTabValue): void;
|
|
81
|
+
/** Opens the settings dialog */
|
|
96
82
|
openSettings(): void;
|
|
97
83
|
private storage;
|
|
98
84
|
private readPinned;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-pinned-tabs.d.ts","names":[],"sources":["../../../../packages/blocks/pinned-tabs/src/pinned-tabs.types.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs-dialog.component.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-pinned-tabs.d.ts","names":[],"sources":["../../../../packages/blocks/pinned-tabs/src/pinned-tabs.types.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs-dialog.component.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs.component.ts"],"mappings":";;;;;iBACiB;;EAEf;;EAEA;;;iBAIe;;EAEf,kBAAkB;;EAElB;;EAEA;;EAEA;;;YAIU;;qBC+BC;mBACM;mBAEA;qBACE,MAAI;qBACJ,oCAAG;qBACH,sCAAY,wCAAA;qBACZ,+BAAK;qBACL,gCAAM;qBAIN,iCAAO;YAIhB,OAAO;YAIP;SApBC,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCgBA;mBACM;mBAEA;mBACA;mBACA;;WAER,kCAAQ;;WACR,iCAAO,qBAAA;;WACP,kCAAQ;;WACR,kCAAQ;;WACR,qCAAW;;WACX,oCAAU;;WACV,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;qBACD,sCAAY,wCAAA;WACtB,mCAAS;;;WAET,gCAAM;WAEN,8BAAI,OAAA;qBAQM,mCAAS,OAAA;YAQlB,KAAK,OAAO;;EAItB;UAmBQ;UAQA;UASA;SAlFG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|