@daffodil/design 0.90.0 → 0.91.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/index.d.ts +8 -5
- package/article/README.md +1 -1
- package/article/index.d.ts +20 -0
- package/article/src/article-theme.scss +10 -0
- package/button/index.d.ts +4 -4
- package/button/src/button/button-base.scss +3 -3
- package/button/src/button/raised/raised-theme.scss +2 -2
- package/card/README.md +0 -8
- package/card/index.d.ts +7 -41
- package/card/src/card-base-theme.scss +2 -5
- package/card/src/card-base.scss +2 -2
- package/checkbox/README.md +0 -0
- package/checkbox/index.d.ts +177 -0
- package/fesm2022/daffodil-design-accordion.mjs +23 -14
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +129 -5
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +24 -20
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +16 -63
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +317 -0
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
- package/fesm2022/daffodil-design-form-field.mjs +35 -65
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +62 -0
- package/fesm2022/daffodil-design-form.mjs.map +1 -0
- package/fesm2022/daffodil-design-image.mjs +12 -4
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +55 -56
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +14 -50
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +6 -11
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +3 -5
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +13 -42
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +6 -36
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +48 -105
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +22 -14
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +56 -55
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +4 -13
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +250 -461
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/README.md +75 -0
- package/form/index.d.ts +27 -0
- package/form-field/README.md +49 -39
- package/form-field/index.d.ts +56 -36
- package/image/README.md +27 -19
- package/image/index.d.ts +6 -1
- package/index.d.ts +180 -259
- package/input/README.md +32 -12
- package/modal/README.md +106 -16
- package/modal/index.d.ts +50 -21
- package/native-select/README.md +52 -15
- package/notification/index.d.ts +7 -38
- package/package.json +1 -1
- package/paginator/index.d.ts +1 -7
- package/radio/index.d.ts +0 -16
- package/scss/layout/_breakpoint.scss +1 -1
- package/scss/theme.scss +2 -4
- package/scss/theming/_color-palettes.scss +21 -7
- package/scss/theming/_configure-theme.scss +11 -10
- package/scss/theming/_daff-theme.scss +5 -14
- package/scss/theming/_get-base-color.scss +2 -2
- package/scss/theming/_get-palette.scss +2 -2
- package/scss/theming/_get-theme-mode.scss +3 -3
- package/scss/theming/_index.scss +2 -1
- package/scss/theming/contrast/max-contrast/max-contrast.scss +3 -3
- package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
- package/scss/theming/create-theme/_create-theme.scss +330 -0
- package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
- package/scss/theming/create-theme/_index.scss +1 -0
- package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
- package/scss/typography/mixins/_font-weight.scss +8 -14
- package/select/README.md +107 -4
- package/sidebar/README.md +0 -8
- package/sidebar/index.d.ts +3 -15
- package/switch/README.md +19 -27
- package/switch/index.d.ts +18 -48
- package/switch/src/switch-theme.scss +26 -18
- package/tabs/index.d.ts +7 -4
- package/tag/src/tag-theme.scss +11 -9
- package/textarea/README.md +35 -5
- package/tree/index.d.ts +0 -6
- package/tree/src/tree-theme.scss +0 -4
- package/accordion/examples/index.d.ts +0 -20
- package/article/examples/index.d.ts +0 -50
- package/breadcrumb/examples/index.d.ts +0 -10
- package/button/examples/index.d.ts +0 -67
- package/callout/examples/index.d.ts +0 -41
- package/card/examples/index.d.ts +0 -62
- package/card/src/card/raised/raised-theme.scss +0 -28
- package/checkbox/examples/index.d.ts +0 -32
- package/container/examples/index.d.ts +0 -16
- package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-article-examples.mjs +0 -134
- package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-button-examples.mjs +0 -178
- package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
- package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-card-examples.mjs +0 -168
- package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-container-examples.mjs +0 -41
- package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
- package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
- package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-image-examples.mjs +0 -58
- package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-input-examples.mjs +0 -108
- package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-list-examples.mjs +0 -77
- package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
- package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
- package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
- package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
- package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +0 -34
- package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-select-examples.mjs +0 -117
- package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
- package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
- package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tag-examples.mjs +0 -125
- package/fesm2022/daffodil-design-tag-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
- package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
- package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
- package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
- package/form-field/examples/index.d.ts +0 -18
- package/hero/examples/index.d.ts +0 -45
- package/image/examples/index.d.ts +0 -10
- package/input/examples/index.d.ts +0 -10
- package/list/examples/index.d.ts +0 -29
- package/loading-icon/examples/index.d.ts +0 -16
- package/media-gallery/examples/index.d.ts +0 -38
- package/menu/examples/index.d.ts +0 -20
- package/modal/examples/index.d.ts +0 -15
- package/native-select/examples/index.d.ts +0 -10
- package/navbar/examples/index.d.ts +0 -31
- package/notification/examples/index.d.ts +0 -12
- package/paginator/examples/index.d.ts +0 -26
- package/progress-bar/examples/index.d.ts +0 -10
- package/quantity-field/examples/index.d.ts +0 -30
- package/radio/examples/index.d.ts +0 -13
- package/select/examples/index.d.ts +0 -28
- package/sidebar/examples/index.d.ts +0 -10
- package/sticky/examples/index.d.ts +0 -10
- package/switch/examples/index.d.ts +0 -46
- package/tabs/examples/index.d.ts +0 -12
- package/tag/examples/index.d.ts +0 -50
- package/text-snippet/examples/index.d.ts +0 -10
- package/textarea/examples/index.d.ts +0 -10
- package/toast/examples/index.d.ts +0 -56
- package/tree/examples/index.d.ts +0 -18
- /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
- /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
package/modal/README.md
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
# Modal
|
|
2
|
-
Modal is a dynamically rendered element that floats above the rest of a page's content
|
|
2
|
+
Modal is a dynamically rendered element that floats above the rest of a page's content, requiring user interaction before returning to the main application.
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
Modals are used to capture information or attention. They overlay the main content and prevent interaction with the page until the modal is dismissed.
|
|
3
6
|
|
|
4
|
-
## Basic Modal
|
|
5
7
|
<design-land-example-viewer-container example="basic-modal"></design-land-example-viewer-container>
|
|
6
8
|
|
|
9
|
+
## Best practices
|
|
10
|
+
|
|
11
|
+
**When to use**
|
|
12
|
+
- Display important information that require a user response
|
|
13
|
+
- Display non-essential but detailed content related to the underlying page
|
|
14
|
+
|
|
15
|
+
**When not to use**
|
|
16
|
+
- To display critical information or warnings
|
|
17
|
+
- To provide status feedback or messages (use [Notification](/libs/design/notification/README.md) or [Toast](/libs/design/toast/README.md) instead)
|
|
18
|
+
|
|
7
19
|
## Usage
|
|
8
20
|
|
|
9
21
|
### Within a standalone component
|
|
@@ -46,31 +58,106 @@ export class CustomComponentModule { }
|
|
|
46
58
|
|
|
47
59
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
|
48
60
|
|
|
49
|
-
##
|
|
50
|
-
A modal
|
|
61
|
+
## Anatomy
|
|
62
|
+
A modal consists of the following contents, displayed in the order listed:
|
|
51
63
|
|
|
52
64
|
### Header
|
|
53
|
-
|
|
65
|
+
**`<daff-modal-header>`**: The header section containing the title and optional close button.
|
|
54
66
|
|
|
55
67
|
#### Title
|
|
56
|
-
|
|
68
|
+
**`[daffModalTitle]`**: The primary text summarizing the modal.
|
|
57
69
|
|
|
58
|
-
#### Close
|
|
70
|
+
#### Close button
|
|
59
71
|
The close button in the header is shown by default but can be hidden by setting the `dismissible` property to `false` on the header.
|
|
60
72
|
|
|
61
73
|
### Content
|
|
62
|
-
|
|
74
|
+
**`<daff-modal-content>`**: The scrollable container for the modal's main content. Use this once per modal to wrap all body content.
|
|
63
75
|
|
|
64
76
|
### Actions
|
|
65
|
-
|
|
77
|
+
**`<daff-modal-actions>`**: The container for action buttons, positioned at the bottom of the modal with right-aligned buttons. If two buttons are needed, place the primary button the left and the secondary button on the right.
|
|
78
|
+
|
|
79
|
+
### Basic structure
|
|
80
|
+
```html
|
|
81
|
+
<daff-modal-header>
|
|
82
|
+
<h2 daffModalTitle>Modal Title</h2>
|
|
83
|
+
</daff-modal-header>
|
|
84
|
+
<daff-modal-content>
|
|
85
|
+
<p>Modal content goes here</p>
|
|
86
|
+
</daff-modal-content>
|
|
87
|
+
<daff-modal-actions>
|
|
88
|
+
<button daff-button>Cancel</button>
|
|
89
|
+
<button daff-button color="primary">Confirm</button>
|
|
90
|
+
</daff-modal-actions>
|
|
91
|
+
```
|
|
66
92
|
|
|
67
|
-
## Dismissing a
|
|
68
|
-
A modal can be dismissed via
|
|
93
|
+
## Dismissing a modal
|
|
94
|
+
A modal can be dismissed via:
|
|
95
|
+
- The close button in the header (shown by default)
|
|
96
|
+
- The `ESC` key
|
|
97
|
+
- A button with the `[daffModalClose]` directive within `<daff-modal-actions>`.
|
|
69
98
|
|
|
70
|
-
|
|
71
|
-
Modal works with the ARIA `role="dialog"` and `aria-modal="true"` attributes to provide an accessible experience. The first tabbable element will receive focus when a modal is opened.
|
|
99
|
+
To hide the close button, set `dismissible` to `false` on `<daff-modal-header>`:
|
|
72
100
|
|
|
73
|
-
|
|
101
|
+
```html
|
|
102
|
+
<daff-modal-header [dismissible]="false">
|
|
103
|
+
<h2 daffModalTitle>Modal Title</h2>
|
|
104
|
+
</daff-modal-header>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Position configuration
|
|
108
|
+
By default, modals are horizontally and vertically centered on the screen. You can position a modal at the top of the screen by passing a `position` configuration when opening the modal:
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
constructor(private modalService: DaffModalService) {}
|
|
112
|
+
|
|
113
|
+
showModal() {
|
|
114
|
+
this.modal = this.modalService.open(
|
|
115
|
+
ModalContentComponent,
|
|
116
|
+
{
|
|
117
|
+
position: {
|
|
118
|
+
vertical: 'top',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
You can also adjust how far from the top the modal appears by setting `offsetTop`:
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
showModal() {
|
|
129
|
+
this.modal = this.modalService.open(
|
|
130
|
+
ModalContentComponent,
|
|
131
|
+
{
|
|
132
|
+
position: {
|
|
133
|
+
vertical: 'top',
|
|
134
|
+
offsetTop: '5rem',
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
> Note: The horizontal position is always centered and cannot be customized.
|
|
142
|
+
|
|
143
|
+
## Accessibility
|
|
144
|
+
Modal implements the [Dialog (Modal) WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/).
|
|
145
|
+
|
|
146
|
+
### Daffodil provides
|
|
147
|
+
- `role="dialog"`
|
|
148
|
+
- `aria-modal="true"`
|
|
149
|
+
- `aria-labelledby` linked to the `[daffModalTitle]` element
|
|
150
|
+
- When opened, focus moves to the first tabbable element within the modal
|
|
151
|
+
- Focus is trapped within the modal while open
|
|
152
|
+
- When closed, focus returns to the element that triggered the modal
|
|
153
|
+
|
|
154
|
+
### Developer responsibilities
|
|
155
|
+
- Provide an `aria-labelledby` through the `DafffModalService` if `[daffModalTitle]` is not used
|
|
156
|
+
- Add `aria-haspopup="dialog"` to the element that opens the modal
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<button daff-button (click)="showModal()" aria-haspopup="dialog">Open Modal</button>
|
|
160
|
+
```
|
|
74
161
|
|
|
75
162
|
```ts
|
|
76
163
|
constructor(private modalService: DaffModalService) {}
|
|
@@ -83,5 +170,8 @@ showModal() {
|
|
|
83
170
|
}
|
|
84
171
|
```
|
|
85
172
|
|
|
86
|
-
### Keyboard
|
|
87
|
-
|
|
173
|
+
### Keyboard interactions
|
|
174
|
+
| Key | Action |
|
|
175
|
+
| --- | ------ |
|
|
176
|
+
| `Tab` | Moves focus to the next focusable element within the modal. |
|
|
177
|
+
| `ESC` | Closes the modal and returns focus to the triggering element. |
|
package/modal/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
-
import { AnimationEvent } from '@angular/animations';
|
|
3
2
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
4
3
|
import * as i2 from '@angular/cdk/portal';
|
|
5
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
6
5
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { Type, AfterContentInit, AfterViewInit, OnDestroy,
|
|
6
|
+
import { Type, AfterContentInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, ComponentRef } from '@angular/core';
|
|
8
7
|
import * as i1 from '@daffodil/design';
|
|
9
8
|
import { DaffOpenable, DaffOpenableDirective, DaffFocusStackService } from '@daffodil/design';
|
|
10
9
|
import * as i3 from '@angular/cdk/overlay';
|
|
@@ -14,14 +13,39 @@ import * as i4 from '@daffodil/design/button';
|
|
|
14
13
|
import * as i5 from '@fortawesome/angular-fontawesome';
|
|
15
14
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
16
15
|
|
|
16
|
+
type DaffModalVerticalPosition = 'top' | 'center';
|
|
17
|
+
interface DaffModalPosition {
|
|
18
|
+
/**
|
|
19
|
+
* The vertical position of the modal. Can be 'top' or 'center'.
|
|
20
|
+
*/
|
|
21
|
+
vertical?: DaffModalVerticalPosition;
|
|
22
|
+
/**
|
|
23
|
+
* Optional offset from the top edge. Defaults to `10rem`.
|
|
24
|
+
*/
|
|
25
|
+
offsetTop?: string;
|
|
26
|
+
}
|
|
17
27
|
interface DaffModalConfiguration {
|
|
18
28
|
/**
|
|
19
29
|
* A hook for what to do when the backdrop behind a
|
|
20
30
|
* DaffModalComponent is interacted with.
|
|
21
31
|
*/
|
|
22
32
|
onBackdropClicked?: () => void;
|
|
23
|
-
/** Sets the `aria-labelledby` property on the modal */
|
|
33
|
+
/** Sets the `aria-labelledby` property on the modal. */
|
|
24
34
|
ariaLabelledBy?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The position of the modal. If not provided, defaults to centered horizontally and vertically.
|
|
37
|
+
* Horizontal position is always center.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* // Center (default)
|
|
42
|
+
* { vertical: 'center' }
|
|
43
|
+
*
|
|
44
|
+
* // Top with offset
|
|
45
|
+
* { vertical: 'top', offsetTop: '2rem' }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
position?: DaffModalPosition;
|
|
25
49
|
}
|
|
26
50
|
|
|
27
51
|
declare class DaffModalService {
|
|
@@ -31,8 +55,10 @@ declare class DaffModalService {
|
|
|
31
55
|
private defaultConfiguration;
|
|
32
56
|
private _attachModal;
|
|
33
57
|
private _attachModalContent;
|
|
58
|
+
private _createPositionStrategy;
|
|
34
59
|
private _createOverlayRef;
|
|
35
60
|
private _removeModal;
|
|
61
|
+
private _closeAllModals;
|
|
36
62
|
open(component: Type<any>, configuration?: Partial<DaffModalConfiguration>): DaffModalComponent;
|
|
37
63
|
close(component: DaffModalComponent): void;
|
|
38
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalService, never>;
|
|
@@ -46,17 +72,21 @@ declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnD
|
|
|
46
72
|
private openDirective;
|
|
47
73
|
private _focusStack;
|
|
48
74
|
private changeDetector;
|
|
75
|
+
private closing;
|
|
49
76
|
private _ariaLabelledBy;
|
|
77
|
+
/**
|
|
78
|
+
* @docs-private
|
|
79
|
+
*
|
|
80
|
+
* By default, the `aria-labelledby` of the modal is set to the `id` of the modal title.
|
|
81
|
+
*/
|
|
50
82
|
get ariaLabelledBy(): string;
|
|
51
83
|
set ariaLabelledBy(value: string);
|
|
52
84
|
/**
|
|
85
|
+
* @docs-private
|
|
86
|
+
*
|
|
53
87
|
* The CDK Portal outlet used to portal content into the modal.
|
|
54
88
|
*/
|
|
55
89
|
private _portalOutlet;
|
|
56
|
-
/**
|
|
57
|
-
* Event fired when the close animation is completed.
|
|
58
|
-
*/
|
|
59
|
-
animationCompleted: EventEmitter<any>;
|
|
60
90
|
/**
|
|
61
91
|
* Private subject for closed animation completion events.
|
|
62
92
|
*/
|
|
@@ -64,7 +94,7 @@ declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnD
|
|
|
64
94
|
/**
|
|
65
95
|
* Observable that emits when the close animation is completed.
|
|
66
96
|
*/
|
|
67
|
-
readonly closedAnimationCompleted$: rxjs.Observable<
|
|
97
|
+
readonly closedAnimationCompleted$: rxjs.Observable<boolean>;
|
|
68
98
|
/**
|
|
69
99
|
* @docs-private
|
|
70
100
|
*/
|
|
@@ -80,32 +110,31 @@ declare class DaffModalComponent implements AfterContentInit, AfterViewInit, OnD
|
|
|
80
110
|
*/
|
|
81
111
|
ngAfterViewInit(): void;
|
|
82
112
|
/**
|
|
113
|
+
* @docs-private
|
|
114
|
+
*
|
|
83
115
|
* Helper method to attach portable content to modal.
|
|
84
116
|
*/
|
|
85
117
|
attachContent(portal: ComponentPortal<any>): any;
|
|
86
|
-
/** Animation hook that controls the entrance and exit animations of the modal. */
|
|
87
118
|
/**
|
|
88
|
-
*
|
|
119
|
+
* Tracks the open state of the modal.
|
|
89
120
|
*/
|
|
90
|
-
get fadeState(): string;
|
|
91
|
-
/**
|
|
92
|
-
* Animation event that can used to hook into when
|
|
93
|
-
* animations are fully completed. We use this in the DaffModalService
|
|
94
|
-
* to determine when to actually remove the dynamically rendered element from the DOM
|
|
95
|
-
* so that the animation does not clip as the element is removed.
|
|
96
|
-
*/
|
|
97
|
-
animationDone(e: AnimationEvent): void;
|
|
98
121
|
get open(): boolean;
|
|
99
122
|
/**
|
|
100
|
-
*
|
|
123
|
+
* @docs-private
|
|
124
|
+
*
|
|
125
|
+
* Reveals the modal.
|
|
101
126
|
*/
|
|
102
127
|
reveal(): void;
|
|
103
128
|
/**
|
|
104
|
-
*
|
|
129
|
+
* @docs-private
|
|
130
|
+
*
|
|
131
|
+
* Hides the modal.
|
|
105
132
|
*/
|
|
106
133
|
hide(): void;
|
|
107
134
|
/**
|
|
108
|
-
*
|
|
135
|
+
* @docs-private
|
|
136
|
+
*
|
|
137
|
+
* Toggles the visibility of the modal.
|
|
109
138
|
*/
|
|
110
139
|
toggle(): void;
|
|
111
140
|
/**
|
package/native-select/README.md
CHANGED
|
@@ -1,25 +1,62 @@
|
|
|
1
|
-
# Native
|
|
2
|
-
|
|
1
|
+
# Native Select
|
|
2
|
+
Native select works alongside the HTML select element, with additional custom styling and functionality.
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
|
-
|
|
5
|
+
Native select has the same functionality as a native HTML select element, with additional custom styling and functionality. It **cannot** be used by itself and must be contained within a [form field](/libs/design/form-field/README.md).
|
|
6
6
|
|
|
7
|
-
<design-land-example-viewer-container example="
|
|
7
|
+
<design-land-example-viewer-container example="basic-native-select"></design-land-example-viewer-container>
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Usage
|
|
10
|
+
To use native select, import `DAFF_NATIVE_SELECT_COMPONENTS` directly into your custom component:
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
```ts
|
|
13
|
+
import { DAFF_NATIVE_SELECT_COMPONENTS } from '@daffodil/design/native-select';
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'custom-component',
|
|
17
|
+
templateUrl: './custom-component.component.html',
|
|
18
|
+
imports: [
|
|
19
|
+
DAFF_NATIVE_SELECT_COMPONENTS,
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
export class CustomComponent {}
|
|
23
|
+
```
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
## Anatomy
|
|
26
|
+
Native select must be used inside `<daff-form-field>` to enable proper state management and provide enhanced UI features such as hints, error messages, prefixes, and suffixes. The form field component also ensures accessibility compliance. For more details, see the [form field documentation](/libs/design/form-field/README.md).
|
|
18
27
|
|
|
19
|
-
###
|
|
20
|
-
|
|
28
|
+
### Basic structure
|
|
29
|
+
```html
|
|
30
|
+
<daff-form-field>
|
|
31
|
+
<daff-form-label>Sort By</daff-form-label>
|
|
32
|
+
<select daff-native-select>
|
|
33
|
+
<option value="price-low-high">Price: Low to High</option>
|
|
34
|
+
<option value="price-high-low">Price: High to Low</option>
|
|
35
|
+
<option value="newest">Newest Arrivals</option>
|
|
36
|
+
</select>
|
|
37
|
+
</daff-form-field>
|
|
38
|
+
```
|
|
21
39
|
|
|
22
|
-
|
|
40
|
+
## States
|
|
23
41
|
|
|
24
|
-
###
|
|
25
|
-
|
|
42
|
+
### Disabled
|
|
43
|
+
Native select can be disabled in two ways: using Angular's reactive forms with `FormControl` or with the native HTML `disabled` attribute.
|
|
44
|
+
|
|
45
|
+
<design-land-example-viewer-container example="native-select-disabled"></design-land-example-viewer-container>
|
|
46
|
+
|
|
47
|
+
### Error
|
|
48
|
+
Native select supports validation and error messages through Angular's form validation system. Use `<daff-error-message>` within the form field to display context-specific error messages. Error messages automatically appear when the select is invalid and has been touched or submitted.
|
|
49
|
+
|
|
50
|
+
<design-land-example-viewer-container example="native-select-error"></design-land-example-viewer-container>
|
|
51
|
+
|
|
52
|
+
Multiple error messages can be displayed conditionally based on the type of validation error. The form field component handles the styling and positioning of error messages.
|
|
53
|
+
|
|
54
|
+
## Hints
|
|
55
|
+
Hints provide additional context or instructions to help users complete the select field correctly. Use `<daff-hint>` within the form field to display helpful information below the select. Unlike error messages, hints are always visible and provide guidance rather than validation feedback.
|
|
56
|
+
|
|
57
|
+
<design-land-example-viewer-container example="native-select-hint"></design-land-example-viewer-container>
|
|
58
|
+
|
|
59
|
+
## Accessibility
|
|
60
|
+
When `<daff-form-label>` is used within `<daff-form-field>`, the label automatically associates with the select using the `for` and `id` attributes.
|
|
61
|
+
|
|
62
|
+
If a `<daff-form-label>` is not specified, use the `<label>` element to associate text with form elements explicitly. The `for` attribute of the label must exactly match the `id` of the form control.
|
package/notification/index.d.ts
CHANGED
|
@@ -2,28 +2,10 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import * as i1 from '@daffodil/design';
|
|
5
|
-
import { DaffPrefixDirective, DaffStatusableDirective } from '@daffodil/design';
|
|
5
|
+
import { DaffPrefixDirective, DaffStatusableDirective, DaffOrientableDirective } from '@daffodil/design';
|
|
6
6
|
import * as i3 from '@fortawesome/angular-fontawesome';
|
|
7
7
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* The available orientations for a notification.
|
|
11
|
-
*
|
|
12
|
-
* | Orientation | Description |
|
|
13
|
-
* | -- | -- |
|
|
14
|
-
* | `vertical` | Stacks notification content from top to bottom. This is the default orientation. |
|
|
15
|
-
* | `horizontal` | Places notification content side-by-side. |
|
|
16
|
-
*/
|
|
17
|
-
type DaffNotificationOrientation = 'horizontal' | 'vertical';
|
|
18
|
-
/**
|
|
19
|
-
* Enum for representing the available notification orientations.
|
|
20
|
-
* See {@link DaffNotificationOrientation} for descriptions of each orientation.
|
|
21
|
-
*/
|
|
22
|
-
declare enum DaffNotificationOrientationEnum {
|
|
23
|
-
Horizontal = "horizontal",
|
|
24
|
-
Vertical = "vertical"
|
|
25
|
-
}
|
|
26
|
-
|
|
27
9
|
/**
|
|
28
10
|
* Actions is used to include actionable buttons related to the notification (e.g., dismiss, navigate).
|
|
29
11
|
*
|
|
@@ -60,6 +42,7 @@ declare class DaffNotificationActionsDirective {
|
|
|
60
42
|
*/
|
|
61
43
|
declare class DaffNotificationComponent {
|
|
62
44
|
private statusDirective;
|
|
45
|
+
private orientation;
|
|
63
46
|
/**
|
|
64
47
|
* @docs-private
|
|
65
48
|
*/
|
|
@@ -83,11 +66,7 @@ declare class DaffNotificationComponent {
|
|
|
83
66
|
* Displays a close icon if `true`.
|
|
84
67
|
*/
|
|
85
68
|
dismissible: boolean;
|
|
86
|
-
constructor(statusDirective: DaffStatusableDirective);
|
|
87
|
-
/**
|
|
88
|
-
* The orientation of a notification.
|
|
89
|
-
*/
|
|
90
|
-
orientation: DaffNotificationOrientation;
|
|
69
|
+
constructor(statusDirective: DaffStatusableDirective, orientation: DaffOrientableDirective);
|
|
91
70
|
/**
|
|
92
71
|
* Emits when the notification is closed.
|
|
93
72
|
*/
|
|
@@ -99,8 +78,7 @@ declare class DaffNotificationComponent {
|
|
|
99
78
|
*/
|
|
100
79
|
onCloseNotification(event: Event): void;
|
|
101
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationComponent, never>;
|
|
102
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; };
|
|
103
|
-
static ngAcceptInputType_orientation: DaffNotificationOrientation | null | undefined;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeNotification": "closeNotification"; }, ["_prefix", "_actions"], ["[daffPrefix]", "[daffNotificationTitle]", "[daffNotificationMessage]", "[daffNotificationActions]"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
104
82
|
}
|
|
105
83
|
|
|
106
84
|
/**
|
|
@@ -130,27 +108,18 @@ declare class DaffNotificationTitleDirective {
|
|
|
130
108
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationTitleDirective, "[daffNotificationTitle]", never, {}, {}, never, never, true, never>;
|
|
131
109
|
}
|
|
132
110
|
|
|
133
|
-
/**
|
|
134
|
-
* @deprecated in favor of DaffNotificationMessageDirective. Deprecated in version 0.88.0. Will be removed in version 0.91.0.
|
|
135
|
-
*/
|
|
136
|
-
declare class DaffNotificationSubtitleDirective {
|
|
137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationSubtitleDirective, never>;
|
|
138
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationSubtitleDirective, "[daffNotificationSubtitle]", never, {}, {}, never, never, true, never>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
111
|
/**
|
|
142
112
|
* @deprecated in favor of {@link DAFF_NOTIFICATION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
|
143
113
|
*/
|
|
144
114
|
declare class DaffNotificationModule {
|
|
145
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationModule, never>;
|
|
146
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective
|
|
116
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective], [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof i1.DaffPrefixSuffixModule]>;
|
|
147
117
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffNotificationModule>;
|
|
148
118
|
}
|
|
149
119
|
|
|
150
120
|
/**
|
|
151
121
|
* @docs-private
|
|
152
122
|
*/
|
|
153
|
-
declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof
|
|
123
|
+
declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffPrefixDirective];
|
|
154
124
|
|
|
155
|
-
export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule,
|
|
156
|
-
export type { DaffNotificationOrientation };
|
|
125
|
+
export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule, DaffNotificationTitleDirective };
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.91.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^20.0.0","@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/forms":"^20.0.0","@angular/cdk":"^20.0.0","@daffodil/core":"0.91.0","@fortawesome/angular-fontawesome":"^3.0.0","@fortawesome/fontawesome-svg-core":"^7.0.1","@fortawesome/free-solid-svg-icons":"^7.0.1","@fortawesome/free-brands-svg-icons":"^7.0.1","@fortawesome/free-regular-svg-icons":"^7.0.1","modern-normalize":"^3.0.1","rxjs":"^7.0.0"},"optionalDependencies":{"@faker-js/faker":"^9.8.0"},"exports":{"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/typography":{"sass":"./scss/typography/_index.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-design.mjs"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.mjs"},"./breadcrumb":{"types":"./breadcrumb/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb.mjs"},"./button":{"types":"./button/index.d.ts","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./checkbox":{"types":"./checkbox/index.d.ts","default":"./fesm2022/daffodil-design-checkbox.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./form":{"types":"./form/index.d.ts","default":"./fesm2022/daffodil-design-form.mjs"},"./form-field":{"types":"./form-field/index.d.ts","default":"./fesm2022/daffodil-design-form-field.mjs"},"./hero":{"types":"./hero/index.d.ts","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","default":"./fesm2022/daffodil-design-image.mjs"},"./input":{"types":"./input/index.d.ts","default":"./fesm2022/daffodil-design-input.mjs"},"./link-set":{"types":"./link-set/index.d.ts","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","default":"./fesm2022/daffodil-design-modal.mjs"},"./native-select":{"types":"./native-select/index.d.ts","default":"./fesm2022/daffodil-design-native-select.mjs"},"./navbar":{"types":"./navbar/index.d.ts","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./quantity-field":{"types":"./quantity-field/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field.mjs"},"./radio":{"types":"./radio/index.d.ts","default":"./fesm2022/daffodil-design-radio.mjs"},"./select":{"types":"./select/index.d.ts","default":"./fesm2022/daffodil-design-select.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./fesm2022/daffodil-design-switch.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./fesm2022/daffodil-design-tabs.mjs"},"./tag":{"types":"./tag/index.d.ts","default":"./fesm2022/daffodil-design-tag.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./textarea":{"types":"./textarea/index.d.ts","default":"./fesm2022/daffodil-design-textarea.mjs"},"./toast":{"types":"./toast/index.d.ts","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","default":"./fesm2022/daffodil-design-tree.mjs"},"./youtube-player":{"types":"./youtube-player/index.d.ts","default":"./fesm2022/daffodil-design-youtube-player.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.6.2"}}
|
package/paginator/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges,
|
|
2
|
+
import { OnChanges, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/router';
|
|
5
5
|
import { Params } from '@angular/router';
|
|
@@ -7,7 +7,6 @@ import * as i3 from '@fortawesome/angular-fontawesome';
|
|
|
7
7
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
8
8
|
|
|
9
9
|
declare class DaffPaginatorComponent implements OnChanges {
|
|
10
|
-
private elementRef;
|
|
11
10
|
/**
|
|
12
11
|
* @docs-private
|
|
13
12
|
*/
|
|
@@ -16,11 +15,6 @@ declare class DaffPaginatorComponent implements OnChanges {
|
|
|
16
15
|
* @docs-private
|
|
17
16
|
*/
|
|
18
17
|
faChevronLeft: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
19
|
-
/**
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
_paginatorId: string;
|
|
23
|
-
constructor(elementRef: ElementRef);
|
|
24
18
|
/**
|
|
25
19
|
* The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping numberOfPages
|
|
26
20
|
* and currentPage in sync. For example, if the numberOfPages is dynamically changed to a value less than the currentPage, the paginator will break.
|
package/radio/index.d.ts
CHANGED
|
@@ -6,28 +6,12 @@ import { NgControl, ControlValueAccessor } from '@angular/forms';
|
|
|
6
6
|
declare class DaffRadioSetComponent {
|
|
7
7
|
name: string;
|
|
8
8
|
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* @docs-private
|
|
11
|
-
*/
|
|
12
|
-
role: string;
|
|
13
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioSetComponent, never>;
|
|
14
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRadioSetComponent, "daff-radio-set", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
15
11
|
}
|
|
16
12
|
|
|
17
13
|
declare class DaffRadioComponent implements OnInit {
|
|
18
14
|
private radioset;
|
|
19
|
-
/**
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
role: string;
|
|
23
|
-
/**
|
|
24
|
-
* @docs-private
|
|
25
|
-
*/
|
|
26
|
-
get focusClass(): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @docs-private
|
|
29
|
-
*/
|
|
30
|
-
get disabledClass(): boolean;
|
|
31
15
|
/**
|
|
32
16
|
* @docs-private
|
|
33
17
|
*/
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
///
|
|
21
21
|
@mixin breakpoint($point) {
|
|
22
22
|
@if not map.has-key($map: v.$breakpoints, $key: $point) {
|
|
23
|
-
@warn 'breakpoint(): "#{$
|
|
23
|
+
@warn 'breakpoint(): "#{$point}" is not defined in the $breakpoints map.';
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@media (min-width: map.get(v.$breakpoints, $point)) {
|
package/scss/theme.scss
CHANGED
|
@@ -27,15 +27,14 @@
|
|
|
27
27
|
@use '../button/src/button/underline/underline-theme' as underline-button;
|
|
28
28
|
@use '../article/src/article-theme' as article;
|
|
29
29
|
@use '../tag/src/tag-theme' as tag;
|
|
30
|
-
@use '../form
|
|
31
|
-
@use '../form
|
|
30
|
+
@use '../form/src/error-message/error-message-theme' as error-message;
|
|
31
|
+
@use '../form/src/hint/hint-theme' as hint;
|
|
32
32
|
@use '../form-field/src/form-field-theme' as form-field;
|
|
33
33
|
@use '../native-select/src/native-select-theme' as native-select;
|
|
34
34
|
@use '../loading-icon/src/loading-icon-theme' as loading-icon;
|
|
35
35
|
@use '../accordion/src/accordion-theme' as accordion;
|
|
36
36
|
@use '../callout/src/callout-theme' as callout;
|
|
37
37
|
@use '../card/src/card-base-theme' as card-base;
|
|
38
|
-
@use '../card/src/card/raised/raised-theme' as raised-card;
|
|
39
38
|
@use '../card/src/card/stroked/stroked-theme' as stroked-card;
|
|
40
39
|
@use '../hero/src/hero-theme' as hero;
|
|
41
40
|
@use '../list/src/list-theme' as list;
|
|
@@ -84,7 +83,6 @@
|
|
|
84
83
|
|
|
85
84
|
@include callout.daff-callout-theme($theme);
|
|
86
85
|
@include card-base.daff-card-base-theme($theme);
|
|
87
|
-
@include raised-card.daff-raised-card-theme($theme);
|
|
88
86
|
@include stroked-card.daff-stroked-card-theme($theme);
|
|
89
87
|
|
|
90
88
|
@include form-field.daff-form-field-theme($theme);
|