@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
@@ -15,10 +15,25 @@ export declare class DaffProgressBarComponent {
|
|
15
15
|
* @docs-private
|
16
16
|
*/
|
17
17
|
get indeterminateClass(): boolean;
|
18
|
+
/**
|
19
|
+
* @docs-private
|
20
|
+
*/
|
18
21
|
get role(): string;
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
19
25
|
get ariaLabel(): string;
|
26
|
+
/**
|
27
|
+
* @docs-private
|
28
|
+
*/
|
20
29
|
ariaValueMin: string;
|
30
|
+
/**
|
31
|
+
* @docs-private
|
32
|
+
*/
|
21
33
|
ariaValueMax: string;
|
34
|
+
/**
|
35
|
+
* @docs-private
|
36
|
+
*/
|
22
37
|
get ariaValueNow(): number;
|
23
38
|
constructor(_changeDetectorRef: ChangeDetectorRef, colorable: DaffColorableDirective);
|
24
39
|
private _percentage;
|
package/public_api.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from './atoms/form/core/public_api';
|
2
2
|
export * from './atoms/form/form-field/public_api';
|
3
3
|
export * from './atoms/form/error-message/public_api';
|
4
|
+
export * from './atoms/form/hint/public_api';
|
4
5
|
export * from './atoms/form/input/public_api';
|
5
6
|
export * from './atoms/form/native-select/public_api';
|
6
7
|
export * from './atoms/form/checkbox/public_api';
|
@@ -4,19 +4,20 @@
|
|
4
4
|
@mixin daff-skeleton-theme($theme) {
|
5
5
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
6
6
|
$base: core.daff-map-get($theme, 'core', 'base');
|
7
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
7
8
|
|
8
9
|
.daff-skeleton {
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
@include theming.light($type) {
|
11
|
+
&::before,
|
12
|
+
::before {
|
13
|
+
background: theming.daff-color($neutral, 20);
|
14
|
+
}
|
12
15
|
}
|
13
16
|
|
14
|
-
@
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
to {
|
19
|
-
opacity: 1;
|
17
|
+
@include theming.dark($type) {
|
18
|
+
&::before,
|
19
|
+
::before {
|
20
|
+
background: theming.daff-color($neutral, 90);
|
20
21
|
}
|
21
22
|
}
|
22
23
|
}
|
@@ -39,4 +40,13 @@
|
|
39
40
|
top: 0;
|
40
41
|
left: 0;
|
41
42
|
}
|
43
|
+
|
44
|
+
@keyframes loading {
|
45
|
+
from {
|
46
|
+
opacity: 0.5;
|
47
|
+
}
|
48
|
+
to {
|
49
|
+
opacity: 1;
|
50
|
+
}
|
51
|
+
}
|
42
52
|
}
|
package/scss/theme.scss
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
@use '../button/src/button/underline/underline-theme' as underline-button;
|
28
28
|
@use '../article/src/article-theme' as article;
|
29
29
|
@use '../src/atoms/form/error-message/error-message-theme' as error-message;
|
30
|
+
@use '../src/atoms/form/hint/hint-theme' as hint;
|
30
31
|
@use '../src/atoms/form/form-field/form-field/form-field-theme' as form-field;
|
31
32
|
@use '../src/atoms/form/input/input-theme' as input;
|
32
33
|
@use '../src/atoms/form/native-select/native-select-theme' as native-select;
|
@@ -86,6 +87,7 @@
|
|
86
87
|
|
87
88
|
@include form-field.daff-form-field-theme($theme);
|
88
89
|
@include error-message.daff-error-message-theme($theme);
|
90
|
+
@include hint.daff-hint-theme($theme);
|
89
91
|
@include input.daff-input-theme($theme);
|
90
92
|
@include native-select.daff-native-select-theme($theme);
|
91
93
|
|
@@ -1,7 +1,10 @@
|
|
1
1
|
@use '../../../../scss/theming';
|
2
|
+
@use '../../../../scss/core';
|
2
3
|
|
3
4
|
@mixin daff-error-message-theme($theme) {
|
5
|
+
$critical: core.daff-map-get($theme, critical);
|
6
|
+
|
4
7
|
.daff-error-message {
|
5
|
-
color: theming.daff-color(
|
8
|
+
color: theming.daff-color($critical);
|
6
9
|
}
|
7
10
|
}
|
@@ -6,32 +6,44 @@
|
|
6
6
|
$primary: core.daff-map-get($theme, primary);
|
7
7
|
$secondary: core.daff-map-get($theme, secondary);
|
8
8
|
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$critical: core.daff-map-get($theme, critical);
|
9
10
|
$base: core.daff-map-get($theme, 'core', 'base');
|
10
11
|
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
11
12
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
13
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
12
14
|
|
13
15
|
.daff-form-field {
|
14
16
|
&__control {
|
15
17
|
background: $base;
|
16
|
-
border: 1px solid theming.daff-illuminate($base, $neutral, 3);
|
17
|
-
color: theming.daff-illuminate($base-contrast, $neutral, 4);
|
18
18
|
|
19
|
-
|
20
|
-
border: 1px solid $
|
19
|
+
@include theming.light($type) {
|
20
|
+
border: 1px solid theming.daff-color($neutral);
|
21
|
+
color: theming.daff-color($neutral);
|
22
|
+
}
|
23
|
+
|
24
|
+
@include theming.dark($type) {
|
25
|
+
border: 1px solid theming.daff-color($neutral, 40);
|
26
|
+
color: theming.daff-color($neutral, 40);
|
27
|
+
}
|
28
|
+
|
29
|
+
&.daff-focused {
|
30
|
+
border: 1px solid theming.daff-color($primary);
|
31
|
+
|
32
|
+
.daff-form-label {
|
33
|
+
color: theming.daff-color($primary);
|
34
|
+
}
|
21
35
|
}
|
22
36
|
|
23
37
|
&.daff-error {
|
24
|
-
border: 1px solid theming.daff-color(
|
38
|
+
border: 1px solid theming.daff-color($critical);
|
25
39
|
|
26
|
-
|
27
|
-
|
40
|
+
.daff-form-label {
|
41
|
+
color: theming.daff-color($critical);
|
28
42
|
}
|
29
43
|
}
|
30
44
|
|
31
45
|
&.daff-valid {
|
32
|
-
|
33
|
-
color: $base-contrast;
|
34
|
-
}
|
46
|
+
color: $base-contrast;
|
35
47
|
}
|
36
48
|
}
|
37
49
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@use '../../../../scss/core';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
|
4
|
+
@mixin daff-hint-theme($theme) {
|
5
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
6
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
7
|
+
|
8
|
+
.daff-hint {
|
9
|
+
@include theming.light($type) {
|
10
|
+
color: theming.daff-color($neutral, 80);
|
11
|
+
}
|
12
|
+
|
13
|
+
@include theming.dark($type) {
|
14
|
+
color: theming.daff-color($neutral, 30);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -5,12 +5,8 @@
|
|
5
5
|
$base: core.daff-map-get($theme, 'core', 'base');
|
6
6
|
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
7
7
|
|
8
|
-
|
8
|
+
.daff-input {
|
9
9
|
background: $base;
|
10
10
|
color: $base-contrast;
|
11
|
-
|
12
|
-
&::placeholder {
|
13
|
-
color: transparent;
|
14
|
-
}
|
15
11
|
}
|
16
12
|
}
|
package/switch/switch.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { DaffErrorMessageComponent } from '@daffodil/design';
|
2
2
|
import { DaffSwitchComponent } from './switch/switch.component';
|
3
3
|
/**
|
4
4
|
* @docs-private
|
5
5
|
*/
|
6
|
-
export declare const DAFF_SWITCH_COMPONENTS: readonly [typeof DaffSwitchComponent, typeof
|
6
|
+
export declare const DAFF_SWITCH_COMPONENTS: readonly [typeof DaffSwitchComponent, typeof DaffErrorMessageComponent];
|
@@ -12,15 +12,27 @@ export declare class DaffTabActivatorComponent implements OnInit {
|
|
12
12
|
/**
|
13
13
|
* Sets the `role` to tab.
|
14
14
|
*/
|
15
|
+
/**
|
16
|
+
* @docs-private
|
17
|
+
*/
|
15
18
|
role: string;
|
16
19
|
/**
|
17
20
|
* Sets `aria-selected` to true if the component is selected and false if it's not selected.
|
18
21
|
*/
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
19
25
|
get ariaSelected(): boolean;
|
20
26
|
/**
|
21
27
|
* Sets `tabindex` to `0` if the component is selected and `-1` if it's not selected.
|
22
28
|
*/
|
29
|
+
/**
|
30
|
+
* @docs-private
|
31
|
+
*/
|
23
32
|
get tabIndex(): "0" | "-1";
|
33
|
+
/**
|
34
|
+
* @docs-private
|
35
|
+
*/
|
24
36
|
ariaControls: string;
|
25
37
|
constructor(el: ElementRef, selectableDirective: DaffSelectableDirective);
|
26
38
|
/**
|
@@ -28,6 +40,9 @@ export declare class DaffTabActivatorComponent implements OnInit {
|
|
28
40
|
*/
|
29
41
|
tabActivatorId: string;
|
30
42
|
panelId: string;
|
43
|
+
/**
|
44
|
+
* @docs-private
|
45
|
+
*/
|
31
46
|
ngOnInit(): void;
|
32
47
|
/**
|
33
48
|
* Sets focus to the native element of the component
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DaffPrefixDirective, DaffSuffixDirective
|
1
|
+
import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
/**
|
4
4
|
* DaffTabLabelComponent is used to display the label of a tab panel. Labels may optionally contain a `daffPrefix` or `daffSuffix` to add icons or badges.
|
@@ -12,10 +12,7 @@ import * as i0 from "@angular/core";
|
|
12
12
|
* </daff-tab-Label>
|
13
13
|
* ```
|
14
14
|
*/
|
15
|
-
export declare class DaffTabLabelComponent
|
16
|
-
/**
|
17
|
-
* @docs-private
|
18
|
-
*/
|
15
|
+
export declare class DaffTabLabelComponent {
|
19
16
|
_prefix: DaffPrefixDirective;
|
20
17
|
/**
|
21
18
|
* @docs-private
|
@@ -8,6 +8,9 @@ export declare class DefaultToastComponent implements OnInit {
|
|
8
8
|
update: EventEmitter<DaffToastAction>;
|
9
9
|
closeToast: EventEmitter<DaffToastAction>;
|
10
10
|
open(): void;
|
11
|
+
/**
|
12
|
+
* @docs-private
|
13
|
+
*/
|
11
14
|
ngOnInit(): void;
|
12
15
|
private count;
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultToastComponent, never>;
|
@@ -11,6 +11,9 @@ export declare class ToastPositionsComponent implements OnInit {
|
|
11
11
|
private count;
|
12
12
|
horizontalControl: FormControl;
|
13
13
|
verticalControl: FormControl;
|
14
|
+
/**
|
15
|
+
* @docs-private
|
16
|
+
*/
|
14
17
|
ngOnInit(): void;
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastPositionsComponent, never>;
|
16
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToastPositionsComponent, "toast-positions", never, {}, {}, never, never, true, never>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
2
2
|
import { ElementRef, AfterViewInit, AfterContentInit, OnDestroy } from '@angular/core';
|
3
|
-
import { DaffFocusStackService,
|
3
|
+
import { DaffFocusStackService, DaffPrefixDirective } from '@daffodil/design';
|
4
4
|
import { DaffToast } from '../interfaces/toast';
|
5
5
|
import { DaffToastActionsDirective } from '../toast-actions/toast-actions.directive';
|
6
6
|
import * as i0 from "@angular/core";
|
@@ -11,13 +11,11 @@ import * as i1 from "@daffodil/design";
|
|
11
11
|
* DaffToastComponent provides a way to display and
|
12
12
|
* communicate information for user actions or system updates.
|
13
13
|
*/
|
14
|
-
export declare class DaffToastComponent implements
|
14
|
+
export declare class DaffToastComponent implements AfterContentInit, AfterViewInit, OnDestroy {
|
15
15
|
private _elementRef;
|
16
16
|
private _focusTrapFactory;
|
17
17
|
private _focusStack;
|
18
|
-
/**
|
19
|
-
* @docs-private
|
20
|
-
*/
|
18
|
+
/** @docs-private */
|
21
19
|
class: boolean;
|
22
20
|
/**
|
23
21
|
* @docs-private
|
@@ -5,9 +5,24 @@
|
|
5
5
|
* There may be other important data that needs to be available at render time.
|
6
6
|
*/
|
7
7
|
export interface DaffTreeData<T> {
|
8
|
+
/**
|
9
|
+
* The label displayed for a tree node.
|
10
|
+
*/
|
8
11
|
title: string;
|
12
|
+
/**
|
13
|
+
* A URL associated with a tree node, which can be used for navigation or linking.
|
14
|
+
*/
|
9
15
|
url: string;
|
16
|
+
/**
|
17
|
+
* A unique ID for a tree node.
|
18
|
+
*/
|
10
19
|
id: string;
|
20
|
+
/**
|
21
|
+
* An array of child nodes, each of which is also a `DaffTreeData` item.
|
22
|
+
*/
|
11
23
|
items: DaffTreeData<T>[];
|
24
|
+
/**
|
25
|
+
* Additional data associated with a tree node.
|
26
|
+
*/
|
12
27
|
data: T;
|
13
28
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Represents the mode of rendering for nodes in a tree UI.
|
3
|
-
* -
|
4
|
-
* -
|
3
|
+
* - `in-dom`: Closed nodes are present in the Document Object Model (DOM).
|
4
|
+
* - `not-in-dom`: Closed nodes are not present in the Document Object Model (DOM).
|
5
5
|
*/
|
6
6
|
export type DaffTreeRenderMode = 'in-dom' | 'not-in-dom';
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
2
2
|
/**
|
3
|
-
* This service is used by tree
|
4
|
-
* that the tree has to be
|
3
|
+
* This service is used by tree items to notify their parent
|
4
|
+
* that the tree has to be recomputed.
|
5
5
|
*
|
6
6
|
* This service is a multiton associated with each tree instance.
|
7
|
-
* It follows the same lifecycle
|
7
|
+
* It follows the same lifecycle as the tree it is associated with.
|
8
8
|
*/
|
9
9
|
export declare class DaffTreeNotifierService implements OnDestroy {
|
10
10
|
/**
|
@@ -6,7 +6,7 @@ import { DaffTreeFlatNode } from '../utils/flatten-tree';
|
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
import * as i1 from "@daffodil/design";
|
8
8
|
/**
|
9
|
-
* The `DaffTreeComponent` allows you to render tree structures as interactable
|
9
|
+
* The `DaffTreeComponent` allows you to render tree structures as interactable UI.
|
10
10
|
*
|
11
11
|
* @example Basic use of the tree component
|
12
12
|
* ```html
|
@@ -35,7 +35,7 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
|
|
35
35
|
/**
|
36
36
|
* The rendering mode for nodes in the tree.
|
37
37
|
*
|
38
|
-
* Default value is
|
38
|
+
* Default value is `in-dom`, which means nodes are present in the DOM.
|
39
39
|
*
|
40
40
|
* Generally, `not-in-dom` is faster as there are less DOM elements to render,
|
41
41
|
* but there may be use-cases (like SEO) where having the tree in the DOM
|
@@ -47,7 +47,9 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
|
|
47
47
|
*/
|
48
48
|
private _tree;
|
49
49
|
/**
|
50
|
-
*
|
50
|
+
* @docs-private
|
51
|
+
*
|
52
|
+
* The flattened tree data. For debugging purposes, you can iterate through this if you want to inspect
|
51
53
|
* the resulting array structure we computed to render the tree.
|
52
54
|
*/
|
53
55
|
flatTree: DaffTreeFlatNode[];
|
@@ -67,9 +69,17 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
|
|
67
69
|
* @docs-private
|
68
70
|
*/
|
69
71
|
treeItemTemplate: TemplateRef<any>;
|
72
|
+
/**
|
73
|
+
* @docs-private
|
74
|
+
*/
|
70
75
|
constructor(notifier: DaffTreeNotifierService);
|
76
|
+
/**
|
77
|
+
* @docs-private
|
78
|
+
*/
|
71
79
|
ngOnChanges(changes: SimpleChanges): void;
|
72
80
|
/**
|
81
|
+
* @docs-private
|
82
|
+
*
|
73
83
|
* The track-by function used to reduce tree-item re-renders
|
74
84
|
*/
|
75
85
|
trackByTreeElement(index: number, el: any): any;
|
@@ -50,16 +50,22 @@ export declare class DaffTreeItemDirective {
|
|
50
50
|
*/
|
51
51
|
ariaExpanded: string;
|
52
52
|
/**
|
53
|
+
* @docs-private
|
54
|
+
*
|
53
55
|
* A css variable indicating the depth of the tree.
|
54
56
|
* You can use this to style your templates if you want to
|
55
57
|
* use different designs at different depths.
|
56
58
|
*/
|
57
59
|
depth: number;
|
58
60
|
/**
|
61
|
+
* @docs-private
|
62
|
+
*
|
59
63
|
* The CSS class indicating whether or not the tree is `selected`.
|
60
64
|
*/
|
61
65
|
get selectedClass(): boolean;
|
62
66
|
/**
|
67
|
+
* @docs-private
|
68
|
+
*
|
63
69
|
* The CSS class indicating whether or not the tree is `open`.
|
64
70
|
*/
|
65
71
|
openClass: boolean;
|
@@ -17,6 +17,9 @@ export declare class DaffYoutubePlayerComponent implements OnInit {
|
|
17
17
|
*/
|
18
18
|
ngOnInit(): void;
|
19
19
|
get _aspectRatio(): SafeStyle;
|
20
|
+
/**
|
21
|
+
* @docs-private
|
22
|
+
*/
|
20
23
|
get maxWidth(): string;
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffYoutubePlayerComponent, never>;
|
22
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffYoutubePlayerComponent, "daff-youtube-player", never, { "src": { "alias": "src"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Constructor } from '../../../core/public_api';
|
2
|
-
import { DaffPrefixDirective } from '../prefix.directive';
|
3
|
-
/**
|
4
|
-
* A mixin for giving a component the ability to place content before another piece of content.
|
5
|
-
*/
|
6
|
-
export declare function daffPrefixableMixin<T extends Constructor>(Base: T): {
|
7
|
-
new (...args: any[]): {
|
8
|
-
[x: string]: any;
|
9
|
-
_prefix: DaffPrefixDirective;
|
10
|
-
};
|
11
|
-
} & T;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Constructor } from '../../../core/public_api';
|
2
|
-
import { DaffSuffixDirective } from '../suffix.directive';
|
3
|
-
/**
|
4
|
-
* A mixin for giving a component the ability to place content after another piece of content.
|
5
|
-
*/
|
6
|
-
export declare function daffSuffixableMixin<T extends Constructor>(Base: T): {
|
7
|
-
new (...args: any[]): {
|
8
|
-
[x: string]: any;
|
9
|
-
_suffix: DaffSuffixDirective;
|
10
|
-
};
|
11
|
-
} & T;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class BasicInputComponent {
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicInputComponent, never>;
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicInputComponent, "basic-input", never, {}, {}, never, never, true, never>;
|
5
|
-
}
|