@tectra-ng/blocks 0.3.2 → 0.4.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/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
|
@@ -1,77 +1,49 @@
|
|
|
1
1
|
import { Router } from "@angular/router";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
3
|
import { TxIconName } from "@tectra-ng/icons";
|
|
4
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
|
+
import { TectraCookieNoticeTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/** Names of the parts of `tx-cookie-notice` that its `pt` input can style. */
|
|
6
7
|
export type TxCookieNoticePart = 'root' | 'icon' | 'body' | 'title' | 'text' | 'actions' | 'link' | 'accept';
|
|
8
|
+
/**
|
|
9
|
+
* A small card in the bottom-left corner that tells the visitor the site keeps only essential cookies, with a "Learn more" link and a "Got it" button. Once dismissed it stays hidden for `maxAgeDays`, remembered in a cookie.
|
|
10
|
+
* @see https://tectra-ng.com/components/cookie-notice
|
|
11
|
+
*/
|
|
7
12
|
export declare class TxCookieNotice {
|
|
8
13
|
private readonly cookieNoticeTheme;
|
|
9
14
|
private readonly document;
|
|
10
15
|
protected readonly router: Router | null;
|
|
16
|
+
/** Bold line (translated "Only essential cookies" by default) */
|
|
11
17
|
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
/** Explanation under the title */
|
|
12
19
|
readonly text: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
/** Icon in the tinted circle (default `shield`) */
|
|
13
21
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
22
|
+
/** Router commands of the "Learn more" link */
|
|
14
23
|
readonly link: import("@angular/core").InputSignal<string | readonly unknown[] | undefined>;
|
|
24
|
+
/** Plain URL of the "Learn more" link, when there is no `link` */
|
|
15
25
|
readonly href: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
/** Text of the link (translated "Learn more" by default) */
|
|
16
27
|
readonly linkLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
/** Text of the button (translated "Got it" by default) */
|
|
17
29
|
readonly acceptLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/** Name of the region (translated "Cookie notice" by default) */
|
|
18
31
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
/** Name of the cookie that keeps the choice (default `cookieNoticeDismissed`) */
|
|
19
33
|
readonly cookieName: import("@angular/core").InputSignal<string>;
|
|
34
|
+
/** How long the choice is kept (default 365) */
|
|
20
35
|
readonly maxAgeDays: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
36
|
+
/** Parent domain to keep the choice for all its subdomains, e.g. `example.com` */
|
|
21
37
|
readonly sharedDomain: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
wideInset: string;
|
|
26
|
-
wideWidth: string;
|
|
27
|
-
gap: string;
|
|
28
|
-
padding: string;
|
|
29
|
-
borderRadius: string;
|
|
30
|
-
background: string;
|
|
31
|
-
backdropFilter: string;
|
|
32
|
-
ringColor: string;
|
|
33
|
-
shadow: string;
|
|
34
|
-
zIndex: string;
|
|
35
|
-
};
|
|
36
|
-
icon: {
|
|
37
|
-
size: string;
|
|
38
|
-
fontSize: string;
|
|
39
|
-
background: string;
|
|
40
|
-
color: string;
|
|
41
|
-
};
|
|
42
|
-
body: {
|
|
43
|
-
gap: string;
|
|
44
|
-
};
|
|
45
|
-
title: {
|
|
46
|
-
fontSize: string;
|
|
47
|
-
fontWeight: string;
|
|
48
|
-
color: string;
|
|
49
|
-
};
|
|
50
|
-
text: {
|
|
51
|
-
fontSize: string;
|
|
52
|
-
lineHeight: string;
|
|
53
|
-
color: string;
|
|
54
|
-
};
|
|
55
|
-
actions: {
|
|
56
|
-
gap: string;
|
|
57
|
-
marginTop: string;
|
|
58
|
-
};
|
|
59
|
-
link: {
|
|
60
|
-
fontSize: string;
|
|
61
|
-
fontWeight: string;
|
|
62
|
-
color: string;
|
|
63
|
-
focusRingShadow: string;
|
|
64
|
-
};
|
|
65
|
-
motion: {
|
|
66
|
-
enterDuration: string;
|
|
67
|
-
enterDelay: string;
|
|
68
|
-
enterEasing: string;
|
|
69
|
-
leaveDuration: string;
|
|
70
|
-
};
|
|
71
|
-
}> | undefined>;
|
|
38
|
+
/** Design tokens of this instance (`cookieNotice`) */
|
|
39
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCookieNoticeTokens> | undefined>;
|
|
40
|
+
/** Classes and styles of the parts: `root`, `icon`, `body`, `title`, `text`, `actions`, `link`, `accept` */
|
|
72
41
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCookieNoticePart, import("@tectra-ng/core/config").TxPassThroughValue<TxCookieNotice>>> | undefined>;
|
|
42
|
+
/** How `pt` merges with the global pass-through */
|
|
73
43
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
44
|
+
/** Removes the tectra styles */
|
|
74
45
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
46
|
+
/** The visitor pressed the button */
|
|
75
47
|
readonly dismissed: import("@angular/core").OutputEmitterRef<void>;
|
|
76
48
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
77
49
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxCookieNoticePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -81,7 +53,9 @@ export declare class TxCookieNotice {
|
|
|
81
53
|
}>;
|
|
82
54
|
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
83
55
|
constructor();
|
|
56
|
+
/** Shows the notice again, e.g. from a "Cookie settings" link */
|
|
84
57
|
show(): void;
|
|
58
|
+
/** Hides it and keeps the choice */
|
|
85
59
|
dismiss(): void;
|
|
86
60
|
private readDismissed;
|
|
87
61
|
private writeDismissed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-cookie-notice.d.ts","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.types.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-cookie-notice.d.ts","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.types.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts"],"mappings":";;;;;;YACY;;;;;qBC2BC;mBACM;mBAEA;qBACE,QAAM;;WAEhB,+BAAK;;WACL,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,8BAAI;;WACJ,8BAAI;;WACJ,mCAAS;;WACT,qCAAW;;WACX,+BAAK;;WACL,oCAAU;;WACV,oCAAU;;WACV,sCAAY;;WACZ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,mCAAS;WAET,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;qBACD,sCAAY,wCAAA;WACtB,mCAAS;;;WAET,iCAAO;;;EAMhB;;EAIA;UAMQ;UAKA;SAlDG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -1,81 +1,43 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
2
|
import { TxIconName } from "@tectra-ng/icons";
|
|
3
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
|
+
import { TectraDeepPartial, TectraEmptyStateTokens } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Frame of `tx-empty-state`: `plain` without one, `framed` as a card for a whole page, `inset` as a
|
|
7
|
+
* block inside a card.
|
|
8
|
+
*/
|
|
5
9
|
export type TxEmptyStateVariant = 'plain' | 'framed' | 'inset';
|
|
10
|
+
/** Size of `tx-empty-state`: `compact` (one row), `normal` or `large` for onboarding. */
|
|
6
11
|
export type TxEmptyStateSize = 'compact' | 'normal' | 'large';
|
|
12
|
+
/** Colour of the icon of `tx-empty-state`. */
|
|
7
13
|
export type TxEmptyStateTone = 'neutral' | 'primary' | 'success' | 'info' | 'warn' | 'danger';
|
|
14
|
+
/** Names of the parts of `tx-empty-state` that its `pt` input can style. */
|
|
8
15
|
export type TxEmptyStatePart = 'root' | 'icon' | 'body' | 'title' | 'text';
|
|
16
|
+
/**
|
|
17
|
+
* The "nothing here yet" block: an icon in a tinted circle, an optional title, a muted line of text and the actions that get the user going. Use it for an empty list, a search without results or a section the user has not set up.
|
|
18
|
+
* @see https://tectra-ng.com/components/empty-state
|
|
19
|
+
*/
|
|
9
20
|
export declare class TxEmptyState {
|
|
10
21
|
private readonly emptyStateTheme;
|
|
22
|
+
/** Icon in the circle (default `inbox`) */
|
|
11
23
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
24
|
+
/** Semibold line; left out when empty */
|
|
12
25
|
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
/** Muted line under the title; left out when empty */
|
|
13
27
|
readonly text: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
/** `plain` — no frame (default); `framed` — own card frame for a page-level empty state; `inset` — a ground-coloured block inside a card */
|
|
14
29
|
readonly variant: import("@angular/core").InputSignal<TxEmptyStateVariant>;
|
|
30
|
+
/** `compact` — one row with a small icon; `normal` (default); `large` — onboarding size */
|
|
15
31
|
readonly size: import("@angular/core").InputSignal<TxEmptyStateSize>;
|
|
32
|
+
/** Colour of the icon: `primary` (default), `neutral`, `success`, `info`, `warn`, `danger` */
|
|
16
33
|
readonly tone: import("@angular/core").InputSignal<TxEmptyStateTone>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
padding: string;
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
framed: {
|
|
24
|
-
padding: string;
|
|
25
|
-
minHeight: string;
|
|
26
|
-
background: string;
|
|
27
|
-
borderColor: string;
|
|
28
|
-
borderRadius: string;
|
|
29
|
-
};
|
|
30
|
-
inset: {
|
|
31
|
-
padding: string;
|
|
32
|
-
background: string;
|
|
33
|
-
borderRadius: string;
|
|
34
|
-
};
|
|
35
|
-
icon: {
|
|
36
|
-
size: string;
|
|
37
|
-
fontSize: string;
|
|
38
|
-
borderRadius: string;
|
|
39
|
-
tint: string;
|
|
40
|
-
};
|
|
41
|
-
body: {
|
|
42
|
-
gap: string;
|
|
43
|
-
};
|
|
44
|
-
title: {
|
|
45
|
-
color: string;
|
|
46
|
-
fontSize: string;
|
|
47
|
-
fontWeight: string;
|
|
48
|
-
};
|
|
49
|
-
text: {
|
|
50
|
-
color: string;
|
|
51
|
-
fontSize: string;
|
|
52
|
-
lineHeight: string;
|
|
53
|
-
maxWidth: string;
|
|
54
|
-
};
|
|
55
|
-
large: {
|
|
56
|
-
padding: string;
|
|
57
|
-
iconSize: string;
|
|
58
|
-
iconFontSize: string;
|
|
59
|
-
iconBorderRadius: string;
|
|
60
|
-
titleFontSize: string;
|
|
61
|
-
};
|
|
62
|
-
compact: {
|
|
63
|
-
padding: string;
|
|
64
|
-
gap: string;
|
|
65
|
-
iconSize: string;
|
|
66
|
-
iconFontSize: string;
|
|
67
|
-
};
|
|
68
|
-
tone: {
|
|
69
|
-
primary: string;
|
|
70
|
-
neutral: string;
|
|
71
|
-
success: string;
|
|
72
|
-
info: string;
|
|
73
|
-
warn: string;
|
|
74
|
-
danger: string;
|
|
75
|
-
};
|
|
76
|
-
}> | undefined>;
|
|
34
|
+
/** Design tokens of this instance (`emptyState`) */
|
|
35
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraEmptyStateTokens> | undefined>;
|
|
36
|
+
/** Classes and styles of the parts: `root`, `icon`, `body`, `title`, `text` */
|
|
77
37
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxEmptyStatePart, import("@tectra-ng/core/config").TxPassThroughValue<TxEmptyState>>> | undefined>;
|
|
38
|
+
/** How `pt` merges with the global pass-through */
|
|
78
39
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
40
|
+
/** Removes the tectra styles */
|
|
79
41
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
80
42
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
81
43
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxEmptyStatePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-empty-state.d.ts","names":[],"sources":["../../../../packages/blocks/empty-state/src/empty-state.types.ts","../../../../packages/blocks/empty-state/src/empty-state.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-empty-state.d.ts","names":[],"sources":["../../../../packages/blocks/empty-state/src/empty-state.types.ts","../../../../packages/blocks/empty-state/src/empty-state.component.ts"],"mappings":";;;;;;;;YAIY;;YAGA;;YAGA;;YAGA;;;;;qBC6BC;mBACM;;WAER,8BAAI,YAAA;;WACJ,+BAAK;;WACL,8BAAI;;WACJ,iCAAO,YAAA;;WACP,8BAAI,YAAA;;WACJ,8BAAI,YAAA;;WACJ,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;;;SAhBP,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"}
|
|
@@ -2,31 +2,51 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { AfterViewInit, InjectionToken, PipeTransform, Signal } 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, TectraFiltersPanelTokens } from "@tectra-ng/themes";
|
|
6
|
+
/** Frame of `tx-filters-panel`: `card` with its own frame or `plain` without. */
|
|
6
7
|
export type TxFiltersPanelVariant = 'card' | 'plain';
|
|
8
|
+
/** When the fields fold behind the "Filters" button: `auto` below 1024px, `always` or `never`. */
|
|
7
9
|
export type TxFiltersPanelCollapse = 'auto' | 'always' | 'never';
|
|
10
|
+
/** Where the saved layout lives: `local` or `session` storage. */
|
|
8
11
|
export type TxFiltersPanelStateStorage = 'local' | 'session';
|
|
12
|
+
/** Names of the parts of `tx-filters-panel` that its `pt` input can style. */
|
|
9
13
|
export type TxFiltersPanelPart = 'root' | 'toggle' | 'panel' | 'fields' | 'actions' | 'menuButton' | 'menu';
|
|
14
|
+
/** One field of the panel as the "Show filters" menu lists it. */
|
|
10
15
|
export interface TxFiltersPanelOption {
|
|
16
|
+
/** Key of the field, from `txFilterField`. */
|
|
11
17
|
key: string;
|
|
18
|
+
/** Text of the field in the menu, from `filterLabel`. */
|
|
12
19
|
label: string;
|
|
20
|
+
/** Whether the field is shown in the panel. */
|
|
13
21
|
visible: boolean;
|
|
22
|
+
/** Whether the field has a value, from `filterActive`. */
|
|
14
23
|
active: boolean;
|
|
15
24
|
}
|
|
25
|
+
/** Saved layout of the panel: the order of the fields and which of them are shown. */
|
|
16
26
|
export interface TxFiltersPanelLayout {
|
|
27
|
+
/** Field keys in the order they are shown. */
|
|
17
28
|
order: string[];
|
|
29
|
+
/** Keys of the shown fields; `null` means the default set. */
|
|
18
30
|
visible: string[] | null;
|
|
19
31
|
}
|
|
32
|
+
/** What a `txFilterField` asks its panel: whether it is hidden and where it sits. */
|
|
20
33
|
export interface TxFiltersPanelContext {
|
|
34
|
+
/** Tells whether the field with this key is hidden. */
|
|
21
35
|
isFieldHidden(key: string): boolean;
|
|
36
|
+
/** Position of the field with this key, or `null` when the order is not customised. */
|
|
22
37
|
fieldOrder(key: string): number | null;
|
|
23
38
|
}
|
|
39
|
+
/** Injection token through which `txFilterField` finds its `tx-filters-panel`. */
|
|
24
40
|
export declare const TX_FILTERS_PANEL: InjectionToken<TxFiltersPanelContext>;
|
|
41
|
+
/** Marks a field inside `tx-filters-panel` so the user can show, hide and reorder it. */
|
|
25
42
|
export declare class TxFilterField {
|
|
26
43
|
private readonly filtersPanelTheme;
|
|
27
44
|
private readonly panel;
|
|
45
|
+
/** required key of the field inside the panel, used in the saved layout */
|
|
28
46
|
readonly txFilterField: import("@angular/core").InputSignal<string>;
|
|
47
|
+
/** required name of the field in the "Show filters" menu */
|
|
29
48
|
readonly filterLabel: import("@angular/core").InputSignal<string>;
|
|
49
|
+
/** the filter has a value — the field is always shown and counts on the "Filters" button */
|
|
30
50
|
readonly filterActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
51
|
readonly hidden: Signal<boolean>;
|
|
32
52
|
readonly order: Signal<number | null>;
|
|
@@ -49,6 +69,10 @@ export declare class TxFilterField {
|
|
|
49
69
|
};
|
|
50
70
|
}, {}, never, never, true, never>;
|
|
51
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Marks the reset action: below 1024px it leaves the bar and a "Clear filters" button in the panel clicks it
|
|
74
|
+
* @see https://tectra-ng.com/components/filters-panel
|
|
75
|
+
*/
|
|
52
76
|
export declare class TxFiltersReset {
|
|
53
77
|
private readonly filtersPanelTheme;
|
|
54
78
|
private readonly host;
|
|
@@ -56,134 +80,46 @@ export declare class TxFiltersReset {
|
|
|
56
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxFiltersReset, never>;
|
|
57
81
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxFiltersReset, "[txFiltersReset]", never, {}, {}, never, never, true, never>;
|
|
58
82
|
}
|
|
83
|
+
/** Whether any value is set: not `null`, `undefined`, a blank string or an empty array. */
|
|
59
84
|
export declare function hasFilterValue(...values: unknown[]): boolean;
|
|
85
|
+
/** `hasFilterValue`: whether any of the values is set, see `hasFilterValue`. */
|
|
60
86
|
export declare class TxHasFilterValuePipe implements PipeTransform {
|
|
61
87
|
transform(...values: unknown[]): boolean;
|
|
62
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxHasFilterValuePipe, never>;
|
|
63
89
|
static ɵpipe: i0.ɵɵPipeDeclaration<TxHasFilterValuePipe, "hasFilterValue", true>;
|
|
64
90
|
}
|
|
91
|
+
/** A row of filter fields with reset, a "Filters" fold on narrow screens and an optional saved layout. */
|
|
65
92
|
export declare class TxFiltersPanel implements TxFiltersPanelContext, AfterViewInit {
|
|
66
93
|
private readonly filtersPanelTheme;
|
|
67
94
|
private readonly document;
|
|
68
95
|
private readonly host;
|
|
69
96
|
private readonly injector;
|
|
70
97
|
private readonly locale;
|
|
98
|
+
/** `card` — own frame (default); `plain` — no frame, for filters inside another card or a dialog */
|
|
71
99
|
readonly variant: import("@angular/core").InputSignal<TxFiltersPanelVariant>;
|
|
100
|
+
/** While the list loads: every field turns into a skeleton of its label and control (same size, values kept) and the fields do not take the pointer */
|
|
72
101
|
readonly busy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
102
|
+
/** Storage key of the layout. When set, the "Show filters" menu appears and the shown fields and their order are saved as `{ order, visible }` (an older array value is read as `visible`). Without it all fields are always shown */
|
|
73
103
|
readonly stateKey: import("@angular/core").InputSignal<string | undefined>;
|
|
104
|
+
/** `local` (default) or `session` */
|
|
74
105
|
readonly stateStorage: import("@angular/core").InputSignal<TxFiltersPanelStateStorage>;
|
|
106
|
+
/** How many fields, from the start, are shown until the user changes the choice (default 3) */
|
|
75
107
|
readonly defaultVisible: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
108
|
+
/** When the fields fold behind the "Filters" button: `auto` below 1024px (default), `always`, `never`. A panel with one field never folds */
|
|
76
109
|
readonly collapse: import("@angular/core").InputSignal<TxFiltersPanelCollapse>;
|
|
110
|
+
/** Name of the `search` landmark */
|
|
77
111
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
borderColor: string;
|
|
82
|
-
borderRadius: string;
|
|
83
|
-
padding: string;
|
|
84
|
-
gap: string;
|
|
85
|
-
color: string;
|
|
86
|
-
};
|
|
87
|
-
skeleton: {
|
|
88
|
-
labelWidth: string;
|
|
89
|
-
labelOffset: string;
|
|
90
|
-
controlHeight: string;
|
|
91
|
-
controlBorderRadius: string;
|
|
92
|
-
};
|
|
93
|
-
fields: {
|
|
94
|
-
minColumnWidth: string;
|
|
95
|
-
minWidth: string;
|
|
96
|
-
columnGap: string;
|
|
97
|
-
rowGap: string;
|
|
98
|
-
};
|
|
99
|
-
actions: {
|
|
100
|
-
gap: string;
|
|
101
|
-
};
|
|
102
|
-
button: {
|
|
103
|
-
size: string;
|
|
104
|
-
paddingX: string;
|
|
105
|
-
gap: string;
|
|
106
|
-
borderRadius: string;
|
|
107
|
-
background: string;
|
|
108
|
-
hoverBackground: string;
|
|
109
|
-
borderColor: string;
|
|
110
|
-
color: string;
|
|
111
|
-
mutedColor: string;
|
|
112
|
-
fontSize: string;
|
|
113
|
-
fontWeight: string;
|
|
114
|
-
iconSize: string;
|
|
115
|
-
focusRingShadow: string;
|
|
116
|
-
transitionDuration: string;
|
|
117
|
-
};
|
|
118
|
-
count: {
|
|
119
|
-
size: string;
|
|
120
|
-
paddingX: string;
|
|
121
|
-
fontSize: string;
|
|
122
|
-
fontWeight: string;
|
|
123
|
-
background: string;
|
|
124
|
-
color: string;
|
|
125
|
-
offset: string;
|
|
126
|
-
ringWidth: string;
|
|
127
|
-
ringColor: string;
|
|
128
|
-
};
|
|
129
|
-
menu: {
|
|
130
|
-
width: string;
|
|
131
|
-
maxHeight: string;
|
|
132
|
-
padding: string;
|
|
133
|
-
borderRadius: string;
|
|
134
|
-
shadow: string;
|
|
135
|
-
headPadding: string;
|
|
136
|
-
headGap: string;
|
|
137
|
-
titleFontSize: string;
|
|
138
|
-
titleFontWeight: string;
|
|
139
|
-
titleLetterSpacing: string;
|
|
140
|
-
mutedColor: string;
|
|
141
|
-
rowGap: string;
|
|
142
|
-
rowHeight: string;
|
|
143
|
-
rowPadding: string;
|
|
144
|
-
rowGapInner: string;
|
|
145
|
-
rowBorderRadius: string;
|
|
146
|
-
rowHoverBackground: string;
|
|
147
|
-
rowFontSize: string;
|
|
148
|
-
checkSize: string;
|
|
149
|
-
checkColor: string;
|
|
150
|
-
dotSize: string;
|
|
151
|
-
dotColor: string;
|
|
152
|
-
handleWidth: string;
|
|
153
|
-
handleBorderRadius: string;
|
|
154
|
-
handleIconSize: string;
|
|
155
|
-
dragShadow: string;
|
|
156
|
-
dragBackground: string;
|
|
157
|
-
placeholderOpacity: string;
|
|
158
|
-
footerSpacing: string;
|
|
159
|
-
resetPadding: string;
|
|
160
|
-
resetColor: string;
|
|
161
|
-
transitionDuration: string;
|
|
162
|
-
dragDuration: string;
|
|
163
|
-
dragEasing: string;
|
|
164
|
-
};
|
|
165
|
-
panel: {
|
|
166
|
-
offset: string;
|
|
167
|
-
maxWidth: string;
|
|
168
|
-
maxHeight: string;
|
|
169
|
-
padding: string;
|
|
170
|
-
gap: string;
|
|
171
|
-
borderRadius: string;
|
|
172
|
-
background: string;
|
|
173
|
-
borderColor: string;
|
|
174
|
-
shadow: string;
|
|
175
|
-
zIndex: string;
|
|
176
|
-
footerPadding: string;
|
|
177
|
-
enterDuration: string;
|
|
178
|
-
enterEasing: string;
|
|
179
|
-
leaveDuration: string;
|
|
180
|
-
leaveEasing: string;
|
|
181
|
-
};
|
|
182
|
-
}> | undefined>;
|
|
112
|
+
/** Design tokens of this instance (`filtersPanel`) */
|
|
113
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFiltersPanelTokens> | undefined>;
|
|
114
|
+
/** Classes and styles of the parts: `root`, `toggle`, `panel`, `fields`, `actions`, `menuButton`, `menu` */
|
|
183
115
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFiltersPanelPart, import("@tectra-ng/core/config").TxPassThroughValue<TxFiltersPanel>>> | undefined>;
|
|
116
|
+
/** How `pt` merges with the global pass-through */
|
|
184
117
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
118
|
+
/** Removes the tectra styles */
|
|
185
119
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
120
|
+
/** The user showed, hid or moved a field (`{ order, visible }`), or reset the layout (`null`) */
|
|
186
121
|
readonly layoutChange: import("@angular/core").OutputEmitterRef<TxFiltersPanelLayout | null>;
|
|
122
|
+
/** The collapsed panel opened or closed (below 1024px) */
|
|
187
123
|
readonly expandedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
188
124
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
189
125
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFiltersPanelPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -238,7 +174,9 @@ export declare class TxFiltersPanel implements TxFiltersPanelContext, AfterViewI
|
|
|
238
174
|
fieldOrder(key: string): number | null;
|
|
239
175
|
toggle(key: string): void;
|
|
240
176
|
move(key: string, offset: number): void;
|
|
177
|
+
/** Removes the saved layout: the default fields and order come back */
|
|
241
178
|
reset(): void;
|
|
179
|
+
/** Opens or closes the collapsed panel */
|
|
242
180
|
setExpanded(expanded: boolean): void;
|
|
243
181
|
protected onPanelAnimationEnd(event: AnimationEvent): void;
|
|
244
182
|
private finishClosing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-filters-panel.d.ts","names":[],"sources":["../../../../packages/blocks/filters-panel/src/filters-panel.types.ts","../../../../packages/blocks/filters-panel/src/filter-field.directive.ts","../../../../packages/blocks/filters-panel/src/has-filter-value.pipe.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-filters-panel.d.ts","names":[],"sources":["../../../../packages/blocks/filters-panel/src/filters-panel.types.ts","../../../../packages/blocks/filters-panel/src/filter-field.directive.ts","../../../../packages/blocks/filters-panel/src/has-filter-value.pipe.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.ts"],"mappings":";;;;;;YACY;;YAGA;;YAGA;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;;iBCrBe;;EAEf,cAAc;;EAEd,WAAW;;;qBAIA,kBAAgB,eAAA;;qBAahB;mBACM;mBAEA;;WAER,uCAAa;;WACb,qCAAW;;WACX,sCAAY;WAEZ,QAAQ;WACR,OAAO;SAVL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;;;;;qBAkBb;mBACM;mBAEA;EAEjB;SALW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;wBC5CG,kBAAkB;;qBAiBrB,gCAAgC;EAC3C,aAAa;SADF,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;qBCyDA,0BAA0B,uBAAuB;mBAC3C;mBAEA;mBACA;mBACA;mBACA;;WAER,iCAAO,YAAA;;WACP,8BAAI;;WACJ,kCAAQ;;WACR,sCAAY,YAAA;;WACZ,wCAAc;;WACd,kCAAQ,YAAA;;WACR,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,sCAAY,iBAAA;;WACZ,wCAAc;WAEd,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;qBACD,sCAAY,wCAAA;qBACZ;mBAEF;qBACE,qCAAW,OAAA;mBACb;mBACA;mBACA;mBAEA;mBACA;WACR,kCAAQ;qBACE,iCAAO;UAClB;qBACW,kCAAQ;WAElB,qCAAW;WACX,gCAAM;WACN,qCAAW;WACX,sCAAY;mBAEJ;mBAEA;mBAMA;mBAEA;WAUR,iCAAO,OAAA;WAWP,sCAAY;WACZ,qCAAW;qBACD,qCAAW;qBACX,yCAAe;qBAOf,oCAAU,OAAA;WACpB,mCAAS;;;qBACC;;;;;;;;;;qBAQA,uCAAa;;;;;;EAsBhC;EAIA,cAAc;EAId,WAAW;EAIX,OAAO;EAWP,KAAK,aAAa;;EAWlB;;EAMA,YAAY;YAaF,oBAAoB,OAAO;UAM7B;YAKE;YAIA,KAAK,OAAO;YASZ,cAAc,OAAO,eAAe;YAsBpC,oBAAoB,OAAO;YAe3B,cAAc,OAAO;UAWvB;UAKA;UAMA;UASA;UAsBA;SA9RG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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;IAAA"}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraHoverEffectTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Names of the parts of `tx-hover-effect` that its `pt` input can style. */
|
|
4
5
|
export type TxHoverEffectPart = 'root' | 'layer';
|
|
6
|
+
/**
|
|
7
|
+
* A 3D tilt that follows the mouse: wrap a card, a plan or a picture and it leans towards the pointer, then settles back smoothly when the pointer leaves.
|
|
8
|
+
* @see https://tectra-ng.com/components/hover-effect
|
|
9
|
+
*/
|
|
5
10
|
export declare class TxHoverEffect {
|
|
6
11
|
private readonly hoverEffectTheme;
|
|
7
12
|
private readonly document;
|
|
8
13
|
private readonly layer;
|
|
9
14
|
private frame;
|
|
15
|
+
/** How much the pointer distance is divided by — larger is calmer (default 100) */
|
|
10
16
|
readonly constrain: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
17
|
+
/** Turns the tilt off */
|
|
11
18
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
resetDuration: string;
|
|
16
|
-
resetEasing: string;
|
|
17
|
-
};
|
|
18
|
-
}> | undefined>;
|
|
19
|
+
/** Design tokens of this instance (`hoverEffect`) */
|
|
20
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraHoverEffectTokens> | undefined>;
|
|
21
|
+
/** Classes and styles of the parts: `root`, `layer` */
|
|
19
22
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxHoverEffectPart, import("@tectra-ng/core/config").TxPassThroughValue<TxHoverEffect>>> | undefined>;
|
|
23
|
+
/** How `pt` merges with the global pass-through */
|
|
20
24
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
25
|
+
/** Removes the smooth return (the tilt stays) */
|
|
21
26
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
22
27
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
23
28
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxHoverEffectPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -31,6 +36,7 @@ export declare class TxHoverEffect {
|
|
|
31
36
|
protected readonly active: import("@angular/core").WritableSignal<boolean>;
|
|
32
37
|
constructor();
|
|
33
38
|
protected onPointerMove(event: PointerEvent): void;
|
|
39
|
+
/** Puts the content straight again */
|
|
34
40
|
reset(): void;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxHoverEffect, never>;
|
|
36
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxHoverEffect, "tx-hover-effect", never, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-hover-effect.d.ts","names":[],"sources":["../../../../packages/blocks/hover-effect/src/hover-effect.types.ts","../../../../packages/blocks/hover-effect/src/hover-effect.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-hover-effect.d.ts","names":[],"sources":["../../../../packages/blocks/hover-effect/src/hover-effect.types.ts","../../../../packages/blocks/hover-effect/src/hover-effect.component.ts"],"mappings":";;;;YACY;;;;;qBCgCC;mBACM;mBAEA;mBACA;UACT;;WAEC,mCAAS;;WACT,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,mCAAS;;;WAET,8BAAI;;;;qBACM,gCAAM;;YAMf,cAAc,OAAO;;EAkB/B;SA3CW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|