@daffodil/design 0.79.0 → 0.80.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/accordion.module.d.ts +3 -1
- package/accordion/src/accordion-theme.scss +4 -4
- package/article/README.md +5 -6
- package/article/article.module.d.ts +3 -1
- package/article/src/article-theme.scss +8 -8
- package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.module.d.ts +3 -1
- package/breadcrumb/src/breadcrumb-theme.scss +3 -3
- package/button/button.module.d.ts +3 -1
- package/button/src/button/basic/button-theme.scss +14 -14
- package/button/src/button/button-base.scss +3 -3
- package/button/src/button/flat/flat-theme.scss +21 -22
- package/button/src/button/icon/icon-theme.scss +13 -14
- package/button/src/button/raised/raised-theme.scss +32 -45
- package/button/src/button/stroked/stroked-theme.scss +18 -21
- package/button/src/button/underline/underline-theme.scss +14 -18
- package/callout/callout.module.d.ts +3 -1
- package/callout/src/callout-theme.scss +11 -17
- package/card/card.module.d.ts +1 -1
- package/card/src/card-theme-variants/linkable-card.scss +1 -1
- package/card/src/card-theme.scss +9 -9
- package/container/container.module.d.ts +1 -1
- package/core/public_api.d.ts +1 -0
- package/core/selectable/public_api.d.ts +2 -0
- package/core/selectable/selectable.d.ts +7 -0
- package/core/selectable/selectable.directive.d.ts +17 -0
- package/esm2022/accordion/accordion.module.mjs +4 -2
- package/esm2022/article/article.module.mjs +4 -2
- package/esm2022/atoms/form/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +2 -2
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
- package/esm2022/atoms/form/radio/radio.component.mjs +2 -2
- package/esm2022/atoms/form/radio-set/radio-set.component.mjs +2 -2
- package/esm2022/breadcrumb/breadcrumb.module.mjs +4 -2
- package/esm2022/button/button.module.mjs +4 -2
- package/esm2022/callout/callout.module.mjs +4 -2
- package/esm2022/card/card.module.mjs +2 -2
- package/esm2022/container/container/container.component.mjs +2 -2
- package/esm2022/container/container.module.mjs +2 -2
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/selectable/public_api.mjs +2 -0
- package/esm2022/core/selectable/selectable.directive.mjs +41 -0
- package/esm2022/core/selectable/selectable.mjs +2 -0
- package/esm2022/hero/hero.module.mjs +2 -2
- package/esm2022/image/image.module.mjs +2 -2
- package/esm2022/link-set/link-set.module.mjs +2 -2
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +1 -1
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +2 -2
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +1 -1
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +2 -2
- package/esm2022/list/list/list.component.mjs +2 -2
- package/esm2022/list/list-item/list-item.component.mjs +10 -3
- package/esm2022/list/list.module.mjs +2 -2
- package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +26 -39
- package/esm2022/modal/modal.module.mjs +2 -2
- package/esm2022/navbar/navbar.module.mjs +2 -2
- package/esm2022/notification/notification.module.mjs +2 -2
- package/esm2022/paginator/paginator.module.mjs +2 -2
- package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
- package/esm2022/sidebar/sidebar.module.mjs +2 -2
- package/esm2022/switch/daffodil-design-switch.mjs +5 -0
- package/esm2022/switch/examples/basic-switch/basic-switch.component.mjs +23 -0
- package/esm2022/switch/examples/daffodil-design-switch-examples.mjs +5 -0
- package/esm2022/switch/examples/disabled-switch/disabled-switch.component.mjs +20 -0
- package/esm2022/switch/examples/examples.mjs +13 -0
- package/esm2022/switch/examples/index.mjs +2 -0
- package/esm2022/switch/examples/loading-switch/loading-switch.component.mjs +20 -0
- package/esm2022/switch/examples/public_api.mjs +7 -0
- package/esm2022/switch/examples/switch-error/switch-error.component.mjs +22 -0
- package/esm2022/switch/examples/switch-label-positions/switch-label-positions.component.mjs +31 -0
- package/esm2022/switch/index.mjs +2 -0
- package/esm2022/switch/public_api.mjs +3 -0
- package/esm2022/switch/switch/label-position.mjs +11 -0
- package/esm2022/switch/switch/switch.component.mjs +126 -0
- package/esm2022/switch/switch.mjs +7 -0
- package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +3 -3
- package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +22 -21
- package/esm2022/tabs/tabs/tabs.component.mjs +4 -8
- package/esm2022/toast/toast/toast.component.mjs +3 -3
- package/esm2022/toast/toast.module.mjs +2 -2
- package/esm2022/tree/tree.module.mjs +2 -2
- package/fesm2022/daffodil-design-accordion.mjs +3 -1
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +3 -1
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +3 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +3 -1
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +3 -1
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +1 -1
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +3 -3
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +1 -1
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +1 -1
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +1 -1
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +4 -4
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -5
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +3 -3
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +25 -40
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +1 -1
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +1 -1
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +1 -1
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +1 -1
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +109 -0
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-switch.mjs +148 -0
- package/fesm2022/daffodil-design-switch.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs-examples.mjs +2 -2
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +23 -26
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +3 -3
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +1 -1
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +45 -6
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/hero.module.d.ts +1 -1
- package/hero/src/hero-theme.scss +11 -17
- package/image/image.module.d.ts +1 -1
- package/link-set/link-set.module.d.ts +1 -1
- package/list/list-item/list-item.component.d.ts +3 -1
- package/list/list.module.d.ts +1 -1
- package/list/src/list-theme.scss +13 -9
- package/loading-icon/loading-icon.module.d.ts +1 -1
- package/loading-icon/src/loading-icon-theme.scss +7 -7
- package/media-gallery/media-gallery.module.d.ts +1 -1
- package/media-gallery/src/media-gallery-theme.scss +3 -3
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +9 -18
- package/menu/src/menu-theme.scss +5 -5
- package/modal/modal.module.d.ts +1 -1
- package/modal/src/modal-theme.scss +1 -1
- package/navbar/navbar.module.d.ts +1 -1
- package/navbar/src/navbar-theme.scss +8 -8
- package/notification/notification.module.d.ts +1 -1
- package/notification/src/notification-theme.scss +12 -12
- package/package.json +1 -1
- package/paginator/paginator.module.d.ts +1 -1
- package/paginator/src/paginator-theme.scss +11 -10
- package/progress-bar/progress-bar.module.d.ts +1 -1
- package/progress-bar/src/progress-bar-theme.scss +10 -10
- package/scss/accessibility/_index.scss +1 -1
- package/scss/core/_index.scss +1 -2
- package/scss/core/error/error-to-string.scss +13 -0
- package/scss/core/map/map-deep-check/map-deep-check.scss +2 -1
- package/scss/core/map/map-deep-get/map-deep-get.scss +1 -0
- package/scss/core/map/map-get/map-get.scss +23 -0
- package/scss/core/map/map-get/map-get.spec.scss +65 -0
- package/scss/core/string/split/string-split.scss +10 -7
- package/scss/global.scss +1 -0
- package/scss/interactions/_index.scss +1 -1
- package/scss/layout/_index.scss +1 -1
- package/scss/state/skeleton/_mixins.scss +2 -2
- package/scss/theme.scss +2 -0
- package/scss/theming/_configure-theme.scss +2 -2
- package/scss/theming/_daff-theme.scss +14 -4
- package/scss/theming/_index.scss +1 -1
- package/scss/theming/_theme-css-variables.scss +14 -12
- package/scss/theming/contrast/luminance/luminance.scss +8 -6
- package/scss/theming/illuminate/illuminate.scss +20 -17
- package/scss/typography/utilities/_index.scss +1 -1
- package/scss/typography/utilities/_variables.scss +1 -1
- package/sidebar/sidebar.module.d.ts +1 -1
- package/sidebar/src/sidebar-theme.scss +3 -3
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +6 -6
- package/src/atoms/form/input/input-theme.scss +2 -2
- package/src/atoms/form/native-select/native-select-theme.scss +3 -3
- package/switch/README.md +61 -0
- package/switch/examples/basic-switch/basic-switch.component.d.ts +8 -0
- package/switch/examples/disabled-switch/disabled-switch.component.d.ts +7 -0
- package/switch/examples/examples.d.ts +5 -0
- package/switch/examples/index.d.ts +1 -0
- package/switch/examples/loading-switch/loading-switch.component.d.ts +7 -0
- package/switch/examples/public_api.d.ts +6 -0
- package/switch/examples/switch-error/switch-error.component.d.ts +7 -0
- package/switch/examples/switch-label-positions/switch-label-positions.component.d.ts +12 -0
- package/switch/index.d.ts +1 -0
- package/switch/public_api.d.ts +2 -0
- package/switch/src/switch-theme.scss +31 -0
- package/switch/switch/label-position.d.ts +10 -0
- package/switch/switch/switch.component.d.ts +53 -0
- package/switch/switch.d.ts +3 -0
- package/tabs/src/tabs-theme.scss +9 -9
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +5 -4
- package/tabs/tabs/tabs.component.d.ts +1 -2
- package/toast/src/toast-theme.scss +18 -18
- package/toast/toast.module.d.ts +1 -1
- package/tree/src/tree-theme.scss +11 -11
- package/tree/tree.module.d.ts +1 -1
- package/scss/core/map/map-deep-check/map-deep-check.spec.scss +0 -43
- package/scss/core/map/map-deep-get/map-deep-get.spec.scss +0 -25
- package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
- package/src/atoms/form/radio/radio.scss +0 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../scss/core';
|
3
|
+
@use '../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-switch-theme($theme) {
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
8
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
9
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
10
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
11
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
12
|
+
|
13
|
+
.daff-switch {
|
14
|
+
&__toggle {
|
15
|
+
background-color: theming.daff-illuminate($base, $neutral, 3);
|
16
|
+
border: 2px solid transparent;
|
17
|
+
|
18
|
+
&:focus-within {
|
19
|
+
border: 2px solid theming.daff-illuminate($base, $neutral, 2);
|
20
|
+
}
|
21
|
+
|
22
|
+
&.daff-checked {
|
23
|
+
background-color: theming.daff-color($primary);
|
24
|
+
}
|
25
|
+
|
26
|
+
&::before {
|
27
|
+
background-color: $base;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export type DaffLabelPosition = 'daff-left' | 'daff-right' | 'daff-top' | 'daff-bottom';
|
2
|
+
/**
|
3
|
+
* The position of the label relative to the switch.
|
4
|
+
*/
|
5
|
+
export declare enum DaffLabelPositionEnum {
|
6
|
+
LEFT = "daff-left",
|
7
|
+
RIGHT = "daff-right",
|
8
|
+
TOP = "daff-top",
|
9
|
+
BOTTOM = "daff-bottom"
|
10
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { DaffLabelPosition } from './label-position';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* The switch component provides a way to toggle between two settings.
|
6
|
+
*
|
7
|
+
* ## Usage
|
8
|
+
* <daff-switch [checked]="checked" loading="loading" [error]="true" [labelPosition]="daff-left">
|
9
|
+
* Label
|
10
|
+
* <daff-error-message>Error message</daff-error-message>
|
11
|
+
* </daff-switch>
|
12
|
+
*/
|
13
|
+
export declare class DaffSwitchComponent {
|
14
|
+
/**
|
15
|
+
* Whether the switch is disabled and/or loading.
|
16
|
+
*/
|
17
|
+
get disabled(): any;
|
18
|
+
set disabled(value: any);
|
19
|
+
get disabledAttribute(): boolean;
|
20
|
+
get ariaDisabled(): boolean;
|
21
|
+
get classes(): string;
|
22
|
+
/**
|
23
|
+
* Whether the switch is loading.
|
24
|
+
*/
|
25
|
+
loading: boolean;
|
26
|
+
/**
|
27
|
+
* Current state of switch (on/off).
|
28
|
+
*/
|
29
|
+
checked: boolean;
|
30
|
+
/**
|
31
|
+
* The position of the label relative to the switch. Defaults to 'daff-left'.
|
32
|
+
*/
|
33
|
+
labelPosition: DaffLabelPosition;
|
34
|
+
/**
|
35
|
+
* Whether the switch shows an error.
|
36
|
+
*/
|
37
|
+
error: boolean;
|
38
|
+
_disabled: boolean;
|
39
|
+
handleKeydown(event: KeyboardEvent): void;
|
40
|
+
/**
|
41
|
+
* @docs-private
|
42
|
+
*/
|
43
|
+
private externalAriaLabel;
|
44
|
+
/**
|
45
|
+
* aria-label for the switch.
|
46
|
+
*/
|
47
|
+
ariaLabel: string;
|
48
|
+
id: string;
|
49
|
+
toggled: EventEmitter<boolean>;
|
50
|
+
onToggle(): void;
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSwitchComponent, never>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSwitchComponent, "daff-switch", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "error": { "alias": "error"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "toggled": "toggled"; }, never, ["*", "daff-error-message"], true, never>;
|
53
|
+
}
|
package/tabs/src/tabs-theme.scss
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-tabs-theme($theme) {
|
6
|
-
$primary: map
|
7
|
-
$secondary: map
|
8
|
-
$tertiary: map
|
9
|
-
$neutral: core.daff-map-
|
10
|
-
$base: core.daff-map-
|
11
|
-
$base-contrast: core.daff-map-
|
12
|
-
$white: core.daff-map-
|
13
|
-
$black: core.daff-map-
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$secondary: core.daff-map-get($theme, secondary);
|
8
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
10
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
11
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
12
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
13
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
14
14
|
|
15
15
|
.daff-tab-activator {
|
16
16
|
border-bottom: 2px solid theming.daff-illuminate($base, $neutral, 2);
|
17
17
|
|
18
|
-
&.selected {
|
18
|
+
&.daff-selected {
|
19
19
|
border-bottom: 2px solid theming.daff-color($primary);
|
20
20
|
}
|
21
21
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import { OnInit, ElementRef } from '@angular/core';
|
2
|
+
import { DaffSelectableDirective } from '@daffodil/design';
|
2
3
|
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@daffodil/design";
|
3
5
|
export declare class DaffTabActivatorComponent implements OnInit {
|
4
6
|
private el;
|
7
|
+
private selectableDirective;
|
5
8
|
/**
|
6
9
|
* @docs-private
|
7
10
|
*/
|
@@ -10,8 +13,6 @@ export declare class DaffTabActivatorComponent implements OnInit {
|
|
10
13
|
* Sets the `role` to tab.
|
11
14
|
*/
|
12
15
|
role: string;
|
13
|
-
/** Whether or not a tab is selected */
|
14
|
-
selected: boolean;
|
15
16
|
/**
|
16
17
|
* Sets `aria-selected` to true if the component is selected and false if it's not selected.
|
17
18
|
*/
|
@@ -21,17 +22,17 @@ export declare class DaffTabActivatorComponent implements OnInit {
|
|
21
22
|
*/
|
22
23
|
get tabIndex(): "0" | "-1";
|
23
24
|
ariaControls: string;
|
25
|
+
constructor(el: ElementRef, selectableDirective: DaffSelectableDirective);
|
24
26
|
/**
|
25
27
|
* The html id of the tab activator component
|
26
28
|
*/
|
27
29
|
tabActivatorId: string;
|
28
30
|
panelId: string;
|
29
31
|
ngOnInit(): void;
|
30
|
-
constructor(el: ElementRef);
|
31
32
|
/**
|
32
33
|
* Sets focus to the native element of the component
|
33
34
|
*/
|
34
35
|
focus(): void;
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTabActivatorComponent, never>;
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabActivatorComponent, "button[daff-tab-activator],a[daff-tab-activator]", never, { "
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabActivatorComponent, "button[daff-tab-activator],a[daff-tab-activator]", never, { "tabActivatorId": { "alias": "tabActivatorId"; "required": false; }; "panelId": { "alias": "panelId"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DaffSelectableDirective; inputs: { "selected": "selected"; }; outputs: {}; }]>;
|
37
38
|
}
|
@@ -3,7 +3,6 @@ import { DaffTabComponent } from './tab/tab.component';
|
|
3
3
|
import { DaffTabActivatorComponent } from './tab-activator/tab-activator.component';
|
4
4
|
import { DaffTabLabelComponent } from './tab-label/tab-label.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "@daffodil/design";
|
7
6
|
/**
|
8
7
|
* Tabs provide a way to navigate between panels that display related content.
|
9
8
|
*
|
@@ -100,5 +99,5 @@ export declare class DaffTabsComponent implements AfterContentInit {
|
|
100
99
|
*/
|
101
100
|
selectLast(event: KeyboardEvent | null): void;
|
102
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTabsComponent, never>;
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabsComponent, "daff-tabs", never, { "initiallySelected": { "alias": "initiallySelected"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "tabChange": "tabChange"; }, ["_labels", "_tabs"], never, true,
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabsComponent, "daff-tabs", never, { "initiallySelected": { "alias": "initiallySelected"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "tabChange": "tabChange"; }, ["_labels", "_tabs"], never, true, never>;
|
104
103
|
}
|
@@ -3,25 +3,25 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-toast-theme($theme) {
|
6
|
-
$primary: map
|
7
|
-
$secondary: map
|
8
|
-
$tertiary: map
|
9
|
-
$info: map
|
10
|
-
$warn: map
|
11
|
-
$critical: map
|
12
|
-
$success: map
|
13
|
-
$neutral: core.daff-map-
|
14
|
-
$base: core.daff-map-
|
15
|
-
$base-contrast: core.daff-map-
|
16
|
-
$white: core.daff-map-
|
17
|
-
$black: core.daff-map-
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$secondary: core.daff-map-get($theme, secondary);
|
8
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$info: core.daff-map-get($theme, informational);
|
10
|
+
$warn: core.daff-map-get($theme, warn);
|
11
|
+
$critical: core.daff-map-get($theme, critical);
|
12
|
+
$success: core.daff-map-get($theme, success);
|
13
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
15
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
16
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
17
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
18
18
|
|
19
19
|
.daff-toast {
|
20
20
|
background: theming.daff-illuminate($base, $neutral, 1);
|
21
|
-
box-shadow: 0 -16px 24px -4px rgba($black, 0.04), 0 8px 24px -4px rgba($black, 0.
|
21
|
+
box-shadow: 0 -16px 24px -4px rgba($black, 0.04), 0 8px 24px -4px rgba($black, 0.1);
|
22
22
|
color: theming.daff-text-contrast($base);
|
23
23
|
|
24
|
-
|
24
|
+
&::before {
|
25
25
|
background: theming.daff-illuminate($base, $neutral, 4);
|
26
26
|
}
|
27
27
|
|
@@ -32,8 +32,8 @@
|
|
32
32
|
.daff-prefix {
|
33
33
|
color: theming.daff-color($success);
|
34
34
|
}
|
35
|
-
|
36
|
-
|
35
|
+
|
36
|
+
&::before {
|
37
37
|
background: theming.daff-color($success);
|
38
38
|
}
|
39
39
|
}
|
@@ -46,7 +46,7 @@
|
|
46
46
|
color: theming.daff-color($warn);
|
47
47
|
}
|
48
48
|
|
49
|
-
|
49
|
+
&::before {
|
50
50
|
background: theming.daff-color($warn);
|
51
51
|
}
|
52
52
|
}
|
@@ -59,7 +59,7 @@
|
|
59
59
|
color: theming.daff-color($critical);
|
60
60
|
}
|
61
61
|
|
62
|
-
|
62
|
+
&::before {
|
63
63
|
background: theming.daff-color($critical);
|
64
64
|
}
|
65
65
|
}
|
package/toast/toast.module.d.ts
CHANGED
@@ -10,7 +10,7 @@ import * as i8 from "./toast-actions/toast-actions.directive";
|
|
10
10
|
import * as i9 from "./toast-title/toast-title.directive";
|
11
11
|
import * as i10 from "./toast-message/toast-message.directive";
|
12
12
|
/**
|
13
|
-
* @deprecated in favor of {@link provideDaffToast} Deprecated in version 0.78.0. Will be removed in version 0.
|
13
|
+
* @deprecated in favor of {@link provideDaffToast}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
14
14
|
*/
|
15
15
|
export declare class DaffToastModule {
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastModule, never>;
|
package/tree/src/tree-theme.scss
CHANGED
@@ -3,18 +3,17 @@
|
|
3
3
|
@use '../../scss/core';
|
4
4
|
|
5
5
|
@mixin daff-tree-theme($theme) {
|
6
|
-
$primary: map
|
7
|
-
$secondary: map
|
8
|
-
$tertiary: map
|
9
|
-
$base: core.daff-map-
|
10
|
-
$base-contrast: core.daff-map-
|
11
|
-
$white: core.daff-map-
|
12
|
-
$black: core.daff-map-
|
13
|
-
$neutral: core.daff-map-
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$secondary: core.daff-map-get($theme, secondary);
|
8
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
10
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
11
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
12
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
13
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
14
|
|
15
15
|
.daff-tree-item {
|
16
16
|
$root: &;
|
17
|
-
|
18
17
|
background-color: $base;
|
19
18
|
color: theming.daff-illuminate($base-contrast, $neutral, 2);
|
20
19
|
|
@@ -22,15 +21,16 @@
|
|
22
21
|
background-color: theming.daff-illuminate($base, $neutral, 2);
|
23
22
|
}
|
24
23
|
|
25
|
-
|
24
|
+
&::after {
|
26
25
|
border-color: currentColor;
|
27
26
|
}
|
28
27
|
|
28
|
+
// stylelint-disable selector-class-pattern
|
29
29
|
&.selected {
|
30
30
|
background-color: theming.daff-illuminate($base, $neutral, 2);
|
31
31
|
color: $base-contrast;
|
32
32
|
|
33
|
-
|
33
|
+
&::before {
|
34
34
|
background-color: theming.daff-color($primary);
|
35
35
|
}
|
36
36
|
}
|
package/tree/tree.module.d.ts
CHANGED
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "./tree/tree.component";
|
4
4
|
import * as i3 from "./tree-item/tree-item.directive";
|
5
5
|
/**
|
6
|
-
* @deprecated in favor of {@link DAFF_TREE_COMPONENTS} Deprecated in version 0.78.0. Will be removed in version 0.
|
6
|
+
* @deprecated in favor of {@link DAFF_TREE_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
7
7
|
*/
|
8
8
|
export declare class DaffTreeModule {
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTreeModule, never>;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
@use 'true' as *;
|
2
|
-
@use './map-deep-check' as *;
|
3
|
-
|
4
|
-
@include describe('map-deep-check') {
|
5
|
-
$map: (
|
6
|
-
'nested': (
|
7
|
-
'string': '1',
|
8
|
-
'number': 2,
|
9
|
-
'map': (
|
10
|
-
'string': '3',
|
11
|
-
'number': 4
|
12
|
-
)
|
13
|
-
)
|
14
|
-
);
|
15
|
-
|
16
|
-
@include it('returns `true` if the map contains the key') {
|
17
|
-
@include assert-equal(
|
18
|
-
daff-map-deep-check($map, ('nested', 'string')),
|
19
|
-
true
|
20
|
-
);
|
21
|
-
@include assert-equal(
|
22
|
-
daff-map-deep-check($map, ('nested', 'number')),
|
23
|
-
true
|
24
|
-
);
|
25
|
-
@include assert-equal(daff-map-deep-check($map, ('nested', 'map')), true);
|
26
|
-
@include assert-equal(
|
27
|
-
daff-map-deep-check($map, ('nested', 'map', 'string')),
|
28
|
-
true
|
29
|
-
);
|
30
|
-
@include assert-equal(
|
31
|
-
daff-map-deep-check($map, ('nested', 'map', 'number')),
|
32
|
-
true
|
33
|
-
);
|
34
|
-
}
|
35
|
-
|
36
|
-
@include it('should return false if the $key is not in the list') {
|
37
|
-
@include assert-equal(
|
38
|
-
daff-map-deep-check($map, ('UNREALKEY', 'TEST')),
|
39
|
-
false
|
40
|
-
);
|
41
|
-
@include assert-equal(daff-map-deep-check($map, ('SOMEOTHER')), false);
|
42
|
-
}
|
43
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
@use 'true' as *;
|
2
|
-
@use './map-deep-get' as *;
|
3
|
-
|
4
|
-
@include describe('map-deep-get') {
|
5
|
-
$nested-map: (
|
6
|
-
'string': '3',
|
7
|
-
'number': 4
|
8
|
-
);
|
9
|
-
|
10
|
-
$map: (
|
11
|
-
'nested': (
|
12
|
-
'string': '1',
|
13
|
-
'number': 2,
|
14
|
-
'map': $nested-map
|
15
|
-
)
|
16
|
-
);
|
17
|
-
|
18
|
-
@include it('returns the value of the nested key if it exists in the map') {
|
19
|
-
@include assert-equal(daff-map-deep-get($map, ('nested.string')), '1');
|
20
|
-
@include assert-equal(daff-map-deep-get($map, ('nested.number')), 2);
|
21
|
-
@include assert-equal(daff-map-deep-get($map, ('nested.map')), $nested-map);
|
22
|
-
@include assert-equal(daff-map-deep-get($map, ('nested.map.string')), '3');
|
23
|
-
@include assert-equal(daff-map-deep-get($map, ('nested.map.number')), 4);
|
24
|
-
}
|
25
|
-
}
|
File without changes
|
File without changes
|
File without changes
|