@daffodil/design 0.92.3 → 0.93.1
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/beacon/README.md +61 -0
- package/beacon/src/beacon-theme.scss +61 -0
- 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-beacon.mjs +48 -0
- package/fesm2022/daffodil-design-beacon.mjs.map +1 -0
- 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 +33 -27
- 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 +11 -11
- 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 +36 -30
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +8 -8
- 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 +43 -35
- 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 +22 -22
- 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 +126 -160
- 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 +25 -2
- package/scss/theme.scss +2 -0
- 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 +31 -31
- package/tag/src/tag-theme.scss +100 -3
- 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/types/daffodil-design-beacon.d.ts +26 -0
- 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/types/daffodil-design-tag.d.ts +80 -0
- 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} +25 -67
- package/tag/index.d.ts +0 -71
- /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/accordion/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Accordions help reduce scrolling by hiding non-essential information until it's
|
|
|
14
14
|
|
|
15
15
|
**When not to use**
|
|
16
16
|
- When most users will need to see all content anyway
|
|
17
|
-
- The content is very short and hiding it adds unnecessary complexity (use [
|
|
17
|
+
- The content is very short and hiding it adds unnecessary complexity (use [List](/libs/design/list/README.md) instead)
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
Import `DAFF_ACCORDION_COMPONENTS` into your component:
|
|
@@ -51,12 +51,12 @@ An accordion is composed of a container, items, titles, and content:
|
|
|
51
51
|
|
|
52
52
|
## Features
|
|
53
53
|
|
|
54
|
-
###
|
|
54
|
+
### Default expansion
|
|
55
55
|
Use the `initiallyExpanded` property on the accordion item to have an item open by default.
|
|
56
56
|
|
|
57
57
|
<daff-docs-example-viewer example="initially-expanded-accordion"></daff-docs-example-viewer>
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### Disabled item
|
|
60
60
|
Use the `disabled` property on the accordion item to disable and prevent it from being expanded or collapsed.
|
|
61
61
|
|
|
62
62
|
<daff-docs-example-viewer example="disabled-accordion"></daff-docs-example-viewer>
|
|
@@ -64,7 +64,7 @@ Use the `disabled` property on the accordion item to disable and prevent it from
|
|
|
64
64
|
## Accessibility
|
|
65
65
|
Accordion follows the [Accordion WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/).
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### Built-in behavior
|
|
68
68
|
- `role="button"` on titles with `aria-expanded` to indicate current state and `aria-controls` linking to the associated panel
|
|
69
69
|
- `role="region"` on content panels with `aria-labelledby` linking back to the corresponding title
|
|
70
70
|
- Unique IDs autogenerated for titles and panels (overridable via the `contentId` and `itemId` inputs on `<daff-accordion-item>`)
|
package/beacon/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Beacon
|
|
2
|
+
A beacon is a small indicator that draws visual attention to a specific location or element.
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
Use a beacon to signal a "live" status or highlight a point of interest, such as a new feature or an active notification. It renders as a pulsing dot that draws the eye without interrupting the surrounding content.
|
|
6
|
+
|
|
7
|
+
<daff-docs-example-viewer example="basic-beacon"></daff-docs-example-viewer>
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Import `DaffBeaconComponent` into your component:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { DaffBeaconComponent } from '@daffodil/design/beacon';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'custom-component',
|
|
18
|
+
templateUrl: './custom-component.component.html',
|
|
19
|
+
imports: [
|
|
20
|
+
DaffBeaconComponent,
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
export class CustomComponent {}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Anatomy
|
|
27
|
+
A beacon is a single dot with a ring that pulses outward from it. With no properties set, it renders at the default size and inherits the ambient text color:
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<daff-beacon></daff-beacon>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
### Colors
|
|
36
|
+
Use the `color` property to change the color of a beacon. Left unset, the beacon matches the surrounding text color, so setting `color` on a parent element carries down to the beacon.
|
|
37
|
+
|
|
38
|
+
> Note: `dark`, `light`, and `theme` should be used on appropriate backgrounds for sufficient contrast.
|
|
39
|
+
|
|
40
|
+
<daff-docs-example-viewer example="beacon-colors"></daff-docs-example-viewer>
|
|
41
|
+
|
|
42
|
+
### Status
|
|
43
|
+
Use the `status` property to color the beacon by meaning: `info`, `warn`, `critical`, or `success`. Use `status` instead of `color` when the dot represents a state.
|
|
44
|
+
|
|
45
|
+
<daff-docs-example-viewer example="beacon-statuses"></daff-docs-example-viewer>
|
|
46
|
+
|
|
47
|
+
### Sizes
|
|
48
|
+
Use the `size` property to change the diameter of the dot. The default size is `sm`.
|
|
49
|
+
|
|
50
|
+
<daff-docs-example-viewer example="beacon-sizes"></daff-docs-example-viewer>
|
|
51
|
+
|
|
52
|
+
### Speed
|
|
53
|
+
Use the `speed` property to set how fast the ring pulses. `slow` is a relaxed 3.6s cycle, `normal` (the default) a 2.4s cycle, and `fast` an urgent 1.2s cycle.
|
|
54
|
+
|
|
55
|
+
<daff-docs-example-viewer example="beacon-speeds"></daff-docs-example-viewer>
|
|
56
|
+
|
|
57
|
+
## Accessibility
|
|
58
|
+
|
|
59
|
+
For users who have reduced motion enabled, the beacon shows as a still dot instead of pulsing.
|
|
60
|
+
|
|
61
|
+
Beacon is purely decorative and should never be the only thing that conveys status. Always pair it with visible text or another cue that communicates the same meaning.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use '../../scss/theming' as *;
|
|
2
|
+
|
|
3
|
+
@mixin daff-beacon-theme($theme) {
|
|
4
|
+
$primary: daff-get-palette($theme, primary);
|
|
5
|
+
$secondary: daff-get-palette($theme, secondary);
|
|
6
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
|
7
|
+
$info: daff-get-palette($theme, informational);
|
|
8
|
+
$warn: daff-get-palette($theme, warn);
|
|
9
|
+
$critical: daff-get-palette($theme, critical);
|
|
10
|
+
$success: daff-get-palette($theme, success);
|
|
11
|
+
$base: daff-get-base-color($theme, base);
|
|
12
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
|
13
|
+
$white: daff-get-base-color($theme, 'white');
|
|
14
|
+
$black: daff-get-base-color($theme, 'black');
|
|
15
|
+
|
|
16
|
+
.daff-beacon {
|
|
17
|
+
&.daff-primary {
|
|
18
|
+
color: daff-color($primary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.daff-secondary {
|
|
22
|
+
color: daff-color($secondary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.daff-tertiary {
|
|
26
|
+
color: daff-color($tertiary);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.daff-theme {
|
|
30
|
+
color: $base;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.daff-theme-contrast {
|
|
34
|
+
color: $base-contrast;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.daff-dark {
|
|
38
|
+
color: $black;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.daff-light {
|
|
42
|
+
color: $white;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.daff-info {
|
|
46
|
+
color: daff-color($info);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.daff-warn {
|
|
50
|
+
color: daff-color($warn);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.daff-critical {
|
|
54
|
+
color: daff-color($critical);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.daff-success {
|
|
58
|
+
color: daff-color($success);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
package/breadcrumb/README.md
CHANGED
|
@@ -15,8 +15,7 @@ Breadcrumbs visually represent the navigational structure of a site or app and h
|
|
|
15
15
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
To use breadcrumb in a standalone component, import `DAFF_BREADCRUMB_COMPONENTS` directly into your custom component:
|
|
18
|
+
Import `DAFF_BREADCRUMB_COMPONENTS` into your component:
|
|
20
19
|
|
|
21
20
|
```ts
|
|
22
21
|
import { DAFF_BREADCRUMB_COMPONENTS } from '@daffodil/design/breadcrumb';
|
|
@@ -31,40 +30,13 @@ import { DAFF_BREADCRUMB_COMPONENTS } from '@daffodil/design/breadcrumb';
|
|
|
31
30
|
export class CustomComponent {}
|
|
32
31
|
```
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
import { NgModule } from '@angular/core';
|
|
39
|
-
import { DaffBreadcrumbModule } from '@daffodil/design/breadcrumb';
|
|
40
|
-
import { CustomComponent } from './custom.component';
|
|
41
|
-
|
|
42
|
-
@NgModule({
|
|
43
|
-
declarations: [
|
|
44
|
-
CustomComponent,
|
|
45
|
-
],
|
|
46
|
-
exports: [
|
|
47
|
-
CustomComponent,
|
|
48
|
-
],
|
|
49
|
-
imports: [
|
|
50
|
-
DaffBreadcrumbModule,
|
|
51
|
-
],
|
|
52
|
-
})
|
|
53
|
-
export class CustomComponentModule { }
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
> This method is deprecated. It's recommended to update all custom components to standalone.
|
|
33
|
+
> **Deprecation notice:**
|
|
34
|
+
>
|
|
35
|
+
> `DaffBreadcrumbModule` is deprecated. Use the standalone component imports instead.
|
|
57
36
|
|
|
58
37
|
## Anatomy
|
|
59
|
-
A breadcrumb
|
|
60
|
-
|
|
61
|
-
### Container
|
|
62
|
-
**`[daff-breadcrumb]`**: The wrapper that groups all breadcrumb items together. Applied to an `<ol>` element.
|
|
38
|
+
A breadcrumb is composed of a container and one or more items:
|
|
63
39
|
|
|
64
|
-
### Item
|
|
65
|
-
**`[daffBreadcrumbItem]`**: Individual breadcrumb element within the navigation path. Applied to a `<li>` element.
|
|
66
|
-
|
|
67
|
-
### Basic structure
|
|
68
40
|
```html
|
|
69
41
|
<ol daff-breadcrumb>
|
|
70
42
|
<li daffBreadcrumbItem>
|
|
@@ -74,20 +46,26 @@ A breadcrumb consists of the following components:
|
|
|
74
46
|
<a routerLink="/category">Category</a>
|
|
75
47
|
</li>
|
|
76
48
|
<li daffBreadcrumbItem>
|
|
77
|
-
<span>
|
|
49
|
+
<span>Shoes</span>
|
|
78
50
|
</li>
|
|
79
51
|
</ol>
|
|
80
52
|
```
|
|
81
53
|
|
|
54
|
+
- **`[daff-breadcrumb]`**: The wrapper that groups all breadcrumb items together. Applied to an `<ol>` element.
|
|
55
|
+
- **`[daffBreadcrumbItem]`**: An individual breadcrumb in the navigation path. Applied to a `<li>` element.
|
|
56
|
+
- Use a link for every item except the last, which represents the current page and is rendered as plain text.
|
|
57
|
+
|
|
82
58
|
## Features
|
|
83
59
|
|
|
84
60
|
### Truncation
|
|
85
61
|
Breadcrumbs are automatically truncated into an overflow menu on mobile viewports. On desktop, truncation occurs when more than five items are present.
|
|
86
62
|
|
|
63
|
+
<daff-docs-example-viewer example="truncated-breadcrumb"></daff-docs-example-viewer>
|
|
64
|
+
|
|
87
65
|
## Accessibility
|
|
88
66
|
Breadcrumb follows the [Breadcrumb WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/).
|
|
89
67
|
|
|
90
|
-
###
|
|
68
|
+
### Built-in behavior
|
|
91
69
|
- `aria-current="page"` automatically applied to the last breadcrumb item
|
|
92
70
|
- Enforces semantic HTML structure (requires `<ol>` and `<li>` elements)
|
|
93
71
|
|
package/button/README.md
CHANGED
|
@@ -9,33 +9,18 @@ Button supports four variants that change its visual style, each applied as an a
|
|
|
9
9
|
| `daff-button` | Rectangular button with background color |
|
|
10
10
|
| `daff-flat-button`| Rectangular button with no outline or background color |
|
|
11
11
|
| `daff-icon-button` | Icon only button used with icon fonts |
|
|
12
|
-
| `daff-stroked-button` | Rectangular button with
|
|
12
|
+
| `daff-stroked-button` | Rectangular button with outline, no background color |
|
|
13
13
|
|
|
14
14
|
Native `<button>` or `<a>` elements should always be used in order to provide an easy, accessible experience for users.
|
|
15
15
|
|
|
16
16
|
- Use `<a>` for navigation to new pages or different sections.
|
|
17
17
|
- Use `<button>` for actions performed within the same page.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
<daff-docs-example-viewer example="basic-button"></daff-docs-example-viewer>
|
|
21
|
-
|
|
22
|
-
**Flat button**
|
|
23
|
-
<daff-docs-example-viewer example="flat-button"></daff-docs-example-viewer>
|
|
24
|
-
|
|
25
|
-
**Stroked button**
|
|
26
|
-
<daff-docs-example-viewer example="stroked-button"></daff-docs-example-viewer>
|
|
27
|
-
|
|
28
|
-
> `dark`, `light`, and `theme` should be used with caution to ensure that there is sufficient contrast.
|
|
29
|
-
|
|
30
|
-
**Icon button**
|
|
31
|
-
<daff-docs-example-viewer example="icon-button"></daff-docs-example-viewer>
|
|
32
|
-
|
|
33
|
-
> `dark`, `light`, and `theme` should be used with caution to ensure that there is sufficient contrast.
|
|
19
|
+
<daff-docs-example-viewer example="button-types"></daff-docs-example-viewer>
|
|
34
20
|
|
|
35
21
|
## Usage
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
To use button in a standalone component, import each button type directly into your custom component.
|
|
23
|
+
Import the button type you need into your component:
|
|
39
24
|
|
|
40
25
|
Available imports:
|
|
41
26
|
- `DAFF_BASIC_BUTTON_COMPONENTS`
|
|
@@ -57,45 +42,37 @@ import { DAFF_BASIC_BUTTON_COMPONENTS } from '@daffodil/design/button';
|
|
|
57
42
|
export class CustomComponent {}
|
|
58
43
|
```
|
|
59
44
|
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
> **Deprecation notice:**
|
|
46
|
+
>
|
|
47
|
+
> `DaffButtonModule` is deprecated. Use the standalone component imports instead.
|
|
62
48
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
import { DaffButtonModule } from '@daffodil/design/button';
|
|
66
|
-
import { CustomComponent } from './custom.component';
|
|
49
|
+
## Anatomy
|
|
50
|
+
A button is composed of a label with optional icons:
|
|
67
51
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
CustomComponent,
|
|
74
|
-
],
|
|
75
|
-
imports: [
|
|
76
|
-
DaffButtonModule,
|
|
77
|
-
],
|
|
78
|
-
})
|
|
79
|
-
export class CustomComponentModule { }
|
|
52
|
+
```html
|
|
53
|
+
<button daff-button>
|
|
54
|
+
<fa-icon daffPrefix></fa-icon>
|
|
55
|
+
Add to cart
|
|
56
|
+
</button>
|
|
80
57
|
```
|
|
81
58
|
|
|
82
|
-
|
|
59
|
+
- The label describing the action. Always provide one unless the button uses an icon that is universally understood and accessible.
|
|
60
|
+
- Add the `daffPrefix` or `daffSuffix` directive to an icon to place it before or after the label text. Avoid using both at once.
|
|
83
61
|
|
|
84
|
-
##
|
|
85
|
-
Buttons should always have a label, unless you are only using an icon that is universally understood and accessible.
|
|
62
|
+
## Features
|
|
86
63
|
|
|
87
|
-
###
|
|
88
|
-
|
|
64
|
+
### Icons
|
|
65
|
+
Render an icon on either side of the button label with the `daffPrefix` and `daffSuffix` directives.
|
|
89
66
|
|
|
90
67
|
<daff-docs-example-viewer example="button-with-icon"></daff-docs-example-viewer>
|
|
91
68
|
|
|
92
|
-
## Features
|
|
93
|
-
|
|
94
69
|
### Colors
|
|
95
70
|
Use the `color` property to change the color of a button.
|
|
96
71
|
|
|
97
72
|
> Note: `dark`, `light`, and `theme` should be used on appropriate backgrounds for sufficient contrast.
|
|
98
73
|
|
|
74
|
+
<daff-docs-example-viewer example="button-colors"></daff-docs-example-viewer>
|
|
75
|
+
|
|
99
76
|
### Elevation
|
|
100
77
|
Add shadows to buttons with the `elevated` property.
|
|
101
78
|
|
|
@@ -113,8 +90,6 @@ Status indicators help users understand the type of action a button performs and
|
|
|
113
90
|
|
|
114
91
|
<daff-docs-example-viewer example="statusable-button"></daff-docs-example-viewer>
|
|
115
92
|
|
|
116
|
-
## States
|
|
117
|
-
|
|
118
93
|
### Disabled
|
|
119
94
|
Use the `disabled` property to disable a button that shouldn't be actionable. The button will appear faded and won't respond to user interaction.
|
|
120
95
|
|
|
@@ -125,12 +100,15 @@ Use the `loading` property to indicate that an action is being processed. When `
|
|
|
125
100
|
|
|
126
101
|
<daff-docs-example-viewer example="loading-button"></daff-docs-example-viewer>
|
|
127
102
|
|
|
128
|
-
##
|
|
129
|
-
Daffodil uses native `<a>` and `<button>` HTML elements to ensure an accessible experience by default.
|
|
103
|
+
## Accessibility
|
|
130
104
|
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
|
|
105
|
+
### Built-in behavior
|
|
106
|
+
- Enforces the use of native `<a>` and `<button>` HTML elements for keyboard and screen reader support by default
|
|
107
|
+
|
|
108
|
+
### Developer responsibilities
|
|
109
|
+
- Use `<a>` for navigation to new pages or different sections
|
|
110
|
+
- Use `<button>` for actions performed within the same page
|
|
111
|
+
- Give icon only buttons (`<daff-icon-button>`) a meaningful label using `aria-label` or `aria-labelledby`
|
|
134
112
|
|
|
135
113
|
## Deprecations
|
|
136
114
|
- `<daff-raised-button>` is deprecated and will be removed in v1.0.0. Use the `elevated` property instead.
|
package/card/README.md
CHANGED
|
@@ -37,7 +37,7 @@ export class CustomComponent {}
|
|
|
37
37
|
|
|
38
38
|
> **Deprecation notice:**
|
|
39
39
|
>
|
|
40
|
-
> `
|
|
40
|
+
> `DaffCardModule` is deprecated. Use the standalone component imports instead.
|
|
41
41
|
|
|
42
42
|
## Anatomy
|
|
43
43
|
A card is composed of a container, image, icon, tagline, title, content, and actions, displayed in the order listed:
|
|
@@ -60,26 +60,13 @@ A card is composed of a container, image, icon, tagline, title, content, and act
|
|
|
60
60
|
</daff-card>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
**`<daff-card>`** or **`<daff-stroked-card
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
**`[
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
**`[
|
|
70
|
-
Displays a visual or branding element. Avoid using for interactive icons.
|
|
71
|
-
|
|
72
|
-
**`[daffCardTagline]`**\
|
|
73
|
-
Short phrase that provides quick context.
|
|
74
|
-
|
|
75
|
-
**`[daffCardTitle]`**\
|
|
76
|
-
The primary heading of the card.
|
|
77
|
-
|
|
78
|
-
**`[daffCardContent]`**\
|
|
79
|
-
Flexible container for body text or custom content. It's unstyled except for spacing and **should only be used once per card**.
|
|
80
|
-
|
|
81
|
-
**`[daffCardActions]`**\
|
|
82
|
-
Container for buttons or links, positioned at the bottom.
|
|
63
|
+
- **`<daff-card>`** or **`<daff-stroked-card>`**: The wrapper component that holds all card content.
|
|
64
|
+
- **`[daffCardImage]`**: Image element at the top of the card.
|
|
65
|
+
- **`[daffCardIcon]`**: Displays a visual or branding element. Avoid using for interactive icons.
|
|
66
|
+
- **`[daffCardTagline]`**: Short phrase that provides quick context.
|
|
67
|
+
- **`[daffCardTitle]`**: The primary heading of the card.
|
|
68
|
+
- **`[daffCardContent]`**: Flexible container for body text or custom content. It's unstyled except for spacing and **should only be used once per card**.
|
|
69
|
+
- **`[daffCardActions]`**: Container for buttons or links, positioned at the bottom.
|
|
83
70
|
|
|
84
71
|
## Features
|
|
85
72
|
|
|
@@ -95,7 +82,6 @@ Cards default to a light gray background. Use the `color` property to change a c
|
|
|
95
82
|
|
|
96
83
|
<daff-docs-example-viewer example="card-theming"></daff-docs-example-viewer>
|
|
97
84
|
|
|
98
|
-
|
|
99
85
|
### Elevation
|
|
100
86
|
Use the `elevated` property to add shadows to cards.
|
|
101
87
|
|
|
@@ -13,7 +13,18 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
@media (hover: hover) {
|
|
17
|
+
&:hover {
|
|
18
|
+
color: daff-text-contrast($hover-color);
|
|
19
|
+
|
|
20
|
+
.daff-card__wrapper {
|
|
21
|
+
&::after {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
17
28
|
&:focus {
|
|
18
29
|
color: daff-text-contrast($hover-color);
|
|
19
30
|
|
package/container/README.md
CHANGED
|
@@ -5,8 +5,8 @@ Container is a structural element that restricts content to a maximum width.
|
|
|
5
5
|
Container comes with pre-defined sizes that work well with common breakpoints. It's not responsible for providing padding or margin.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
|
|
9
|
+
Import `DAFF_CONTAINER_COMPONENTS` into your component:
|
|
10
10
|
|
|
11
11
|
```ts
|
|
12
12
|
import { DAFF_CONTAINER_COMPONENTS } from '@daffodil/design/container';
|
|
@@ -21,31 +21,9 @@ import { DAFF_CONTAINER_COMPONENTS } from '@daffodil/design/container';
|
|
|
21
21
|
export class CustomComponent {}
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
To use container in a module, import `DaffContainerModule` into your custom module:
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
import { NgModule } from '@angular/core';
|
|
29
|
-
import { DaffContainerModule } from '@daffodil/design/container';
|
|
30
|
-
import { CustomComponent } from './custom.component';
|
|
31
|
-
|
|
32
|
-
@NgModule({
|
|
33
|
-
declarations: [
|
|
34
|
-
CustomComponent,
|
|
35
|
-
],
|
|
36
|
-
exports: [
|
|
37
|
-
CustomComponent,
|
|
38
|
-
],
|
|
39
|
-
imports: [
|
|
40
|
-
DaffContainerModule,
|
|
41
|
-
],
|
|
42
|
-
})
|
|
43
|
-
export class CustomComponentModule { }
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
> **Warning**
|
|
24
|
+
> **Deprecation notice:**
|
|
47
25
|
>
|
|
48
|
-
>
|
|
26
|
+
> `DaffContainerModule` is deprecated. Use the standalone component imports instead.
|
|
49
27
|
|
|
50
28
|
## Sizes
|
|
51
29
|
Set a size on container using the `size` property. There is no default size.
|
|
@@ -22,10 +22,10 @@ import { DaffArticleEncapsulatedDirective, DaffOpenableDirective, DaffDisableabl
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
class DaffAccordionComponent {
|
|
25
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
25
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DaffAccordionComponent, isStandalone: true, selector: "daff-accordion", hostDirectives: [{ directive: i1.DaffArticleEncapsulatedDirective }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{ selector: 'daff-accordion', template: '<ng-content></ng-content>', hostDirectives: [{
|
|
31
31
|
directive: DaffArticleEncapsulatedDirective,
|
|
@@ -76,7 +76,7 @@ class DaffAccordionItemComponent {
|
|
|
76
76
|
* @docs-private
|
|
77
77
|
*/
|
|
78
78
|
ngOnInit() {
|
|
79
|
-
this.openDirective.open
|
|
79
|
+
this.openDirective.open.update(() => this.initiallyExpanded ? this.initiallyExpanded : this.openDirective.open());
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* @docs-private
|
|
@@ -102,10 +102,10 @@ class DaffAccordionItemComponent {
|
|
|
102
102
|
toggle() {
|
|
103
103
|
this.openDirective.toggle();
|
|
104
104
|
}
|
|
105
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
106
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
105
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionItemComponent, deps: [{ token: i1.DaffOpenableDirective }, { token: i1.DaffDisableableDirective }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DaffAccordionItemComponent, isStandalone: true, selector: "daff-accordion-item", inputs: { itemId: "itemId", contentId: "contentId", initiallyExpanded: "initiallyExpanded" }, host: { classAttribute: "daff-accordion-item" }, hostDirectives: [{ directive: i1.DaffOpenableDirective, outputs: ["toggled", "toggled"] }, { directive: i1.DaffDisableableDirective, inputs: ["disabled", "disabled"] }], ngImport: i0, template: "<button type=\"button\" class=\"daff-accordion-item__header\"\n (click)=\"toggle()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"contentId\"\n [id]=\"itemId\"\n [disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n</button>\n<div class=\"daff-accordion-item__content\" [id]=\"contentId\" [attr.aria-labelledby]=\"itemId\" role=\"region\">\n <ng-content></ng-content>\n</div>", styles: [".daff-accordion-item{display:block}.daff-accordion-item__header{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;appearance:none;justify-content:space-between;gap:.5rem;background:none;border:none;inline-size:100%;margin:0;padding:1rem;position:relative}.daff-accordion-item__header:after{content:\"\";position:absolute;top:48%;right:1rem;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:.5rem;height:.5rem;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-accordion-item.daff-open .daff-accordion-item__header:after{top:56%;transform:translateY(-50%) rotate(225deg)}.daff-accordion-item.daff-open .daff-accordion-item__content{height:auto;opacity:1;padding:0 1rem 1rem;visibility:visible}.daff-accordion-item.daff-disabled .daff-accordion-item__header{cursor:not-allowed;opacity:.5}.daff-accordion-item__title{font-size:1rem;line-height:1.5rem;font-weight:500;inline-size:100%;margin:0;padding:0 2rem 0 0;text-align:start}.daff-accordion-item__content{height:0;opacity:0;visibility:hidden;transition:opacity .15s ease-in}.daff-accordion-item__content>p{margin:0 0 1rem}.daff-accordion-item__content>p:last-child{margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionItemComponent, decorators: [{
|
|
109
109
|
type: Component,
|
|
110
110
|
args: [{ selector: 'daff-accordion-item', hostDirectives: [
|
|
111
111
|
{
|
|
@@ -118,7 +118,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
118
118
|
},
|
|
119
119
|
], host: {
|
|
120
120
|
'class': 'daff-accordion-item',
|
|
121
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"daff-accordion-item__header\"\n (click)=\"toggle()\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-controls]=\"contentId\"\n [id]=\"itemId\"\n [disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n</button>\n<div class=\"daff-accordion-item__content\" [id]=\"contentId\" [attr.aria-labelledby]=\"itemId\" role=\"region\">\n <ng-content></ng-content>\n</div>", styles: [".daff-accordion-item{display:block}.daff-accordion-item__header{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;appearance:none;justify-content:space-between;gap:.5rem;background:none;border:none;inline-size:100%;margin:0;padding:1rem;position:relative}.daff-accordion-item__header:after{content:\"\";position:absolute;top:48%;right:1rem;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:.5rem;height:.5rem;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-accordion-item.daff-open .daff-accordion-item__header:after{top:56%;transform:translateY(-50%) rotate(225deg)}.daff-accordion-item.daff-open .daff-accordion-item__content{height:auto;opacity:1;padding:0 1rem 1rem;visibility:visible}.daff-accordion-item.daff-disabled .daff-accordion-item__header{cursor:not-allowed;opacity:.5}.daff-accordion-item__title{font-size:1rem;line-height:1.5rem;font-weight:500;inline-size:100%;margin:0;padding:0 2rem 0 0;text-align:start}.daff-accordion-item__content{height:0;opacity:0;visibility:hidden;transition:opacity .15s ease-in}.daff-accordion-item__content>p{margin:0 0 1rem}.daff-accordion-item__content>p:last-child{margin:0}\n"] }]
|
|
121
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"daff-accordion-item__header\"\n (click)=\"toggle()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"contentId\"\n [id]=\"itemId\"\n [disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n</button>\n<div class=\"daff-accordion-item__content\" [id]=\"contentId\" [attr.aria-labelledby]=\"itemId\" role=\"region\">\n <ng-content></ng-content>\n</div>", styles: [".daff-accordion-item{display:block}.daff-accordion-item__header{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;appearance:none;justify-content:space-between;gap:.5rem;background:none;border:none;inline-size:100%;margin:0;padding:1rem;position:relative}.daff-accordion-item__header:after{content:\"\";position:absolute;top:48%;right:1rem;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:.5rem;height:.5rem;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-accordion-item.daff-open .daff-accordion-item__header:after{top:56%;transform:translateY(-50%) rotate(225deg)}.daff-accordion-item.daff-open .daff-accordion-item__content{height:auto;opacity:1;padding:0 1rem 1rem;visibility:visible}.daff-accordion-item.daff-disabled .daff-accordion-item__header{cursor:not-allowed;opacity:.5}.daff-accordion-item__title{font-size:1rem;line-height:1.5rem;font-weight:500;inline-size:100%;margin:0;padding:0 2rem 0 0;text-align:start}.daff-accordion-item__content{height:0;opacity:0;visibility:hidden;transition:opacity .15s ease-in}.daff-accordion-item__content>p{margin:0 0 1rem}.daff-accordion-item__content>p:last-child{margin:0}\n"] }]
|
|
122
122
|
}], ctorParameters: () => [{ type: i1.DaffOpenableDirective }, { type: i1.DaffDisableableDirective }], propDecorators: { itemId: [{
|
|
123
123
|
type: Input
|
|
124
124
|
}], contentId: [{
|
|
@@ -137,10 +137,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
137
137
|
* ```
|
|
138
138
|
*/
|
|
139
139
|
class DaffAccordionItemTitleDirective {
|
|
140
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
141
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
140
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionItemTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
141
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffAccordionItemTitleDirective, isStandalone: true, selector: "[daffAccordionItemTitle]", host: { classAttribute: "daff-accordion-item__title" }, ngImport: i0 }); }
|
|
142
142
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionItemTitleDirective, decorators: [{
|
|
144
144
|
type: Directive,
|
|
145
145
|
args: [{
|
|
146
146
|
selector: '[daffAccordionItemTitle]',
|
|
@@ -154,16 +154,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
154
154
|
* @deprecated in favor of {@link DAFF_ACCORDION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
|
155
155
|
*/
|
|
156
156
|
class DaffAccordionModule {
|
|
157
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
157
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
158
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionModule, imports: [CommonModule,
|
|
159
159
|
DaffAccordionComponent,
|
|
160
160
|
DaffAccordionItemComponent,
|
|
161
161
|
DaffAccordionItemTitleDirective], exports: [DaffAccordionComponent,
|
|
162
162
|
DaffAccordionItemComponent,
|
|
163
163
|
DaffAccordionItemTitleDirective] }); }
|
|
164
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
164
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionModule, imports: [CommonModule] }); }
|
|
165
165
|
}
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAccordionModule, decorators: [{
|
|
167
167
|
type: NgModule,
|
|
168
168
|
args: [{
|
|
169
169
|
imports: [
|