@danske/sapphire-angular 2.9.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/avatar/public_api.mjs +3 -0
- package/esm2020/lib/avatar/src/avatar.component.mjs +53 -0
- package/esm2020/lib/avatar/src/avatar.module.mjs +16 -0
- package/esm2020/lib/badge/src/badge.component.mjs +11 -7
- package/esm2020/lib/button/src/button-group.component.mjs +2 -2
- package/esm2020/lib/button/src/button.component.mjs +19 -6
- package/esm2020/lib/button/src/icon-button.component.mjs +21 -8
- package/esm2020/lib/button/src/toggle-button.component.mjs +19 -6
- package/esm2020/lib/checkbox/src/checkbox-group.component.mjs +2 -2
- package/esm2020/lib/checkbox/src/checkbox.component.mjs +3 -3
- package/esm2020/lib/core.module.mjs +22 -1
- package/esm2020/lib/feedback-message/public_api.mjs +7 -0
- package/esm2020/lib/feedback-message/src/feedback-message.component.mjs +104 -0
- package/esm2020/lib/feedback-message/src/feedback-message.module.mjs +40 -0
- package/esm2020/lib/field/src/field-note.directive.mjs +18 -2
- package/esm2020/lib/field/src/field.component.mjs +33 -15
- package/esm2020/lib/field/src/field.module.mjs +7 -3
- package/esm2020/lib/help-button/src/help-button.component.mjs +15 -12
- package/esm2020/lib/icon/public_api.mjs +2 -1
- package/esm2020/lib/icon/src/icon-size-provider.mjs +1 -1
- package/esm2020/lib/icon/src/icon.component.mjs +30 -18
- package/esm2020/lib/icon/src/icon.module.mjs +4 -2
- package/esm2020/lib/icon/src/iconRegistry.service.mjs +37 -0
- package/esm2020/lib/icon/src/svgSanitizer.mjs +690 -0
- package/esm2020/lib/label/src/label.component.mjs +3 -3
- package/esm2020/lib/link/src/link.component.mjs +3 -8
- package/esm2020/lib/list/src/list.component.mjs +2 -2
- package/esm2020/lib/listbox/src/listbox-item.component.mjs +15 -15
- package/esm2020/lib/listbox/src/listbox.component.mjs +7 -10
- package/esm2020/lib/menu/src/menu-item.component.mjs +3 -3
- package/esm2020/lib/menu/src/menu.component.mjs +8 -13
- package/esm2020/lib/modal/public_api.mjs +2 -1
- package/esm2020/lib/modal/src/dialog/alert-dialog.component.mjs +111 -0
- package/esm2020/lib/modal/src/dialog/dialog.component.mjs +2 -2
- package/esm2020/lib/modal/src/layout/modal-header.component.mjs +15 -12
- package/esm2020/lib/modal/src/layout/modal-layout.component.mjs +2 -2
- package/esm2020/lib/modal/src/modal.module.mjs +27 -2
- package/esm2020/lib/modal/src/panel/panel.component.mjs +2 -2
- package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +2 -2
- package/esm2020/lib/pagination/src/page-selection-row.component.mjs +3 -3
- package/esm2020/lib/pagination/src/pagination.component.mjs +16 -13
- package/esm2020/lib/popover/src/popover.component.mjs +2 -2
- package/esm2020/lib/radio/src/radio-group.component.mjs +2 -2
- package/esm2020/lib/radio/src/radio.component.mjs +2 -2
- package/esm2020/lib/radio/src/segmented/segmented-radio-group.component.mjs +2 -2
- package/esm2020/lib/segmented-tabs/src/segmented-tab.component.mjs +2 -2
- package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +2 -2
- package/esm2020/lib/select/public_api.mjs +2 -2
- package/esm2020/lib/select/src/select/select.component.mjs +22 -19
- package/esm2020/lib/select/src/select/select.module.mjs +10 -10
- package/esm2020/lib/select/src/select-button/select-button.component.mjs +136 -0
- package/esm2020/lib/skeleton/src/skeleton.component.mjs +2 -2
- package/esm2020/lib/spinner/public_api.mjs +7 -0
- package/esm2020/lib/spinner/src/spinner.component.mjs +26 -0
- package/esm2020/lib/spinner/src/spinner.module.mjs +18 -0
- package/esm2020/lib/surface/src/surface.component.mjs +5 -3
- package/esm2020/lib/switch/src/switch.component.mjs +2 -2
- package/esm2020/lib/table/src/table-head-cell.component.mjs +16 -13
- package/esm2020/lib/table/src/table.component.mjs +2 -2
- package/esm2020/lib/text-field/src/text-field.component.mjs +2 -2
- package/esm2020/lib/theme/src/themes.mjs +4 -4
- package/esm2020/lib/tooltip/src/tooltip.component.mjs +2 -2
- package/esm2020/lib/typography/public_api.mjs +4 -2
- package/esm2020/lib/typography/src/body.component.mjs +43 -0
- package/esm2020/lib/typography/src/caption.component.mjs +37 -0
- package/esm2020/lib/typography/src/heading.component.mjs +23 -13
- package/esm2020/lib/typography/src/subheading.component.mjs +37 -0
- package/esm2020/lib/typography/src/typography.module.mjs +23 -5
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/danske-sapphire-angular.mjs +1513 -226
- package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
- package/fesm2020/danske-sapphire-angular.mjs +1513 -225
- package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
- package/lib/avatar/public_api.d.ts +2 -0
- package/lib/avatar/src/avatar.component.d.ts +22 -0
- package/lib/avatar/src/avatar.module.d.ts +7 -0
- package/lib/badge/src/badge.component.d.ts +3 -3
- package/lib/button/src/button.component.d.ts +1 -1
- package/lib/button/src/icon-button.component.d.ts +2 -3
- package/lib/core.module.d.ts +23 -20
- package/lib/feedback-message/public_api.d.ts +2 -0
- package/lib/feedback-message/src/feedback-message.component.d.ts +33 -0
- package/lib/feedback-message/src/feedback-message.module.d.ts +10 -0
- package/lib/field/src/field-note.directive.d.ts +3 -1
- package/lib/field/src/field.component.d.ts +2 -1
- package/lib/field/src/field.module.d.ts +2 -1
- package/lib/help-button/src/help-button.component.d.ts +2 -0
- package/lib/icon/public_api.d.ts +1 -0
- package/lib/icon/src/icon-size-provider.d.ts +1 -1
- package/lib/icon/src/icon.component.d.ts +16 -9
- package/lib/icon/src/iconRegistry.service.d.ts +14 -0
- package/lib/icon/src/svgSanitizer.d.ts +1 -0
- package/lib/link/src/link.component.d.ts +1 -2
- package/lib/listbox/src/listbox-item.component.d.ts +3 -3
- package/lib/listbox/src/listbox.component.d.ts +2 -4
- package/lib/menu/src/menu-item.component.d.ts +1 -1
- package/lib/menu/src/menu.component.d.ts +1 -2
- package/lib/modal/public_api.d.ts +1 -0
- package/lib/modal/src/dialog/alert-dialog.component.d.ts +42 -0
- package/lib/modal/src/layout/modal-header.component.d.ts +2 -0
- package/lib/modal/src/modal.module.d.ts +13 -11
- package/lib/pagination/src/pagination.component.d.ts +2 -0
- package/lib/select/public_api.d.ts +1 -1
- package/lib/select/src/select/select.component.d.ts +3 -2
- package/lib/select/src/select/select.module.d.ts +2 -2
- package/lib/select/src/{basic-select/basic-select.component.d.ts → select-button/select-button.component.d.ts} +12 -11
- package/lib/spinner/public_api.d.ts +2 -0
- package/lib/spinner/src/spinner.component.d.ts +14 -0
- package/lib/spinner/src/spinner.module.d.ts +8 -0
- package/lib/surface/src/surface.component.d.ts +1 -1
- package/lib/table/src/table-head-cell.component.d.ts +3 -2
- package/lib/typography/public_api.d.ts +3 -1
- package/lib/typography/src/body.component.d.ts +16 -0
- package/lib/typography/src/caption.component.d.ts +14 -0
- package/lib/typography/src/heading.component.d.ts +5 -3
- package/lib/typography/src/subheading.component.d.ts +14 -0
- package/lib/typography/src/typography.module.d.ts +5 -3
- package/package.json +5 -4
- package/public-api.d.ts +3 -0
- package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +0 -133
- package/esm2020/lib/typography/src/paragraph.component.mjs +0 -24
- package/lib/typography/src/paragraph.component.d.ts +0 -8
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
3
|
+
type Color = 'neutral' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16;
|
|
4
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
5
|
+
export declare class AvatarComponent {
|
|
6
|
+
/**
|
|
7
|
+
* @default 'md'
|
|
8
|
+
*/
|
|
9
|
+
size?: Size;
|
|
10
|
+
/**
|
|
11
|
+
* The background color of the avatar.
|
|
12
|
+
* Can either be semantic or one of the named decorative color.
|
|
13
|
+
*
|
|
14
|
+
* @default 'informative'
|
|
15
|
+
*/
|
|
16
|
+
color?: Color;
|
|
17
|
+
private get className();
|
|
18
|
+
constructor();
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sp-avatar", never, { "size": "size"; "color": "color"; }, {}, never, ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./avatar.component";
|
|
3
|
+
export declare class SapphireAvatarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireAvatarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireAvatarModule, never, [typeof i1.AvatarComponent], [typeof i1.AvatarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireAvatarModule>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
3
|
-
type Color = 'positive' | 'negative' | 'warning' | 'informative' | '
|
|
3
|
+
type Color = 'positive' | 'negative' | 'warning' | 'informative' | 'neutral' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16;
|
|
4
4
|
type Variant = 'primary' | 'secondary';
|
|
5
|
-
type Size = 'sm' | 'md'
|
|
5
|
+
type Size = 'sm' | 'md';
|
|
6
6
|
export declare class BadgeComponent {
|
|
7
7
|
role: string;
|
|
8
8
|
/**
|
|
@@ -24,7 +24,7 @@ export declare class BadgeComponent {
|
|
|
24
24
|
* The background color of the badge.
|
|
25
25
|
* Can either be semantic or one of the named decorative color.
|
|
26
26
|
*
|
|
27
|
-
* @default '
|
|
27
|
+
* @default 'neutral'
|
|
28
28
|
*/
|
|
29
29
|
color?: Color;
|
|
30
30
|
private get classNames();
|
|
@@ -7,7 +7,7 @@ import * as i1 from "../../theme/src/theme-check.directive";
|
|
|
7
7
|
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
8
8
|
export declare class ButtonComponent implements AfterContentInit {
|
|
9
9
|
elementRef: ElementRef<HTMLButtonElement>;
|
|
10
|
-
variant?: 'primary' | 'secondary' | '
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'danger' | 'danger-secondary' | 'danger-tertiary' | 'danger-text';
|
|
11
11
|
size?: 'sm' | 'md' | 'lg';
|
|
12
12
|
disabled: BooleanInput;
|
|
13
13
|
iconAlign: 'left' | 'right';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { IconSizeProvider } from '../../icon/src/icon-size-provider';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
6
|
-
export declare class IconButtonComponent implements
|
|
5
|
+
export declare class IconButtonComponent implements AfterViewInit {
|
|
7
6
|
private elementRef;
|
|
8
|
-
variant?: 'primary' | 'secondary' | '
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'danger-secondary' | 'danger-tertiary';
|
|
9
8
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
10
9
|
disabled: BooleanInput;
|
|
11
10
|
private get variantClass();
|
package/lib/core.module.d.ts
CHANGED
|
@@ -5,27 +5,30 @@ import * as i3 from "./button/src/button.module";
|
|
|
5
5
|
import * as i4 from "./checkbox/src/checkbox.module";
|
|
6
6
|
import * as i5 from "./icon/src/icon.module";
|
|
7
7
|
import * as i6 from "./typography/src/typography.module";
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./
|
|
18
|
-
import * as i17 from "./
|
|
19
|
-
import * as i18 from "./
|
|
20
|
-
import * as i19 from "./
|
|
21
|
-
import * as i20 from "./
|
|
22
|
-
import * as i21 from "./
|
|
23
|
-
import * as i22 from "./
|
|
24
|
-
import * as i23 from "./
|
|
25
|
-
import * as i24 from "./
|
|
26
|
-
import * as i25 from "./
|
|
8
|
+
import * as i7 from "./feedback-message/src/feedback-message.module";
|
|
9
|
+
import * as i8 from "./spinner/src/spinner.module";
|
|
10
|
+
import * as i9 from "./menu/src/menu.module";
|
|
11
|
+
import * as i10 from "./popover/src/popover.module";
|
|
12
|
+
import * as i11 from "./text-field/src/text-field.module";
|
|
13
|
+
import * as i12 from "./select/src/select/select.module";
|
|
14
|
+
import * as i13 from "./table/src/table.module";
|
|
15
|
+
import * as i14 from "./link/src/link.module";
|
|
16
|
+
import * as i15 from "./avatar/src/avatar.module";
|
|
17
|
+
import * as i16 from "./segmented-tabs/src/segmented-tabs.module";
|
|
18
|
+
import * as i17 from "./notification-badge/src/notification-badge.module";
|
|
19
|
+
import * as i18 from "./switch/src/switch.module";
|
|
20
|
+
import * as i19 from "./radio/src/radio.module";
|
|
21
|
+
import * as i20 from "./tooltip/src/tooltip.module";
|
|
22
|
+
import * as i21 from "./listbox/src/listbox.module";
|
|
23
|
+
import * as i22 from "./modal/src/modal.module";
|
|
24
|
+
import * as i23 from "./skeleton/src/skeleton.module";
|
|
25
|
+
import * as i24 from "./pagination/src/pagination.module";
|
|
26
|
+
import * as i25 from "./help-button/src/help-button.module";
|
|
27
|
+
import * as i26 from "./surface/src/surface.module";
|
|
28
|
+
import * as i27 from "./badge/src/badge.module";
|
|
29
|
+
import * as i28 from "./list/src/list.module";
|
|
27
30
|
export declare class SapphireCoreModule {
|
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCoreModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCoreModule, never, [typeof i1.CommonModule, typeof i2.SapphireThemeModule, typeof i3.SapphireButtonModule, typeof i4.SapphireCheckboxModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i7.
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCoreModule, never, [typeof i1.CommonModule, typeof i2.SapphireThemeModule, typeof i3.SapphireButtonModule, typeof i4.SapphireCheckboxModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i7.SapphireFeedbackMessageModule, typeof i8.SapphireSpinnerModule, typeof i9.SapphireMenuModule, typeof i10.SapphirePopoverModule, typeof i11.SapphireTextFieldModule, typeof i12.SapphireSelectModule, typeof i13.SapphireTableModule, typeof i14.SapphireLinkModule, typeof i15.SapphireAvatarModule, typeof i16.SapphireSegmentedTabsModule, typeof i17.SapphireNotificationBadgeModule, typeof i18.SapphireSwitchModule, typeof i19.SapphireRadioModule, typeof i20.SapphireTooltipModule, typeof i21.SapphireListboxModule, typeof i22.SapphireModalModule, typeof i23.SapphireSkeletonModule, typeof i24.SapphirePaginationModule, typeof i25.SapphireHelpButtonModule, typeof i26.SapphireSurfaceModule, typeof i27.SapphireBadgeModule, typeof i28.SapphireListModule], [typeof i3.SapphireButtonModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i8.SapphireSpinnerModule, typeof i4.SapphireCheckboxModule, typeof i9.SapphireMenuModule, typeof i15.SapphireAvatarModule, typeof i10.SapphirePopoverModule, typeof i7.SapphireFeedbackMessageModule, typeof i11.SapphireTextFieldModule, typeof i13.SapphireTableModule, typeof i14.SapphireLinkModule, typeof i16.SapphireSegmentedTabsModule, typeof i2.SapphireThemeModule, typeof i12.SapphireSelectModule, typeof i17.SapphireNotificationBadgeModule, typeof i18.SapphireSwitchModule, typeof i19.SapphireRadioModule, typeof i20.SapphireTooltipModule, typeof i21.SapphireListboxModule, typeof i22.SapphireModalModule, typeof i23.SapphireSkeletonModule, typeof i24.SapphirePaginationModule, typeof i25.SapphireHelpButtonModule, typeof i26.SapphireSurfaceModule, typeof i27.SapphireBadgeModule, typeof i28.SapphireListModule]>;
|
|
30
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireCoreModule>;
|
|
31
34
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type FeedbackMessageVariant = 'success' | 'error' | 'warning' | 'informative' | 'neutral';
|
|
5
|
+
export declare class FeedbackMessageIcon {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackMessageIcon, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FeedbackMessageIcon, "[spFeedbackMessageIcon]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare class FeedbackMessageHeading {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackMessageHeading, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FeedbackMessageHeading, "sp-feedback-message-heading", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class FeedbackMessageBody {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackMessageBody, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FeedbackMessageBody, "sp-feedback-message-body", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class FeedbackMessageActions {
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackMessageActions, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FeedbackMessageActions, "sp-feedback-message-actions", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Implements layout and style of a feedback message.
|
|
23
|
+
*/
|
|
24
|
+
export declare class FeedbackMessageComponent implements AfterContentInit {
|
|
25
|
+
constructor(iconRegistry: IconRegistry);
|
|
26
|
+
variant?: FeedbackMessageVariant;
|
|
27
|
+
heading?: FeedbackMessageHeading;
|
|
28
|
+
icon?: FeedbackMessageIcon;
|
|
29
|
+
ngAfterContentInit(): void;
|
|
30
|
+
get color(): "primary" | "positive" | "negative" | "warning" | "informative" | undefined;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackMessageComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackMessageComponent, "sp-feedback-message", never, { "variant": "variant"; }, {}, ["heading", "icon"], ["[spFeedbackMessageIcon]", "sp-feedback-message-heading", "sp-feedback-message-body", "sp-feedback-message-actions"], false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./feedback-message.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../typography/src/typography.module";
|
|
5
|
+
import * as i4 from "../../icon/src/icon.module";
|
|
6
|
+
export declare class SapphireFeedbackMessageModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireFeedbackMessageModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireFeedbackMessageModule, [typeof i1.FeedbackMessageComponent, typeof i1.FeedbackMessageIcon, typeof i1.FeedbackMessageHeading, typeof i1.FeedbackMessageBody, typeof i1.FeedbackMessageActions], [typeof i2.CommonModule, typeof i3.SapphireTypographyModule, typeof i4.SapphireIconModule], [typeof i1.FeedbackMessageComponent, typeof i1.FeedbackMessageIcon, typeof i1.FeedbackMessageHeading, typeof i1.FeedbackMessageBody, typeof i1.FeedbackMessageActions]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireFeedbackMessageModule>;
|
|
10
|
+
}
|
|
@@ -8,6 +8,8 @@ export declare class FieldNoteDirective {
|
|
|
8
8
|
* If none is supplied, it will be auto-generated.
|
|
9
9
|
*/
|
|
10
10
|
id: string;
|
|
11
|
+
variant?: 'warning' | 'neutral' | 'success';
|
|
12
|
+
get icon(): string;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldNoteDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteDirective, "sp-field-note", never, { "id": "id"; }, {}, never, never, true, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteDirective, "sp-field-note", never, { "id": "id"; "variant": "variant"; }, {}, never, never, true, never>;
|
|
13
15
|
}
|
|
@@ -8,6 +8,7 @@ import { FieldLabelDirective } from './field-label.directive';
|
|
|
8
8
|
import { DomPortal } from '@angular/cdk/portal';
|
|
9
9
|
import { IconSizeProvider } from '../../icon/src/icon-size-provider';
|
|
10
10
|
import { RadioGroupComponent } from '../../radio/src/radio-group.component';
|
|
11
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
13
14
|
/**
|
|
@@ -69,7 +70,7 @@ export declare class FieldComponent implements AfterContentInit, AfterViewChecke
|
|
|
69
70
|
*/
|
|
70
71
|
_noteSuffixPortal: DomPortal<HTMLElement> | null;
|
|
71
72
|
private changed;
|
|
72
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
73
|
+
constructor(changeDetectorRef: ChangeDetectorRef, iconRegistry: IconRegistry);
|
|
73
74
|
ngAfterContentInit(): void;
|
|
74
75
|
ngAfterViewChecked(): void;
|
|
75
76
|
/**
|
|
@@ -7,8 +7,9 @@ import * as i5 from "./field-note-suffix.directive";
|
|
|
7
7
|
import * as i6 from "./field-error.directive";
|
|
8
8
|
import * as i7 from "@angular/cdk/portal";
|
|
9
9
|
import * as i8 from "../../label/src/label.component";
|
|
10
|
+
import * as i9 from "../../icon/src/icon.module";
|
|
10
11
|
export declare class SapphireFieldModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireFieldModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireFieldModule, [typeof i1.FieldComponent], [typeof i2.NgIf, typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i7.PortalModule, typeof i8.LabelComponent, typeof i2.CommonModule], [typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i1.FieldComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireFieldModule, [typeof i1.FieldComponent], [typeof i2.NgIf, typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i7.PortalModule, typeof i8.LabelComponent, typeof i2.CommonModule, typeof i9.SapphireIconModule], [typeof i3.FieldLabelDirective, typeof i4.FieldNoteDirective, typeof i5.FieldNoteSuffixDirective, typeof i6.FieldErrorDirective, typeof i1.FieldComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireFieldModule>;
|
|
14
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PopoverTriggerDirective } from '../../popover/src/popover-trigger.directive';
|
|
2
2
|
import { Placement } from '../../common/placement';
|
|
3
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class HelpButtonHeaderDirective {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelpButtonHeaderDirective, never>;
|
|
@@ -14,6 +15,7 @@ export declare class HelpButtonFooterDirective {
|
|
|
14
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<HelpButtonFooterDirective, "sp-help-button-footer", never, {}, {}, never, never, true, never>;
|
|
15
16
|
}
|
|
16
17
|
export declare class HelpButtonComponent {
|
|
18
|
+
constructor(iconRegistry: IconRegistry);
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
19
21
|
* The type of help button which determines the icon shown.
|
package/lib/icon/public_api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
3
3
|
* Interface to implement for the value of {@link ICON_SIZE_PROVIDER}
|
|
4
4
|
*/
|
|
5
5
|
export interface IconSizeProvider {
|
|
6
|
-
size?: '
|
|
6
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Injection token to provide the default size of the icon based on where
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { DoCheck, ElementRef } from '@angular/core';
|
|
2
|
-
import * as icons from '@danske/sapphire-icons/js';
|
|
3
2
|
import { IconSizeProvider } from './icon-size-provider';
|
|
3
|
+
import { IconRegistry } from './iconRegistry.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
type IconSize = '
|
|
5
|
+
type IconSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type IconColor = 'primary' | 'secondary' | 'positive' | 'negative' | 'warning' | 'informative';
|
|
6
7
|
export declare class IconComponent implements DoCheck {
|
|
7
8
|
private elementRef;
|
|
9
|
+
private registry;
|
|
8
10
|
private sizeProvider?;
|
|
9
11
|
private iconClass?;
|
|
10
|
-
set name(value:
|
|
11
|
-
get name(): undefined | keyof typeof icons | string;
|
|
12
|
-
private _name?;
|
|
12
|
+
set name(value: string | undefined);
|
|
13
13
|
sizeInput?: IconSize;
|
|
14
14
|
get size(): IconSize;
|
|
15
|
-
|
|
15
|
+
private _color?;
|
|
16
|
+
/**
|
|
17
|
+
* The semantic color of the text.
|
|
18
|
+
* No value means that the color will be inherited.
|
|
19
|
+
*/
|
|
20
|
+
set color(color: IconColor | undefined);
|
|
21
|
+
get color(): IconColor | undefined;
|
|
22
|
+
constructor(elementRef: ElementRef, registry: IconRegistry, sizeProvider?: IconSizeProvider | undefined);
|
|
16
23
|
ngDoCheck(): void;
|
|
17
|
-
private
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, [null, { optional: true; }]>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sp-icon", never, { "name": "name"; "sizeInput": "size"; }, {}, never, never, false, never>;
|
|
24
|
+
private setClasses;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, [null, null, { optional: true; }]>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sp-icon", never, { "name": "name"; "sizeInput": "size"; "color": "color"; }, {}, never, never, false, never>;
|
|
20
27
|
}
|
|
21
28
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface IconData {
|
|
3
|
+
name: string;
|
|
4
|
+
data: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class IconRegistry {
|
|
7
|
+
constructor();
|
|
8
|
+
private icons;
|
|
9
|
+
registerIcon(icon: IconData): void;
|
|
10
|
+
registerIcons(icons: IconData[]): void;
|
|
11
|
+
getSvg(iconName: string): string | undefined;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistry, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistry>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sanitizeSvg: (svg: string) => string;
|
|
@@ -3,11 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
4
4
|
export declare class LinkComponent {
|
|
5
5
|
variant?: 'primary' | 'secondary';
|
|
6
|
-
size?: 'sm' | 'md' | 'lg';
|
|
7
6
|
disabled?: BooleanInput;
|
|
8
7
|
tabindex?: string | null;
|
|
9
8
|
tabIndex?: string | null;
|
|
10
9
|
private handleDisableInteraction;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "a[sp-link]", never, { "variant": "variant"; "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "a[sp-link]", never, { "variant": "variant"; "disabled": "disabled"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; }, {}, never, ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
13
12
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PressedDirective } from '../../common/pressed.directive';
|
|
2
2
|
import { OptionComponent } from './option.component';
|
|
3
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
5
6
|
import * as i2 from "../../common/pressed.directive";
|
|
@@ -14,8 +15,7 @@ export declare class ListboxItemComponent {
|
|
|
14
15
|
selected?: boolean;
|
|
15
16
|
focused?: boolean;
|
|
16
17
|
option: OptionComponent;
|
|
17
|
-
|
|
18
|
-
constructor(pressedDirective: PressedDirective);
|
|
18
|
+
constructor(pressedDirective: PressedDirective, iconRegistry: IconRegistry);
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListboxItemComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListboxItemComponent, "li[sp-listbox-item]", never, { "selected": "selected"; "focused": "focused"; "option": "option";
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListboxItemComponent, "li[sp-listbox-item]", never, { "selected": "selected"; "focused": "focused"; "option": "option"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }, { directive: typeof i2.PressedDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.FocusedDirective; inputs: { "spFocused": "focused"; }; outputs: {}; }]>;
|
|
21
21
|
}
|
|
@@ -6,9 +6,8 @@ import { BooleanInput } from '@angular/cdk/coercion';
|
|
|
6
6
|
import { ListboxChild } from './listbox-child';
|
|
7
7
|
import { SectionDirective } from './section.directive';
|
|
8
8
|
import { ListboxInputDirective } from './listbox-input.directive';
|
|
9
|
-
import { IconSizeProvider } from '../../icon/src/icon-size-provider';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ListboxComponent implements ControlValueAccessor, AfterViewInit, AfterViewChecked, DoCheck
|
|
10
|
+
export declare class ListboxComponent implements ControlValueAccessor, AfterViewInit, AfterViewChecked, DoCheck {
|
|
12
11
|
private changeDetectorRef;
|
|
13
12
|
/**
|
|
14
13
|
* The list of selected values (`value`s of selected sp-options).
|
|
@@ -37,7 +36,6 @@ export declare class ListboxComponent implements ControlValueAccessor, AfterView
|
|
|
37
36
|
navigationWrapDisabled: BooleanInput;
|
|
38
37
|
ariaLabel: string;
|
|
39
38
|
ariaLabelledBy?: string;
|
|
40
|
-
size?: 'lg' | 'md' | 'sm';
|
|
41
39
|
id?: string;
|
|
42
40
|
/**
|
|
43
41
|
* Emits whenever an option is selected, regardless of if it's already selected.
|
|
@@ -124,5 +122,5 @@ export declare class ListboxComponent implements ControlValueAccessor, AfterView
|
|
|
124
122
|
*/
|
|
125
123
|
_isConnectedToInput(): boolean;
|
|
126
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListboxComponent, never>;
|
|
127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListboxComponent, "sp-listbox", ["spListbox"], { "selectedValues": "selectedValues"; "_itemsInput": "spListboxItems"; "disabled": "disabled"; "multiple": "multiple"; "navigationWrapDisabled": "navigationWrapDisabled"; "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; "
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListboxComponent, "sp-listbox", ["spListbox"], { "selectedValues": "selectedValues"; "_itemsInput": "spListboxItems"; "disabled": "disabled"; "multiple": "multiple"; "navigationWrapDisabled": "navigationWrapDisabled"; "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; "id": "id"; }, { "selectedValuesChange": "selectedValuesChange"; "selected": "selected"; }, ["itemsInContent"], never, false, never>;
|
|
128
126
|
}
|
|
@@ -8,5 +8,5 @@ export declare class MenuItemComponent {
|
|
|
8
8
|
/** Whether the item should be styled as danger item */
|
|
9
9
|
danger: BooleanInput;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "sp-menu-item", never, { "disabled": "disabled"; "danger": "danger"; }, {}, never, ["sp-menu-
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "sp-menu-item", never, { "disabled": "disabled"; "danger": "danger"; }, {}, never, ["sp-menu-primary-text", "*", "sp-menu-secondary-text", "sp-menu-item-icon"], false, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
|
|
12
12
|
}
|
|
@@ -4,7 +4,6 @@ import * as i2 from "../../theme/src/theme-check.directive";
|
|
|
4
4
|
import * as i3 from "../../common/sapphire-view-encapsulation";
|
|
5
5
|
/** @title Menu with Standalone Trigger. */
|
|
6
6
|
export declare class MenuComponent {
|
|
7
|
-
size?: 'lg' | 'md' | 'sm';
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "sp-menu", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "sp-menu", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: { "closed": "closed"; }; }, { directive: typeof i2.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
10
9
|
}
|
|
@@ -12,4 +12,5 @@ export * from './src/panel/panel-trigger.directive';
|
|
|
12
12
|
export * from './src/dialog/dialog.component';
|
|
13
13
|
export * from './src/dialog/confirmation-dialog.component';
|
|
14
14
|
export * from './src/dialog/danger-dialog.component';
|
|
15
|
+
export * from './src/dialog/alert-dialog.component';
|
|
15
16
|
export * from './src/dialog/dialog-trigger.directive';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { DialogComponent } from './dialog.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type AlertDialogVariant = 'success' | 'error' | 'warning' | 'informative' | 'neutral';
|
|
5
|
+
export declare class AlertDialogIcon {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogIcon, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertDialogIcon, "[spAlertDialogIcon]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare class AlertDialogHeading {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogHeading, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertDialogHeading, "[spAlertDialogHeading]", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class AlertDialogBody {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogBody, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertDialogBody, "[spAlertDialogBody]", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class AlertDialogActions {
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogActions, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertDialogActions, "[spAlertDialogActions]", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Implements layout and style of the alert dialog
|
|
23
|
+
*/
|
|
24
|
+
export declare class AlertDialogComponent implements AfterContentInit {
|
|
25
|
+
variant?: AlertDialogVariant;
|
|
26
|
+
/**
|
|
27
|
+
* @default "horizontal"
|
|
28
|
+
*/
|
|
29
|
+
actionsOrientation?: 'vertical' | 'horizontal';
|
|
30
|
+
icon?: AlertDialogIcon;
|
|
31
|
+
heading?: AlertDialogHeading;
|
|
32
|
+
body?: AlertDialogBody;
|
|
33
|
+
actions?: AlertDialogActions;
|
|
34
|
+
ngAfterContentInit(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Reference to the wrapped `sp-dialog` component.
|
|
37
|
+
*/
|
|
38
|
+
dialog?: DialogComponent;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "sp-alert-dialog", never, { "variant": "variant"; "actionsOrientation": "actionsOrientation"; }, {}, ["icon", "heading", "body", "actions"], ["[spAlertDialogIcon]", "[spAlertDialogHeading]", "[spAlertDialogBody]", "[spAlertDialogActions]"], false, never>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { IconRegistry } from '../../../icon/public_api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "../../../common/sapphire-view-encapsulation";
|
|
5
6
|
/**
|
|
@@ -20,6 +21,7 @@ export declare class ModalHeaderDirective {
|
|
|
20
21
|
* {@link ModalHeaderDirective spModalHeader attribute directive}.
|
|
21
22
|
*/
|
|
22
23
|
export declare class ModalHeaderComponent {
|
|
24
|
+
constructor(iconRegistry: IconRegistry);
|
|
23
25
|
subheading?: string;
|
|
24
26
|
hideCloseButton?: BooleanInput;
|
|
25
27
|
closeEventEmitter: EventEmitter<any>;
|
|
@@ -9,18 +9,20 @@ import * as i7 from "./dialog/dialog.component";
|
|
|
9
9
|
import * as i8 from "./dialog/dialog-trigger.directive";
|
|
10
10
|
import * as i9 from "./dialog/confirmation-dialog.component";
|
|
11
11
|
import * as i10 from "./dialog/danger-dialog.component";
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./panel/panel
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "@angular/
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "../../
|
|
18
|
-
import * as i17 from "../../
|
|
19
|
-
import * as i18 from "../../
|
|
20
|
-
import * as i19 from "../../
|
|
21
|
-
import * as i20 from "../../
|
|
12
|
+
import * as i11 from "./dialog/alert-dialog.component";
|
|
13
|
+
import * as i12 from "./panel/panel.component";
|
|
14
|
+
import * as i13 from "./panel/panel-trigger.directive";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@angular/cdk/dialog";
|
|
17
|
+
import * as i16 from "../../theme/src/theme.module";
|
|
18
|
+
import * as i17 from "../../typography/src/typography.module";
|
|
19
|
+
import * as i18 from "../../icon/src/icon.module";
|
|
20
|
+
import * as i19 from "../../button/src/button.module";
|
|
21
|
+
import * as i20 from "../../feedback-message/src/feedback-message.module";
|
|
22
|
+
import * as i21 from "../../common/scroll-monitor.directive";
|
|
23
|
+
import * as i22 from "../../common/sapphire-view-encapsulation";
|
|
22
24
|
export declare class SapphireModalModule {
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireModalModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireModalModule, [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i5.ModalCloseButtonDirective, typeof i6.ModalBackButtonDirective, typeof i7.DialogComponent, typeof i8.DialogTriggerDirective, typeof i9.ConfirmationDialogComponent, typeof i10.DangerDialogComponent, typeof i11.
|
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireModalModule, [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i5.ModalCloseButtonDirective, typeof i6.ModalBackButtonDirective, typeof i7.DialogComponent, typeof i8.DialogTriggerDirective, typeof i9.ConfirmationDialogComponent, typeof i10.DangerDialogComponent, typeof i11.AlertDialogComponent, typeof i11.AlertDialogIcon, typeof i11.AlertDialogBody, typeof i11.AlertDialogHeading, typeof i11.AlertDialogActions, typeof i12.PanelComponent, typeof i13.PanelTriggerDirective], [typeof i14.CommonModule, typeof i15.DialogModule, typeof i16.SapphireThemeModule, typeof i17.SapphireTypographyModule, typeof i18.SapphireIconModule, typeof i19.SapphireButtonModule, typeof i20.SapphireFeedbackMessageModule, typeof i21.ScrollMonitorDirective, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i22.UseComponentStyles], [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i6.ModalBackButtonDirective, typeof i5.ModalCloseButtonDirective, typeof i7.DialogComponent, typeof i8.DialogTriggerDirective, typeof i9.ConfirmationDialogComponent, typeof i10.DangerDialogComponent, typeof i11.AlertDialogComponent, typeof i11.AlertDialogIcon, typeof i11.AlertDialogBody, typeof i11.AlertDialogHeading, typeof i11.AlertDialogActions, typeof i12.PanelComponent, typeof i13.PanelTriggerDirective]>;
|
|
25
27
|
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireModalModule>;
|
|
26
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SapphirePaginationChange {
|
|
5
6
|
/** The new page index */
|
|
@@ -13,6 +14,7 @@ export declare class SapphirePaginationChange {
|
|
|
13
14
|
pageSize: number);
|
|
14
15
|
}
|
|
15
16
|
export declare class PaginationComponent {
|
|
17
|
+
constructor(iconRegistry: IconRegistry);
|
|
16
18
|
pageSize: number;
|
|
17
19
|
itemCount: number;
|
|
18
20
|
page: number;
|
|
@@ -2,4 +2,4 @@ export { SelectComponent, MultiSelectDirective, SingleSelectDirective, } from '.
|
|
|
2
2
|
export { SapphireSelectModule } from './src/select/select.module';
|
|
3
3
|
export { SelectionTextDirective } from './src/select/selection-text.directive';
|
|
4
4
|
export { SearchableSelectDirective } from './src/select/searchable-select.directive';
|
|
5
|
-
export {
|
|
5
|
+
export { SelectButtonComponent, SelectButtonSingleSelectDirective, } from './src/select-button/select-button.component';
|
|
@@ -7,6 +7,7 @@ import { FieldComponent, FieldControl } from '../../../field/public_api';
|
|
|
7
7
|
import { SelectComponentBase } from '../common/select-component-base';
|
|
8
8
|
import { MultiSelectDirectiveBase, SelectValueHolder, SingleSelectDirectiveBase } from '../common/select-value-holder';
|
|
9
9
|
import { SearchableSelectDirective } from './searchable-select.directive';
|
|
10
|
+
import { IconRegistry } from '../../../icon/public_api';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../../../common/sapphire-view-encapsulation";
|
|
12
13
|
/**
|
|
@@ -58,7 +59,7 @@ export declare class SelectComponent extends SelectComponentBase implements Fiel
|
|
|
58
59
|
*/
|
|
59
60
|
_valueContainerId: string;
|
|
60
61
|
private destroyed;
|
|
61
|
-
constructor(valueHolder: SelectValueHolder, focusMonitor: FocusMonitor, inputModality: InputModalityDetector, _field?: FieldComponent | undefined, _searchableSelectDirective?: SearchableSelectDirective | undefined);
|
|
62
|
+
constructor(valueHolder: SelectValueHolder, iconRegistry: IconRegistry, focusMonitor: FocusMonitor, inputModality: InputModalityDetector, _field?: FieldComponent | undefined, _searchableSelectDirective?: SearchableSelectDirective | undefined);
|
|
62
63
|
ngAfterViewInit(): void;
|
|
63
64
|
ngOnDestroy(): void;
|
|
64
65
|
_getAriaLabelledBy(): string | undefined;
|
|
@@ -76,6 +77,6 @@ export declare class SelectComponent extends SelectComponentBase implements Fiel
|
|
|
76
77
|
_handleSelected(): void;
|
|
77
78
|
isDisabled(): boolean;
|
|
78
79
|
hasDefaultWidth: boolean;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
80
81
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "sp-select", ["spSelect"], {}, {}, never, ["sp-selection-text"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
81
82
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./select.component";
|
|
3
3
|
import * as i2 from "./selection-text.directive";
|
|
4
|
-
import * as i3 from "../
|
|
4
|
+
import * as i3 from "../select-button/select-button.component";
|
|
5
5
|
import * as i4 from "../common/hidden-select.component";
|
|
6
6
|
import * as i5 from "./searchable-select.directive";
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
@@ -21,6 +21,6 @@ import * as i19 from "../../../label/src/label.component";
|
|
|
21
21
|
import * as i20 from "../../../common/sapphire-view-encapsulation";
|
|
22
22
|
export declare class SapphireSelectModule {
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSelectModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSelectModule, [typeof i1.SelectComponent, typeof i1.MultiSelectDirective, typeof i1.SingleSelectDirective, typeof i2.SelectionTextDirective, typeof i3.
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSelectModule, [typeof i1.SelectComponent, typeof i1.MultiSelectDirective, typeof i1.SingleSelectDirective, typeof i2.SelectionTextDirective, typeof i3.SelectButtonComponent, typeof i3.SelectButtonSingleSelectDirective, typeof i4.HiddenSelectComponent, typeof i5.SearchableSelectDirective], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.SapphireIconModule, typeof i9.SapphireListboxModule, typeof i10.SapphirePopoverModule, typeof i11.CdkListboxModule, typeof i12.A11yModule, typeof i13.PortalModule, typeof i14.VisuallyHiddenDirective, typeof i15.FieldLabelDirective, typeof i16.FieldErrorDirective, typeof i17.FieldNoteDirective, typeof i18.SapphireButtonModule, typeof i19.LabelComponent, typeof i20.UseComponentStyles], [typeof i9.SapphireListboxModule, typeof i1.SelectComponent, typeof i1.MultiSelectDirective, typeof i1.SingleSelectDirective, typeof i2.SelectionTextDirective, typeof i3.SelectButtonComponent, typeof i3.SelectButtonSingleSelectDirective, typeof i5.SearchableSelectDirective, typeof i15.FieldLabelDirective, typeof i16.FieldErrorDirective, typeof i17.FieldNoteDirective]>;
|
|
25
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSelectModule>;
|
|
26
26
|
}
|