@tectra-ng/ui 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/data-view/README.md +9 -1
- package/dialog/README.md +3 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/fesm2022/tectra-ng-ui.mjs.map +1 -1
- package/package.json +4 -4
- package/table/README.md +1 -0
- package/tree-select/README.md +1 -0
- package/types/tectra-ng-ui-accordion.d.ts +96 -65
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +40 -17
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +84 -259
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +18 -61
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +4 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +45 -266
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +14 -16
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +55 -27
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +79 -119
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +19 -22
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +41 -11
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +51 -47
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +45 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +42 -10
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +41 -96
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +40 -17
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +92 -34
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +186 -147
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +149 -67
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +17 -12
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-drawer.d.ts +31 -67
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts +1 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +238 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +24 -11
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +14 -23
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +127 -115
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +84 -84
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +20 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +60 -36
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +9 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts +39 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +73 -15
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +28 -21
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +17 -50
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +14 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +38 -18
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +19 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +39 -34
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +54 -45
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +24 -14
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +92 -166
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +29 -58
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +61 -126
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +26 -96
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +69 -47
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +22 -30
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +27 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +55 -26
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +23 -70
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +58 -46
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +64 -115
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +40 -29
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +169 -100
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +34 -37
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +37 -33
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +22 -15
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +28 -7
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +47 -23
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +19 -23
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +106 -133
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +415 -183
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +91 -133
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +46 -135
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +25 -31
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +39 -27
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +84 -78
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +15 -14
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +72 -22
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +65 -104
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +30 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +197 -69
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +2 -1
- package/types/tectra-ng-ui.d.ts.map +1 -1
|
@@ -3,61 +3,116 @@ import { ComponentRef, ElementRef, InjectionToken, Injector, Signal, TemplateRef
|
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { TectraDeepPartial, TectraDialogTokens } from "@tectra-ng/themes";
|
|
5
5
|
import { CdkPortalOutlet } from "@angular/cdk/portal";
|
|
6
|
+
/**
|
|
7
|
+
* Width step of a dialog: `small` (500px), `medium` (700px), `large` (900px), `xlarge` (1100px) or `fullscreen`.
|
|
8
|
+
*/
|
|
6
9
|
export type TxDialogSize = 'small' | 'medium' | 'large' | 'xlarge' | 'fullscreen';
|
|
10
|
+
/** Where the dialog sits on the screen: the `center`, an edge or a corner. */
|
|
7
11
|
export type TxDialogPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
12
|
+
/** Edge a drawer slides in from: `left`, `right`, `top` or `bottom`. */
|
|
8
13
|
export type TxDrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
14
|
+
/** Named size of a drawer: `small`, `medium`, `large` or `full`. */
|
|
9
15
|
export type TxDrawerSize = 'small' | 'medium' | 'large' | 'full';
|
|
16
|
+
/** What gets focus on open: the `first` focusable field, the `dialog` itself, `none`, or a CSS selector. */
|
|
10
17
|
export type TxDialogAutoFocus = 'first' | 'dialog' | 'none' | (string & {});
|
|
18
|
+
/** ARIA role of the dialog: `dialog`, or `alertdialog` for a question that needs an answer. */
|
|
11
19
|
export type TxDialogRole = 'dialog' | 'alertdialog';
|
|
20
|
+
/** Names of the parts of `tx-dialog` that `pt` can style. */
|
|
12
21
|
export type TxDialogPart = 'root' | 'mask' | 'header' | 'title' | 'subtitle' | 'headerButton' | 'content' | 'footer';
|
|
22
|
+
/** Asked before a dialog closes; gives `false`, or a promise or observable of it, to keep the dialog open. */
|
|
13
23
|
export type TxDialogGuard<R> = (result: R | undefined) => boolean | Promise<boolean> | Observable<boolean>;
|
|
24
|
+
/** Options of one dialog opened with `TxDialogService.open`. */
|
|
14
25
|
export interface TxDialogConfig<D = unknown, R = unknown> {
|
|
26
|
+
/** Anything to pass to the content; read it with `injectDialogData`. */
|
|
15
27
|
data?: D;
|
|
28
|
+
/** Values set as inputs of the content component. */
|
|
16
29
|
inputs?: Record<string, unknown>;
|
|
30
|
+
/** Width step of the dialog (default `medium`). */
|
|
17
31
|
size?: TxDialogSize;
|
|
32
|
+
/** Own width as a CSS length; wins over `size`. */
|
|
18
33
|
width?: string;
|
|
34
|
+
/** Smallest width as a CSS length. */
|
|
19
35
|
minWidth?: string;
|
|
36
|
+
/** Largest width as a CSS length. */
|
|
20
37
|
maxWidth?: string;
|
|
38
|
+
/** Own height as a CSS length. */
|
|
21
39
|
height?: string;
|
|
40
|
+
/** Largest height as a CSS length. */
|
|
22
41
|
maxHeight?: string;
|
|
42
|
+
/** Width per viewport width, for example `{ '640px': '90vw' }` narrows the dialog below 640px. */
|
|
23
43
|
breakpoints?: Record<string, string>;
|
|
44
|
+
/** Where the dialog sits (default `center`). */
|
|
24
45
|
position?: TxDialogPosition;
|
|
46
|
+
/** Slides the dialog in from this edge as a drawer. */
|
|
25
47
|
drawer?: TxDrawerPosition;
|
|
48
|
+
/** Drawer size: a named step or a CSS length. */
|
|
26
49
|
drawerSize?: TxDrawerSize | (string & {});
|
|
50
|
+
/** Dims the page and keeps focus inside (default on). */
|
|
27
51
|
modal?: boolean;
|
|
52
|
+
/** Allows closing with the close button, Escape and a click on the mask (default on). */
|
|
28
53
|
closable?: boolean;
|
|
54
|
+
/** Overrides `closable` for the Escape key. */
|
|
29
55
|
closeOnEscape?: boolean;
|
|
56
|
+
/** Overrides `closable` for a click on the mask. */
|
|
30
57
|
dismissableMask?: boolean;
|
|
58
|
+
/** Stops the page from scrolling while open (default on, modal only). */
|
|
31
59
|
blockScroll?: boolean;
|
|
60
|
+
/** Lets the header move the dialog. */
|
|
32
61
|
draggable?: boolean;
|
|
62
|
+
/** Shows a maximize and restore button. */
|
|
33
63
|
maximizable?: boolean;
|
|
64
|
+
/** What gets focus on open (default `first`). */
|
|
34
65
|
autoFocus?: TxDialogAutoFocus;
|
|
66
|
+
/** Returns focus to the element that was focused before opening (default on). */
|
|
35
67
|
restoreFocus?: boolean;
|
|
68
|
+
/** ARIA role of the dialog. */
|
|
36
69
|
role?: TxDialogRole;
|
|
70
|
+
/** Accessible name for a dialog without a header. */
|
|
37
71
|
ariaLabel?: string;
|
|
72
|
+
/** Id of the element that names the dialog. */
|
|
38
73
|
ariaLabelledBy?: string;
|
|
74
|
+
/** Id of the element that describes the dialog. */
|
|
39
75
|
ariaDescribedBy?: string;
|
|
76
|
+
/** Extra class or classes on the dialog panel. */
|
|
40
77
|
panelClass?: string | string[];
|
|
78
|
+
/** Asked before closing; return `false` to keep the dialog open. */
|
|
41
79
|
canClose?: TxDialogGuard<R>;
|
|
80
|
+
/** Design tokens of this one dialog. */
|
|
42
81
|
dt?: TectraDeepPartial<TectraDialogTokens>;
|
|
82
|
+
/** Drops the tectra styles of this dialog. */
|
|
43
83
|
unstyled?: boolean;
|
|
84
|
+
/** Parent injector of the content; the root injector when not set. */
|
|
44
85
|
injector?: Injector;
|
|
86
|
+
/** View container the content is created in, so it inherits that place in the tree. */
|
|
45
87
|
viewContainerRef?: ViewContainerRef;
|
|
46
88
|
}
|
|
89
|
+
/** Context of a dialog opened from a template. */
|
|
47
90
|
export interface TxDialogTemplateContext<D = unknown, R = unknown> {
|
|
91
|
+
/** The `data` of the dialog. */
|
|
48
92
|
$implicit: D | undefined;
|
|
93
|
+
/** Closes the dialog with an optional result. */
|
|
49
94
|
close: (result?: R) => void;
|
|
50
95
|
}
|
|
96
|
+
/** What a `TxDialogRef` calls on the container that shows the dialog. */
|
|
51
97
|
export interface TxDialogHost {
|
|
98
|
+
/** Plays the closing animation; resolves when it ends. */
|
|
52
99
|
leave(): Promise<void>;
|
|
100
|
+
/** Removes the dialog from the page. */
|
|
53
101
|
dispose(): void;
|
|
102
|
+
/** Sets the width and height of the dialog. */
|
|
54
103
|
updateSize(width?: string, height?: string): void;
|
|
104
|
+
/** Starts moving the dialog from a pointer press on its header. */
|
|
55
105
|
dragFrom(event: PointerEvent): void;
|
|
56
106
|
}
|
|
107
|
+
/** Holds the `data` a dialog was opened with; read it with `injectDialogData`. */
|
|
57
108
|
export declare const TX_DIALOG_DATA: InjectionToken<unknown>;
|
|
109
|
+
/** Gives the content of a dialog the signal of its current `TxDialogRef`. */
|
|
58
110
|
export declare const TX_DIALOG_CURRENT: InjectionToken<Signal<TxDialogRef<unknown, unknown> | null>>;
|
|
111
|
+
/** Handle of one open dialog: close it, read its result and state, and reach its content. */
|
|
59
112
|
export declare class TxDialogRef<R = unknown, C = unknown> {
|
|
113
|
+
/** Unique id of the dialog. */
|
|
60
114
|
readonly id: string;
|
|
115
|
+
/** Options the dialog was opened with. */
|
|
61
116
|
readonly config: TxDialogConfig<unknown, R>;
|
|
62
117
|
private readonly closedSubject;
|
|
63
118
|
private readonly openedSubject;
|
|
@@ -66,26 +121,52 @@ export declare class TxDialogRef<R = unknown, C = unknown> {
|
|
|
66
121
|
private host;
|
|
67
122
|
private closing;
|
|
68
123
|
private guarding;
|
|
124
|
+
/** Emits the result once when the dialog closes, `undefined` when it was dismissed. */
|
|
69
125
|
readonly closed: Observable<R | undefined>;
|
|
126
|
+
/** Emits once the dialog has opened. */
|
|
70
127
|
readonly afterOpened: Observable<void>;
|
|
128
|
+
/** Whether the dialog is maximized. */
|
|
71
129
|
readonly maximized: Signal<boolean>;
|
|
130
|
+
/** Element id of the title that names the dialog; `null` without one. */
|
|
72
131
|
readonly titleId: Signal<string | null>;
|
|
132
|
+
/** The content component, or `null` for a template. */
|
|
73
133
|
componentInstance: C | null;
|
|
74
|
-
constructor(
|
|
134
|
+
constructor(
|
|
135
|
+
/** Unique id of the dialog. */
|
|
136
|
+
id: string,
|
|
137
|
+
/** Options the dialog was opened with. */
|
|
138
|
+
config: TxDialogConfig<unknown, R>);
|
|
139
|
+
/** Whether the dialog has started closing. */
|
|
75
140
|
get isClosing(): boolean;
|
|
141
|
+
/** Closes the dialog with an optional result after `canClose` agrees; resolves to whether it closed. */
|
|
76
142
|
close(result?: R): Promise<boolean>;
|
|
143
|
+
/** Maximizes the dialog or restores it. */
|
|
77
144
|
toggleMaximize(): void;
|
|
145
|
+
/** Maximizes the dialog. */
|
|
78
146
|
maximize(): void;
|
|
147
|
+
/** Brings a maximized dialog back to its size. */
|
|
79
148
|
restore(): void;
|
|
149
|
+
/** Sets the width and height of the dialog. */
|
|
80
150
|
updateSize(width?: string, height?: string): void;
|
|
151
|
+
/** Starts moving the dialog from a pointer press; works with `draggable`. */
|
|
81
152
|
dragFrom(event: PointerEvent): void;
|
|
153
|
+
/** Names the dialog by the element with this id; returns a function that withdraws it. */
|
|
82
154
|
registerTitle(id: string): () => void;
|
|
155
|
+
/** Connects the container that shows the dialog; used by `TxDialogService`. */
|
|
83
156
|
attachHost(host: TxDialogHost): void;
|
|
157
|
+
/** Reports that the dialog opened, which fires `afterOpened`; used by `TxDialogService`. */
|
|
84
158
|
markOpened(): void;
|
|
85
159
|
}
|
|
160
|
+
/** Gives the signal of the dialog the code runs in; `null` outside a dialog. */
|
|
86
161
|
export declare function injectCurrentDialog(): Signal<TxDialogRef | null>;
|
|
162
|
+
/** Reads the `data` the dialog was opened with, inside the dialog content. */
|
|
87
163
|
export declare function injectDialogData<D>(): D;
|
|
164
|
+
/** Gives the `TxDialogRef` of the dialog the code runs in, to close it or read its state. */
|
|
88
165
|
export declare function injectDialogRef<R = unknown, C = unknown>(): TxDialogRef<R, C>;
|
|
166
|
+
/**
|
|
167
|
+
* `<h2 txDialogTitle>` inside `tx-dialog-header` — own title element that names the dialog
|
|
168
|
+
* @see https://tectra-ng.com/components/dialog
|
|
169
|
+
*/
|
|
89
170
|
export declare class TxDialogTitle {
|
|
90
171
|
private readonly dialogTheme;
|
|
91
172
|
private ref;
|
|
@@ -94,12 +175,17 @@ export declare class TxDialogTitle {
|
|
|
94
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogTitle, never>;
|
|
95
176
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDialogTitle, "[txDialogTitle]", never, {}, {}, never, never, true, never>;
|
|
96
177
|
}
|
|
178
|
+
/** Header of a dialog: the title and subtitle, with the close and maximize buttons, and the drag handle. */
|
|
97
179
|
export declare class TxDialogHeader {
|
|
98
180
|
private readonly dialogTheme;
|
|
99
181
|
readonly ref: import("@angular/core").Signal<import("@tectra-ng/ui/dialog").TxDialogRef<unknown, unknown> | null>;
|
|
182
|
+
/** title text */
|
|
100
183
|
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
184
|
+
/** Second line under the title */
|
|
101
185
|
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
186
|
+
/** shows the close button (default from `closable`) */
|
|
102
187
|
readonly closeButton: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
188
|
+
/** shows the maximize button (default from `maximizable`) */
|
|
103
189
|
readonly maximizeButton: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
104
190
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
105
191
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -134,6 +220,7 @@ export declare class TxDialogHeader {
|
|
|
134
220
|
};
|
|
135
221
|
}, {}, never, ["[txDialogTitle]", "*"], true, never>;
|
|
136
222
|
}
|
|
223
|
+
/** Scrolling body of a dialog. */
|
|
137
224
|
export declare class TxDialogContent {
|
|
138
225
|
private readonly dialogTheme;
|
|
139
226
|
private readonly ref;
|
|
@@ -143,6 +230,7 @@ export declare class TxDialogContent {
|
|
|
143
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogContent, never>;
|
|
144
231
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxDialogContent, "tx-dialog-content", never, {}, {}, never, ["*"], true, never>;
|
|
145
232
|
}
|
|
233
|
+
/** Actions at the bottom of a dialog, side by side in equal widths. */
|
|
146
234
|
export declare class TxDialogFooter {
|
|
147
235
|
private readonly dialogTheme;
|
|
148
236
|
private readonly ref;
|
|
@@ -152,9 +240,11 @@ export declare class TxDialogFooter {
|
|
|
152
240
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogFooter, never>;
|
|
153
241
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxDialogFooter, "tx-dialog-footer", never, {}, {}, never, ["*"], true, never>;
|
|
154
242
|
}
|
|
243
|
+
/** Closes the dialog it sits in when clicked; `[txDialogClose]="result"` closes with that result. */
|
|
155
244
|
export declare class TxDialogClose {
|
|
156
245
|
private readonly dialogTheme;
|
|
157
246
|
private ref;
|
|
247
|
+
/** Value the dialog closes with when the element is clicked */
|
|
158
248
|
readonly txDialogClose: import("@angular/core").InputSignal<unknown>;
|
|
159
249
|
close(): void;
|
|
160
250
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogClose, never>;
|
|
@@ -166,6 +256,7 @@ export declare class TxDialogClose {
|
|
|
166
256
|
};
|
|
167
257
|
}, {}, never, never, true, never>;
|
|
168
258
|
}
|
|
259
|
+
/** Shows one dialog opened by `TxDialogService`: the panel, mask, animation, drag and size. */
|
|
169
260
|
export declare class TxDialogContainer {
|
|
170
261
|
private readonly dialogTheme;
|
|
171
262
|
readonly ref: TxDialogRef<any, any>;
|
|
@@ -212,113 +303,89 @@ export declare class TxDialogContainer {
|
|
|
212
303
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogContainer, never>;
|
|
213
304
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxDialogContainer, "tx-dialog-container", never, {}, {}, never, never, true, never>;
|
|
214
305
|
}
|
|
306
|
+
/** Opens dialogs and drawers from a component or a template and keeps track of the open ones. */
|
|
215
307
|
export declare class TxDialogService {
|
|
216
308
|
private injector;
|
|
217
309
|
private document;
|
|
218
310
|
private readonly dialogs;
|
|
311
|
+
/** The dialogs that are open now, the last opened last. */
|
|
219
312
|
readonly openDialogs: import("@angular/core").Signal<TxDialogRef<unknown, unknown>[]>;
|
|
313
|
+
/** Opens a component or a template in a dialog and returns its `TxDialogRef`. */
|
|
220
314
|
open<C = unknown, D = unknown, R = unknown>(content: Type<C> | TemplateRef<TxDialogTemplateContext<D, R>>, config?: TxDialogConfig<D, R>): TxDialogRef<R, C>;
|
|
315
|
+
/** Closes every open dialog, the last opened first. */
|
|
221
316
|
closeAll(): void;
|
|
222
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDialogService, never>;
|
|
223
318
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
224
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* A window over the page for a task that needs full attention — a form, a confirmation, details. Open a component from code with `TxDialogService`, or write the dialog in a template with `<tx-dialog [(visible)]>`.
|
|
322
|
+
* @see https://tectra-ng.com/components/dialog
|
|
323
|
+
*/
|
|
225
324
|
export declare class TxDialog {
|
|
226
325
|
private readonly dialogTheme;
|
|
227
326
|
private dialogs;
|
|
228
327
|
private injector;
|
|
229
328
|
private current;
|
|
230
329
|
private destroyed;
|
|
330
|
+
/** Two-way open state (`[(visible)]`) */
|
|
231
331
|
readonly visible: import("@angular/core").ModelSignal<boolean>;
|
|
332
|
+
/** Title; also names the dialog */
|
|
232
333
|
readonly header: import("@angular/core").InputSignal<string | undefined>;
|
|
334
|
+
/** Second line under the title */
|
|
233
335
|
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
336
|
+
/** `small` (500px), `medium` (700px, default), `large` (900px), `xlarge` (1100px), `fullscreen` */
|
|
234
337
|
readonly size: import("@angular/core").InputSignal<TxDialogSize>;
|
|
338
|
+
/** Own width (any CSS length), wins over `size` */
|
|
235
339
|
readonly width: import("@angular/core").InputSignal<string | undefined>;
|
|
340
|
+
/** Own height */
|
|
236
341
|
readonly height: import("@angular/core").InputSignal<string | undefined>;
|
|
342
|
+
/** Smallest width (any CSS length) */
|
|
343
|
+
readonly minWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
344
|
+
/** Largest width; keeps a wide `width` or a breakpoint in bounds */
|
|
345
|
+
readonly maxWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
346
|
+
/** Largest height; the content scrolls inside */
|
|
347
|
+
readonly maxHeight: import("@angular/core").InputSignal<string | undefined>;
|
|
348
|
+
/** Width per viewport width; by default `{ '960px': '500px', '640px': '90vw' }` */
|
|
237
349
|
readonly breakpoints: import("@angular/core").InputSignal<Record<string, string> | undefined>;
|
|
350
|
+
/** `center` (default), `top`, `bottom`, `left`, `right`, `top-left`, `top-right`, `bottom-left`, `bottom-right` */
|
|
238
351
|
readonly position: import("@angular/core").InputSignal<TxDialogPosition>;
|
|
352
|
+
/** Slides in from `left`, `right`, `top` or `bottom` instead (see Drawer) */
|
|
239
353
|
readonly drawer: import("@angular/core").InputSignal<TxDrawerPosition | undefined>;
|
|
354
|
+
/** Drawer size: `small`, `medium`, `large`, `full` or a CSS length */
|
|
240
355
|
readonly drawerSize: import("@angular/core").InputSignal<TxDrawerSize | (string & {})>;
|
|
356
|
+
/** Dims the page and keeps focus inside (default on) */
|
|
241
357
|
readonly modal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
358
|
+
/** Close button, Escape and a click on the mask close it (default on) */
|
|
242
359
|
readonly closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
360
|
+
/** Overrides `closable` for Escape */
|
|
243
361
|
readonly closeOnEscape: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
362
|
+
/** Overrides `closable` for a click on the mask */
|
|
244
363
|
readonly dismissableMask: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
364
|
+
/** Stops the page from scrolling while open (default on, modal only) */
|
|
245
365
|
readonly blockScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
366
|
+
/** The header moves the dialog */
|
|
246
367
|
readonly draggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
368
|
+
/** Shows a maximize / restore button */
|
|
247
369
|
readonly maximizable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
370
|
+
/** `first` focusable field (default; content, then footer, then header), `dialog`, `none` or a CSS selector */
|
|
248
371
|
readonly autoFocus: import("@angular/core").InputSignal<TxDialogAutoFocus>;
|
|
372
|
+
/** Focus goes back to the element that opened it (default on) */
|
|
249
373
|
readonly restoreFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
374
|
+
/** `dialog` or `alertdialog` */
|
|
250
375
|
readonly role: import("@angular/core").InputSignal<TxDialogRole>;
|
|
376
|
+
/** Name when there is no header */
|
|
251
377
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
378
|
+
/** Class on the dialog panel */
|
|
252
379
|
readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
|
|
380
|
+
/** Asked before closing; return `false` (or a promise of it) to keep the dialog open */
|
|
253
381
|
readonly canClose: import("@angular/core").InputSignal<(() => boolean | Promise<boolean>) | undefined>;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
borderColor: string;
|
|
258
|
-
borderWidth: string;
|
|
259
|
-
borderRadius: string;
|
|
260
|
-
color: string;
|
|
261
|
-
shadow: string;
|
|
262
|
-
maxHeight: string;
|
|
263
|
-
positionMargin: string;
|
|
264
|
-
fontSize: string;
|
|
265
|
-
lineHeight: string;
|
|
266
|
-
enterDuration: string;
|
|
267
|
-
leaveDuration: string;
|
|
268
|
-
};
|
|
269
|
-
mask: {
|
|
270
|
-
background: string;
|
|
271
|
-
};
|
|
272
|
-
header: {
|
|
273
|
-
padding: string;
|
|
274
|
-
gap: string;
|
|
275
|
-
};
|
|
276
|
-
title: {
|
|
277
|
-
fontSize: string;
|
|
278
|
-
fontWeight: string;
|
|
279
|
-
};
|
|
280
|
-
subtitle: {
|
|
281
|
-
color: string;
|
|
282
|
-
fontSize: string;
|
|
283
|
-
};
|
|
284
|
-
content: {
|
|
285
|
-
padding: string;
|
|
286
|
-
lastPaddingBottom: string;
|
|
287
|
-
};
|
|
288
|
-
footer: {
|
|
289
|
-
padding: string;
|
|
290
|
-
gap: string;
|
|
291
|
-
};
|
|
292
|
-
focusRing: {
|
|
293
|
-
width: string;
|
|
294
|
-
color: string;
|
|
295
|
-
};
|
|
296
|
-
sm: {
|
|
297
|
-
width: string;
|
|
298
|
-
};
|
|
299
|
-
md: {
|
|
300
|
-
width: string;
|
|
301
|
-
};
|
|
302
|
-
lg: {
|
|
303
|
-
width: string;
|
|
304
|
-
};
|
|
305
|
-
xl: {
|
|
306
|
-
width: string;
|
|
307
|
-
};
|
|
308
|
-
drawer: {
|
|
309
|
-
sm: string;
|
|
310
|
-
md: string;
|
|
311
|
-
lg: string;
|
|
312
|
-
background: string;
|
|
313
|
-
dividerColor: string;
|
|
314
|
-
headerPadding: string;
|
|
315
|
-
titleFontSize: string;
|
|
316
|
-
contentPadding: string;
|
|
317
|
-
footerPadding: string;
|
|
318
|
-
};
|
|
319
|
-
}> | undefined>;
|
|
382
|
+
/** Design tokens of this dialog (`dialog`) */
|
|
383
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraDialogTokens> | undefined>;
|
|
384
|
+
/** Removes the tectra styles */
|
|
320
385
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
386
|
+
/** The dialog opened */
|
|
321
387
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
388
|
+
/** The dialog closed */
|
|
322
389
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
323
390
|
private readonly body;
|
|
324
391
|
constructor();
|
|
@@ -356,6 +423,21 @@ export declare class TxDialog {
|
|
|
356
423
|
"required": false;
|
|
357
424
|
"isSignal": true;
|
|
358
425
|
};
|
|
426
|
+
"minWidth": {
|
|
427
|
+
"alias": "minWidth";
|
|
428
|
+
"required": false;
|
|
429
|
+
"isSignal": true;
|
|
430
|
+
};
|
|
431
|
+
"maxWidth": {
|
|
432
|
+
"alias": "maxWidth";
|
|
433
|
+
"required": false;
|
|
434
|
+
"isSignal": true;
|
|
435
|
+
};
|
|
436
|
+
"maxHeight": {
|
|
437
|
+
"alias": "maxHeight";
|
|
438
|
+
"required": false;
|
|
439
|
+
"isSignal": true;
|
|
440
|
+
};
|
|
359
441
|
"breakpoints": {
|
|
360
442
|
"alias": "breakpoints";
|
|
361
443
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-dialog.d.ts","names":[],"sources":["../../../../packages/ui/dialog/src/dialog.types.ts","../../../../packages/ui/dialog/src/dialog-ref.ts","../../../../packages/ui/dialog/src/dialog-parts.component.ts","../../../../packages/ui/dialog/src/dialog-container.component.ts","../../../../packages/ui/dialog/src/dialog.service.ts","../../../../packages/ui/dialog/src/dialog.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-dialog.d.ts","names":[],"sources":["../../../../packages/ui/dialog/src/dialog.types.ts","../../../../packages/ui/dialog/src/dialog-ref.ts","../../../../packages/ui/dialog/src/dialog-parts.component.ts","../../../../packages/ui/dialog/src/dialog-container.component.ts","../../../../packages/ui/dialog/src/dialog.service.ts","../../../../packages/ui/dialog/src/dialog.component.ts"],"mappings":";;;;;;;;YAOY;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;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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;IAAA"}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraDividerTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Direction of the line: `horizontal` or `vertical`. */
|
|
4
5
|
export type TxDividerLayout = 'horizontal' | 'vertical';
|
|
6
|
+
/** Line style: `solid`, `dashed` or `dotted`. */
|
|
5
7
|
export type TxDividerType = 'solid' | 'dashed' | 'dotted';
|
|
8
|
+
/** Where the content sits on the line: `start`, `center` or `end`. */
|
|
6
9
|
export type TxDividerAlign = 'start' | 'center' | 'end';
|
|
10
|
+
/** Names of the parts of `tx-divider` that `pt` can style. */
|
|
7
11
|
export type TxDividerPart = 'root' | 'content';
|
|
12
|
+
/**
|
|
13
|
+
* A line between groups of content — horizontal or vertical, solid, dashed or dotted, with an optional label in it.
|
|
14
|
+
* @see https://tectra-ng.com/components/divider
|
|
15
|
+
*/
|
|
8
16
|
export declare class TxDivider {
|
|
9
17
|
private readonly dividerTheme;
|
|
18
|
+
/** `horizontal` or `vertical` */
|
|
10
19
|
readonly layout: import("@angular/core").InputSignal<TxDividerLayout>;
|
|
20
|
+
/** `solid`, `dashed` or `dotted` */
|
|
11
21
|
readonly type: import("@angular/core").InputSignal<TxDividerType>;
|
|
22
|
+
/** Position of the content: `start`, `center`, `end` */
|
|
12
23
|
readonly align: import("@angular/core").InputSignal<TxDividerAlign>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
width: string;
|
|
17
|
-
margin: string;
|
|
18
|
-
contentGap: string;
|
|
19
|
-
contentColor: string;
|
|
20
|
-
contentFontSize: string;
|
|
21
|
-
contentFontWeight: string;
|
|
22
|
-
};
|
|
23
|
-
}> | undefined>;
|
|
24
|
+
/** Design tokens of this instance (`divider`) */
|
|
25
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraDividerTokens> | undefined>;
|
|
26
|
+
/** Classes and styles of the parts: `root`, `content` */
|
|
24
27
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxDividerPart, import("@tectra-ng/core/config").TxPassThroughValue<TxDivider>>> | undefined>;
|
|
28
|
+
/** How `pt` merges with the global pass-through */
|
|
25
29
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
30
|
+
/** Removes the tectra styles */
|
|
26
31
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
27
32
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
28
33
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxDividerPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-divider.d.ts","names":[],"sources":["../../../../packages/ui/divider/src/divider.types.ts","../../../../packages/ui/divider/src/divider.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-divider.d.ts","names":[],"sources":["../../../../packages/ui/divider/src/divider.types.ts","../../../../packages/ui/divider/src/divider.component.ts"],"mappings":";;;;YACY;;YAEA;;YAEA;;YAEA;;;;;qBCiBC;mBACM;;WAER,gCAAM,YAAA;;WACN,8BAAI,YAAA;;WACJ,+BAAK,YAAA;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,mCAAS;;;SAbP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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,100 +1,64 @@
|
|
|
1
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
1
|
+
import { TectraDeepPartial, TectraDialogTokens } from "@tectra-ng/themes";
|
|
2
2
|
import { TxDialogAutoFocus, TxDrawerPosition, TxDrawerSize } from "@tectra-ng/ui/dialog";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* `<div txDrawerHeader>` — more header content after the title
|
|
6
|
+
* @see https://tectra-ng.com/components/drawer
|
|
7
|
+
*/
|
|
4
8
|
export declare class TxDrawerHeader {
|
|
5
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDrawerHeader, never>;
|
|
6
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDrawerHeader, "[txDrawerHeader]", never, {}, {}, never, never, true, never>;
|
|
7
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* `<div txDrawerFooter>` — actions at the bottom
|
|
14
|
+
* @see https://tectra-ng.com/components/drawer
|
|
15
|
+
*/
|
|
8
16
|
export declare class TxDrawerFooter {
|
|
9
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDrawerFooter, never>;
|
|
10
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDrawerFooter, "[txDrawerFooter]", never, {}, {}, never, never, true, never>;
|
|
11
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* A panel that slides in from an edge of the screen — filters, details of a row, settings, navigation on small screens. It works like a dialog: focus stays inside, Escape and a click on the mask close it, focus goes back to the button.
|
|
22
|
+
* @see https://tectra-ng.com/components/drawer
|
|
23
|
+
*/
|
|
12
24
|
export declare class TxDrawer {
|
|
13
25
|
private dialogs;
|
|
14
26
|
private injector;
|
|
15
27
|
private current;
|
|
16
28
|
private destroyed;
|
|
29
|
+
/** Two-way open state (`[(visible)]`) */
|
|
17
30
|
readonly visible: import("@angular/core").ModelSignal<boolean>;
|
|
31
|
+
/** Title; also names the drawer */
|
|
18
32
|
readonly header: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
/** Edge it slides from: `left`, `right` (default), `top`, `bottom` */
|
|
19
34
|
readonly position: import("@angular/core").InputSignal<TxDrawerPosition>;
|
|
35
|
+
/** `small` (320px), `medium` (440px, default), `large` (640px), `full` or a CSS length — width for left / right (the whole screen below 640px), height for top / bottom */
|
|
20
36
|
readonly size: import("@angular/core").InputSignal<TxDrawerSize | (string & {})>;
|
|
37
|
+
/** Dims the page and keeps focus inside (default on) */
|
|
21
38
|
readonly modal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
/** Close button, Escape and a click on the mask close it (default on) */
|
|
22
40
|
readonly closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** Overrides `closable` for a click on the mask */
|
|
23
42
|
readonly dismissable: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
43
|
+
/** Overrides `closable` for Escape */
|
|
24
44
|
readonly closeOnEscape: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
45
|
+
/** Stops the page from scrolling while open (default on, modal only) */
|
|
25
46
|
readonly blockScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/** `first` focusable field (default), `dialog`, `none` or a CSS selector */
|
|
26
48
|
readonly autoFocus: import("@angular/core").InputSignal<TxDialogAutoFocus>;
|
|
49
|
+
/** Focus goes back to the element that opened it (default on) */
|
|
27
50
|
readonly restoreFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
/** Name when there is no header */
|
|
28
52
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
53
|
+
/** Class on the drawer panel */
|
|
29
54
|
readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
borderColor: string;
|
|
34
|
-
borderWidth: string;
|
|
35
|
-
borderRadius: string;
|
|
36
|
-
color: string;
|
|
37
|
-
shadow: string;
|
|
38
|
-
maxHeight: string;
|
|
39
|
-
positionMargin: string;
|
|
40
|
-
fontSize: string;
|
|
41
|
-
lineHeight: string;
|
|
42
|
-
enterDuration: string;
|
|
43
|
-
leaveDuration: string;
|
|
44
|
-
};
|
|
45
|
-
mask: {
|
|
46
|
-
background: string;
|
|
47
|
-
};
|
|
48
|
-
header: {
|
|
49
|
-
padding: string;
|
|
50
|
-
gap: string;
|
|
51
|
-
};
|
|
52
|
-
title: {
|
|
53
|
-
fontSize: string;
|
|
54
|
-
fontWeight: string;
|
|
55
|
-
};
|
|
56
|
-
subtitle: {
|
|
57
|
-
color: string;
|
|
58
|
-
fontSize: string;
|
|
59
|
-
};
|
|
60
|
-
content: {
|
|
61
|
-
padding: string;
|
|
62
|
-
lastPaddingBottom: string;
|
|
63
|
-
};
|
|
64
|
-
footer: {
|
|
65
|
-
padding: string;
|
|
66
|
-
gap: string;
|
|
67
|
-
};
|
|
68
|
-
focusRing: {
|
|
69
|
-
width: string;
|
|
70
|
-
color: string;
|
|
71
|
-
};
|
|
72
|
-
sm: {
|
|
73
|
-
width: string;
|
|
74
|
-
};
|
|
75
|
-
md: {
|
|
76
|
-
width: string;
|
|
77
|
-
};
|
|
78
|
-
lg: {
|
|
79
|
-
width: string;
|
|
80
|
-
};
|
|
81
|
-
xl: {
|
|
82
|
-
width: string;
|
|
83
|
-
};
|
|
84
|
-
drawer: {
|
|
85
|
-
sm: string;
|
|
86
|
-
md: string;
|
|
87
|
-
lg: string;
|
|
88
|
-
background: string;
|
|
89
|
-
dividerColor: string;
|
|
90
|
-
headerPadding: string;
|
|
91
|
-
titleFontSize: string;
|
|
92
|
-
contentPadding: string;
|
|
93
|
-
footerPadding: string;
|
|
94
|
-
};
|
|
95
|
-
}> | undefined>;
|
|
55
|
+
/** Design tokens of this drawer (`dialog`, drawer sizes under `drawer`) */
|
|
56
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraDialogTokens> | undefined>;
|
|
57
|
+
/** Removes the tectra styles */
|
|
96
58
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
59
|
+
/** The drawer opened */
|
|
97
60
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
61
|
+
/** The drawer closed */
|
|
98
62
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
99
63
|
readonly headerSlot: import("@angular/core").Signal<TxDrawerHeader | undefined>;
|
|
100
64
|
readonly footerSlot: import("@angular/core").Signal<TxDrawerFooter | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-drawer.d.ts","names":[],"sources":["../../../../packages/ui/drawer/src/drawer.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-drawer.d.ts","names":[],"sources":["../../../../packages/ui/drawer/src/drawer.component.ts"],"mappings":";;;;;;;qBAmCa;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAGA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBA0BA;UACH;UACA;UACA;UACA;;WAEC,iCAAO;;WACP,gCAAM;;WACN,kCAAQ,YAAA;;WACR,8BAAI,YAAA;;WACJ,+BAAK;;WACL,kCAAQ;;WACR,qCAAW;;WACX,uCAAa;;WACb,qCAAW;;WACX,mCAAS,YAAA;;WACT,sCAAY;;WACZ,mCAAS;;WACT,oCAAU;;WACV,4BAAE,YAAA,kBAAA;;WACF,kCAAQ;;WAER,gCAAM;;WACN,gCAAM;WAEN,oCAAU,OAAA;WACV,oCAAU,OAAA;mBACF;;EAmBjB;UAIQ;SAlDG,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;;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;IAAA"}
|