@daffodil/design 0.92.3 → 0.93.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/accordion/README.md +4 -4
- package/breadcrumb/README.md +13 -35
- package/button/README.md +28 -50
- package/card/README.md +8 -22
- package/card/src/card/stroked/stroked-theme.scss +8 -1
- package/card/src/card-base-theme.scss +12 -1
- package/container/README.md +4 -26
- package/fesm2022/daffodil-design-accordion.mjs +15 -15
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +30 -30
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +20 -20
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +37 -49
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +22 -22
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +31 -31
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +13 -13
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +7 -7
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +13 -12
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +9 -9
- package/fesm2022/daffodil-design-form.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +22 -22
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +8 -8
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +12 -11
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +16 -16
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +20 -17
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +7 -7
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +13 -13
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +20 -20
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +32 -26
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +5 -3
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +9 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +16 -16
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +8 -8
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +13 -13
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +16 -16
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +11 -11
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +35 -29
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +7 -7
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +3 -3
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +17 -25
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +20 -20
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-testing.mjs +19 -0
- package/fesm2022/daffodil-design-testing.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet.mjs +3 -3
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +3 -3
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +21 -21
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +27 -25
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +22 -11
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +110 -149
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/README.md +15 -6
- package/hero/README.md +14 -49
- package/image/README.md +6 -29
- package/input/README.md +8 -34
- package/list/README.md +29 -55
- package/list/src/list-theme.scss +16 -2
- package/media-gallery/README.md +36 -43
- package/menu/README.md +24 -55
- package/menu/src/menu-theme.scss +12 -2
- package/modal/README.md +15 -45
- package/native-select/README.md +8 -6
- package/navbar/README.md +18 -27
- package/notification/README.md +14 -49
- package/package.json +1 -1
- package/paginator/README.md +11 -31
- package/paginator/src/paginator-theme.scss +16 -2
- package/progress-bar/README.md +14 -41
- package/scss/global.scss +21 -2
- package/select/README.md +5 -6
- package/select/src/select-theme.scss +10 -2
- package/sidebar/README.md +1 -1
- package/spinner/README.md +15 -9
- package/switch/README.md +17 -6
- package/tabs/README.md +39 -39
- package/tag/README.md +24 -28
- package/textarea/README.md +9 -7
- package/toast/README.md +55 -52
- package/tree/README.md +12 -43
- package/tree/src/tree-theme.scss +8 -4
- package/{accordion/index.d.ts → types/daffodil-design-accordion.d.ts} +1 -1
- package/{button/index.d.ts → types/daffodil-design-button.d.ts} +7 -8
- package/{input/index.d.ts → types/daffodil-design-input.d.ts} +4 -1
- package/{list/index.d.ts → types/daffodil-design-list.d.ts} +4 -1
- package/{menu/index.d.ts → types/daffodil-design-menu.d.ts} +3 -3
- package/{modal/index.d.ts → types/daffodil-design-modal.d.ts} +11 -5
- package/{native-select/index.d.ts → types/daffodil-design-native-select.d.ts} +3 -1
- package/{sidebar/index.d.ts → types/daffodil-design-sidebar.d.ts} +9 -3
- package/{tabs/index.d.ts → types/daffodil-design-tabs.d.ts} +0 -6
- package/{tag/index.d.ts → types/daffodil-design-tag.d.ts} +9 -8
- package/types/daffodil-design-testing.d.ts +11 -0
- package/{tree/index.d.ts → types/daffodil-design-tree.d.ts} +2 -0
- package/{youtube-player/index.d.ts → types/daffodil-design-youtube-player.d.ts} +15 -0
- package/{index.d.ts → types/daffodil-design.d.ts} +17 -64
- /package/{article/index.d.ts → types/daffodil-design-article.d.ts} +0 -0
- /package/{breadcrumb/index.d.ts → types/daffodil-design-breadcrumb.d.ts} +0 -0
- /package/{callout/index.d.ts → types/daffodil-design-callout.d.ts} +0 -0
- /package/{card/index.d.ts → types/daffodil-design-card.d.ts} +0 -0
- /package/{checkbox/index.d.ts → types/daffodil-design-checkbox.d.ts} +0 -0
- /package/{container/index.d.ts → types/daffodil-design-container.d.ts} +0 -0
- /package/{form-field/index.d.ts → types/daffodil-design-form-field.d.ts} +0 -0
- /package/{form/index.d.ts → types/daffodil-design-form.d.ts} +0 -0
- /package/{hero/index.d.ts → types/daffodil-design-hero.d.ts} +0 -0
- /package/{image/index.d.ts → types/daffodil-design-image.d.ts} +0 -0
- /package/{link-set/index.d.ts → types/daffodil-design-link-set.d.ts} +0 -0
- /package/{loading-icon/index.d.ts → types/daffodil-design-loading-icon.d.ts} +0 -0
- /package/{media-gallery/index.d.ts → types/daffodil-design-media-gallery.d.ts} +0 -0
- /package/{navbar/index.d.ts → types/daffodil-design-navbar.d.ts} +0 -0
- /package/{notification/index.d.ts → types/daffodil-design-notification.d.ts} +0 -0
- /package/{paginator/index.d.ts → types/daffodil-design-paginator.d.ts} +0 -0
- /package/{progress-bar/index.d.ts → types/daffodil-design-progress-bar.d.ts} +0 -0
- /package/{quantity-field/index.d.ts → types/daffodil-design-quantity-field.d.ts} +0 -0
- /package/{radio/index.d.ts → types/daffodil-design-radio.d.ts} +0 -0
- /package/{select/index.d.ts → types/daffodil-design-select.d.ts} +0 -0
- /package/{spinner/index.d.ts → types/daffodil-design-spinner.d.ts} +0 -0
- /package/{switch/index.d.ts → types/daffodil-design-switch.d.ts} +0 -0
- /package/{text-snippet/index.d.ts → types/daffodil-design-text-snippet.d.ts} +0 -0
- /package/{textarea/index.d.ts → types/daffodil-design-textarea.d.ts} +0 -0
- /package/{toast/index.d.ts → types/daffodil-design-toast.d.ts} +0 -0
package/tree/src/tree-theme.scss
CHANGED
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
background-color: $base;
|
|
16
16
|
color: daff-color($neutral, 90);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@media (hover: hover) {
|
|
19
|
+
&:hover {
|
|
20
|
+
background-color: daff-color($neutral, 20);
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
&::after {
|
|
@@ -37,8 +39,10 @@
|
|
|
37
39
|
background-color: $base;
|
|
38
40
|
color: daff-color($neutral, 20);
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
&:hover {
|
|
44
|
+
background-color: daff-color($neutral, 90);
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
&::after {
|
|
@@ -33,12 +33,11 @@ declare class DaffButtonBaseDirective implements DaffDisableable {
|
|
|
33
33
|
/**
|
|
34
34
|
* Sets the tabindex.
|
|
35
35
|
*/
|
|
36
|
-
tabindex: number
|
|
36
|
+
tabindex: i0.InputSignal<number>;
|
|
37
37
|
/**
|
|
38
38
|
* The disabled state of the button.
|
|
39
39
|
*/
|
|
40
|
-
get disabled():
|
|
41
|
-
set disabled(value: any);
|
|
40
|
+
get disabled(): boolean;
|
|
42
41
|
/**
|
|
43
42
|
* @docs-private
|
|
44
43
|
*
|
|
@@ -52,7 +51,7 @@ declare class DaffButtonBaseDirective implements DaffDisableable {
|
|
|
52
51
|
*/
|
|
53
52
|
get buttonSize(): _daffodil_design_button.DaffButtonSize;
|
|
54
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffDisableableDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.DaffLoadableDirective; inputs: { "loading": "loading"; }; outputs: {}; }]>;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
/**
|
|
@@ -77,9 +76,9 @@ declare class DaffButtonComponent extends DaffButtonBaseDirective {
|
|
|
77
76
|
/**
|
|
78
77
|
* Whether or not the button displays a shadow.
|
|
79
78
|
*/
|
|
80
|
-
elevated: boolean
|
|
79
|
+
elevated: i0.InputSignal<boolean>;
|
|
81
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonComponent, never>;
|
|
82
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffButtonComponent, "button[daff-button],a[daff-button]", never, { "elevated": { "alias": "elevated"; "required": false; }; }, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffButtonComponent, "button[daff-button],a[daff-button]", never, { "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; }, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/**
|
|
@@ -175,9 +174,9 @@ declare class DaffStrokedButtonComponent extends DaffButtonBaseDirective {
|
|
|
175
174
|
/**
|
|
176
175
|
* Whether or not the button displays a shadow.
|
|
177
176
|
*/
|
|
178
|
-
elevated: boolean
|
|
177
|
+
elevated: i0.InputSignal<boolean>;
|
|
179
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedButtonComponent, never>;
|
|
180
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedButtonComponent, "button[daff-stroked-button],a[daff-stroked-button]", never, { "elevated": { "alias": "elevated"; "required": false; }; }, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedButtonComponent, "button[daff-stroked-button],a[daff-stroked-button]", never, { "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; }, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
/**
|
|
@@ -19,7 +19,10 @@ declare class DaffInputComponent extends DaffFormFieldControl<string> implements
|
|
|
19
19
|
* Implemented as part of DaffFormFieldControl.
|
|
20
20
|
*/
|
|
21
21
|
focused: boolean;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @docs-private
|
|
24
|
+
*/
|
|
25
|
+
get _id(): string;
|
|
23
26
|
/**
|
|
24
27
|
* @docs-private
|
|
25
28
|
*
|
|
@@ -54,7 +54,10 @@ declare class DaffListItemComponent {
|
|
|
54
54
|
*/
|
|
55
55
|
_prefix: DaffPrefixDirective;
|
|
56
56
|
constructor(elementRef: ElementRef);
|
|
57
|
-
|
|
57
|
+
/**
|
|
58
|
+
* @docs-private
|
|
59
|
+
*/
|
|
60
|
+
get _isAnchor(): boolean;
|
|
58
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffListItemComponent, never>;
|
|
59
62
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffListItemComponent, "daff-list-item,a[daff-list-item]", never, { "active": { "alias": "active"; "required": false; }; }, {}, ["_prefix"], ["[daffPrefix]", "*"], true, never>;
|
|
60
63
|
}
|
|
@@ -56,8 +56,8 @@ declare class DaffMenuActivatorDirective implements OnDestroy {
|
|
|
56
56
|
private viewContainerRef;
|
|
57
57
|
private cdRef;
|
|
58
58
|
private _destroyed$;
|
|
59
|
-
private _open;
|
|
60
59
|
private _defaultMenuId;
|
|
60
|
+
protected _open: boolean;
|
|
61
61
|
readonly isOpen: i0.WritableSignal<boolean>;
|
|
62
62
|
/**
|
|
63
63
|
* The menu content to display when activated.
|
|
@@ -71,7 +71,7 @@ declare class DaffMenuActivatorDirective implements OnDestroy {
|
|
|
71
71
|
/**
|
|
72
72
|
* The resolved menu ID.
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
protected menuId: i0.Signal<string>;
|
|
75
75
|
/**
|
|
76
76
|
* @docs-private
|
|
77
77
|
*/
|
|
@@ -139,7 +139,7 @@ declare class DaffMenuComponent implements AfterContentInit, AfterViewInit {
|
|
|
139
139
|
/**
|
|
140
140
|
* @docs-private
|
|
141
141
|
*
|
|
142
|
-
*
|
|
142
|
+
* Handles keyboard navigation.
|
|
143
143
|
*/
|
|
144
144
|
handleKeydown(event: KeyboardEvent): void;
|
|
145
145
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type, AfterContentInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
5
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
4
6
|
import * as i2 from '@angular/cdk/portal';
|
|
5
7
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
6
|
-
import * as i0 from '@angular/core';
|
|
7
|
-
import { Type, AfterContentInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
8
8
|
import * as i1 from '@daffodil/design';
|
|
9
9
|
import { DaffOpenable, DaffOpenableDirective, DaffFocusStackService } from '@daffodil/design';
|
|
10
10
|
import * as i3 from '@angular/cdk/overlay';
|
|
@@ -91,7 +91,10 @@ declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnD
|
|
|
91
91
|
private openDirective;
|
|
92
92
|
private _focusStack;
|
|
93
93
|
private changeDetector;
|
|
94
|
-
|
|
94
|
+
/**
|
|
95
|
+
* @docs-private
|
|
96
|
+
*/
|
|
97
|
+
readonly closing: i0.WritableSignal<boolean>;
|
|
95
98
|
private _ariaLabelledBy;
|
|
96
99
|
/**
|
|
97
100
|
* @docs-private
|
|
@@ -137,7 +140,7 @@ declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnD
|
|
|
137
140
|
/**
|
|
138
141
|
* Tracks the open state of the modal.
|
|
139
142
|
*/
|
|
140
|
-
get open(): boolean
|
|
143
|
+
get open(): i0.ModelSignal<boolean>;
|
|
141
144
|
/**
|
|
142
145
|
* @docs-private
|
|
143
146
|
*
|
|
@@ -179,7 +182,10 @@ declare class DaffModalHeaderComponent {
|
|
|
179
182
|
*/
|
|
180
183
|
declare class DaffModalTitleDirective {
|
|
181
184
|
private modal;
|
|
182
|
-
|
|
185
|
+
/**
|
|
186
|
+
* @docs-private
|
|
187
|
+
*/
|
|
188
|
+
_id: string;
|
|
183
189
|
constructor(modal: DaffModalComponent);
|
|
184
190
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalTitleDirective, [{ optional: true; }]>;
|
|
185
191
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffModalTitleDirective, "[daffModalTitle]", never, {}, {}, never, never, true, never>;
|
|
@@ -26,9 +26,11 @@ declare class DaffNativeSelectComponent extends DaffFormFieldControl<string> imp
|
|
|
26
26
|
*/
|
|
27
27
|
focused: boolean;
|
|
28
28
|
/**
|
|
29
|
+
* @docs-private
|
|
30
|
+
*
|
|
29
31
|
* Implemented as part of DaffFormFieldControl.
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
get _id(): string;
|
|
32
34
|
constructor(
|
|
33
35
|
/**
|
|
34
36
|
* @docs-private
|
|
@@ -94,7 +94,7 @@ declare class DaffSidebarComponent implements DaffOpenable {
|
|
|
94
94
|
/**
|
|
95
95
|
* @docs-private
|
|
96
96
|
*/
|
|
97
|
-
get open(): boolean
|
|
97
|
+
get open(): i0.ModelSignal<boolean>;
|
|
98
98
|
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusTrapFactory: ConfigurableFocusTrapFactory, _focusStack: DaffFocusStackService, openDirective: DaffOpenableDirective, _doc: any);
|
|
99
99
|
private _focusTrap;
|
|
100
100
|
/**
|
|
@@ -207,8 +207,14 @@ declare class DaffSidebarViewportComponent implements AfterContentChecked, OnDes
|
|
|
207
207
|
* right when there are child sidebars.
|
|
208
208
|
*/
|
|
209
209
|
private _shift;
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
/**
|
|
211
|
+
* @docs-private
|
|
212
|
+
*/
|
|
213
|
+
_isPaddedLeft: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* @docs-private
|
|
216
|
+
*/
|
|
217
|
+
_isPaddedRight: boolean;
|
|
212
218
|
/**
|
|
213
219
|
* @docs-private
|
|
214
220
|
*
|
|
@@ -176,12 +176,6 @@ declare class DaffTabsComponent implements AfterContentInit, OnInit {
|
|
|
176
176
|
* The tab that is selected on initial load. If it's not used, the first tab in the tablist will be selected by default.
|
|
177
177
|
*/
|
|
178
178
|
initiallySelected: string;
|
|
179
|
-
/**
|
|
180
|
-
* @docs-private
|
|
181
|
-
*
|
|
182
|
-
* aria-label for the tab.
|
|
183
|
-
*/
|
|
184
|
-
private externalAriaLabel;
|
|
185
179
|
/**
|
|
186
180
|
* `aria-label` to label the tablist.
|
|
187
181
|
*/
|
|
@@ -2,7 +2,7 @@ import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter } from '@angular/core';
|
|
4
4
|
import * as i1 from '@daffodil/design';
|
|
5
|
-
import { DaffSizableDirective, DaffSizeSmallType, DaffSizeMediumType, DaffSizeLargeType, DaffPrefixDirective } from '@daffodil/design';
|
|
5
|
+
import { DaffSizableDirective, DaffSizeSmallType, DaffSizeMediumType, DaffSizeLargeType, DaffDisableable, DaffPrefixDirective, DaffDisableableDirective } from '@daffodil/design';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The size types that the DaffTagComponent can implement.
|
|
@@ -24,8 +24,9 @@ declare class DaffTagSizableDirective extends DaffSizableDirective<DaffTagSize>
|
|
|
24
24
|
* </daff-tag>
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
declare class DaffTagComponent {
|
|
27
|
+
declare class DaffTagComponent implements DaffDisableable {
|
|
28
28
|
private size;
|
|
29
|
+
private disabledDirective;
|
|
29
30
|
/**
|
|
30
31
|
* @docs-private
|
|
31
32
|
*/
|
|
@@ -34,12 +35,12 @@ declare class DaffTagComponent {
|
|
|
34
35
|
* @docs-private
|
|
35
36
|
*/
|
|
36
37
|
_prefix: DaffPrefixDirective;
|
|
37
|
-
private _disabled;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* @docs-private
|
|
40
|
+
*
|
|
41
|
+
* Internal function to access the disabled property of the DaffDisableableDirective.
|
|
40
42
|
*/
|
|
41
|
-
get disabled():
|
|
42
|
-
set disabled(value: any);
|
|
43
|
+
get disabled(): boolean;
|
|
43
44
|
private _dismissible;
|
|
44
45
|
/** Whether the tag can be dismissed by the user.
|
|
45
46
|
* Displays a close icon if `true`.
|
|
@@ -56,9 +57,9 @@ declare class DaffTagComponent {
|
|
|
56
57
|
* Internal handler for the close icon click.
|
|
57
58
|
*/
|
|
58
59
|
onCloseTag(event: Event): void;
|
|
59
|
-
constructor(size: DaffTagSizableDirective);
|
|
60
|
+
constructor(size: DaffTagSizableDirective, disabledDirective: DaffDisableableDirective);
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTagComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTagComponent, "daff-tag", never, { "
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTagComponent, "daff-tag", never, { "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeTag": "closeTag"; }, ["_prefix"], ["[daffPrefix]", "*"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof DaffTagSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffDisableableDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replaces the element's native focus/blur methods with ones that dispatch the corresponding events directly,
|
|
3
|
+
* so tests do not depend on the document actually having focus. Chrome only
|
|
4
|
+
* moves `document.activeElement` without firing focus events when the document
|
|
5
|
+
* is unfocused, which makes native-focus-driven tests order-dependent.
|
|
6
|
+
*
|
|
7
|
+
* This originally comes from https://github.com/angular/components/blob/7d09f9153fabfe4cdd13a096d9e6d43f472812e5/src/cdk/testing/testbed/fake-events/element-focus.ts#L30
|
|
8
|
+
*/
|
|
9
|
+
declare function patchElementFocus(element: HTMLElement): void;
|
|
10
|
+
|
|
11
|
+
export { patchElementFocus };
|
|
@@ -193,6 +193,8 @@ declare class DaffTreeItemDirective {
|
|
|
193
193
|
/**
|
|
194
194
|
* Accessibility property, notifying users about whether
|
|
195
195
|
* or not the tree item is open.
|
|
196
|
+
*
|
|
197
|
+
* @docs-private
|
|
196
198
|
*/
|
|
197
199
|
protected readonly ariaExpanded: _angular_core.Signal<"true" | "false">;
|
|
198
200
|
constructor();
|
|
@@ -4,12 +4,24 @@ import { SafeUrl, DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
|
4
4
|
|
|
5
5
|
declare class DaffYoutubePlayerComponent implements OnInit {
|
|
6
6
|
private sanitizer;
|
|
7
|
+
/**
|
|
8
|
+
* The URL of the YouTube video.
|
|
9
|
+
*/
|
|
7
10
|
src: SafeUrl;
|
|
11
|
+
/**
|
|
12
|
+
* The title of the YouTube video.
|
|
13
|
+
*/
|
|
8
14
|
title: string;
|
|
9
15
|
private _width;
|
|
16
|
+
/**
|
|
17
|
+
* The width of the player.
|
|
18
|
+
*/
|
|
10
19
|
get width(): number;
|
|
11
20
|
set width(value: number);
|
|
12
21
|
private _height;
|
|
22
|
+
/**
|
|
23
|
+
* The height of the player.
|
|
24
|
+
*/
|
|
13
25
|
get height(): number;
|
|
14
26
|
set height(value: number);
|
|
15
27
|
constructor(sanitizer: DomSanitizer);
|
|
@@ -17,6 +29,9 @@ declare class DaffYoutubePlayerComponent implements OnInit {
|
|
|
17
29
|
* @docs-private
|
|
18
30
|
*/
|
|
19
31
|
ngOnInit(): void;
|
|
32
|
+
/**
|
|
33
|
+
* @docs-private
|
|
34
|
+
*/
|
|
20
35
|
get _aspectRatio(): SafeStyle;
|
|
21
36
|
/**
|
|
22
37
|
* @docs-private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnInit, SimpleChanges, InjectionToken, Type, EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, SimpleChanges, InjectionToken, Type, Signal, EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { DaffPersistenceService } from '@daffodil/core';
|
|
@@ -316,6 +316,8 @@ interface DaffTextAlignable {
|
|
|
316
316
|
*/
|
|
317
317
|
type DaffTextAlignment = 'left' | 'center' | 'right';
|
|
318
318
|
/**
|
|
319
|
+
* @deprecated Deprecated in version 0.93.0. Will be removed in version 0.96.0.
|
|
320
|
+
*
|
|
319
321
|
* This enum will be removed from the public api in v1.0.0.
|
|
320
322
|
*/
|
|
321
323
|
declare enum DaffTextAlignmentEnum {
|
|
@@ -565,23 +567,25 @@ declare class DaffFocusStackService {
|
|
|
565
567
|
}
|
|
566
568
|
|
|
567
569
|
/**
|
|
568
|
-
*
|
|
570
|
+
* @deprecated Deprecated in version 0.92.1. Will be removed in version 1.0.0.
|
|
569
571
|
*/
|
|
570
572
|
interface DaffSizable<T extends DaffSizeAllType> {
|
|
571
573
|
size: T;
|
|
572
574
|
}
|
|
573
|
-
/**
|
|
574
|
-
* The possible types that can be passed to a component that implements DaffSizable
|
|
575
|
-
*/
|
|
576
575
|
type DaffSizeXSmallType = 'xs';
|
|
577
576
|
type DaffSizeSmallType = 'sm';
|
|
578
577
|
type DaffSizeMediumType = 'md';
|
|
579
578
|
type DaffSizeLargeType = 'lg';
|
|
580
579
|
type DaffSizeXLargeType = 'xl';
|
|
581
580
|
/**
|
|
582
|
-
*
|
|
581
|
+
* All available sizes.
|
|
583
582
|
*/
|
|
584
583
|
type DaffSizeAllType = DaffSizeXSmallType | DaffSizeSmallType | DaffSizeMediumType | DaffSizeLargeType | DaffSizeXLargeType;
|
|
584
|
+
/**
|
|
585
|
+
* @deprecated Deprecated in version 0.93.0. Will be removed in version 0.96.0.
|
|
586
|
+
*
|
|
587
|
+
* This enum will be removed from the public api in v1.0.0.
|
|
588
|
+
*/
|
|
585
589
|
declare enum DaffSizableEnum {
|
|
586
590
|
XSmall = "xs",
|
|
587
591
|
Small = "sm",
|
|
@@ -591,68 +595,15 @@ declare enum DaffSizableEnum {
|
|
|
591
595
|
}
|
|
592
596
|
|
|
593
597
|
/**
|
|
594
|
-
* `DaffSizableDirective`
|
|
595
|
-
* CSS classes based on the specified size.
|
|
596
|
-
*
|
|
597
|
-
* @example Implementing it as an attribute directive
|
|
598
|
-
*
|
|
599
|
-
* ```html
|
|
600
|
-
* <div daffSizable [size]="small">Sized content</div>
|
|
601
|
-
* ```
|
|
602
|
-
* In this example, the `daff-small` class is applied to the `div` element, allowing you to
|
|
603
|
-
* use the class to style the `div`.
|
|
604
|
-
*
|
|
605
|
-
* @example Implementing it as an Angular host directive
|
|
606
|
-
*
|
|
607
|
-
* ```ts
|
|
608
|
-
* @Component({
|
|
609
|
-
* standalone: true,
|
|
610
|
-
* selector: 'custom-component',
|
|
611
|
-
* template: 'custom-component.html',
|
|
612
|
-
* hostDirectives: [
|
|
613
|
-
* {
|
|
614
|
-
* directive: DaffSizableDirective,
|
|
615
|
-
* inputs: ['size'],
|
|
616
|
-
* },
|
|
617
|
-
* ],
|
|
618
|
-
* })
|
|
619
|
-
* export class CustomComponent { }
|
|
620
|
-
* ```
|
|
621
|
-
*
|
|
622
|
-
* ```scss
|
|
623
|
-
* :host {
|
|
624
|
-
* &.daff-sm {
|
|
625
|
-
* width: 24px;
|
|
626
|
-
* }
|
|
627
|
-
*
|
|
628
|
-
* &.daff-md {
|
|
629
|
-
* width: 32px;
|
|
630
|
-
* }
|
|
631
|
-
* }
|
|
632
|
-
* ```
|
|
633
|
-
*
|
|
634
|
-
* The directive applies the following CSS classes to the component based on the size:
|
|
635
|
-
*
|
|
636
|
-
* - `daff-xs`: Applied when the size is `xs`.
|
|
637
|
-
* - `daff-sm`: Applied when the size is `sm`.
|
|
638
|
-
* - `daff-md`: Applied when the size is `md`.
|
|
639
|
-
* - `daff-lg`: Applied when the size is `lg`.
|
|
640
|
-
* - `daff-xl`: Applied when the size is `xl`.
|
|
598
|
+
* `DaffSizableDirective` enforces consistent use of sizes across components.
|
|
641
599
|
*/
|
|
642
|
-
declare class DaffSizableDirective<T extends DaffSizeAllType> implements
|
|
600
|
+
declare class DaffSizableDirective<T extends DaffSizeAllType> implements OnChanges, OnInit {
|
|
643
601
|
/**
|
|
644
602
|
* The size of the component.
|
|
645
603
|
*/
|
|
646
604
|
size: T;
|
|
647
605
|
/**
|
|
648
606
|
* Sets a default size.
|
|
649
|
-
*
|
|
650
|
-
* @example
|
|
651
|
-
* ```ts
|
|
652
|
-
* constructor(private sizableDirective: DaffSizableDirective) {
|
|
653
|
-
* this.sizableDirective.defaultSize = 'md';
|
|
654
|
-
* }
|
|
655
|
-
* ```
|
|
656
607
|
*/
|
|
657
608
|
defaultSize: T;
|
|
658
609
|
/**
|
|
@@ -672,7 +623,7 @@ declare class DaffSizableDirective<T extends DaffSizeAllType> implements DaffSiz
|
|
|
672
623
|
*/
|
|
673
624
|
interface DaffOpenable {
|
|
674
625
|
/** Whether a component is open or not */
|
|
675
|
-
open: boolean
|
|
626
|
+
open: Signal<boolean>;
|
|
676
627
|
/** Reveal the component */
|
|
677
628
|
reveal: () => void;
|
|
678
629
|
/** Hide the component */
|
|
@@ -728,7 +679,7 @@ interface DaffOpenable {
|
|
|
728
679
|
*/
|
|
729
680
|
declare class DaffOpenableDirective implements DaffOpenable, OnChanges {
|
|
730
681
|
/** Controls whether the component is open. */
|
|
731
|
-
open: boolean
|
|
682
|
+
open: i0.ModelSignal<boolean>;
|
|
732
683
|
private _setOpen;
|
|
733
684
|
/** Whether or not a component should handle state
|
|
734
685
|
*
|
|
@@ -761,7 +712,7 @@ declare class DaffOpenableDirective implements DaffOpenable, OnChanges {
|
|
|
761
712
|
*/
|
|
762
713
|
ngOnChanges(changes: SimpleChanges): void;
|
|
763
714
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOpenableDirective, never>;
|
|
764
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffOpenableDirective, "[daffOpenable]", never, { "open": { "alias": "open"; "required": false; }; }, { "toggled": "toggled"; }, never, never, true, never>;
|
|
715
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffOpenableDirective, "[daffOpenable]", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "toggled": "toggled"; }, never, never, true, never>;
|
|
765
716
|
}
|
|
766
717
|
|
|
767
718
|
/**
|
|
@@ -777,6 +728,8 @@ interface DaffOrientable {
|
|
|
777
728
|
*/
|
|
778
729
|
type DaffOrientation = 'horizontal' | 'vertical';
|
|
779
730
|
/**
|
|
731
|
+
* @deprecated Deprecated in version 0.93.0. Will be removed in version 0.96.0.
|
|
732
|
+
*
|
|
780
733
|
* This enum will be removed from the public api in v1.0.0.
|
|
781
734
|
*/
|
|
782
735
|
declare enum DaffOrientationEnum {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|