@daffodil/design 0.94.1-rc.0 → 0.95.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/README.md +1 -2
- package/accordion/src/accordion-theme.scss +4 -4
- package/article/README.md +4 -27
- package/article/src/article-theme.scss +14 -14
- package/badge/src/badge-theme.scss +0 -6
- package/button/README.md +0 -4
- package/button/src/button/basic/button-theme.scss +17 -42
- package/button/src/button/button-base.scss +12 -3
- package/button/src/button/flat/flat-theme.scss +14 -12
- package/button/src/button/icon/icon-theme.scss +19 -40
- package/button/src/button/stroked/stroked-theme.scss +22 -36
- package/card/src/card/stroked/stroked-theme.scss +1 -1
- package/card/src/card-base.scss +0 -1
- package/fesm2022/daffodil-design-accordion.mjs +285 -188
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +578 -340
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-badge.mjs +166 -84
- package/fesm2022/daffodil-design-badge.mjs.map +1 -1
- package/fesm2022/daffodil-design-beacon.mjs +109 -47
- package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +541 -408
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +349 -224
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +496 -327
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +373 -313
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +103 -60
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +441 -352
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +155 -57
- package/fesm2022/daffodil-design-form.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +349 -234
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-lite.mjs +60 -0
- package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
- package/fesm2022/daffodil-design-image.mjs +245 -107
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +217 -164
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +308 -170
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +525 -417
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +680 -450
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +175 -166
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +145 -68
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +376 -226
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +296 -192
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +382 -300
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +424 -364
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +874 -887
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +156 -99
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +176 -106
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +685 -427
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +251 -133
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-testing.mjs +4 -16
- package/fesm2022/daffodil-design-testing.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +170 -150
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +658 -481
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +456 -469
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +1628 -1650
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form-field/README.md +0 -4
- package/form-field/src/form-field-theme.scss +12 -4
- package/image/README.md +4 -0
- package/image-lite/README.md +58 -0
- package/image-lite/src/image-theme.scss +18 -0
- package/list/src/list-base.scss +3 -4
- package/list/src/list-theme.scss +6 -5
- package/media-gallery/README.md +1 -1
- package/media-gallery/src/media-gallery-theme.scss +3 -3
- package/menu/src/menu-theme.scss +6 -2
- package/notification/src/notification-theme.scss +10 -10
- package/package.json +1 -1
- package/scss/global.scss +17 -11
- package/scss/theme.scss +2 -18
- package/scss/theming/_get-palette.scss +0 -3
- package/scss/theming/_index.scss +0 -1
- package/scss/theming/_light-dark.scss +2 -2
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/scss/theming/create-theme/_create-theme.scss +2 -2
- package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
- package/scss/typography/_classes.scss +0 -6
- package/scss/typography/_index.scss +0 -1
- package/scss/typography/mixins/_sizes.scss +0 -1
- package/scss/typography/utilities/_variables.scss +3 -0
- package/select/src/select-theme.scss +10 -14
- package/switch/src/switch-theme.scss +2 -2
- package/tabs/src/tabs-theme.scss +4 -4
- package/types/daffodil-design-accordion.d.ts +92 -67
- package/types/daffodil-design-article.d.ts +49 -56
- package/types/daffodil-design-badge.d.ts +56 -33
- package/types/daffodil-design-beacon.d.ts +35 -14
- package/types/daffodil-design-breadcrumb.d.ts +89 -85
- package/types/daffodil-design-button.d.ts +128 -146
- package/types/daffodil-design-callout.d.ts +55 -39
- package/types/daffodil-design-card.d.ts +66 -56
- package/types/daffodil-design-checkbox.d.ts +211 -167
- package/types/daffodil-design-container.d.ts +17 -16
- package/types/daffodil-design-form-field.d.ts +273 -240
- package/types/daffodil-design-form.d.ts +21 -21
- package/types/daffodil-design-hero.d.ts +55 -39
- package/types/daffodil-design-image-lite.d.ts +17 -0
- package/types/daffodil-design-image.d.ts +89 -55
- package/types/daffodil-design-input.d.ts +86 -72
- package/types/daffodil-design-list.d.ts +49 -43
- package/types/daffodil-design-media-gallery.d.ts +176 -148
- package/types/daffodil-design-menu.d.ts +177 -169
- package/types/daffodil-design-modal.d.ts +205 -205
- package/types/daffodil-design-native-select.d.ts +94 -84
- package/types/daffodil-design-navbar.d.ts +34 -24
- package/types/daffodil-design-notification.d.ts +82 -67
- package/types/daffodil-design-paginator.d.ts +140 -118
- package/types/daffodil-design-progress-bar.d.ts +92 -74
- package/types/daffodil-design-radio.d.ts +183 -144
- package/types/daffodil-design-select.d.ts +207 -178
- package/types/daffodil-design-sidebar.d.ts +270 -253
- package/types/daffodil-design-spinner.d.ts +49 -36
- package/types/daffodil-design-switch.d.ts +77 -46
- package/types/daffodil-design-tabs.d.ts +248 -198
- package/types/daffodil-design-tag.d.ts +91 -56
- package/types/daffodil-design-testing.d.ts +1 -3
- package/types/daffodil-design-text-snippet.d.ts +48 -37
- package/types/daffodil-design-textarea.d.ts +88 -79
- package/types/daffodil-design-toast.d.ts +175 -183
- package/types/daffodil-design-tree.d.ts +186 -169
- package/types/daffodil-design-youtube-player.d.ts +56 -52
- package/types/daffodil-design.d.ts +614 -695
- package/button/src/button/raised/raised-theme.scss +0 -92
- package/button/src/button/underline/underline-theme.scss +0 -141
- package/fesm2022/daffodil-design-link-set.mjs +0 -160
- package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
- package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
- package/link-set/README.md +0 -86
- package/quantity-field/README.md +0 -63
- package/scss/theming/_configure-theme.scss +0 -120
- package/scss/typography/mixins/_font-weight.scss +0 -14
- package/types/daffodil-design-link-set.d.ts +0 -72
- package/types/daffodil-design-quantity-field.d.ts +0 -171
|
@@ -1,237 +1,237 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as i5 from '@fortawesome/angular-fontawesome';
|
|
15
|
-
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
16
|
-
|
|
1
|
+
import { ConfigurableFocusTrapFactory } from "@angular/cdk/a11y";
|
|
2
|
+
import * as i2 from "@angular/cdk/portal";
|
|
3
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, Type } from "@angular/core";
|
|
6
|
+
import * as i1$1 from "@daffodil/design";
|
|
7
|
+
import { DaffFocusStackService, DaffOpenable, DaffOpenableDirective } from "@daffodil/design";
|
|
8
|
+
import * as i3 from "@angular/cdk/overlay";
|
|
9
|
+
import { Overlay } from "@angular/cdk/overlay";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import * as i1 from "@angular/common";
|
|
12
|
+
import * as i4 from "@daffodil/design/button";
|
|
13
|
+
import * as i5 from "@fortawesome/angular-fontawesome";
|
|
17
14
|
/**
|
|
18
15
|
* Reference to modal instance.
|
|
19
16
|
*/
|
|
20
|
-
interface DaffModalRef<T> {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
export interface DaffModalRef<T> {
|
|
18
|
+
/**
|
|
19
|
+
* The component instance inside the modal.
|
|
20
|
+
*/
|
|
21
|
+
instance: T;
|
|
22
|
+
/**
|
|
23
|
+
* Closes the modal.
|
|
24
|
+
*/
|
|
25
|
+
close(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Emits when the modal close animation completes.
|
|
28
|
+
*/
|
|
29
|
+
afterClosed: Observable<boolean>;
|
|
33
30
|
}
|
|
34
|
-
|
|
35
31
|
type DaffModalVerticalPosition = 'top' | 'center';
|
|
36
32
|
interface DaffModalPosition {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The vertical position of the modal. Can be 'top' or 'center'.
|
|
35
|
+
*/
|
|
36
|
+
vertical?: DaffModalVerticalPosition;
|
|
37
|
+
/**
|
|
38
|
+
* Optional offset from the top edge. Defaults to `10rem`.
|
|
39
|
+
*/
|
|
40
|
+
offsetTop?: string;
|
|
45
41
|
}
|
|
46
42
|
interface DaffModalConfiguration {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
43
|
+
/**
|
|
44
|
+
* A hook for what to do when the backdrop behind a
|
|
45
|
+
* DaffModalComponent is interacted with.
|
|
46
|
+
*/
|
|
47
|
+
onBackdropClicked?: () => void;
|
|
48
|
+
/** Sets the `aria-labelledby` property on the modal. */
|
|
49
|
+
ariaLabelledBy?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The position of the modal. If not provided, defaults to centered horizontally and vertically.
|
|
52
|
+
* Horizontal position is always center.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Center (default)
|
|
57
|
+
* { vertical: 'center' }
|
|
58
|
+
*
|
|
59
|
+
* // Top with offset
|
|
60
|
+
* { vertical: 'top', offsetTop: '2rem' }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
position?: DaffModalPosition;
|
|
68
64
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffModalService>;
|
|
65
|
+
export declare class DaffModalService {
|
|
66
|
+
private overlay;
|
|
67
|
+
private _modals;
|
|
68
|
+
constructor(overlay: Overlay);
|
|
69
|
+
private defaultConfiguration;
|
|
70
|
+
private _attachModal;
|
|
71
|
+
private _attachModalContent;
|
|
72
|
+
private _createPositionStrategy;
|
|
73
|
+
private _createOverlayRef;
|
|
74
|
+
private _removeModal;
|
|
75
|
+
private _closeAllModals;
|
|
76
|
+
open<T>(component: Type<T>, configuration?: Partial<DaffModalConfiguration>): DaffModalRef<T>;
|
|
77
|
+
close(component: DaffModalComponent): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalService, never>;
|
|
79
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
85
80
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
81
|
+
export declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnDestroy, DaffOpenable {
|
|
82
|
+
private modalService;
|
|
83
|
+
private _focusTrapFactory;
|
|
84
|
+
private elementRef;
|
|
85
|
+
private openDirective;
|
|
86
|
+
private _focusStack;
|
|
87
|
+
private changeDetector;
|
|
88
|
+
/**
|
|
89
|
+
* @docs-private
|
|
90
|
+
*/
|
|
91
|
+
readonly closing: import("@angular/core").WritableSignal<boolean>;
|
|
92
|
+
private _ariaLabelledBy;
|
|
93
|
+
/**
|
|
94
|
+
* @docs-private
|
|
95
|
+
*
|
|
96
|
+
* By default, the `aria-labelledby` of the modal is set to the `id` of the modal title.
|
|
97
|
+
*/
|
|
98
|
+
get ariaLabelledBy(): string;
|
|
99
|
+
set ariaLabelledBy(value: string);
|
|
100
|
+
/**
|
|
101
|
+
* @docs-private
|
|
102
|
+
*
|
|
103
|
+
* The CDK Portal outlet used to portal content into the modal.
|
|
104
|
+
*/
|
|
105
|
+
private _portalOutlet;
|
|
106
|
+
/**
|
|
107
|
+
* Private subject for closed animation completion events.
|
|
108
|
+
*/
|
|
109
|
+
private _closedAnimationCompleted;
|
|
110
|
+
/**
|
|
111
|
+
* Observable that emits when the close animation is completed.
|
|
112
|
+
*/
|
|
113
|
+
readonly closedAnimationCompleted$: import("rxjs").Observable<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* @docs-private
|
|
116
|
+
*/
|
|
117
|
+
onEscape(): void;
|
|
118
|
+
private _focusTrap;
|
|
119
|
+
constructor(modalService: DaffModalService, _focusTrapFactory: ConfigurableFocusTrapFactory, elementRef: ElementRef<HTMLElement>, openDirective: DaffOpenableDirective, _focusStack: DaffFocusStackService, changeDetector: ChangeDetectorRef);
|
|
120
|
+
/**
|
|
121
|
+
* @docs-private
|
|
122
|
+
*/
|
|
123
|
+
ngAfterContentInit(): void;
|
|
124
|
+
/**
|
|
125
|
+
* @docs-private
|
|
126
|
+
*/
|
|
127
|
+
ngAfterViewInit(): void;
|
|
128
|
+
/**
|
|
129
|
+
* @docs-private
|
|
130
|
+
*
|
|
131
|
+
* Helper method to attach portable content to modal.
|
|
132
|
+
*/
|
|
133
|
+
attachContent(portal: ComponentPortal<any>): any;
|
|
134
|
+
/**
|
|
135
|
+
* Tracks the open state of the modal.
|
|
136
|
+
*/
|
|
137
|
+
get open(): import("@angular/core").ModelSignal<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* @docs-private
|
|
140
|
+
*
|
|
141
|
+
* Reveals the modal.
|
|
142
|
+
*/
|
|
143
|
+
reveal(): void;
|
|
144
|
+
/**
|
|
145
|
+
* @docs-private
|
|
146
|
+
*
|
|
147
|
+
* Hides the modal.
|
|
148
|
+
*/
|
|
149
|
+
hide(): void;
|
|
150
|
+
/**
|
|
151
|
+
* @docs-private
|
|
152
|
+
*
|
|
153
|
+
* Toggles the visibility of the modal.
|
|
154
|
+
*/
|
|
155
|
+
toggle(): void;
|
|
156
|
+
/**
|
|
157
|
+
* @docs-private
|
|
158
|
+
*/
|
|
159
|
+
ngOnDestroy(): void;
|
|
160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalComponent, never>;
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalComponent, "daff-modal", never, {}, {}, never, never, true, [{
|
|
162
|
+
directive: typeof i1$1.DaffOpenableDirective;
|
|
163
|
+
inputs: {};
|
|
164
|
+
outputs: {
|
|
165
|
+
"toggled": "toggled";
|
|
166
|
+
};
|
|
167
|
+
}]>;
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
169
|
+
export declare class DaffModalHeaderComponent {
|
|
170
|
+
faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
171
|
+
/**
|
|
172
|
+
* Whether or not a modal is dismissible.
|
|
173
|
+
*/
|
|
174
|
+
dismissible: boolean;
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalHeaderComponent, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalHeaderComponent, "daff-modal-header", never, {
|
|
177
|
+
"dismissible": {
|
|
178
|
+
"alias": "dismissible";
|
|
179
|
+
"required": false;
|
|
180
|
+
};
|
|
181
|
+
}, {}, never, ["[daffModalTitle]"], true, never>;
|
|
178
182
|
}
|
|
179
|
-
|
|
180
183
|
/**
|
|
181
184
|
* Title of a modal.
|
|
182
185
|
*/
|
|
183
|
-
declare class DaffModalTitleDirective {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
export declare class DaffModalTitleDirective {
|
|
187
|
+
private modal;
|
|
188
|
+
/**
|
|
189
|
+
* @docs-private
|
|
190
|
+
*/
|
|
191
|
+
_id: string;
|
|
192
|
+
constructor(modal: DaffModalComponent);
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalTitleDirective, [{
|
|
194
|
+
optional: true;
|
|
195
|
+
}]>;
|
|
196
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffModalTitleDirective, "[daffModalTitle]", never, {}, {}, never, never, true, never>;
|
|
192
197
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalContentComponent, "daff-modal-content", never, {}, {}, never, ["*"], true, never>;
|
|
198
|
+
export declare class DaffModalContentComponent {
|
|
199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalContentComponent, never>;
|
|
200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalContentComponent, "daff-modal-content", never, {}, {}, never, ["*"], true, never>;
|
|
197
201
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalActionsComponent, "daff-modal-actions", never, {}, {}, never, ["*"], true, never>;
|
|
202
|
+
export declare class DaffModalActionsComponent {
|
|
203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalActionsComponent, never>;
|
|
204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalActionsComponent, "daff-modal-actions", never, {}, {}, never, ["*"], true, never>;
|
|
202
205
|
}
|
|
203
|
-
|
|
204
206
|
/**
|
|
205
207
|
* The DaffModalCloseDirective is a helper directive that passes a click
|
|
206
208
|
* event to the button it's used with to close a modal. It needs to be
|
|
207
209
|
* implemented with the `<button>` HTML element to work. This helps to
|
|
208
210
|
* reduce code duplication.
|
|
209
211
|
*/
|
|
210
|
-
declare class DaffModalCloseDirective {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
export declare class DaffModalCloseDirective {
|
|
213
|
+
private modalService;
|
|
214
|
+
private modal;
|
|
215
|
+
constructor(modalService: DaffModalService, modal: DaffModalComponent);
|
|
216
|
+
/**
|
|
217
|
+
* @docs-private
|
|
218
|
+
*/
|
|
219
|
+
onClick(event: MouseEvent): void;
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalCloseDirective, [null, {
|
|
221
|
+
optional: true;
|
|
222
|
+
}]>;
|
|
223
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffModalCloseDirective, "button[daffModalClose]", never, {}, {}, never, never, true, never>;
|
|
220
224
|
}
|
|
221
|
-
|
|
222
225
|
/**
|
|
223
226
|
* @deprecated in favor of {@link DAFF_MODAL_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
|
224
227
|
*/
|
|
225
|
-
declare class DaffModalModule {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
export declare class DaffModalModule {
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalModule, never>;
|
|
230
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffModalModule, never, [typeof i1.CommonModule, typeof i2.PortalModule, typeof i3.OverlayModule, typeof i4.DaffButtonModule, typeof i5.FontAwesomeModule, typeof DaffModalComponent, typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective], [typeof DaffModalComponent, typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective]>;
|
|
231
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffModalModule>;
|
|
229
232
|
}
|
|
230
|
-
|
|
231
233
|
/**
|
|
232
234
|
* @docs-private
|
|
233
235
|
*/
|
|
234
|
-
declare const DAFF_MODAL_COMPONENTS: readonly [typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective];
|
|
235
|
-
|
|
236
|
-
export { DAFF_MODAL_COMPONENTS, DaffModalActionsComponent, DaffModalCloseDirective, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective };
|
|
237
|
-
export type { DaffModalRef };
|
|
236
|
+
export declare const DAFF_MODAL_COMPONENTS: readonly [typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective];
|
|
237
|
+
export {};
|
|
@@ -1,91 +1,101 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgControl } from
|
|
4
|
-
import { DaffFormFieldControl,
|
|
5
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ElementRef, OnInit } from "@angular/core";
|
|
3
|
+
import { NgControl } from "@angular/forms";
|
|
4
|
+
import { DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldControlTypesEnum } from "@daffodil/design/form-field";
|
|
6
5
|
/**
|
|
7
6
|
* DaffNativeSelectComponent provides the same functionality as a native `<select>` and contains custom styling and functionality.
|
|
8
7
|
*/
|
|
9
|
-
declare class DaffNativeSelectComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
8
|
+
export declare class DaffNativeSelectComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {
|
|
9
|
+
/**
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
ngControl: NgControl;
|
|
13
|
+
private _elementRef;
|
|
14
|
+
private formField;
|
|
15
|
+
/**
|
|
16
|
+
* @docs-private
|
|
17
|
+
*
|
|
18
|
+
* Implemented as part of DaffFormFieldControl.
|
|
19
|
+
*/
|
|
20
|
+
controlType: DaffFormFieldControlTypesEnum;
|
|
21
|
+
/**
|
|
22
|
+
* @docs-private
|
|
23
|
+
*
|
|
24
|
+
* Implemented as part of DaffFormFieldControl.
|
|
25
|
+
*/
|
|
26
|
+
focused: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @docs-private
|
|
29
|
+
*
|
|
30
|
+
* Implemented as part of DaffFormFieldControl.
|
|
31
|
+
*/
|
|
32
|
+
get _id(): string;
|
|
33
|
+
constructor(
|
|
34
|
+
/**
|
|
35
|
+
* @docs-private
|
|
36
|
+
*/
|
|
37
|
+
ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>, formField: DaffFormFieldComponent);
|
|
38
|
+
/**
|
|
39
|
+
* @docs-private
|
|
40
|
+
*/
|
|
41
|
+
get ariaDescribedBy(): string;
|
|
42
|
+
/**
|
|
43
|
+
* @docs-private
|
|
44
|
+
*
|
|
45
|
+
* Implemented as part of DaffFormFieldControl.
|
|
46
|
+
*/
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @docs-private
|
|
50
|
+
*/
|
|
51
|
+
get disabledAttribute(): boolean;
|
|
52
|
+
private _required;
|
|
53
|
+
/**
|
|
54
|
+
* @docs-private
|
|
55
|
+
*
|
|
56
|
+
* Implemented as part of DaffFormFieldControl.
|
|
57
|
+
*/
|
|
58
|
+
get required(): boolean;
|
|
59
|
+
set required(value: boolean);
|
|
60
|
+
/**
|
|
61
|
+
* @docs-private
|
|
62
|
+
*/
|
|
63
|
+
get requiredAttribute(): true;
|
|
64
|
+
focus(): void;
|
|
65
|
+
/**
|
|
66
|
+
* @docs-private
|
|
67
|
+
*/
|
|
68
|
+
_handleFocus(): void;
|
|
69
|
+
/**
|
|
70
|
+
* @docs-private
|
|
71
|
+
*/
|
|
72
|
+
_handleBlur(): void;
|
|
73
|
+
/** @docs-private */
|
|
74
|
+
ngOnInit(): void;
|
|
75
|
+
/**
|
|
76
|
+
* @docs-private
|
|
77
|
+
*/
|
|
78
|
+
get value(): string;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNativeSelectComponent, [{
|
|
80
|
+
optional: true;
|
|
81
|
+
self: true;
|
|
82
|
+
}, null, {
|
|
83
|
+
optional: true;
|
|
84
|
+
}]>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNativeSelectComponent, "select[daff-native-select]", never, {
|
|
86
|
+
"disabled": {
|
|
87
|
+
"alias": "disabled";
|
|
88
|
+
"required": false;
|
|
89
|
+
};
|
|
90
|
+
"required": {
|
|
91
|
+
"alias": "required";
|
|
92
|
+
"required": false;
|
|
93
|
+
};
|
|
94
|
+
}, {}, never, ["*"], true, never>;
|
|
95
|
+
static ngAcceptInputType_disabled: unknown;
|
|
96
|
+
static ngAcceptInputType_required: unknown;
|
|
84
97
|
}
|
|
85
|
-
|
|
86
98
|
/**
|
|
87
99
|
* @docs-private
|
|
88
100
|
*/
|
|
89
|
-
declare const DAFF_NATIVE_SELECT_COMPONENTS: readonly [typeof DaffNativeSelectComponent];
|
|
90
|
-
|
|
91
|
-
export { DAFF_NATIVE_SELECT_COMPONENTS, DaffNativeSelectComponent };
|
|
101
|
+
export declare const DAFF_NATIVE_SELECT_COMPONENTS: readonly [typeof DaffNativeSelectComponent];
|