@daffodil/design 0.83.0 → 0.84.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/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +4 -1
- package/atoms/form/error-message/error-message.module.d.ts +4 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +23 -29
- package/atoms/form/form-field/form-field-control.d.ts +18 -4
- package/atoms/form/form-field/form-field-state.d.ts +7 -0
- package/atoms/form/form-field/form-field.d.ts +10 -0
- package/atoms/form/form-field/form-field.module.d.ts +6 -4
- package/atoms/form/form-field/public_api.d.ts +2 -1
- package/atoms/form/form-label/form-label.directive.d.ts +4 -1
- package/atoms/form/form-label/form-label.module.d.ts +4 -1
- package/atoms/form/hint/hint.component.d.ts +9 -0
- package/atoms/form/hint/public_api.d.ts +1 -0
- package/atoms/form/input/input.component.d.ts +15 -19
- package/atoms/form/input/input.module.d.ts +4 -2
- package/atoms/form/native-select/native-select.component.d.ts +5 -1
- package/atoms/form/quantity-field/quantity-field.component.d.ts +2 -1
- package/atoms/form/quantity-field/quantity-field.module.d.ts +3 -3
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/breadcrumb/src/breadcrumb-theme.scss +12 -3
- package/button/button/button-base.directive.d.ts +6 -23
- package/button/src/button/basic/button-theme.scss +13 -41
- package/button/src/button/button-base.scss +17 -4
- package/button/src/button/flat/flat-theme.scss +4 -38
- package/button/src/button/icon/icon-theme.scss +4 -30
- package/button/src/button/raised/raised-theme.scss +2 -2
- package/button/src/button/stroked/stroked-theme.scss +4 -36
- package/button/src/button/underline/underline-theme.scss +4 -18
- package/callout/src/callout-theme.scss +27 -10
- package/card/card/basic/basic.component.d.ts +3 -0
- package/card/card/raised/raised.component.d.ts +3 -0
- package/card/card/stroked/stroked.component.d.ts +3 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
- package/core/colorable/colorable.directive.d.ts +8 -0
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
- package/core/openable/openable.directive.d.ts +3 -0
- package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
- package/core/prefix-suffix/prefix.directive.d.ts +4 -1
- package/core/prefix-suffix/public_api.d.ts +0 -4
- package/core/prefix-suffix/suffix.directive.d.ts +4 -1
- package/core/sizable/sizable.directive.d.ts +8 -0
- package/core/statusable/statusable.directive.d.ts +2 -0
- package/core/text-alignable/text-alignable.directive.d.ts +6 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +5 -2
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +21 -17
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +25 -32
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +9 -0
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -0
- package/fesm2022/daffodil-design-checkbox-examples.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 +45 -22
- package/fesm2022/daffodil-design-input-examples.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-menu.mjs +23 -10
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +33 -0
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +2 -2
- package/fesm2022/daffodil-design-notification-examples.mjs +6 -11
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +32 -5
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +2 -2
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +18 -0
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +9 -9
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +6 -6
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +3 -4
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +23 -4
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +6 -0
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +3 -5
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +19 -5
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +3 -0
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +301 -224
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/src/hero-theme.scss +27 -10
- package/input/examples/examples.d.ts +2 -2
- package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
- package/input/examples/input-hint/input-hint.component.d.ts +5 -0
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
- package/list/list/list.component.d.ts +1 -1
- package/list/src/list-theme.scss +16 -20
- package/menu/menu/menu.component.d.ts +15 -0
- package/menu/menu-activator/menu-activator.component.d.ts +3 -0
- package/menu/src/menu-theme.scss +29 -10
- package/modal/modal/modal.component.d.ts +21 -0
- package/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/modal/modal-close/modal-close.directive.d.ts +3 -0
- package/modal/modal-content/modal-content.component.d.ts +3 -0
- package/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/navbar/src/navbar-theme.scss +8 -3
- package/notification/README.md +11 -12
- package/notification/notification/notification.component.d.ts +17 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
- package/notification/notification-message/notification-message.directive.d.ts +3 -0
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
- package/notification/notification-title/notification-title.directive.d.ts +3 -0
- package/notification/notification.d.ts +2 -2
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +22 -17
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
- package/progress-bar/progress-bar.component.d.ts +15 -0
- package/public_api.d.ts +1 -0
- package/scss/state/skeleton/_mixins.scss +19 -9
- package/scss/theme.scss +2 -0
- package/src/atoms/form/error-message/error-message-theme.scss +4 -1
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +22 -10
- package/src/atoms/form/hint/hint-theme.scss +17 -0
- package/src/atoms/form/input/input-theme.scss +1 -5
- package/switch/switch.d.ts +2 -2
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
- package/tabs/tabs/tabs.component.d.ts +3 -0
- package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
- package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
- package/toast/toast/toast.component.d.ts +3 -5
- package/tree/interfaces/tree-data.d.ts +15 -0
- package/tree/interfaces/tree-render-mode.d.ts +2 -2
- package/tree/tree/tree-notifier.service.d.ts +3 -3
- package/tree/tree/tree.component.d.ts +13 -3
- package/tree/tree-item/tree-item.directive.d.ts +6 -0
- package/youtube-player/youtube-player.component.d.ts +3 -0
- package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
- package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
- package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
- package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
- package/input/examples/basic-input/basic-input.component.d.ts +0 -5
@@ -22,6 +22,9 @@ export declare class DaffCheckboxControlValueAccessorDirective implements OnInit
|
|
22
22
|
/**
|
23
23
|
* A lifecycle method called when the directive is initialized.
|
24
24
|
*/
|
25
|
+
/**
|
26
|
+
* @docs-private
|
27
|
+
*/
|
25
28
|
ngOnInit(): void;
|
26
29
|
/**
|
27
30
|
* writes a new value down into the component.
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffErrorMessageComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageComponent, never>;
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"],
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"], true, never>;
|
6
9
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./error-message.component";
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
3
6
|
export declare class DaffErrorMessageModule {
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffErrorMessageModule, [typeof i1.DaffErrorMessageComponent],
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffErrorMessageModule, never, [typeof i1.DaffErrorMessageComponent], [typeof i1.DaffErrorMessageComponent]>;
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffErrorMessageModule>;
|
7
10
|
}
|
@@ -1,53 +1,47 @@
|
|
1
|
-
import {
|
1
|
+
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef } from '@angular/core';
|
2
|
+
import { DaffPrefixDirective } from '../../../../core/prefix-suffix/prefix.directive';
|
3
|
+
import { DaffSuffixDirective } from '../../../../core/prefix-suffix/suffix.directive';
|
2
4
|
import { DaffFormFieldControl } from '../form-field-control';
|
3
5
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class DaffFormFieldComponent implements
|
5
|
-
|
6
|
-
|
7
|
-
*/
|
8
|
-
faChevronDown: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
6
|
+
export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked {
|
7
|
+
private cd;
|
8
|
+
/** @docs-private */
|
9
9
|
class: boolean;
|
10
|
+
/** @docs-private */
|
11
|
+
get isSelectField(): boolean;
|
12
|
+
/** @docs-private */
|
13
|
+
_prefix: DaffPrefixDirective;
|
14
|
+
/** @docs-private */
|
15
|
+
_suffix: DaffSuffixDirective;
|
10
16
|
/**
|
11
|
-
* The
|
12
|
-
* and thus show an error message (even if the field hasn't been touched).
|
13
|
-
*
|
14
|
-
* @deprecated Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
15
|
-
*/
|
16
|
-
formSubmitted: boolean;
|
17
|
-
/**
|
18
|
-
* The child form control that the form-field manages
|
17
|
+
* The child form control that the form field manages.
|
19
18
|
*
|
20
19
|
* @docs-private
|
21
20
|
*/
|
22
|
-
_control: DaffFormFieldControl
|
21
|
+
_control: DaffFormFieldControl<unknown>;
|
23
22
|
/**
|
24
23
|
* Tracking property to keep a record of whether or not the
|
25
24
|
* form field should be marked as error.
|
26
25
|
*/
|
27
26
|
isError: boolean;
|
27
|
+
/**
|
28
|
+
* Tracking property to keep a record of whether or not the
|
29
|
+
* form field contains any user input.
|
30
|
+
*/
|
31
|
+
isFilled: boolean;
|
32
|
+
isDisabled: boolean;
|
28
33
|
/**
|
29
34
|
* Tracking property to keep a record of whether or not the
|
30
35
|
* form field should be marked as valid.
|
31
36
|
*/
|
32
37
|
isValid: boolean;
|
38
|
+
constructor(cd: ChangeDetectorRef);
|
33
39
|
/**
|
34
|
-
* @docs
|
35
|
-
*
|
36
40
|
* Determines whether or not the form field should display its focused state.
|
37
41
|
*/
|
38
42
|
get isFocused(): boolean;
|
39
43
|
/**
|
40
|
-
*
|
41
|
-
*
|
42
|
-
* TODO: consider whether or not this can be refactored to some kind of
|
43
|
-
* observable to remove unnecessary change detection.
|
44
|
-
*
|
45
|
-
* @docs-private
|
46
|
-
*/
|
47
|
-
ngDoCheck(): void;
|
48
|
-
/**
|
49
|
-
* Validate whether or not the FormField is in
|
50
|
-
* a "usable" state.
|
44
|
+
* Validate whether or not the FormField is in a "usable" state.
|
51
45
|
*/
|
52
46
|
private _validateFormControl;
|
53
47
|
/**
|
@@ -67,5 +61,5 @@ export declare class DaffFormFieldComponent implements DoCheck, AfterContentInit
|
|
67
61
|
*/
|
68
62
|
ngAfterContentChecked(): void;
|
69
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {}, {}, ["_prefix", "_suffix", "_control"], ["[daffPrefix]", "label[daffFormLabel]", "*", "[daffSuffix]", "daff-error-message", "daff-hint"], true, never>;
|
71
65
|
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { NgControl } from '@angular/forms';
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
3
|
+
import { DaffFormFieldState } from './form-field-state';
|
2
4
|
/**
|
3
5
|
*
|
4
6
|
* The class that a form control must **implement** in order to be
|
@@ -10,9 +12,21 @@ import { NgControl } from '@angular/forms';
|
|
10
12
|
* in javascript, they get thrown out by the typescript compiler and cannot
|
11
13
|
* be used for the necessary dependency injection.
|
12
14
|
*/
|
13
|
-
export declare abstract class DaffFormFieldControl {
|
14
|
-
|
15
|
-
readonly controlType?: any;
|
16
|
-
readonly focused: boolean;
|
15
|
+
export declare abstract class DaffFormFieldControl<T> {
|
16
|
+
ngControl: NgControl | null;
|
17
|
+
abstract readonly controlType?: any;
|
18
|
+
abstract readonly focused: boolean;
|
17
19
|
abstract focus(event?: Event): void;
|
20
|
+
abstract readonly value: T;
|
21
|
+
constructor(ngControl: NgControl | null);
|
22
|
+
get state(): DaffFormFieldState;
|
23
|
+
_stateChanges: BehaviorSubject<{
|
24
|
+
focused: boolean;
|
25
|
+
filled: boolean;
|
26
|
+
disabled: boolean;
|
27
|
+
error: boolean;
|
28
|
+
valid: boolean;
|
29
|
+
}>;
|
30
|
+
stateChanges: Observable<DaffFormFieldState>;
|
31
|
+
emitState(): void;
|
18
32
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DaffFormFieldComponent } from './form-field/form-field.component';
|
2
|
+
import { DaffPrefixDirective } from '../../../core/prefix-suffix/prefix.directive';
|
3
|
+
import { DaffSuffixDirective } from '../../../core/prefix-suffix/suffix.directive';
|
4
|
+
import { DaffErrorMessageComponent } from '../error-message/error-message.component';
|
5
|
+
import { DaffFormLabelDirective } from '../form-label/form-label.directive';
|
6
|
+
import { DaffHintComponent } from '../hint/hint.component';
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
10
|
+
export declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffErrorMessageComponent, typeof DaffFormLabelDirective, typeof DaffHintComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective];
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./form-field/form-field.component";
|
3
|
-
import * as i2 from "
|
4
|
-
import * as i3 from "
|
5
|
-
|
3
|
+
import * as i2 from "../error-message/error-message.module";
|
4
|
+
import * as i3 from "../form-label/form-label.module";
|
5
|
+
/**
|
6
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
7
|
+
*/
|
6
8
|
export declare class DaffFormFieldModule {
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormFieldModule, [typeof i1.DaffFormFieldComponent
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormFieldModule, never, [typeof i1.DaffFormFieldComponent, typeof i2.DaffErrorMessageModule, typeof i3.DaffFormLabelModule], [typeof i1.DaffFormFieldComponent, typeof i2.DaffErrorMessageModule, typeof i3.DaffFormLabelModule]>;
|
9
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffFormFieldModule>;
|
10
12
|
}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { DaffFormFieldModule } from './form-field.module';
|
2
|
-
export
|
2
|
+
export { DaffFormFieldComponent } from './form-field/form-field.component';
|
3
3
|
export { DaffFormFieldControl } from './form-field-control';
|
4
|
+
export { DAFF_FORM_FIELD_COMPONENTS } from './form-field';
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffFormLabelDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormLabelDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormLabelDirective, "[daffFormLabel]", never, {}, {}, never, never,
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormLabelDirective, "[daffFormLabel]", never, {}, {}, never, never, true, never>;
|
6
9
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./form-label.directive";
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
3
6
|
export declare class DaffFormLabelModule {
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormLabelModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormLabelModule, [typeof i1.DaffFormLabelDirective],
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormLabelModule, never, [typeof i1.DaffFormLabelDirective], [typeof i1.DaffFormLabelDirective]>;
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffFormLabelModule>;
|
7
10
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class DaffHintComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
6
|
+
class: boolean;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, {}, {}, never, ["*"], true, never>;
|
9
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DaffHintComponent } from './hint.component';
|
@@ -1,35 +1,31 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
2
|
import { NgControl } from '@angular/forms';
|
3
3
|
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
/**
|
6
6
|
* DaffInputComponent provides the same functionality as a native `<input>` and contains custom styling and functionality.
|
7
7
|
*/
|
8
|
-
export declare class DaffInputComponent implements DaffFormFieldControl {
|
9
|
-
/**
|
10
|
-
* @docs-private
|
11
|
-
*/
|
8
|
+
export declare class DaffInputComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {
|
9
|
+
/** @docs-private */
|
12
10
|
ngControl: NgControl;
|
13
11
|
private _elementRef;
|
14
|
-
/**
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
/** @docs-private */
|
13
|
+
class: boolean;
|
14
|
+
/** @docs-private */
|
15
|
+
controlType: string;
|
18
16
|
focused: boolean;
|
19
|
-
/**
|
20
|
-
* @docs-private
|
21
|
-
*/
|
17
|
+
/** @docs-private */
|
22
18
|
focus(): void;
|
23
|
-
/**
|
24
|
-
* @docs-private
|
25
|
-
*/
|
19
|
+
/** @docs-private */
|
26
20
|
blur(): void;
|
27
21
|
constructor(
|
28
|
-
/**
|
29
|
-
* @docs-private
|
30
|
-
*/
|
22
|
+
/** @docs-private */
|
31
23
|
ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>);
|
24
|
+
/** @docs-private */
|
25
|
+
ngOnInit(): void;
|
26
|
+
/** @docs-private */
|
32
27
|
onFocus(): void;
|
28
|
+
get value(): string;
|
33
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputComponent, [{ optional: true; self: true; }, null]>;
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffInputComponent, "input[daff-input]", never, {
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffInputComponent, "input[daff-input]", never, {}, {}, never, ["*"], true, never>;
|
35
31
|
}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./input.component";
|
3
|
-
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
4
6
|
export declare class DaffInputModule {
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffInputModule, [typeof i1.DaffInputComponent], [typeof
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffInputModule, never, [typeof i1.DaffInputComponent], [typeof i1.DaffInputComponent]>;
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffInputModule>;
|
8
10
|
}
|
@@ -2,7 +2,7 @@ import { ElementRef } from '@angular/core';
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
3
3
|
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
5
|
+
export declare class DaffNativeSelectComponent extends DaffFormFieldControl<string | number> implements DaffFormFieldControl<string | number> {
|
6
6
|
/**
|
7
7
|
* @docs-private
|
8
8
|
*/
|
@@ -12,6 +12,9 @@ export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
|
12
12
|
* @docs-private
|
13
13
|
*/
|
14
14
|
controlType: string;
|
15
|
+
/**
|
16
|
+
* @docs-private
|
17
|
+
*/
|
15
18
|
class: boolean;
|
16
19
|
/**
|
17
20
|
* Has the form been submitted.
|
@@ -32,6 +35,7 @@ export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
|
32
35
|
*/
|
33
36
|
ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>);
|
34
37
|
onFocus(): void;
|
38
|
+
get value(): string;
|
35
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNativeSelectComponent, [{ optional: true; self: true; }, null]>;
|
36
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNativeSelectComponent, "select[daff-native-select]", never, { "formSubmitted": { "alias": "formSubmitted"; "required": false; }; }, {}, never, ["*"], false, never>;
|
37
41
|
}
|
@@ -4,7 +4,7 @@ import { DaffQuantityInputComponent } from './quantity-input/quantity-input.comp
|
|
4
4
|
import { DaffQuantitySelectComponent } from './quantity-select/quantity-select.component';
|
5
5
|
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
export declare class DaffQuantityFieldComponent implements ControlValueAccessor, DaffFormFieldControl {
|
7
|
+
export declare class DaffQuantityFieldComponent extends DaffFormFieldControl<number> implements ControlValueAccessor, DaffFormFieldControl<number> {
|
8
8
|
ngControl: NgControl;
|
9
9
|
private cd;
|
10
10
|
input: DaffQuantityInputComponent;
|
@@ -49,6 +49,7 @@ export declare class DaffQuantityFieldComponent implements ControlValueAccessor,
|
|
49
49
|
registerOnTouched(fn: any): void;
|
50
50
|
setDisabledState(isDisabled: boolean): void;
|
51
51
|
focus(): void;
|
52
|
+
get value(): any;
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffQuantityFieldComponent, [{ optional: true; self: true; }, null]>;
|
53
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffQuantityFieldComponent, "daff-quantity-field", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectMax": { "alias": "selectMax"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
|
54
55
|
}
|
@@ -4,10 +4,10 @@ import * as i2 from "./quantity-input/quantity-input.component";
|
|
4
4
|
import * as i3 from "./quantity-select/quantity-select.component";
|
5
5
|
import * as i4 from "@angular/common";
|
6
6
|
import * as i5 from "../native-select/native-select.module";
|
7
|
-
import * as i6 from "
|
8
|
-
import * as i7 from "
|
7
|
+
import * as i6 from "@angular/forms";
|
8
|
+
import * as i7 from "../input/input.module";
|
9
9
|
export declare class DaffQuantityFieldModule {
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffQuantityFieldModule, never>;
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffQuantityFieldModule, [typeof i1.DaffQuantityFieldComponent, typeof i2.DaffQuantityInputComponent, typeof i3.DaffQuantitySelectComponent], [typeof i4.CommonModule, typeof i5.DaffNativeSelectModule, typeof i6.
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffQuantityFieldModule, [typeof i1.DaffQuantityFieldComponent, typeof i2.DaffQuantityInputComponent, typeof i3.DaffQuantitySelectComponent], [typeof i4.CommonModule, typeof i5.DaffNativeSelectModule, typeof i6.ReactiveFormsModule, typeof i7.DaffInputModule], [typeof i1.DaffQuantityFieldComponent, typeof i2.DaffQuantityInputComponent, typeof i3.DaffQuantitySelectComponent]>;
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffQuantityFieldModule>;
|
13
13
|
}
|
@@ -30,6 +30,9 @@ export declare class DaffQuantityInputComponent implements OnInit, OnDestroy {
|
|
30
30
|
set value(value: any);
|
31
31
|
get disabled(): boolean;
|
32
32
|
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
33
|
+
/**
|
34
|
+
* @docs-private
|
35
|
+
*/
|
33
36
|
ngOnInit(): void;
|
34
37
|
ngOnDestroy(): void;
|
35
38
|
focus(): void;
|
@@ -21,6 +21,9 @@ export declare class DaffRadioControlValueAccessorDirective implements OnInit, C
|
|
21
21
|
*/
|
22
22
|
name: string;
|
23
23
|
constructor(_control: NgControl, _registry: DaffRadioRegistry, _radio: DaffRadioComponent);
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*/
|
24
27
|
ngOnInit(): void;
|
25
28
|
/**
|
26
29
|
*
|
@@ -13,6 +13,9 @@ export declare class DaffBreadcrumbComponent implements AfterContentInit {
|
|
13
13
|
* @docs-private
|
14
14
|
*/
|
15
15
|
breadcrumbItems: QueryList<DaffBreadcrumbItemDirective>;
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
16
19
|
ngAfterContentInit(): void;
|
17
20
|
private updateActiveState;
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbComponent, never>;
|
@@ -3,11 +3,20 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-breadcrumb-theme($theme) {
|
6
|
-
$base: core.daff-map-get($theme, 'core', 'base');
|
7
|
-
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
8
6
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
7
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
9
8
|
|
10
9
|
.daff-breadcrumb__item {
|
11
|
-
|
10
|
+
a {
|
11
|
+
@include theming.light($type) {
|
12
|
+
color: theming.daff-color($neutral, 80);
|
13
|
+
text-decoration-color: theming.daff-color($neutral, 80);
|
14
|
+
}
|
15
|
+
|
16
|
+
@include theming.dark($type) {
|
17
|
+
color: theming.daff-color($neutral, 30);
|
18
|
+
text-decoration-color: theming.daff-color($neutral, 30);
|
19
|
+
}
|
20
|
+
}
|
12
21
|
}
|
13
22
|
}
|
@@ -1,29 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import { DaffPrefixable, DaffSuffixable } from '@daffodil/design';
|
1
|
+
import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
|
3
2
|
import { DaffButtonSizableDirective } from './button-sizable.directive';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
import * as i1 from "@daffodil/design";
|
6
5
|
import * as i2 from "./button-sizable.directive";
|
7
|
-
|
8
|
-
* An _elementRef and an instance of renderer2 are needed for the button mixins
|
9
|
-
*/
|
10
|
-
declare class DaffButtonBase {
|
11
|
-
_elementRef: ElementRef;
|
12
|
-
_renderer: Renderer2;
|
13
|
-
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
14
|
-
}
|
15
|
-
declare const _daffButtonBase: (new (...args: any[]) => {
|
16
|
-
[x: string]: any;
|
17
|
-
_prefix: import("@daffodil/design").DaffPrefixDirective;
|
18
|
-
}) & (new (...args: any[]) => {
|
19
|
-
[x: string]: any;
|
20
|
-
_suffix: import("@daffodil/design").DaffSuffixDirective;
|
21
|
-
}) & typeof DaffButtonBase;
|
22
|
-
export declare class DaffButtonBaseDirective extends _daffButtonBase implements DaffPrefixable, DaffSuffixable {
|
23
|
-
private elementRef;
|
24
|
-
private renderer;
|
6
|
+
export declare class DaffButtonBaseDirective {
|
25
7
|
private size;
|
26
|
-
|
8
|
+
_prefix: DaffPrefixDirective;
|
9
|
+
_suffix: DaffSuffixDirective;
|
10
|
+
constructor(size: DaffButtonSizableDirective);
|
27
11
|
/**
|
28
12
|
* @docs-private
|
29
13
|
*/
|
@@ -54,6 +38,5 @@ export declare class DaffButtonBaseDirective extends _daffButtonBase implements
|
|
54
38
|
*/
|
55
39
|
get tabIndexAttribute(): number;
|
56
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {},
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "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: {}; }]>;
|
58
42
|
}
|
59
|
-
export {};
|
@@ -45,9 +45,9 @@
|
|
45
45
|
.daff-button {
|
46
46
|
@include theming.light($type) {
|
47
47
|
@include daff-button-theme-variant(
|
48
|
+
theming.daff-color($neutral, 10),
|
48
49
|
theming.daff-color($neutral, 20),
|
49
|
-
theming.daff-color($neutral, 30)
|
50
|
-
theming.daff-color($neutral, 40)
|
50
|
+
theming.daff-color($neutral, 30)
|
51
51
|
);
|
52
52
|
|
53
53
|
&.daff-primary {
|
@@ -74,17 +74,17 @@
|
|
74
74
|
);
|
75
75
|
}
|
76
76
|
|
77
|
-
&.daff-
|
77
|
+
&.daff-dark {
|
78
78
|
@include daff-button-theme-variant(
|
79
|
-
$
|
79
|
+
theming.daff-color($neutral, 100),
|
80
80
|
theming.daff-color($neutral, 90),
|
81
81
|
theming.daff-color($neutral, 80)
|
82
82
|
);
|
83
83
|
}
|
84
84
|
|
85
|
-
&.daff-
|
85
|
+
&.daff-light {
|
86
86
|
@include daff-button-theme-variant(
|
87
|
-
$
|
87
|
+
theming.daff-color($neutral, 10),
|
88
88
|
theming.daff-color($neutral, 20),
|
89
89
|
theming.daff-color($neutral, 30)
|
90
90
|
);
|
@@ -94,7 +94,7 @@
|
|
94
94
|
@include daff-button-theme-variant(
|
95
95
|
$base,
|
96
96
|
theming.daff-color($neutral, 20),
|
97
|
-
theming.daff-color($neutral, 30)
|
97
|
+
theming.daff-color($neutral, 30)
|
98
98
|
);
|
99
99
|
}
|
100
100
|
|
@@ -102,22 +102,8 @@
|
|
102
102
|
@include daff-button-theme-variant(
|
103
103
|
$base-contrast,
|
104
104
|
theming.daff-color($neutral, 90),
|
105
|
-
theming.daff-color($neutral, 80)
|
106
|
-
);
|
107
|
-
}
|
108
|
-
|
109
|
-
&[disabled],
|
110
|
-
&.disabled {
|
111
|
-
@include daff-button-theme-variant(
|
112
|
-
theming.daff-color($neutral, 30),
|
113
|
-
theming.daff-color($neutral, 30),
|
114
|
-
theming.daff-color($neutral, 30),
|
105
|
+
theming.daff-color($neutral, 80)
|
115
106
|
);
|
116
|
-
color: theming.daff-color($neutral, 50);
|
117
|
-
|
118
|
-
&:hover {
|
119
|
-
color: theming.daff-color($neutral, 50);
|
120
|
-
}
|
121
107
|
}
|
122
108
|
|
123
109
|
&.daff-warn {
|
@@ -176,15 +162,15 @@
|
|
176
162
|
);
|
177
163
|
}
|
178
164
|
|
179
|
-
&.daff-
|
165
|
+
&.daff-dark {
|
180
166
|
@include daff-button-theme-variant(
|
181
|
-
$
|
167
|
+
theming.daff-color($neutral, 100),
|
182
168
|
theming.daff-color($neutral, 90),
|
183
169
|
theming.daff-color($neutral, 80)
|
184
170
|
);
|
185
171
|
}
|
186
172
|
|
187
|
-
&.daff-
|
173
|
+
&.daff-light {
|
188
174
|
@include daff-button-theme-variant(
|
189
175
|
$white,
|
190
176
|
theming.daff-color($neutral, 20),
|
@@ -196,7 +182,7 @@
|
|
196
182
|
@include daff-button-theme-variant(
|
197
183
|
$base,
|
198
184
|
theming.daff-color($neutral, 90),
|
199
|
-
theming.daff-color($neutral, 80)
|
185
|
+
theming.daff-color($neutral, 80)
|
200
186
|
);
|
201
187
|
}
|
202
188
|
|
@@ -204,22 +190,8 @@
|
|
204
190
|
@include daff-button-theme-variant(
|
205
191
|
$base-contrast,
|
206
192
|
theming.daff-color($neutral, 20),
|
207
|
-
theming.daff-color($neutral, 30)
|
208
|
-
);
|
209
|
-
}
|
210
|
-
|
211
|
-
&[disabled],
|
212
|
-
&.disabled {
|
213
|
-
@include daff-button-theme-variant(
|
214
|
-
theming.daff-color($neutral, 70),
|
215
|
-
theming.daff-color($neutral, 70),
|
216
|
-
theming.daff-color($neutral, 70),
|
193
|
+
theming.daff-color($neutral, 30)
|
217
194
|
);
|
218
|
-
color: theming.daff-color($neutral, 50);
|
219
|
-
|
220
|
-
&:hover {
|
221
|
-
color: theming.daff-color($neutral, 50);
|
222
|
-
}
|
223
195
|
}
|
224
196
|
|
225
197
|
&.daff-warn {
|
@@ -1,13 +1,23 @@
|
|
1
1
|
@use '../../../scss/interactions';
|
2
2
|
@use '../../../scss/typography' as t;
|
3
3
|
|
4
|
+
// stylelint-disable selector-class-pattern
|
4
5
|
@mixin daff-button-elevated {
|
5
|
-
&.elevated {
|
6
|
-
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
6
|
+
&.elevated {
|
7
|
+
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
8
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
7
9
|
|
8
|
-
&:hover {
|
10
|
+
&:hover {
|
9
11
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
|
10
12
|
}
|
13
|
+
|
14
|
+
&[disabled],
|
15
|
+
&.disabled {
|
16
|
+
&:hover {
|
17
|
+
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
18
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
19
|
+
}
|
20
|
+
}
|
11
21
|
}
|
12
22
|
}
|
13
23
|
|
@@ -28,12 +38,13 @@
|
|
28
38
|
&[disabled],
|
29
39
|
&.disabled {
|
30
40
|
cursor: not-allowed;
|
41
|
+
opacity: 0.5;
|
31
42
|
}
|
32
43
|
|
33
44
|
.daff-button__content,
|
34
45
|
.daff-prefix,
|
35
46
|
.daff-suffix {
|
36
|
-
z-index:
|
47
|
+
z-index: 1;
|
37
48
|
}
|
38
49
|
|
39
50
|
.daff-button__loading {
|
@@ -56,7 +67,9 @@
|
|
56
67
|
width: 100%;
|
57
68
|
height: 100%;
|
58
69
|
opacity: 0;
|
70
|
+
pointer-events: none;
|
59
71
|
transition: opacity 300ms;
|
72
|
+
z-index: 0;
|
60
73
|
}
|
61
74
|
|
62
75
|
&:hover,
|