@danske/sapphire-angular 2.9.0 → 3.0.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/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
|
@@ -4,14 +4,15 @@ import { ListboxComponent } from '../../../listbox/src/listbox.component';
|
|
|
4
4
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
5
5
|
import { SelectComponentBase } from '../common/select-component-base';
|
|
6
6
|
import { SelectValueHolder, SingleSelectDirectiveBase } from '../common/select-value-holder';
|
|
7
|
+
import { IconRegistry } from '../../../icon/public_api';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* NOTE: Support for multiple selection in basic select is removed, based on
|
|
10
11
|
* a UX decision. See commit message for more details.
|
|
11
12
|
*/
|
|
12
|
-
export declare class
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
13
|
+
export declare class SelectButtonSingleSelectDirective extends SingleSelectDirectiveBase {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonSingleSelectDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectButtonSingleSelectDirective, "sp-select-button:not([multiple])", never, {}, {}, never, never, false, never>;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Allows user to select a single option from a list, similar to native select
|
|
@@ -19,7 +20,7 @@ export declare class BasicSingleSelectDirective extends SingleSelectDirectiveBas
|
|
|
19
20
|
*
|
|
20
21
|
* Example:
|
|
21
22
|
* ```tsx
|
|
22
|
-
* <sp-
|
|
23
|
+
* <sp-select-button
|
|
23
24
|
* placeholder="Select an option"
|
|
24
25
|
* size="sm"
|
|
25
26
|
* variant="secondary"
|
|
@@ -27,10 +28,10 @@ export declare class BasicSingleSelectDirective extends SingleSelectDirectiveBas
|
|
|
27
28
|
* <sp-option value="option1">First Option</sp-option>
|
|
28
29
|
* <sp-option value="option2">Second Option</sp-option>
|
|
29
30
|
* <sp-option value="option3">Third Option</sp-option>
|
|
30
|
-
* </sp-
|
|
31
|
+
* </sp-select-button>
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
export declare class
|
|
34
|
+
export declare class SelectButtonComponent extends SelectComponentBase {
|
|
34
35
|
private focusMonitor;
|
|
35
36
|
/**
|
|
36
37
|
* Size of the button
|
|
@@ -39,17 +40,17 @@ export declare class BasicSelectComponent extends SelectComponentBase {
|
|
|
39
40
|
size: 'sm' | 'md' | 'lg';
|
|
40
41
|
/**
|
|
41
42
|
* Visual variations
|
|
42
|
-
* @default '
|
|
43
|
+
* @default 'tertiary'
|
|
43
44
|
*/
|
|
44
|
-
variant: 'primary' | 'secondary' | '
|
|
45
|
+
variant: 'primary' | 'secondary' | 'tertiary';
|
|
45
46
|
protected triggerRef: PopoverTriggerDirective | undefined;
|
|
46
47
|
protected triggerElementRef: ElementRef | undefined;
|
|
47
48
|
protected listbox: ListboxComponent | undefined;
|
|
48
49
|
private focused;
|
|
49
|
-
constructor(valueHolder: SelectValueHolder, focusMonitor: FocusMonitor);
|
|
50
|
+
constructor(valueHolder: SelectValueHolder, focusMonitor: FocusMonitor, iconRegistry: IconRegistry);
|
|
50
51
|
focus(focusOrigin?: FocusOrigin): void;
|
|
51
52
|
isFocused(): boolean;
|
|
52
53
|
_onFocusChange(focusOrigin: FocusOrigin): void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "sp-select-button", ["spSelectButton"], { "size": "size"; "variant": "variant"; }, {}, never, ["sp-selection-text"], false, never>;
|
|
55
56
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SpinnerComponent {
|
|
3
|
+
size: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
/**
|
|
5
|
+
* Defines a string value that labels the current element.
|
|
6
|
+
*/
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Identifies the element (or elements) that labels the current element.
|
|
10
|
+
*/
|
|
11
|
+
ariaLabelledBy?: string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "sp-spinner", never, { "size": "size"; "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; }, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./spinner.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SapphireSpinnerModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireSpinnerModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireSpinnerModule, [typeof i1.SpinnerComponent], [typeof i2.CommonModule], [typeof i1.SpinnerComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireSpinnerModule>;
|
|
8
|
+
}
|
|
@@ -5,7 +5,7 @@ import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
|
5
5
|
* primary surface background color, text color and font family.
|
|
6
6
|
*/
|
|
7
7
|
export declare class SurfaceComponent {
|
|
8
|
-
variant?: 'primary' | 'secondary';
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'contrast';
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurfaceComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<SurfaceComponent, "sp-surface", never, { "variant": "variant"; }, {}, never, ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
11
11
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TableSortHeaderDirective } from './table-sort-header.directive';
|
|
2
2
|
import { TableComponent } from './table.component';
|
|
3
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { IconRegistry } from '../../icon/public_api';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
6
7
|
export declare class TableHeadCellComponent {
|
|
@@ -19,7 +20,7 @@ export declare class TableHeadCellComponent {
|
|
|
19
20
|
*/
|
|
20
21
|
selectionCell: BooleanInput;
|
|
21
22
|
get cellOverflow(): "wrap" | "truncate";
|
|
22
|
-
constructor(table: TableComponent, tableSortHeader?: TableSortHeaderDirective | undefined);
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadCellComponent, [null, { optional: true; }]>;
|
|
23
|
+
constructor(table: TableComponent, iconRegistry: IconRegistry, tableSortHeader?: TableSortHeaderDirective | undefined);
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadCellComponent, [null, null, { optional: true; }]>;
|
|
24
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadCellComponent, "th[sp-table-th]", never, { "align": "align"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; "selectionCell": "selectionCell"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
|
|
25
26
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
4
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
5
|
+
export declare class BodyComponent {
|
|
6
|
+
size: 'lg' | 'md' | 'sm' | 'xs';
|
|
7
|
+
/**
|
|
8
|
+
* The semantic color of the text
|
|
9
|
+
* @default 'primary'
|
|
10
|
+
*/
|
|
11
|
+
color?: 'primary' | 'secondary' | 'positive' | 'negative' | 'warning' | 'informative';
|
|
12
|
+
bold?: BooleanInput;
|
|
13
|
+
private get className();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BodyComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BodyComponent, "[sp-body]", never, { "size": "size"; "color": "color"; "bold": "bold"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
3
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
4
|
+
export declare class CaptionComponent {
|
|
5
|
+
size: 'md' | 'sm';
|
|
6
|
+
/**
|
|
7
|
+
* The semantic color of the text
|
|
8
|
+
* @default 'primary'
|
|
9
|
+
*/
|
|
10
|
+
color?: 'primary' | 'secondary' | 'positive' | 'negative' | 'warning' | 'informative';
|
|
11
|
+
private get className();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaptionComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaptionComponent, "[sp-caption]", never, { "size": "size"; "color": "color"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
14
|
+
}
|
|
@@ -8,13 +8,15 @@ export declare class HeadingComponent {
|
|
|
8
8
|
private levelInput?;
|
|
9
9
|
set level(value: HeadingLevel);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The semantic color of the text
|
|
12
|
+
* @default 'primary'
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
color?: 'primary' | 'secondary' | 'positive' | 'negative' | 'warning' | 'informative';
|
|
14
15
|
get level(): HeadingLevel;
|
|
15
16
|
constructor(elementRef: ElementRef);
|
|
16
17
|
private getLevelFromElement;
|
|
18
|
+
private get className();
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]", never, { "level": "sp-heading"; "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]", never, { "level": "sp-heading"; "color": "color"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
19
21
|
}
|
|
20
22
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
3
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
4
|
+
export declare class SubheadingComponent {
|
|
5
|
+
size: 'md' | 'sm';
|
|
6
|
+
/**
|
|
7
|
+
* The semantic color of the text
|
|
8
|
+
* @default 'primary'
|
|
9
|
+
*/
|
|
10
|
+
color?: 'primary' | 'secondary' | 'positive' | 'negative' | 'warning' | 'informative';
|
|
11
|
+
private get className();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubheadingComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubheadingComponent, "[sp-subheading]", never, { "size": "size"; "color": "color"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
14
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./heading.component";
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "
|
|
3
|
+
import * as i2 from "./body.component";
|
|
4
|
+
import * as i3 from "./caption.component";
|
|
5
|
+
import * as i4 from "./subheading.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
5
7
|
export declare class SapphireTypographyModule {
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireTypographyModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTypographyModule, [typeof i1.HeadingComponent, typeof i2.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireTypographyModule, [typeof i1.HeadingComponent, typeof i2.BodyComponent, typeof i3.CaptionComponent, typeof i4.SubheadingComponent], [typeof i5.CommonModule], [typeof i1.HeadingComponent, typeof i2.BodyComponent, typeof i3.CaptionComponent, typeof i4.SubheadingComponent]>;
|
|
8
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireTypographyModule>;
|
|
9
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "The Angular implementation of the Sapphire Design System from Danske Bank A/S",
|
|
6
6
|
"module": "fesm2015/danske-sapphire-angular.mjs",
|
|
@@ -13,14 +13,15 @@
|
|
|
13
13
|
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
14
14
|
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
15
15
|
"@angular/forms": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
16
|
-
"@danske/sapphire-icons": "^
|
|
16
|
+
"@danske/sapphire-icons": "^3.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@danske/sapphire-css": "^
|
|
19
|
+
"@danske/sapphire-css": "^40.0.0",
|
|
20
20
|
"@internationalized/message": "^3.1.5",
|
|
21
|
+
"sanitize-html": "^2.17.0",
|
|
21
22
|
"tslib": "^2.3.0"
|
|
22
23
|
},
|
|
23
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "09163d6ba43ad1cb4eef0f62060664840493fd01",
|
|
24
25
|
"es2020": "fesm2020/danske-sapphire-angular.mjs",
|
|
25
26
|
"esm2020": "esm2020/danske-sapphire-angular.mjs",
|
|
26
27
|
"fesm2020": "fesm2020/danske-sapphire-angular.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export * from './lib/select/public_api';
|
|
|
9
9
|
export * from './lib/listbox/public_api';
|
|
10
10
|
export * from './lib/link/public_api';
|
|
11
11
|
export * from './lib/segmented-tabs/public_api';
|
|
12
|
+
export * from './lib/spinner/public_api';
|
|
13
|
+
export * from './lib/avatar/public_api';
|
|
14
|
+
export * from './lib/feedback-message/public_api';
|
|
12
15
|
export * from './lib/table/public_api';
|
|
13
16
|
export * from './lib/notification-badge/public_api';
|
|
14
17
|
export * from './lib/switch/public_api';
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Component, Directive, ElementRef, forwardRef, Input, ViewChild, } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { ListboxComponent } from '../../../listbox/src/listbox.component';
|
|
4
|
-
import { SelectComponentBase } from '../common/select-component-base';
|
|
5
|
-
import { SelectValueHolder, SingleSelectDirectiveBase, } from '../common/select-value-holder';
|
|
6
|
-
import { ViewEncapsulationProvider } from '../../../common/sapphire-view-encapsulation';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../common/select-value-holder";
|
|
9
|
-
import * as i2 from "@angular/cdk/a11y";
|
|
10
|
-
import * as i3 from "@angular/common";
|
|
11
|
-
import * as i4 from "../../../icon/src/icon.component";
|
|
12
|
-
import * as i5 from "../../../listbox/src/listbox.component";
|
|
13
|
-
import * as i6 from "../../../popover/src/popover.component";
|
|
14
|
-
import * as i7 from "../../../popover/src/popover-trigger.directive";
|
|
15
|
-
import * as i8 from "../../../button/src/button.component";
|
|
16
|
-
import * as i9 from "../../../button/src/button-icon.directive";
|
|
17
|
-
import * as i10 from "../common/hidden-select.component";
|
|
18
|
-
/**
|
|
19
|
-
* NOTE: Support for multiple selection in basic select is removed, based on
|
|
20
|
-
* a UX decision. See commit message for more details.
|
|
21
|
-
*/
|
|
22
|
-
export class BasicSingleSelectDirective extends SingleSelectDirectiveBase {
|
|
23
|
-
}
|
|
24
|
-
BasicSingleSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BasicSingleSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
BasicSingleSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: BasicSingleSelectDirective, selector: "sp-basic-select:not([multiple])", providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: SelectValueHolder,
|
|
28
|
-
useExisting: forwardRef(() => BasicSingleSelectDirective),
|
|
29
|
-
},
|
|
30
|
-
], usesInheritance: true, ngImport: i0 });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BasicSingleSelectDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'sp-basic-select:not([multiple])',
|
|
35
|
-
providers: [
|
|
36
|
-
{
|
|
37
|
-
provide: SelectValueHolder,
|
|
38
|
-
useExisting: forwardRef(() => BasicSingleSelectDirective),
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
standalone: false,
|
|
42
|
-
}]
|
|
43
|
-
}] });
|
|
44
|
-
/**
|
|
45
|
-
* Allows user to select a single option from a list, similar to native select
|
|
46
|
-
* component.
|
|
47
|
-
*
|
|
48
|
-
* Example:
|
|
49
|
-
* ```tsx
|
|
50
|
-
* <sp-basic-select
|
|
51
|
-
* placeholder="Select an option"
|
|
52
|
-
* size="sm"
|
|
53
|
-
* variant="secondary"
|
|
54
|
-
* >
|
|
55
|
-
* <sp-option value="option1">First Option</sp-option>
|
|
56
|
-
* <sp-option value="option2">Second Option</sp-option>
|
|
57
|
-
* <sp-option value="option3">Third Option</sp-option>
|
|
58
|
-
* </sp-basic-select>
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
export class BasicSelectComponent extends SelectComponentBase {
|
|
62
|
-
constructor(valueHolder, focusMonitor) {
|
|
63
|
-
super(valueHolder);
|
|
64
|
-
this.focusMonitor = focusMonitor;
|
|
65
|
-
/**
|
|
66
|
-
* Size of the button
|
|
67
|
-
* @default 'md'
|
|
68
|
-
*/
|
|
69
|
-
this.size = 'md';
|
|
70
|
-
/**
|
|
71
|
-
* Visual variations
|
|
72
|
-
* @default 'secondary-ghost'
|
|
73
|
-
*/
|
|
74
|
-
this.variant = 'secondary-ghost';
|
|
75
|
-
this.focused = false;
|
|
76
|
-
}
|
|
77
|
-
focus(focusOrigin = 'program') {
|
|
78
|
-
if (this.triggerElementRef) {
|
|
79
|
-
this.focusMonitor.focusVia(this.triggerElementRef.nativeElement, focusOrigin);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
isFocused() {
|
|
83
|
-
return this.focused;
|
|
84
|
-
}
|
|
85
|
-
_onFocusChange(focusOrigin) {
|
|
86
|
-
this.focused = Boolean(focusOrigin);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
BasicSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BasicSelectComponent, deps: [{ token: i1.SelectValueHolder }, { token: i2.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
BasicSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: BasicSelectComponent, selector: "sp-basic-select", inputs: { size: "size", variant: "variant" }, host: { properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null" } }, providers: [
|
|
91
|
-
{
|
|
92
|
-
provide: NG_VALUE_ACCESSOR,
|
|
93
|
-
useExisting: forwardRef(() => BasicSelectComponent),
|
|
94
|
-
multi: true,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
provide: SelectComponentBase,
|
|
98
|
-
useExisting: forwardRef(() => BasicSelectComponent),
|
|
99
|
-
},
|
|
100
|
-
ViewEncapsulationProvider,
|
|
101
|
-
], viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["triggerRef"], descendants: true }, { propertyName: "triggerElementRef", first: true, predicate: ["triggerElementRef"], descendants: true, read: ElementRef }, { propertyName: "listbox", first: true, predicate: ListboxComponent, descendants: true }], exportAs: ["spBasicSelect"], usesInheritance: true, ngImport: i0, template: "<div style=\"position: relative\">\n <sp-hidden-select></sp-hidden-select>\n <button\n sp-button\n [variant]=\"variant\"\n [size]=\"size\"\n iconAlign=\"right\"\n [spPopoverTriggerFor]=\"popover\"\n spPopoverPlacement=\"bottom start\"\n #triggerElementRef\n #triggerRef=\"spPopoverTrigger\"\n (keydown)=\"handleKeyDown($event)\"\n (spPopoverTriggerOpened)=\"_onOpen()\"\n (spPopoverTriggerClosed)=\"_onClose()\"\n cdkMonitorElementFocus\n (cdkFocusChange)=\"_onFocusChange($event)\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [disabled]=\"disabled\"\n >\n <span *ngIf=\"selectedOptions.length === 0\">\n {{ placeholder }}\n </span>\n <ng-container *ngIf=\"selectedOptions.length > 0\">\n <ng-container *ngIf=\"!selectionText\">{{\n getSelectionText()\n }}</ng-container>\n <ng-content select=\"sp-selection-text\"></ng-content>\n </ng-container>\n <sp-icon spButtonIcon name=\"chevronDown\"></sp-icon>\n </button>\n <ng-template #popover>\n <sp-popover noPadding>\n <sp-listbox\n [spListboxItems]=\"listboxChildren\"\n navigationWrapDisabled\n [multiple]=\"multiple\"\n [(selectedValues)]=\"listboxValue\"\n (selected)=\"_handleSelected()\"\n [size]=\"size\"\n >\n </sp-listbox>\n </sp-popover>\n </ng-template>\n</div>\n", styles: [".sapphire-select{position:relative;display:block;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-select__button{display:flex;align-items:center;height:var(--sapphire-semantic-size-height-input-lg);box-sizing:border-box;cursor:pointer;padding:0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);border:none;background-color:var(--sapphire-semantic-color-background-field-default);width:100%;outline:0;text-align:left;color:inherit;font-family:inherit;box-shadow:inset 0 0 0 1px var(--sapphire-semantic-color-border-field-default);border-radius:var(--sapphire-semantic-size-radius-sm);gap:var(--sapphire-semantic-size-spacing-30)}.sapphire-select--md .sapphire-select__button{height:var(--sapphire-semantic-size-height-input-md);padding:0 var(--sapphire-semantic-size-spacing-control-horizontal-md);gap:var(--sapphire-semantic-size-spacing-20)}.sapphire-select__value{flex:1 0 0;min-width:0;font-size:var(--sapphire-semantic-size-font-control-default);width:100%;font-weight:var(--sapphire-semantic-font-weight-default-regular);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sapphire-select--md .sapphire-select__value{font-size:var(--sapphire-semantic-size-font-control-md)}.sapphire-select__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sapphire-semantic-color-content-default-secondary);pointer-events:none}.sapphire-select__icon-container{line-height:0;width:var(--sapphire-semantic-size-icon-lg);height:var(--sapphire-semantic-size-icon-lg)}.sapphire-select--md .sapphire-select__icon-container{width:var(--sapphire-semantic-size-icon-md);height:var(--sapphire-semantic-size-icon-md)}.sapphire-select__prefix{display:inherit;font-size:var(--sapphire-semantic-size-font-control-default)}.sapphire-select--md .sapphire-select__prefix{font-size:var(--sapphire-semantic-size-font-control-md)}.sapphire-select__search-input:not([data-hidden=true]){all:inherit}.sapphire-select__search-input::placeholder{color:var(--sapphire-semantic-color-content-default-secondary)}.sapphire-select__native-select{position:absolute;inset:0;opacity:.01;width:100%;z-index:1}.sapphire-select--error:not(.is-disabled) .sapphire-select__button{box-shadow:inset 0 0 0 1px var(--sapphire-semantic-color-border-field-error)}.sapphire-select:not(.is-disabled).is-focus .sapphire-select__button{box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-select--error:not(.is-disabled).is-focus .sapphire-select__button{box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-border-field-error)}.sapphire-select.is-disabled .sapphire-select__button{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.IconComponent, selector: "sp-icon", inputs: ["name", "size"] }, { kind: "component", type: i5.ListboxComponent, selector: "sp-listbox", inputs: ["selectedValues", "spListboxItems", "disabled", "multiple", "navigationWrapDisabled", "aria-label", "aria-labelledby", "size", "id"], outputs: ["selectedValuesChange", "selected"], exportAs: ["spListbox"] }, { kind: "component", type: i6.PopoverComponent, selector: "sp-popover", inputs: ["noPadding", "noMaxWidth", "noAutoFocus", "trapFocus"] }, { kind: "directive", type: i7.PopoverTriggerDirective, selector: "[spPopoverTriggerFor]", inputs: ["spPopoverPlacement", "spPopoverTriggerFor", "spPopoverNonModal", "spPopoverTriggerOpenOnPressStart", "spPopoverTriggerCloseOnScroll", "spPopoverTriggerDisabled", "spPopoverDisablePushInsideViewport"], outputs: ["spPopoverTriggerOpened", "spPopoverTriggerClosed"], exportAs: ["spPopoverTrigger"] }, { kind: "directive", type: i2.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "component", type: i8.ButtonComponent, selector: "button[sp-button], a[sp-button]", inputs: ["variant", "size", "disabled", "iconAlign", "type"] }, { kind: "directive", type: i9.ButtonIconDirective, selector: "[spButtonIcon]" }, { kind: "component", type: i10.HiddenSelectComponent, selector: "sp-hidden-select" }] });
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BasicSelectComponent, decorators: [{
|
|
103
|
-
type: Component,
|
|
104
|
-
args: [{ selector: 'sp-basic-select', exportAs: 'spBasicSelect', providers: [
|
|
105
|
-
{
|
|
106
|
-
provide: NG_VALUE_ACCESSOR,
|
|
107
|
-
useExisting: forwardRef(() => BasicSelectComponent),
|
|
108
|
-
multi: true,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
provide: SelectComponentBase,
|
|
112
|
-
useExisting: forwardRef(() => BasicSelectComponent),
|
|
113
|
-
},
|
|
114
|
-
ViewEncapsulationProvider,
|
|
115
|
-
], host: {
|
|
116
|
-
'[attr.aria-label]': 'null',
|
|
117
|
-
'[attr.aria-labelledby]': 'null',
|
|
118
|
-
}, standalone: false, template: "<div style=\"position: relative\">\n <sp-hidden-select></sp-hidden-select>\n <button\n sp-button\n [variant]=\"variant\"\n [size]=\"size\"\n iconAlign=\"right\"\n [spPopoverTriggerFor]=\"popover\"\n spPopoverPlacement=\"bottom start\"\n #triggerElementRef\n #triggerRef=\"spPopoverTrigger\"\n (keydown)=\"handleKeyDown($event)\"\n (spPopoverTriggerOpened)=\"_onOpen()\"\n (spPopoverTriggerClosed)=\"_onClose()\"\n cdkMonitorElementFocus\n (cdkFocusChange)=\"_onFocusChange($event)\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [disabled]=\"disabled\"\n >\n <span *ngIf=\"selectedOptions.length === 0\">\n {{ placeholder }}\n </span>\n <ng-container *ngIf=\"selectedOptions.length > 0\">\n <ng-container *ngIf=\"!selectionText\">{{\n getSelectionText()\n }}</ng-container>\n <ng-content select=\"sp-selection-text\"></ng-content>\n </ng-container>\n <sp-icon spButtonIcon name=\"chevronDown\"></sp-icon>\n </button>\n <ng-template #popover>\n <sp-popover noPadding>\n <sp-listbox\n [spListboxItems]=\"listboxChildren\"\n navigationWrapDisabled\n [multiple]=\"multiple\"\n [(selectedValues)]=\"listboxValue\"\n (selected)=\"_handleSelected()\"\n [size]=\"size\"\n >\n </sp-listbox>\n </sp-popover>\n </ng-template>\n</div>\n", styles: [".sapphire-select{position:relative;display:block;color:var(--sapphire-semantic-color-content-default-primary);font-family:var(--sapphire-semantic-font-name-default);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-select__button{display:flex;align-items:center;height:var(--sapphire-semantic-size-height-input-lg);box-sizing:border-box;cursor:pointer;padding:0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);border:none;background-color:var(--sapphire-semantic-color-background-field-default);width:100%;outline:0;text-align:left;color:inherit;font-family:inherit;box-shadow:inset 0 0 0 1px var(--sapphire-semantic-color-border-field-default);border-radius:var(--sapphire-semantic-size-radius-sm);gap:var(--sapphire-semantic-size-spacing-30)}.sapphire-select--md .sapphire-select__button{height:var(--sapphire-semantic-size-height-input-md);padding:0 var(--sapphire-semantic-size-spacing-control-horizontal-md);gap:var(--sapphire-semantic-size-spacing-20)}.sapphire-select__value{flex:1 0 0;min-width:0;font-size:var(--sapphire-semantic-size-font-control-default);width:100%;font-weight:var(--sapphire-semantic-font-weight-default-regular);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sapphire-select--md .sapphire-select__value{font-size:var(--sapphire-semantic-size-font-control-md)}.sapphire-select__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sapphire-semantic-color-content-default-secondary);pointer-events:none}.sapphire-select__icon-container{line-height:0;width:var(--sapphire-semantic-size-icon-lg);height:var(--sapphire-semantic-size-icon-lg)}.sapphire-select--md .sapphire-select__icon-container{width:var(--sapphire-semantic-size-icon-md);height:var(--sapphire-semantic-size-icon-md)}.sapphire-select__prefix{display:inherit;font-size:var(--sapphire-semantic-size-font-control-default)}.sapphire-select--md .sapphire-select__prefix{font-size:var(--sapphire-semantic-size-font-control-md)}.sapphire-select__search-input:not([data-hidden=true]){all:inherit}.sapphire-select__search-input::placeholder{color:var(--sapphire-semantic-color-content-default-secondary)}.sapphire-select__native-select{position:absolute;inset:0;opacity:.01;width:100%;z-index:1}.sapphire-select--error:not(.is-disabled) .sapphire-select__button{box-shadow:inset 0 0 0 1px var(--sapphire-semantic-color-border-field-error)}.sapphire-select:not(.is-disabled).is-focus .sapphire-select__button{box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-focus-ring)}.sapphire-select--error:not(.is-disabled).is-focus .sapphire-select__button{box-shadow:inset 0 0 0 var(--sapphire-semantic-size-focus-ring) var(--sapphire-semantic-color-border-field-error)}.sapphire-select.is-disabled .sapphire-select__button{cursor:not-allowed}\n"] }]
|
|
119
|
-
}], ctorParameters: function () { return [{ type: i1.SelectValueHolder }, { type: i2.FocusMonitor }]; }, propDecorators: { size: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], variant: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], triggerRef: [{
|
|
124
|
-
type: ViewChild,
|
|
125
|
-
args: ['triggerRef']
|
|
126
|
-
}], triggerElementRef: [{
|
|
127
|
-
type: ViewChild,
|
|
128
|
-
args: ['triggerElementRef', { read: ElementRef }]
|
|
129
|
-
}], listbox: [{
|
|
130
|
-
type: ViewChild,
|
|
131
|
-
args: [ListboxComponent]
|
|
132
|
-
}] } });
|
|
133
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtc2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VsZWN0L3NyYy9iYXNpYy1zZWxlY3QvYmFzaWMtc2VsZWN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VsZWN0L3NyYy9iYXNpYy1zZWxlY3QvYmFzaWMtc2VsZWN0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsU0FBUyxFQUNULFVBQVUsRUFDVixVQU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B9fTwvbmctY29udGFpbmVyPlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwic3Atc2VsZWN0aW9uLXRleHRcIj48L25nLWNvbnRlbnQ+XG4gICAgPC9uZy1jb250YWluZXI+XG4gICAgPHNwLWljb24gc3BCdXR0b25JY29uIG5hbWU9XCJjaGV2cm9uRG93blwiPjwvc3AtaWNvbj5cbiAgPC9idXR0b24+XG4gIDxuZy10ZW1wbGF0ZSAjcG9wb3Zlcj5cbiAgICA8c3AtcG9wb3ZlciBub1BhZGRpbmc+XG4gICAgICA8c3AtbGlzdGJveFxuICAgICAgICBbc3BMaXN0Ym94SXRlbXNdPVwibGlzdGJveENoaWxkcmVuXCJcbiAgICAgICAgbmF2aWdhdGlvbldyYXBEaXNhYmxlZFxuICAgICAgICBbbXVsdGlwbGVdPVwibXVsdGlwbGVcIlxuICAgICAgICBbKHNlbGVjdGVkVmFsdWVzKV09XCJsaXN0Ym94VmFsdWVcIlxuICAgICAgICAoc2VsZWN0ZWQpPVwiX2hhbmRsZVNlbGVjdGVkKClcIlxuICAgICAgICBbc2l6ZV09XCJzaXplXCJcbiAgICAgID5cbiAgICAgIDwvc3AtbGlzdGJveD5cbiAgICA8L3NwLXBvcG92ZXI+XG4gIDwvbmctdGVtcGxhdGU+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { ThemeCheckDirective } from '../../theme/src/theme-check.directive';
|
|
3
|
-
import { UseComponentStylesOnHost } from '../../common/sapphire-view-encapsulation';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../theme/src/theme-check.directive";
|
|
6
|
-
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
7
|
-
export class ParagraphComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.size = 'md';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
ParagraphComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: ParagraphComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
ParagraphComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: ParagraphComponent, selector: "p[sp-paragraph], div[sp-paragraph]", inputs: { size: "size" }, host: { properties: { "class.sapphire-paragraph": "true", "class.sapphire-paragraph--sm": "size === \"sm\"", "class.sapphire-paragraph--xs": "size === \"xs\"" } }, hostDirectives: [{ directive: i1.ThemeCheckDirective }, { directive: i2.UseComponentStylesOnHost }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".sapphire-paragraph{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-content-default-primary);font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);margin-top:0;margin-bottom:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-paragraph--sm{font-size:var(--sapphire-semantic-size-font-text-md)}.sapphire-paragraph--xs{font-size:var(--sapphire-semantic-size-font-text-sm)}\n"] });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: ParagraphComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'p[sp-paragraph], div[sp-paragraph]', template: '<ng-content></ng-content>', host: {
|
|
17
|
-
'[class.sapphire-paragraph]': 'true',
|
|
18
|
-
'[class.sapphire-paragraph--sm]': 'size === "sm"',
|
|
19
|
-
'[class.sapphire-paragraph--xs]': 'size === "xs"',
|
|
20
|
-
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], standalone: false, styles: [".sapphire-paragraph{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-content-default-primary);font-size:var(--sapphire-semantic-size-font-text-lg);line-height:var(--sapphire-semantic-size-line-height-md);margin-top:0;margin-bottom:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-paragraph--sm{font-size:var(--sapphire-semantic-size-font-text-md)}.sapphire-paragraph--xs{font-size:var(--sapphire-semantic-size-font-text-sm)}\n"] }]
|
|
21
|
-
}], propDecorators: { size: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyYWdyYXBoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvdHlwb2dyYXBoeS9zcmMvcGFyYWdyYXBoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQzs7OztBQWNwRixNQUFNLE9BQU8sa0JBQWtCO0lBWi9CO1FBY0UsU0FBSSxHQUF1QixJQUFJLENBQUM7S0FDakM7OytHQUhZLGtCQUFrQjttR0FBbEIsa0JBQWtCLDZXQVZuQiwyQkFBMkI7MkZBVTFCLGtCQUFrQjtrQkFaOUIsU0FBUzsrQkFDRSxvQ0FBb0MsWUFDcEMsMkJBQTJCLFFBRS9CO3dCQUNKLDRCQUE0QixFQUFFLE1BQU07d0JBQ3BDLGdDQUFnQyxFQUFFLGVBQWU7d0JBQ2pELGdDQUFnQyxFQUFFLGVBQWU7cUJBQ2xELGtCQUNlLENBQUMsbUJBQW1CLEVBQUUsd0JBQXdCLENBQUMsY0FDbkQsS0FBSzs4QkFJakIsSUFBSTtzQkFESCxLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgVGhlbWVDaGVja0RpcmVjdGl2ZSB9IGZyb20gJy4uLy4uL3RoZW1lL3NyYy90aGVtZS1jaGVjay5kaXJlY3RpdmUnO1xuaW1wb3J0IHsgVXNlQ29tcG9uZW50U3R5bGVzT25Ib3N0IH0gZnJvbSAnLi4vLi4vY29tbW9uL3NhcHBoaXJlLXZpZXctZW5jYXBzdWxhdGlvbic7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3Bbc3AtcGFyYWdyYXBoXSwgZGl2W3NwLXBhcmFncmFwaF0nLFxuICB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLFxuICBzdHlsZVVybHM6IFsnLi9wYXJhZ3JhcGguY29tcG9uZW50LnNjc3MnXSxcbiAgaG9zdDoge1xuICAgICdbY2xhc3Muc2FwcGhpcmUtcGFyYWdyYXBoXSc6ICd0cnVlJyxcbiAgICAnW2NsYXNzLnNhcHBoaXJlLXBhcmFncmFwaC0tc21dJzogJ3NpemUgPT09IFwic21cIicsXG4gICAgJ1tjbGFzcy5zYXBwaGlyZS1wYXJhZ3JhcGgtLXhzXSc6ICdzaXplID09PSBcInhzXCInLFxuICB9LFxuICBob3N0RGlyZWN0aXZlczogW1RoZW1lQ2hlY2tEaXJlY3RpdmUsIFVzZUNvbXBvbmVudFN0eWxlc09uSG9zdF0sXG4gIHN0YW5kYWxvbmU6IGZhbHNlLFxufSlcbmV4cG9ydCBjbGFzcyBQYXJhZ3JhcGhDb21wb25lbnQge1xuICBASW5wdXQoKVxuICBzaXplOiAnbWQnIHwgJ3NtJyB8ICd4cycgPSAnbWQnO1xufVxuIl19
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "../../theme/src/theme-check.directive";
|
|
3
|
-
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
4
|
-
export declare class ParagraphComponent {
|
|
5
|
-
size: 'md' | 'sm' | 'xs';
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ParagraphComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParagraphComponent, "p[sp-paragraph], div[sp-paragraph]", never, { "size": "size"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
8
|
-
}
|