@daffodil/design 0.85.0 → 0.86.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/atoms/form/error-message/error-message.component.d.ts +6 -0
- package/atoms/form/form-field/form-field/form-field.component.d.ts +83 -13
- package/atoms/form/form-field/form-field-control.d.ts +2 -0
- package/atoms/form/form-field/form-field.d.ts +2 -1
- package/atoms/form/form-field/label/label.directive.d.ts +5 -0
- package/atoms/form/form-field/public_api.d.ts +1 -0
- package/atoms/form/form-label/form-label.directive.d.ts +3 -0
- package/atoms/form/hint/hint.component.d.ts +1 -1
- package/button/README.md +3 -3
- package/button/button/button-base.directive.d.ts +1 -2
- package/button/src/button/button-base.scss +0 -18
- package/core/compactable/compactable.directive.d.ts +3 -0
- package/core/openable/openable.directive.d.ts +1 -1
- package/core/selectable/selectable.directive.d.ts +3 -1
- package/core/sizable/sizable.directive.d.ts +2 -2
- package/core/skeletonable/public_api.d.ts +0 -1
- package/core/skeletonable/skeletonable.directive.d.ts +3 -0
- package/core/text-alignable/text-alignable.directive.d.ts +9 -5
- package/fesm2022/daffodil-design-article.mjs +2 -2
- package/fesm2022/daffodil-design-breadcrumb.mjs +2 -2
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +12 -12
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +15 -39
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +2 -2
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +10 -10
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +48 -5
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +2 -2
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +4 -4
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +0 -59
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +52 -40
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +228 -98
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/input/input.component.d.ts +21 -5
- package/package.json +1 -1
- package/scss/state/skeleton/_mixins.scss +4 -1
- package/scss/theming/contrast/luminance/luminance.scss +3 -3
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +7 -2
- package/toast/README.md +21 -1
- package/toast/examples/public_api.d.ts +1 -2
- package/toast/helpers/toast-position.d.ts +8 -0
- package/toast/interfaces/toast-options.d.ts +19 -0
- package/toast/interfaces/toast.d.ts +1 -1
- package/toast/public_api.d.ts +2 -2
- package/toast/service/position-strategy.d.ts +1 -1
- package/toast/service/position.service.d.ts +1 -1
- package/toast/service/toast.service.d.ts +1 -1
- package/toast/toast/toast-provider.d.ts +16 -4
- package/toast/toast/toast-template.component.d.ts +1 -1
- package/core/skeletonable/skeletonable.d.ts +0 -6
- package/toast/examples/toast-positions/toast-positions.component.d.ts +0 -20
- package/toast/options/daff-toast-options.d.ts +0 -14
@@ -4,6 +4,12 @@ export declare class DaffErrorMessageComponent {
|
|
4
4
|
* @docs-private
|
5
5
|
*/
|
6
6
|
class: boolean;
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*
|
10
|
+
* Sets the aria-live of an error message to polite.
|
11
|
+
*/
|
12
|
+
ariaLive: string;
|
7
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageComponent, never>;
|
8
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"], true, never>;
|
9
15
|
}
|
@@ -1,26 +1,48 @@
|
|
1
|
-
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef } from '@angular/core';
|
1
|
+
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef, AfterViewInit } from '@angular/core';
|
2
2
|
import { DaffPrefixDirective } from '../../../../core/prefix-suffix/prefix.directive';
|
3
3
|
import { DaffSuffixDirective } from '../../../../core/prefix-suffix/suffix.directive';
|
4
|
+
import { DaffFormLabelDirective } from '../../form-label/form-label.directive';
|
4
5
|
import { DaffFormFieldControl } from '../form-field-control';
|
6
|
+
import { DaffFormFieldLabelDirective } from '../label/label.directive';
|
5
7
|
import * as i0 from "@angular/core";
|
6
8
|
import * as i1 from "../../../../core/skeletonable/skeletonable.directive";
|
7
|
-
export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked {
|
9
|
+
export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {
|
8
10
|
private cd;
|
9
11
|
/** @docs-private */
|
10
12
|
class: boolean;
|
11
13
|
/** @docs-private */
|
12
14
|
get isSelectField(): boolean;
|
15
|
+
constructor(cd: ChangeDetectorRef);
|
13
16
|
/** @docs-private */
|
14
17
|
_prefix: DaffPrefixDirective;
|
15
18
|
/** @docs-private */
|
16
19
|
_suffix: DaffSuffixDirective;
|
17
20
|
/**
|
18
|
-
* The child form control that the form field manages.
|
19
|
-
*
|
20
21
|
* @docs-private
|
22
|
+
*
|
23
|
+
* The child form control that the form field manages.
|
21
24
|
*/
|
22
25
|
_control: DaffFormFieldControl<unknown>;
|
23
26
|
/**
|
27
|
+
* @docs-private
|
28
|
+
* @deprecated Should be removed in v1.0.0 Deprecated in version 0.86.0. Will be removed in version 0.89.0.
|
29
|
+
*/
|
30
|
+
_formLabelDirective: DaffFormLabelDirective;
|
31
|
+
/**
|
32
|
+
* @docs-private
|
33
|
+
*/
|
34
|
+
_formFieldLabelDirective: DaffFormFieldLabelDirective;
|
35
|
+
/**
|
36
|
+
* @docs-private
|
37
|
+
*/
|
38
|
+
private _hint;
|
39
|
+
/**
|
40
|
+
* @docs-private
|
41
|
+
*/
|
42
|
+
private _error;
|
43
|
+
/**
|
44
|
+
* @docs-private
|
45
|
+
*
|
24
46
|
* Tracking property to keep a record of whether or not the
|
25
47
|
* form field should be marked as error.
|
26
48
|
*/
|
@@ -30,16 +52,26 @@ export declare class DaffFormFieldComponent implements AfterContentInit, AfterCo
|
|
30
52
|
*/
|
31
53
|
get errorClass(): boolean;
|
32
54
|
/**
|
55
|
+
* @docs-private
|
56
|
+
*
|
33
57
|
* Tracking property to keep a record of whether or not the
|
34
58
|
* form field contains any user input.
|
35
59
|
*/
|
36
60
|
isFilled: boolean;
|
61
|
+
/**
|
62
|
+
* @docs-private
|
63
|
+
*
|
64
|
+
* Tracking property to keep a record of whether or not the
|
65
|
+
* form field should be marked as disabled.
|
66
|
+
*/
|
37
67
|
isDisabled: boolean;
|
38
68
|
/**
|
39
69
|
* @docs-private
|
40
70
|
*/
|
41
71
|
get disabledClass(): boolean;
|
42
72
|
/**
|
73
|
+
* @docs-private
|
74
|
+
*
|
43
75
|
* Tracking property to keep a record of whether or not the
|
44
76
|
* form field should be marked as valid.
|
45
77
|
*/
|
@@ -48,8 +80,9 @@ export declare class DaffFormFieldComponent implements AfterContentInit, AfterCo
|
|
48
80
|
* @docs-private
|
49
81
|
*/
|
50
82
|
get validClass(): boolean;
|
51
|
-
constructor(cd: ChangeDetectorRef);
|
52
83
|
/**
|
84
|
+
* @docs-private
|
85
|
+
*
|
53
86
|
* Determines whether or not the form field should display its focused state.
|
54
87
|
*/
|
55
88
|
get isFocused(): boolean;
|
@@ -62,25 +95,62 @@ export declare class DaffFormFieldComponent implements AfterContentInit, AfterCo
|
|
62
95
|
*/
|
63
96
|
get raisedClass(): boolean;
|
64
97
|
/**
|
65
|
-
*
|
98
|
+
* The unique id of the form field. Defaults to an autogenerated value. When using this,
|
99
|
+
* it's your responsibility to ensure that the id for each form field is unique.
|
100
|
+
*
|
101
|
+
* It gets assigned to the `for` attribute on the `<label>` inside of the form field.
|
102
|
+
*/
|
103
|
+
id: string;
|
104
|
+
/**
|
105
|
+
* @docs-private
|
106
|
+
*/
|
107
|
+
hasHint(): boolean;
|
108
|
+
/**
|
109
|
+
* @docs-private
|
110
|
+
*/
|
111
|
+
hintId: string;
|
112
|
+
/**
|
113
|
+
* @docs-private
|
114
|
+
*/
|
115
|
+
hasErrorMessage(): boolean;
|
116
|
+
/**
|
117
|
+
* @docs-private
|
118
|
+
*/
|
119
|
+
errorMessageId: string;
|
120
|
+
/**
|
121
|
+
* @docs-private
|
122
|
+
*/
|
123
|
+
get autoLabelId(): string;
|
124
|
+
/**
|
125
|
+
* @docs-private
|
126
|
+
*/
|
127
|
+
get customId(): string;
|
128
|
+
/**
|
129
|
+
* @docs-private
|
130
|
+
*
|
131
|
+
* Displays a console warning if the `DaffFormFieldLabelDirective` is not used on controls (native HTML control elements) that support auto-labelling.
|
132
|
+
*/
|
133
|
+
ngAfterViewInit(): void;
|
134
|
+
/**
|
135
|
+
* Validates whether or not the form field is in a "usable" state.
|
66
136
|
*/
|
67
137
|
private _validateFormControl;
|
68
138
|
/**
|
69
|
-
*
|
139
|
+
* @docs-private
|
140
|
+
*
|
141
|
+
* Lifecycle hook to verify that the form field has an acceptable
|
70
142
|
* child control instance. Mostly useful for development-time
|
71
143
|
* validation of usage.
|
72
|
-
*
|
73
|
-
* @docs-private
|
74
144
|
*/
|
75
145
|
ngAfterContentInit(): void;
|
76
146
|
/**
|
77
|
-
*
|
147
|
+
* @docs-private
|
148
|
+
*
|
149
|
+
* Lifecycle hook to verify that the form field has an acceptable
|
78
150
|
* child control instance. Mostly useful for development-time
|
79
151
|
* validation of usage.
|
80
|
-
*
|
81
|
-
* @docs-private
|
82
152
|
*/
|
83
153
|
ngAfterContentChecked(): void;
|
84
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {}, {}, ["_prefix", "_suffix", "_control"], ["[daffPrefix]", "label[daffFormLabel]", "*", "[daffSuffix]", "daff-hint", "daff-error-message"], true, [{ directive: typeof i1.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
|
155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, { "id": { "alias": "id"; "required": false; }; }, {}, ["_prefix", "_suffix", "_control", "_formLabelDirective", "_formFieldLabelDirective", "_hint", "_error"], ["[daffPrefix]", "label[daffFormLabel]", "daff-form-label", "label", "*", "[daffSuffix]", "daff-hint", "daff-error-message"], true, [{ directive: typeof i1.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
|
86
156
|
}
|
@@ -15,7 +15,9 @@ import { DaffFormFieldState } from './form-field-state';
|
|
15
15
|
export declare abstract class DaffFormFieldControl<T> {
|
16
16
|
ngControl: NgControl | null;
|
17
17
|
abstract readonly controlType?: any;
|
18
|
+
readonly supportsAutoLabelling?: boolean;
|
18
19
|
abstract readonly focused: boolean;
|
20
|
+
readonly id?: string;
|
19
21
|
get raised(): boolean;
|
20
22
|
abstract focus(event?: Event): void;
|
21
23
|
abstract readonly value: T;
|
@@ -4,7 +4,8 @@ import { DaffSuffixDirective } from '../../../core/prefix-suffix/suffix.directiv
|
|
4
4
|
import { DaffErrorMessageComponent } from '../error-message/error-message.component';
|
5
5
|
import { DaffFormLabelDirective } from '../form-label/form-label.directive';
|
6
6
|
import { DaffHintComponent } from '../hint/hint.component';
|
7
|
+
import { DaffFormFieldLabelDirective } from './label/label.directive';
|
7
8
|
/**
|
8
9
|
* @docs-private
|
9
10
|
*/
|
10
|
-
export declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffErrorMessageComponent, typeof DaffFormLabelDirective, typeof DaffHintComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective];
|
11
|
+
export declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffErrorMessageComponent, typeof DaffFormLabelDirective, typeof DaffHintComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective, typeof DaffFormFieldLabelDirective];
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class DaffFormFieldLabelDirective {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldLabelDirective, never>;
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormFieldLabelDirective, "daff-form-label", never, {}, {}, never, never, true, never>;
|
5
|
+
}
|
@@ -2,3 +2,4 @@ export { DaffFormFieldModule } from './form-field.module';
|
|
2
2
|
export { DaffFormFieldComponent } from './form-field/form-field.component';
|
3
3
|
export { DaffFormFieldControl } from './form-field-control';
|
4
4
|
export { DAFF_FORM_FIELD_COMPONENTS } from './form-field';
|
5
|
+
export { DaffFormFieldLabelDirective } from './label/label.directive';
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* @deprecated in favor of the {@link DaffFormFieldLabelDirective}. It will be removed in v1.0.0. Deprecated in version 0.86.0. Will be removed in version 0.89.0.
|
4
|
+
*/
|
2
5
|
export declare class DaffFormLabelDirective {
|
3
6
|
/**
|
4
7
|
* @docs-private
|
package/button/README.md
CHANGED
@@ -24,12 +24,12 @@ Button supports five types that change its visual style.
|
|
24
24
|
### Stroked button
|
25
25
|
<design-land-example-viewer-container example="stroked-button"></design-land-example-viewer-container>
|
26
26
|
|
27
|
-
> `
|
27
|
+
> `dark`, `light`, and `theme` should be used with caution to ensure that there is sufficient contrast.
|
28
28
|
|
29
29
|
### Icon button
|
30
30
|
<design-land-example-viewer-container example="icon-button"></design-land-example-viewer-container>
|
31
31
|
|
32
|
-
> `
|
32
|
+
> `dark`, `light`, and `theme` should be used with caution to ensure that there is sufficient contrast.
|
33
33
|
|
34
34
|
### Underline button
|
35
35
|
<design-land-example-viewer-container example="underline-button"></design-land-example-viewer-container>
|
@@ -87,7 +87,7 @@ Use the `size` property to specify a button size. Setting this property will cha
|
|
87
87
|
## Colors
|
88
88
|
Use the `color` property to change the color of a button. The default color is light gray.
|
89
89
|
|
90
|
-
> For select button types, `
|
90
|
+
> For select button types, `dark` and `light` should be used on a darker background in order to have sufficient contrast.
|
91
91
|
|
92
92
|
## Status indicators
|
93
93
|
Buttons with status indicators can be used to distinguish what type of action it performs and its importance compared to other buttons in the same context. Use the `status` property to change the status.
|
@@ -12,7 +12,6 @@ export declare class DaffButtonBaseDirective {
|
|
12
12
|
* @docs-private
|
13
13
|
*/
|
14
14
|
get disabledClass(): any;
|
15
|
-
loading: boolean;
|
16
15
|
/**
|
17
16
|
* Sets the tabindex. Defaults to 0.
|
18
17
|
*/
|
@@ -38,5 +37,5 @@ export declare class DaffButtonBaseDirective {
|
|
38
37
|
*/
|
39
38
|
get tabIndexAttribute(): number;
|
40
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
42
41
|
}
|
@@ -47,12 +47,6 @@
|
|
47
47
|
z-index: 1;
|
48
48
|
}
|
49
49
|
|
50
|
-
.daff-button__loading {
|
51
|
-
> * {
|
52
|
-
width: 100%;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
50
|
.daff-button__content {
|
57
51
|
@include t.text-truncate();
|
58
52
|
}
|
@@ -87,10 +81,6 @@
|
|
87
81
|
line-height: 2rem;
|
88
82
|
height: 2rem;
|
89
83
|
padding: 0 1rem;
|
90
|
-
|
91
|
-
.daff-button__loading {
|
92
|
-
width: 1rem;
|
93
|
-
}
|
94
84
|
}
|
95
85
|
|
96
86
|
&.daff-md {
|
@@ -98,10 +88,6 @@
|
|
98
88
|
line-height: 3rem;
|
99
89
|
height: 3rem;
|
100
90
|
padding: 0 1.5rem;
|
101
|
-
|
102
|
-
.daff-button__loading {
|
103
|
-
width: 1.5rem;
|
104
|
-
}
|
105
91
|
}
|
106
92
|
|
107
93
|
&.daff-lg {
|
@@ -109,9 +95,5 @@
|
|
109
95
|
line-height: 3.5rem;
|
110
96
|
height: 3.5rem;
|
111
97
|
padding: 0 1.5rem;
|
112
|
-
|
113
|
-
.daff-button__loading {
|
114
|
-
width: 2rem;
|
115
|
-
}
|
116
98
|
}
|
117
99
|
}
|
@@ -44,6 +44,9 @@ import * as i0 from "@angular/core";
|
|
44
44
|
* ```
|
45
45
|
*/
|
46
46
|
export declare class DaffCompactableDirective {
|
47
|
+
/**
|
48
|
+
* Controls whether the component is compact.
|
49
|
+
*/
|
47
50
|
compact: boolean;
|
48
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCompactableDirective, never>;
|
49
52
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCompactableDirective, "[daffCompactable]", never, { "compact": { "alias": "compact"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -47,7 +47,7 @@ import * as i0 from "@angular/core";
|
|
47
47
|
* ```
|
48
48
|
*/
|
49
49
|
export declare class DaffOpenableDirective implements DaffOpenable, OnChanges {
|
50
|
-
/**
|
50
|
+
/** Controls whether the component is open. */
|
51
51
|
open: boolean;
|
52
52
|
private _setOpen;
|
53
53
|
/** Whether or not a component should handle state
|
@@ -3,7 +3,9 @@ import { DaffSelectable } from '../selectable/selectable';
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class DaffSelectableDirective implements DaffSelectable {
|
5
5
|
private cd;
|
6
|
-
/**
|
6
|
+
/**
|
7
|
+
* Controls whether the component is selected.
|
8
|
+
*/
|
7
9
|
selected: boolean;
|
8
10
|
/**
|
9
11
|
* An event that fires after the media element becomes selected.
|
@@ -63,9 +63,9 @@ export declare class DaffSizableDirective<T extends DaffSizeAllType> implements
|
|
63
63
|
'daff-xl': boolean;
|
64
64
|
};
|
65
65
|
/**
|
66
|
-
* The size of
|
66
|
+
* The size of the component.
|
67
67
|
*
|
68
|
-
*
|
68
|
+
* Options are: `xs`, `sm`, `md`, `lg`, and `xl`.
|
69
69
|
*/
|
70
70
|
size: T;
|
71
71
|
/**
|
@@ -42,6 +42,9 @@ import * as i0 from "@angular/core";
|
|
42
42
|
* state as desired. It can be used in conjuction with the `skeleton-screen` mixin, which provides predefined loading styles.
|
43
43
|
*/
|
44
44
|
export declare class DaffSkeletonableDirective {
|
45
|
+
/**
|
46
|
+
* Controls whether the component displays a skeleton loading state.
|
47
|
+
*/
|
45
48
|
skeleton: boolean;
|
46
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSkeletonableDirective, never>;
|
47
50
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffSkeletonableDirective, "[daffSkeletonable]", never, { "skeleton": { "alias": "skeleton"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2
2
|
import { DaffTextAlignable, DaffTextAlignment } from './text-alignable';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
/**
|
@@ -47,7 +47,7 @@ import * as i0 from "@angular/core";
|
|
47
47
|
* }
|
48
48
|
* ```
|
49
49
|
*/
|
50
|
-
export declare class DaffTextAlignableDirective implements DaffTextAlignable, OnChanges {
|
50
|
+
export declare class DaffTextAlignableDirective implements DaffTextAlignable, OnChanges, OnInit {
|
51
51
|
/**
|
52
52
|
* @docs-private
|
53
53
|
*/
|
@@ -57,19 +57,23 @@ export declare class DaffTextAlignableDirective implements DaffTextAlignable, On
|
|
57
57
|
'daff-right': boolean;
|
58
58
|
};
|
59
59
|
/**
|
60
|
-
* The text alignment of
|
60
|
+
* The text alignment of the component.
|
61
61
|
*
|
62
|
-
*
|
62
|
+
* Options are: `left`, `center`, and `right`.
|
63
63
|
*/
|
64
64
|
textAlignment: DaffTextAlignment;
|
65
65
|
/**
|
66
|
-
* Sets a default
|
66
|
+
* Sets a default alignment when no text alignment is provided.
|
67
67
|
*/
|
68
68
|
defaultAlignment: DaffTextAlignment;
|
69
69
|
/**
|
70
70
|
* @docs-private
|
71
71
|
*/
|
72
72
|
ngOnChanges(changes: SimpleChanges): void;
|
73
|
+
/**
|
74
|
+
* @docs-private
|
75
|
+
*/
|
76
|
+
ngOnInit(): void;
|
73
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTextAlignableDirective, never>;
|
74
78
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffTextAlignableDirective, "[daffTextAlignable]", never, { "textAlignment": { "alias": "textAlignment"; "required": false; }; }, {}, never, never, true, never>;
|
75
79
|
}
|
@@ -17,11 +17,11 @@ class DaffArticleComponent {
|
|
17
17
|
this.role = 'article';
|
18
18
|
}
|
19
19
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffArticleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
20
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: DaffArticleComponent, isStandalone: true, selector: "daff-article", host: { properties: { "class.daff-article": "this.class", "attr.role": "this.role" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article a:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-size:2rem;font-weight:700;line-height:2.25rem
|
20
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: DaffArticleComponent, isStandalone: true, selector: "daff-article", host: { properties: { "class.daff-article": "this.class", "attr.role": "this.role" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article a:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae){word-break:break-all;font-size:2rem;font-weight:700;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h1:not(.daff-ae *,.daff-ae)+p{font-size:1.25rem;line-height:1.75rem;font-weight:400}.daff-article h1:not(.daff-ae *,.daff-ae)+p code{font-size:1rem;line-height:1rem}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem;margin-top:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem;margin-top:2.5rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem;margin-top:2rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;font-weight:600;line-height:1.5rem;margin-top:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;font-weight:600;line-height:1.5rem;margin-top:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre{display:block;border-radius:.25rem;font-size:.875rem;line-height:1.5rem;margin:1.5rem 0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre:last-child{margin-bottom:0}.daff-article pre code{display:block;padding:0}.daff-article code{border-radius:.25rem;font-size:.875rem;line-height:1rem;padding:.125rem .25rem}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:.25rem;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:table;border-collapse:separate;border-spacing:0;border-radius:.25rem;font-size:1rem;line-height:1.25rem;margin:1.5rem 0;overflow:hidden}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:top;box-sizing:border-box}.daff-article table td{padding:1rem;vertical-align:top;box-sizing:border-box}.daff-article table td p:only-child,.daff-article table td p:last-child{margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
21
21
|
}
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffArticleComponent, decorators: [{
|
23
23
|
type: Component,
|
24
|
-
args: [{ selector: 'daff-article', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article a:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-size:2rem;font-weight:700;line-height:2.25rem
|
24
|
+
args: [{ selector: 'daff-article', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article a:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875rem;font-weight:600;line-height:.875rem}.daff-article h1:not(.daff-ae *,.daff-ae){word-break:break-all;font-size:2rem;font-weight:700;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h1:not(.daff-ae *,.daff-ae)+p{font-size:1.25rem;line-height:1.75rem;font-weight:400}.daff-article h1:not(.daff-ae *,.daff-ae)+p code{font-size:1rem;line-height:1rem}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem;margin-top:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem;margin-top:2.5rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem;margin-top:2rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;font-weight:600;line-height:1.5rem;margin-top:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;font-weight:600;line-height:1.5rem;margin-top:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre{display:block;border-radius:.25rem;font-size:.875rem;line-height:1.5rem;margin:1.5rem 0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre:last-child{margin-bottom:0}.daff-article pre code{display:block;padding:0}.daff-article code{border-radius:.25rem;font-size:.875rem;line-height:1rem;padding:.125rem .25rem}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:.25rem;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:table;border-collapse:separate;border-spacing:0;border-radius:.25rem;font-size:1rem;line-height:1.25rem;margin:1.5rem 0;overflow:hidden}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:top;box-sizing:border-box}.daff-article table td{padding:1rem;vertical-align:top;box-sizing:border-box}.daff-article table td p:only-child,.daff-article table td p:last-child{margin:0}\n"] }]
|
25
25
|
}], propDecorators: { class: [{
|
26
26
|
type: HostBinding,
|
27
27
|
args: ['class.daff-article']
|
@@ -74,7 +74,7 @@ class DaffBreadcrumbComponent {
|
|
74
74
|
this.breadcrumbItems.last.setActive(true);
|
75
75
|
}
|
76
76
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffBreadcrumbComponent, deps: [{ token: i0.DestroyRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
77
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: DaffBreadcrumbComponent, isStandalone: true, selector: "ol[daff-breadcrumb]", host: { properties: { "class.daff-breadcrumb": "this.class" } }, queries: [{ propertyName: "breadcrumbItems", predicate: DaffBreadcrumbItemDirective }], hostDirectives: [{ directive: i1.DaffArticleEncapsulatedDirective }, { directive: i1.DaffSkeletonableDirective, inputs: ["skeleton", "skeleton"] }], ngImport: i0, template: "<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>", styles: [".daff-breadcrumb{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.daff-breadcrumb__item{font-size:1rem}.daff-breadcrumb__item a{text-decoration:none}.daff-breadcrumb__item a:hover{text-decoration:underline}.daff-breadcrumb__item.active{font-weight:500}.daff-breadcrumb__item:not(:last-child):after{content:\"/\";color:currentColor;font-weight:400;margin:0 .5rem}.daff-breadcrumb.daff-skeleton{display:flex;position:relative;
|
77
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: DaffBreadcrumbComponent, isStandalone: true, selector: "ol[daff-breadcrumb]", host: { properties: { "class.daff-breadcrumb": "this.class" } }, queries: [{ propertyName: "breadcrumbItems", predicate: DaffBreadcrumbItemDirective }], hostDirectives: [{ directive: i1.DaffArticleEncapsulatedDirective }, { directive: i1.DaffSkeletonableDirective, inputs: ["skeleton", "skeleton"] }], ngImport: i0, template: "<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>", styles: [".daff-breadcrumb{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.daff-breadcrumb__item{font-size:1rem}.daff-breadcrumb__item a{text-decoration:none}.daff-breadcrumb__item a:hover{text-decoration:underline}.daff-breadcrumb__item.active{font-weight:500}.daff-breadcrumb__item:not(:last-child):after{content:\"/\";color:currentColor;font-weight:400;margin:0 .5rem}.daff-breadcrumb.daff-skeleton{max-width:290px;display:flex;position:relative;height:1.5rem;width:100%;border-radius:0}.daff-breadcrumb.daff-skeleton:before{animation-name:loading;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;content:\"\";height:1.5rem;width:100%;position:absolute;top:0;left:0}@keyframes loading{0%{opacity:.5}to{opacity:1}}.daff-breadcrumb.daff-skeleton .daff-breadcrumb__item{visibility:hidden}.daff-breadcrumb.daff-skeleton .daff-breadcrumb__item:before{content:unset}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
78
78
|
}
|
79
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffBreadcrumbComponent, decorators: [{
|
80
80
|
type: Component,
|
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImpo
|
|
84
84
|
directive: DaffSkeletonableDirective,
|
85
85
|
inputs: ['skeleton'],
|
86
86
|
},
|
87
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>", styles: [".daff-breadcrumb{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.daff-breadcrumb__item{font-size:1rem}.daff-breadcrumb__item a{text-decoration:none}.daff-breadcrumb__item a:hover{text-decoration:underline}.daff-breadcrumb__item.active{font-weight:500}.daff-breadcrumb__item:not(:last-child):after{content:\"/\";color:currentColor;font-weight:400;margin:0 .5rem}.daff-breadcrumb.daff-skeleton{display:flex;position:relative;
|
87
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>", styles: [".daff-breadcrumb{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.daff-breadcrumb__item{font-size:1rem}.daff-breadcrumb__item a{text-decoration:none}.daff-breadcrumb__item a:hover{text-decoration:underline}.daff-breadcrumb__item.active{font-weight:500}.daff-breadcrumb__item:not(:last-child):after{content:\"/\";color:currentColor;font-weight:400;margin:0 .5rem}.daff-breadcrumb.daff-skeleton{max-width:290px;display:flex;position:relative;height:1.5rem;width:100%;border-radius:0}.daff-breadcrumb.daff-skeleton:before{animation-name:loading;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;content:\"\";height:1.5rem;width:100%;position:absolute;top:0;left:0}@keyframes loading{0%{opacity:.5}to{opacity:1}}.daff-breadcrumb.daff-skeleton .daff-breadcrumb__item{visibility:hidden}.daff-breadcrumb.daff-skeleton .daff-breadcrumb__item:before{content:unset}\n"] }]
|
88
88
|
}], ctorParameters: () => [{ type: i0.DestroyRef }], propDecorators: { class: [{
|
89
89
|
type: HostBinding,
|
90
90
|
args: ['class.daff-breadcrumb']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-design-breadcrumb.mjs","sources":["../../../libs/design/breadcrumb/src/breadcrumb-item/breadcrumb-item.directive.ts","../../../libs/design/breadcrumb/src/breadcrumb/breadcrumb.component.ts","../../../libs/design/breadcrumb/src/breadcrumb/breadcrumb.component.html","../../../libs/design/breadcrumb/src/breadcrumb.ts","../../../libs/design/breadcrumb/src/breadcrumb.module.ts","../../../libs/design/breadcrumb/src/daffodil-design-breadcrumb.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: 'li[daffBreadcrumbItem]',\n})\nexport class DaffBreadcrumbItemDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-breadcrumb__item') class = true;\n\n /**\n * @docs-private\n */\n @HostBinding('class.active') get activeClass() {\n return this._active;\n }\n\n /**\n * @docs-private\n */\n @HostBinding('attr.aria-current') get ariaCurrent() {\n return this._active ? 'page' : null;\n }\n\n private _active = false;\n\n constructor( private cdRef: ChangeDetectorRef ) {}\n\n /** Called by the DaffBreadcrumbComponent to set the active state */\n setActive(value: boolean) {\n this._active = value;\n\n this.cdRef.detectChanges();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n HostBinding,\n ViewEncapsulation,\n ContentChildren,\n QueryList,\n AfterContentInit,\n DestroyRef,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport {\n DaffArticleEncapsulatedDirective,\n DaffSkeletonableDirective,\n} from '@daffodil/design';\n\n\nimport { DaffBreadcrumbItemDirective } from '../breadcrumb-item/breadcrumb-item.directive';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'ol[daff-breadcrumb]',\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n hostDirectives: [\n { directive: DaffArticleEncapsulatedDirective },\n {\n directive: DaffSkeletonableDirective,\n inputs: ['skeleton'],\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\n\nexport class DaffBreadcrumbComponent implements AfterContentInit {\n\n constructor(private destroyRef: DestroyRef) {}\n /**\n * @docs-private\n */\n @HostBinding('class.daff-breadcrumb') class = true;\n\n /**\n * @docs-private\n */\n @ContentChildren(DaffBreadcrumbItemDirective) breadcrumbItems!: QueryList<DaffBreadcrumbItemDirective>;\n\n /**\n * @docs-private\n */\n ngAfterContentInit() {\n this.updateActiveState();\n\n this.breadcrumbItems.changes\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.updateActiveState());\n }\n\n private updateActiveState() {\n if (!this.breadcrumbItems.length) {\n return;\n }\n\n this.breadcrumbItems.forEach(item => item.setActive(false));\n\n this.breadcrumbItems.last.setActive(true);\n }\n}\n","<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>","import { DaffBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nimport { DaffBreadcrumbItemDirective } from './breadcrumb-item/breadcrumb-item.directive';\n\n/**\n * @docs-private\n */\nexport const DAFF_BREADCRUMB_COMPONENTS = <const> [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n];\n","import { NgModule } from '@angular/core';\n\nimport { DaffBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nimport { DaffBreadcrumbItemDirective } from './breadcrumb-item/breadcrumb-item.directive';\n\n/**\n * @deprecated in favor of {@link DAFF_BREADCRUMB_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n imports: [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n ],\n exports: [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n ],\n})\nexport class DaffBreadcrumbModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MASa,2BAA2B,CAAA;AAMtC;;AAEG;AACH,IAAA,IAAiC,WAAW,GAAA;QAC1C,OAAO,IAAI,CAAC,OAAO;;AAGrB;;AAEG;AACH,IAAA,IAAsC,WAAW,GAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI;;AAKrC,IAAA,WAAA,CAAqB,KAAwB,EAAA;QAAxB,IAAK,CAAA,KAAA,GAAL,KAAK;AArB1B;;AAEG;QACyC,IAAK,CAAA,KAAA,GAAG,IAAI;QAgBhD,IAAO,CAAA,OAAA,GAAG,KAAK;;;AAKvB,IAAA,SAAS,CAAC,KAAc,EAAA;AACtB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AAEpB,QAAA,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;;kIA5BjB,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;sHAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,6BAAA,EAAA,YAAA,EAAA,cAAA,EAAA,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AAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,uBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,SAAA,EAWjB,2BAA2B,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gCAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC/C9C,2DAAuD,EAAA,MAAA,EAAA,CAAA,
|
1
|
+
{"version":3,"file":"daffodil-design-breadcrumb.mjs","sources":["../../../libs/design/breadcrumb/src/breadcrumb-item/breadcrumb-item.directive.ts","../../../libs/design/breadcrumb/src/breadcrumb/breadcrumb.component.ts","../../../libs/design/breadcrumb/src/breadcrumb/breadcrumb.component.html","../../../libs/design/breadcrumb/src/breadcrumb.ts","../../../libs/design/breadcrumb/src/breadcrumb.module.ts","../../../libs/design/breadcrumb/src/daffodil-design-breadcrumb.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: 'li[daffBreadcrumbItem]',\n})\nexport class DaffBreadcrumbItemDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-breadcrumb__item') class = true;\n\n /**\n * @docs-private\n */\n @HostBinding('class.active') get activeClass() {\n return this._active;\n }\n\n /**\n * @docs-private\n */\n @HostBinding('attr.aria-current') get ariaCurrent() {\n return this._active ? 'page' : null;\n }\n\n private _active = false;\n\n constructor( private cdRef: ChangeDetectorRef ) {}\n\n /** Called by the DaffBreadcrumbComponent to set the active state */\n setActive(value: boolean) {\n this._active = value;\n\n this.cdRef.detectChanges();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n HostBinding,\n ViewEncapsulation,\n ContentChildren,\n QueryList,\n AfterContentInit,\n DestroyRef,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport {\n DaffArticleEncapsulatedDirective,\n DaffSkeletonableDirective,\n} from '@daffodil/design';\n\n\nimport { DaffBreadcrumbItemDirective } from '../breadcrumb-item/breadcrumb-item.directive';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'ol[daff-breadcrumb]',\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n hostDirectives: [\n { directive: DaffArticleEncapsulatedDirective },\n {\n directive: DaffSkeletonableDirective,\n inputs: ['skeleton'],\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\n\nexport class DaffBreadcrumbComponent implements AfterContentInit {\n\n constructor(private destroyRef: DestroyRef) {}\n /**\n * @docs-private\n */\n @HostBinding('class.daff-breadcrumb') class = true;\n\n /**\n * @docs-private\n */\n @ContentChildren(DaffBreadcrumbItemDirective) breadcrumbItems!: QueryList<DaffBreadcrumbItemDirective>;\n\n /**\n * @docs-private\n */\n ngAfterContentInit() {\n this.updateActiveState();\n\n this.breadcrumbItems.changes\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.updateActiveState());\n }\n\n private updateActiveState() {\n if (!this.breadcrumbItems.length) {\n return;\n }\n\n this.breadcrumbItems.forEach(item => item.setActive(false));\n\n this.breadcrumbItems.last.setActive(true);\n }\n}\n","<ng-content select=\"[daffBreadcrumbItem]\"></ng-content>","import { DaffBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nimport { DaffBreadcrumbItemDirective } from './breadcrumb-item/breadcrumb-item.directive';\n\n/**\n * @docs-private\n */\nexport const DAFF_BREADCRUMB_COMPONENTS = <const> [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n];\n","import { NgModule } from '@angular/core';\n\nimport { DaffBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nimport { DaffBreadcrumbItemDirective } from './breadcrumb-item/breadcrumb-item.directive';\n\n/**\n * @deprecated in favor of {@link DAFF_BREADCRUMB_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n imports: [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n ],\n exports: [\n DaffBreadcrumbComponent,\n DaffBreadcrumbItemDirective,\n ],\n})\nexport class DaffBreadcrumbModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MASa,2BAA2B,CAAA;AAMtC;;AAEG;AACH,IAAA,IAAiC,WAAW,GAAA;QAC1C,OAAO,IAAI,CAAC,OAAO;;AAGrB;;AAEG;AACH,IAAA,IAAsC,WAAW,GAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI;;AAKrC,IAAA,WAAA,CAAqB,KAAwB,EAAA;QAAxB,IAAK,CAAA,KAAA,GAAL,KAAK;AArB1B;;AAEG;QACyC,IAAK,CAAA,KAAA,GAAG,IAAI;QAgBhD,IAAO,CAAA,OAAA,GAAG,KAAK;;;AAKvB,IAAA,SAAS,CAAC,KAAc,EAAA;AACtB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AAEpB,QAAA,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;;kIA5BjB,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;sHAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,6BAAA,EAAA,YAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,mBAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA3B,2BAA2B,E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