@danske/sapphire-angular 1.31.0 → 2.1.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.
Files changed (150) hide show
  1. package/esm2020/lib/badge/src/badge.component.mjs +4 -4
  2. package/esm2020/lib/button/src/button-group.component.mjs +6 -14
  3. package/esm2020/lib/button/src/button.component.mjs +9 -38
  4. package/esm2020/lib/button/src/icon-button.component.mjs +13 -40
  5. package/esm2020/lib/button/src/toggle-button.component.mjs +7 -6
  6. package/esm2020/lib/checkbox/src/checkbox-group.component.mjs +6 -3
  7. package/esm2020/lib/checkbox/src/checkbox.component.mjs +12 -4
  8. package/esm2020/lib/common/disabled.mjs +1 -1
  9. package/esm2020/lib/common/sapphire-view-encapsulation.mjs +3 -1
  10. package/esm2020/lib/core.module.mjs +8 -8
  11. package/esm2020/lib/field/src/field-control.mjs +2 -1
  12. package/esm2020/lib/field/src/field.component.mjs +8 -8
  13. package/esm2020/lib/help-button/public_api.mjs +3 -0
  14. package/esm2020/lib/help-button/src/help-button.component.mjs +112 -0
  15. package/esm2020/lib/help-button/src/help-button.module.mjs +33 -0
  16. package/esm2020/lib/icon/src/icon-size-provider.mjs +2 -2
  17. package/esm2020/lib/icon/src/icon.component.mjs +22 -37
  18. package/esm2020/lib/label/src/label.component.mjs +5 -5
  19. package/esm2020/lib/link/src/link.component.mjs +5 -5
  20. package/esm2020/lib/listbox/src/listbox-item.component.mjs +2 -2
  21. package/esm2020/lib/listbox/src/listbox.component.mjs +5 -5
  22. package/esm2020/lib/listbox/src/option-primary-text.directive.mjs +4 -2
  23. package/esm2020/lib/listbox/src/option.component.mjs +4 -2
  24. package/esm2020/lib/menu/src/menu-trigger.directive.mjs +5 -2
  25. package/esm2020/lib/menu/src/menu.component.mjs +4 -4
  26. package/esm2020/lib/modal/public_api.mjs +8 -12
  27. package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +9 -7
  28. package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +9 -7
  29. package/esm2020/lib/modal/src/dialog/dialog.component.mjs +10 -35
  30. package/esm2020/lib/modal/src/layout/modal-back-button.directive.mjs +13 -0
  31. package/esm2020/lib/modal/src/layout/modal-body.component.mjs +38 -0
  32. package/esm2020/lib/modal/src/layout/modal-close-button.directive.mjs +31 -0
  33. package/esm2020/lib/modal/src/layout/modal-footer.component.mjs +39 -0
  34. package/esm2020/lib/modal/src/layout/modal-header.component.mjs +77 -0
  35. package/esm2020/lib/modal/src/layout/modal-layout.component.mjs +15 -0
  36. package/esm2020/lib/modal/src/modal-base.component.mjs +7 -13
  37. package/esm2020/lib/modal/src/modal.module.mjs +43 -71
  38. package/esm2020/lib/modal/src/modal.service.mjs +1 -1
  39. package/esm2020/lib/modal/src/panel/panel.component.mjs +8 -15
  40. package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +4 -4
  41. package/esm2020/lib/pagination/i18n/da-DK.json +2 -0
  42. package/esm2020/lib/pagination/i18n/de-DE.json +2 -0
  43. package/esm2020/lib/pagination/i18n/en-US.json +2 -0
  44. package/esm2020/lib/pagination/i18n/fi-FI.json +2 -0
  45. package/esm2020/lib/pagination/i18n/nb-NO.json +2 -0
  46. package/esm2020/lib/pagination/i18n/pl-PL.json +2 -0
  47. package/esm2020/lib/pagination/i18n/sv-SE.json +2 -0
  48. package/esm2020/lib/pagination/src/page-selection-row.component.mjs +119 -0
  49. package/esm2020/lib/pagination/src/pagination.component.mjs +20 -4
  50. package/esm2020/lib/pagination/src/pagination.module.mjs +4 -3
  51. package/esm2020/lib/popover/src/popover-trigger.directive.mjs +14 -4
  52. package/esm2020/lib/radio/src/radio-group.component.mjs +3 -3
  53. package/esm2020/lib/radio/src/radio.component.mjs +3 -3
  54. package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +4 -4
  55. package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +7 -27
  56. package/esm2020/lib/select/src/select/select.component.mjs +5 -5
  57. package/esm2020/lib/skeleton/src/skeleton.component.mjs +2 -2
  58. package/esm2020/lib/switch/src/switch.component.mjs +5 -5
  59. package/esm2020/lib/table/public_api.mjs +2 -1
  60. package/esm2020/lib/table/src/table-footer.directive.mjs +20 -0
  61. package/esm2020/lib/table/src/table-head-cell.component.mjs +3 -3
  62. package/esm2020/lib/table/src/table-sort-header.directive.mjs +2 -3
  63. package/esm2020/lib/table/src/table-sort.directive.mjs +13 -3
  64. package/esm2020/lib/table/src/table.component.mjs +7 -14
  65. package/esm2020/lib/table/src/table.directive.mjs +12 -6
  66. package/esm2020/lib/table/src/table.module.mjs +6 -1
  67. package/esm2020/lib/text-field/src/text-field.component.mjs +5 -5
  68. package/esm2020/lib/theme/src/themes.mjs +4 -4
  69. package/esm2020/lib/tooltip/src/tooltip.directive.mjs +3 -3
  70. package/esm2020/lib/typography/src/paragraph.component.mjs +5 -5
  71. package/esm2020/public-api.mjs +2 -2
  72. package/fesm2015/danske-sapphire-angular.mjs +721 -847
  73. package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
  74. package/fesm2020/danske-sapphire-angular.mjs +728 -852
  75. package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
  76. package/lib/badge/src/badge.component.d.ts +2 -2
  77. package/lib/button/src/button-group.component.d.ts +3 -5
  78. package/lib/button/src/button.component.d.ts +4 -11
  79. package/lib/button/src/icon-button.component.d.ts +4 -11
  80. package/lib/button/src/toggle-button.component.d.ts +3 -3
  81. package/lib/checkbox/src/checkbox-group.component.d.ts +1 -0
  82. package/lib/checkbox/src/checkbox.component.d.ts +3 -1
  83. package/lib/common/disabled.d.ts +1 -1
  84. package/lib/core.module.d.ts +2 -2
  85. package/lib/field/src/field.component.d.ts +4 -4
  86. package/lib/help-button/public_api.d.ts +2 -0
  87. package/lib/help-button/src/help-button.component.d.ts +50 -0
  88. package/lib/help-button/src/help-button.module.d.ts +7 -0
  89. package/lib/icon/src/icon-size-provider.d.ts +2 -2
  90. package/lib/icon/src/icon.component.d.ts +6 -3
  91. package/lib/label/src/label.component.d.ts +3 -3
  92. package/lib/link/src/link.component.d.ts +1 -1
  93. package/lib/listbox/src/listbox-item.component.d.ts +1 -1
  94. package/lib/listbox/src/listbox.component.d.ts +1 -1
  95. package/lib/menu/src/menu.component.d.ts +1 -1
  96. package/lib/modal/public_api.d.ts +7 -11
  97. package/lib/modal/src/dialog/dialog.component.d.ts +2 -17
  98. package/lib/modal/src/layout/modal-back-button.directive.d.ts +5 -0
  99. package/lib/modal/src/{panel/panel-content.component.d.ts → layout/modal-body.component.d.ts} +3 -3
  100. package/lib/modal/src/{modal-close-button.directive.d.ts → layout/modal-close-button.directive.d.ts} +2 -2
  101. package/lib/modal/src/layout/modal-footer.component.d.ts +21 -0
  102. package/lib/modal/src/layout/modal-header.component.d.ts +29 -0
  103. package/lib/modal/src/layout/modal-layout.component.d.ts +6 -0
  104. package/lib/modal/src/modal-base.component.d.ts +5 -7
  105. package/lib/modal/src/modal.module.d.ts +21 -25
  106. package/lib/modal/src/modal.service.d.ts +2 -2
  107. package/lib/modal/src/panel/panel.component.d.ts +3 -6
  108. package/lib/notification-badge/src/notification-badge.component.d.ts +1 -1
  109. package/lib/pagination/src/page-selection-row.component.d.ts +39 -0
  110. package/lib/pagination/src/pagination.component.d.ts +8 -1
  111. package/lib/pagination/src/pagination.module.d.ts +8 -7
  112. package/lib/popover/src/popover-trigger.directive.d.ts +6 -1
  113. package/lib/segmented-tabs/src/segmented-tabs.component.d.ts +1 -1
  114. package/lib/select/src/basic-select/basic-select.component.d.ts +5 -7
  115. package/lib/switch/src/switch.component.d.ts +2 -2
  116. package/lib/table/public_api.d.ts +1 -0
  117. package/lib/table/src/table-footer.directive.d.ts +7 -0
  118. package/lib/table/src/table-sort.directive.d.ts +7 -4
  119. package/lib/table/src/table.component.d.ts +4 -3
  120. package/lib/table/src/table.directive.d.ts +3 -1
  121. package/lib/table/src/table.module.d.ts +12 -11
  122. package/lib/typography/src/paragraph.component.d.ts +1 -1
  123. package/package.json +4 -4
  124. package/public-api.d.ts +1 -1
  125. package/esm2020/lib/contextual-help/public_api.mjs +0 -6
  126. package/esm2020/lib/contextual-help/src/contextual-help.component.mjs +0 -112
  127. package/esm2020/lib/contextual-help/src/contextual-help.module.mjs +0 -33
  128. package/esm2020/lib/modal/src/dialog/dialog-close-button.directive.mjs +0 -18
  129. package/esm2020/lib/modal/src/dialog/dialog-content.directive.mjs +0 -29
  130. package/esm2020/lib/modal/src/dialog/dialog-footer.component.mjs +0 -77
  131. package/esm2020/lib/modal/src/dialog/dialog-header.component.mjs +0 -66
  132. package/esm2020/lib/modal/src/modal-close-button.directive.mjs +0 -31
  133. package/esm2020/lib/modal/src/panel/inline-panel.component.mjs +0 -15
  134. package/esm2020/lib/modal/src/panel/panel-back-button.directive.mjs +0 -13
  135. package/esm2020/lib/modal/src/panel/panel-close-button.directive.mjs +0 -16
  136. package/esm2020/lib/modal/src/panel/panel-content.component.mjs +0 -38
  137. package/esm2020/lib/modal/src/panel/panel-footer.component.mjs +0 -38
  138. package/esm2020/lib/modal/src/panel/panel-header.component.mjs +0 -69
  139. package/lib/contextual-help/public_api.d.ts +0 -2
  140. package/lib/contextual-help/src/contextual-help.component.d.ts +0 -50
  141. package/lib/contextual-help/src/contextual-help.module.d.ts +0 -7
  142. package/lib/modal/src/dialog/dialog-close-button.directive.d.ts +0 -7
  143. package/lib/modal/src/dialog/dialog-content.directive.d.ts +0 -13
  144. package/lib/modal/src/dialog/dialog-footer.component.d.ts +0 -37
  145. package/lib/modal/src/dialog/dialog-header.component.d.ts +0 -25
  146. package/lib/modal/src/panel/inline-panel.component.d.ts +0 -6
  147. package/lib/modal/src/panel/panel-back-button.directive.d.ts +0 -5
  148. package/lib/modal/src/panel/panel-close-button.directive.d.ts +0 -6
  149. package/lib/modal/src/panel/panel-footer.component.d.ts +0 -21
  150. package/lib/modal/src/panel/panel-header.component.d.ts +0 -26
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "../../common/sapphire-view-encapsulation";
3
3
  type Color = 'positive' | 'negative' | 'warning' | 'informative' | 'passive' | 'aqua' | 'copper' | 'electro' | 'indigo' | 'lime' | 'pink' | 'violet' | 'gold' | 'beige' | 'orchid' | 'gray' | 'cobalt' | 'forestGreen' | 'teal' | 'orange';
4
4
  type Variant = 'primary' | 'secondary';
5
- type Size = 'small' | 'medium' | 'large';
5
+ type Size = 'sm' | 'md' | 'lg';
6
6
  export declare class BadgeComponent {
7
7
  role: string;
8
8
  /**
@@ -11,7 +11,7 @@ export declare class BadgeComponent {
11
11
  */
12
12
  id: string;
13
13
  /**
14
- * @default 'medium'
14
+ * @default 'md'
15
15
  */
16
16
  size?: Size;
17
17
  /**
@@ -23,17 +23,15 @@ export declare class ButtonGroupComponent {
23
23
  * @default "none"
24
24
  */
25
25
  stretch?: ButtonGroupStretchType;
26
- get iconSpacing(): this['spacing'];
27
- set iconSpacing(value: this['spacing']);
28
26
  /**
29
27
  * Spacing between the buttons
30
- * @default normal
28
+ * @default md
31
29
  */
32
- spacing: 'large' | 'normal' | 'dense' | 'extra-dense';
30
+ spacing: 'lg' | 'md' | 'sm' | 'xs';
33
31
  /**
34
32
  * @default "horizontal"
35
33
  */
36
34
  orientation?: 'vertical' | 'horizontal';
37
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sp-button-group", never, { "align": "align"; "stretch": "stretch"; "iconSpacing": "iconSpacing"; "spacing": "spacing"; "orientation": "orientation"; }, {}, never, ["*"], false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sp-button-group", never, { "align": "align"; "stretch": "stretch"; "spacing": "spacing"; "orientation": "orientation"; }, {}, never, ["*"], false, never>;
39
37
  }
@@ -7,26 +7,19 @@ 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' | 'tertiary' | 'danger' | 'dangerSecondary' | 'dangerTertiary';
11
- appearance?: 'fill' | 'ghost' | 'text';
12
- /**
13
- * Applies different styles for a better contrast with the secondary color background.
14
- * @default 'primary'
15
- * @deprecated This will be done automatically.
16
- */
17
- surface?: 'primary' | 'secondary';
18
- size?: 'small' | 'medium' | 'large';
10
+ variant?: 'primary' | 'secondary' | 'secondary-ghost' | 'secondary-text' | 'tertiary' | 'tertiary-ghost' | 'tertiary-text' | 'danger' | 'danger-ghost' | 'danger-text';
11
+ size?: 'sm' | 'md' | 'lg';
19
12
  disabled: BooleanInput;
20
13
  iconAlign: 'left' | 'right';
21
14
  /**
22
15
  * The behavior of the button when used in an HTML form.
23
16
  */
24
17
  type: 'submit' | 'button' | 'reset';
25
- private get derivedVariantAndStyleClass();
18
+ private get variantClass();
26
19
  buttonIcon?: ButtonIconDirective;
27
20
  icon?: IconComponent;
28
21
  constructor(elementRef: ElementRef<HTMLButtonElement>);
29
22
  ngAfterContentInit(): void;
30
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[sp-button], a[sp-button]", never, { "variant": "variant"; "appearance": "appearance"; "surface": "surface"; "size": "size"; "disabled": "disabled"; "iconAlign": "iconAlign"; "type": "type"; }, {}, ["buttonIcon", "icon"], ["*", "[spButtonIcon]"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[sp-button], a[sp-button]", never, { "variant": "variant"; "size": "size"; "disabled": "disabled"; "iconAlign": "iconAlign"; "type": "type"; }, {}, ["buttonIcon", "icon"], ["*", "[spButtonIcon]"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
32
25
  }
@@ -5,17 +5,10 @@ import * as i0 from "@angular/core";
5
5
  import * as i1 from "../../common/sapphire-view-encapsulation";
6
6
  export declare class IconButtonComponent implements IconSizeProvider, AfterViewInit {
7
7
  private elementRef;
8
- variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'neutral';
9
- appearance?: 'fill' | 'ghost';
10
- /**
11
- * Applies different styles for a better contrast with the secondary color background.
12
- * @default 'primary'
13
- * @deprecated This will be done automatically
14
- */
15
- surface?: 'primary' | 'secondary';
16
- size?: 'extraSmall' | 'small' | 'medium' | 'large';
8
+ variant?: 'primary' | 'secondary' | 'secondary-ghost' | 'tertiary' | 'tertiary-ghost' | 'danger' | 'danger-ghost';
9
+ size?: 'xs' | 'sm' | 'md' | 'lg';
17
10
  disabled: BooleanInput;
18
- private get derivedVariantAndStyleClass();
11
+ private get variantClass();
19
12
  /**
20
13
  * The behavior of the button when used in an HTML form.
21
14
  */
@@ -23,5 +16,5 @@ export declare class IconButtonComponent implements IconSizeProvider, AfterViewI
23
16
  constructor(elementRef: ElementRef<HTMLElement>);
24
17
  ngAfterViewInit(): void;
25
18
  static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "button[sp-icon-button], a[sp-icon-button]", never, { "variant": "variant"; "appearance": "appearance"; "surface": "surface"; "size": "size"; "disabled": "disabled"; "type": "type"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "button[sp-icon-button], a[sp-icon-button]", never, { "variant": "variant"; "size": "size"; "disabled": "disabled"; "type": "type"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
27
20
  }
@@ -1,8 +1,8 @@
1
1
  import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { BooleanInput } from '@angular/cdk/coercion';
4
- import { IconComponent } from '../../icon/public_api';
5
4
  import { ButtonIconDirective } from './button-icon.directive';
5
+ import { IconComponent, IconSizeProvider } from '../../icon/public_api';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "../../common/sapphire-view-encapsulation";
8
8
  /**
@@ -10,8 +10,8 @@ import * as i1 from "../../common/sapphire-view-encapsulation";
10
10
  * toggled when the button is pressed, allowing user to switch between two
11
11
  * states or modes.
12
12
  */
13
- export declare class ToggleButtonComponent implements AfterContentInit, OnChanges, ControlValueAccessor {
14
- size?: 'small' | 'medium' | 'large';
13
+ export declare class ToggleButtonComponent implements AfterContentInit, OnChanges, ControlValueAccessor, IconSizeProvider {
14
+ size?: 'sm' | 'md' | 'lg';
15
15
  selected: BooleanInput;
16
16
  /**
17
17
  * Whether selected is controlled. If it's controlled via input binding,
@@ -19,6 +19,7 @@ export declare class CheckboxGroupComponent implements FieldControl {
19
19
  get required(): boolean;
20
20
  set required(value: BooleanInput);
21
21
  private _required;
22
+ get size(): 'lg' | 'md';
22
23
  constructor(_field: FieldComponent);
23
24
  isDisabled(): boolean;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, [{ optional: true; }]>;
@@ -51,7 +51,9 @@ export declare class CheckboxComponent extends _CheckboxMixinBase implements Aft
51
51
  readonly: BooleanInput;
52
52
  /** Name value will be applied to the input element if present */
53
53
  name: string | null;
54
- size?: 'large' | 'medium';
54
+ get size(): 'lg' | 'md';
55
+ set size(value: 'lg' | 'md');
56
+ private _size?;
55
57
  /** Event emitted when the checkbox's `selected` value changes. */
56
58
  readonly change: EventEmitter<CheckboxChange>;
57
59
  /** The value attribute of the native input element */
@@ -5,5 +5,5 @@ export interface CanDisable {
5
5
  }
6
6
  type CanDisableConstructor = Constructor<CanDisable> & AbstractConstructor<CanDisable>;
7
7
  /** Mixin to augment a directive with a `disabled` property. */
8
- export declare function mixinDisabled<T extends AbstractConstructor<{}>>(base: T): CanDisableConstructor & T;
8
+ export declare function mixinDisabled<T extends AbstractConstructor>(base: T): CanDisableConstructor & T;
9
9
  export {};
@@ -20,11 +20,11 @@ import * as i18 from "./listbox/src/listbox.module";
20
20
  import * as i19 from "./modal/src/modal.module";
21
21
  import * as i20 from "./skeleton/src/skeleton.module";
22
22
  import * as i21 from "./pagination/src/pagination.module";
23
- import * as i22 from "./contextual-help/src/contextual-help.module";
23
+ import * as i22 from "./help-button/src/help-button.module";
24
24
  import * as i23 from "./surface/src/surface.module";
25
25
  import * as i24 from "./badge/src/badge.module";
26
26
  export declare class SapphireCoreModule {
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCoreModule, never>;
28
- 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.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i10.SapphireSelectModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireContextualHelpModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule], [typeof i3.SapphireButtonModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i4.SapphireCheckboxModule, typeof i7.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i2.SapphireThemeModule, typeof i10.SapphireSelectModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireContextualHelpModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule]>;
28
+ 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.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i10.SapphireSelectModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireHelpButtonModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule], [typeof i3.SapphireButtonModule, typeof i5.SapphireIconModule, typeof i6.SapphireTypographyModule, typeof i4.SapphireCheckboxModule, typeof i7.SapphireMenuModule, typeof i8.SapphirePopoverModule, typeof i9.SapphireTextFieldModule, typeof i11.SapphireTableModule, typeof i12.SapphireLinkModule, typeof i13.SapphireSegmentedTabsModule, typeof i2.SapphireThemeModule, typeof i10.SapphireSelectModule, typeof i14.SapphireNotificationBadgeModule, typeof i15.SapphireSwitchModule, typeof i16.SapphireRadioModule, typeof i17.SapphireTooltipModule, typeof i18.SapphireListboxModule, typeof i19.SapphireModalModule, typeof i20.SapphireSkeletonModule, typeof i21.SapphirePaginationModule, typeof i22.SapphireHelpButtonModule, typeof i23.SapphireSurfaceModule, typeof i24.SapphireBadgeModule]>;
29
29
  static ɵinj: i0.ɵɵInjectorDeclaration<SapphireCoreModule>;
30
30
  }
@@ -16,7 +16,7 @@ import * as i1 from "../../common/sapphire-view-encapsulation";
16
16
  * In addition to the field control (sp-select, sp-radio-group, sp-text-field), the following
17
17
  * components can be used inside a field:
18
18
  * - sp-field-label: is used to provide the label text for the field.
19
- * - sp-contextual-help: is placed in the label area, next to the label text
19
+ * - sp-help-button: is placed in the label area, next to the label text
20
20
  * - sp-field-error: is used to provide an error message, which is placed below the field's
21
21
  * control.
22
22
  * - sp-field-note: is used to provide a note, which is placed below the field's control. Only
@@ -44,9 +44,9 @@ export declare class FieldComponent implements AfterContentInit, AfterViewChecke
44
44
  */
45
45
  labelPlacement?: 'side' | 'above';
46
46
  /**
47
- * @default "large"
47
+ * @default "lg"
48
48
  */
49
- size?: 'large' | 'medium';
49
+ size?: 'lg' | 'md';
50
50
  note?: FieldNoteDirective;
51
51
  error?: FieldErrorDirective;
52
52
  radioGroup?: RadioGroupComponent;
@@ -88,5 +88,5 @@ export declare class FieldComponent implements AfterContentInit, AfterViewChecke
88
88
  get labelNecessityIndicator(): LabelComponent['necessityIndicator'];
89
89
  _setSuffixPortal(portal: DomPortal<HTMLElement> | null): void;
90
90
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
91
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "sp-field", never, { "necessityIndicator": "necessityIndicator"; "labelPlacement": "labelPlacement"; "size": "size"; }, {}, ["note", "error", "radioGroup", "_fieldLabel", "requiredValidator", "controls"], ["sp-field-label", "sp-contextual-help", "*", "sp-field-error", "sp-field-note"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "sp-field", never, { "necessityIndicator": "necessityIndicator"; "labelPlacement": "labelPlacement"; "size": "size"; }, {}, ["note", "error", "radioGroup", "_fieldLabel", "requiredValidator", "controls"], ["sp-field-label", "sp-help-button", "*", "sp-field-error", "sp-field-note"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
92
92
  }
@@ -0,0 +1,2 @@
1
+ export { SapphireHelpButtonModule } from './src/help-button.module';
2
+ export { HelpButtonComponent, HelpButtonFooterDirective, HelpButtonHeaderDirective, HelpButtonContentDirective, } from './src/help-button.component';
@@ -0,0 +1,50 @@
1
+ import { PopoverTriggerDirective } from '../../popover/src/popover-trigger.directive';
2
+ import { Placement } from '../../common/placement';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HelpButtonHeaderDirective {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpButtonHeaderDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HelpButtonHeaderDirective, "sp-help-button-header", never, {}, {}, never, never, true, never>;
7
+ }
8
+ export declare class HelpButtonContentDirective {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpButtonContentDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HelpButtonContentDirective, "sp-help-button-content", never, {}, {}, never, never, true, never>;
11
+ }
12
+ export declare class HelpButtonFooterDirective {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpButtonFooterDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HelpButtonFooterDirective, "sp-help-button-footer", never, {}, {}, never, never, true, never>;
15
+ }
16
+ export declare class HelpButtonComponent {
17
+ /**
18
+ *
19
+ * The type of help button which determines the icon shown.
20
+ *
21
+ * Use "info" for brief, contextual supplemental information. The content
22
+ * inside should have an instructive tone.
23
+ *
24
+ * Use "help" variant to signal more in-depth guidance about a task or UI,
25
+ * this may include links or images or other helpful media. The content
26
+ * inside should have a helpful tone.
27
+ *
28
+ * @default 'info'
29
+ */
30
+ variant: 'info' | 'help';
31
+ /**
32
+ * Placement of popover relative to the icon that triggers it.
33
+ */
34
+ placement: Placement;
35
+ /**
36
+ * The label for the trigger of the help dialog.
37
+ * This will NOT be rendered on the screen, but it is required
38
+ * for accessibility reasons.
39
+ */
40
+ ariaLabel: string;
41
+ _trigger?: PopoverTriggerDirective;
42
+ _footer?: HelpButtonFooterDirective;
43
+ _header?: HelpButtonHeaderDirective;
44
+ isOpen(): boolean | undefined;
45
+ toggle(): void | undefined;
46
+ open(): void | undefined;
47
+ close(): void | undefined;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpButtonComponent, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelpButtonComponent, "sp-help-button", never, { "variant": "variant"; "placement": "placement"; "ariaLabel": "aria-label"; }, {}, ["_footer", "_header"], ["sp-help-button-header", "sp-help-button-content", "sp-help-button-footer"], true, never>;
50
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./help-button.component";
3
+ export declare class SapphireHelpButtonModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SapphireHelpButtonModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireHelpButtonModule, never, [typeof i1.HelpButtonComponent, typeof i1.HelpButtonHeaderDirective, typeof i1.HelpButtonContentDirective, typeof i1.HelpButtonFooterDirective], [typeof i1.HelpButtonComponent, typeof i1.HelpButtonHeaderDirective, typeof i1.HelpButtonContentDirective, typeof i1.HelpButtonFooterDirective]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SapphireHelpButtonModule>;
7
+ }
@@ -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?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
6
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
7
  }
8
8
  /**
9
9
  * Injection token to provide the default size of the icon based on where
@@ -17,7 +17,7 @@ export interface IconSizeProvider {
17
17
  * })
18
18
  * class MyComponent implements IconSizeProvider {
19
19
  * @Input()
20
- * size?: 'small' | 'medium';
20
+ * size?: 'sm' | 'md';
21
21
  * }
22
22
  */
23
23
  export declare const ICON_SIZE_PROVIDER: InjectionToken<unknown>;
@@ -2,17 +2,20 @@ import { DoCheck, ElementRef } from '@angular/core';
2
2
  import * as icons from '@danske/sapphire-icons/js';
3
3
  import { IconSizeProvider } from './icon-size-provider';
4
4
  import * as i0 from "@angular/core";
5
+ type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
6
  export declare class IconComponent implements DoCheck {
6
7
  private elementRef;
7
8
  private sizeProvider?;
9
+ private iconClass?;
8
10
  set name(value: undefined | keyof typeof icons | string);
9
11
  get name(): undefined | keyof typeof icons | string;
10
12
  private _name?;
11
- size?: string;
12
- private appliedSize?;
13
+ sizeInput?: IconSize;
14
+ get size(): IconSize;
13
15
  constructor(elementRef: ElementRef, sizeProvider?: IconSizeProvider | undefined);
14
16
  ngDoCheck(): void;
15
17
  private applySize;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, [null, { optional: true; }]>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sp-icon", never, { "name": "name"; "size": "size"; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sp-icon", never, { "name": "name"; "sizeInput": "size"; }, {}, never, never, false, never>;
18
20
  }
21
+ export {};
@@ -26,9 +26,9 @@ export declare class LabelComponent {
26
26
  */
27
27
  necessityIndicator?: 'required' | 'optional';
28
28
  /**
29
- * @default "large"
29
+ * @default "lg"
30
30
  */
31
- size?: 'large' | 'medium';
31
+ size?: 'lg' | 'md';
32
32
  /**
33
33
  * Emits when the label text is clicked.
34
34
  */
@@ -39,5 +39,5 @@ export declare class LabelComponent {
39
39
  getText(): string;
40
40
  private labelElementRef?;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "sp-label", never, { "id": "id"; "for": "for"; "disabled": "disabled"; "necessityIndicator": "necessityIndicator"; "size": "size"; }, { "labelClick": "labelClick"; }, never, ["*", "sp-contextual-help"], true, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "sp-label", never, { "id": "id"; "for": "for"; "disabled": "disabled"; "necessityIndicator": "necessityIndicator"; "size": "size"; }, { "labelClick": "labelClick"; }, never, ["*", "sp-help-button"], true, never>;
43
43
  }
@@ -3,7 +3,7 @@ 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?: 'small' | 'medium' | 'large';
6
+ size?: 'sm' | 'md' | 'lg';
7
7
  disabled?: BooleanInput;
8
8
  tabindex?: string | null;
9
9
  tabIndex?: string | null;
@@ -14,7 +14,7 @@ export declare class ListboxItemComponent {
14
14
  selected?: boolean;
15
15
  focused?: boolean;
16
16
  option: OptionComponent;
17
- size?: 'large' | 'medium' | 'small';
17
+ size?: 'lg' | 'md' | 'sm';
18
18
  constructor(pressedDirective: PressedDirective);
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ListboxItemComponent, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<ListboxItemComponent, "li[sp-listbox-item]", never, { "selected": "selected"; "focused": "focused"; "option": "option"; "size": "size"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }, { directive: typeof i2.PressedDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.FocusedDirective; inputs: { "spFocused": "focused"; }; outputs: {}; }]>;
@@ -37,7 +37,7 @@ export declare class ListboxComponent implements ControlValueAccessor, AfterView
37
37
  navigationWrapDisabled: BooleanInput;
38
38
  ariaLabel: string;
39
39
  ariaLabelledBy?: string;
40
- size?: 'large' | 'medium' | 'small';
40
+ size?: 'lg' | 'md' | 'sm';
41
41
  id?: string;
42
42
  /**
43
43
  * Emits whenever an option is selected, regardless of if it's already selected.
@@ -4,7 +4,7 @@ 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?: 'large' | 'medium' | 'small';
7
+ size?: 'lg' | 'md' | 'sm';
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
9
9
  static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "sp-menu", never, { "size": "size"; }, {}, never, ["*"], false, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: { "closed": "closed"; }; }, { directive: typeof i2.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
10
10
  }
@@ -1,19 +1,15 @@
1
1
  export * from './src/modal.service';
2
2
  export * from './src/modal.module';
3
- export { ModalCloseButtonDirective } from './src/modal-close-button.directive';
3
+ export * from './src/layout/modal-layout.component';
4
+ export * from './src/layout/modal-header.component';
5
+ export * from './src/layout/modal-footer.component';
6
+ export * from './src/layout/modal-body.component';
7
+ export * from './src/layout/modal-header.component';
8
+ export * from './src/layout/modal-close-button.directive';
9
+ export * from './src/layout/modal-back-button.directive';
4
10
  export * from './src/panel/panel.component';
5
- export * from './src/panel/inline-panel.component';
6
- export * from './src/panel/panel-header.component';
7
- export * from './src/panel/panel-content.component';
8
- export * from './src/panel/panel-footer.component';
9
11
  export * from './src/panel/panel-trigger.directive';
10
- export * from './src/panel/panel-close-button.directive';
11
- export * from './src/panel/panel-back-button.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/dialog-footer.component';
16
- export * from './src/dialog/dialog-content.directive';
17
- export * from './src/dialog/dialog-header.component';
18
- export * from './src/dialog/dialog-close-button.directive';
19
15
  export * from './src/dialog/dialog-trigger.directive';
@@ -1,7 +1,4 @@
1
1
  import { DialogRef } from '@angular/cdk/dialog';
2
- import { DialogFooterDirective } from './dialog-footer.component';
3
- import { DialogContentDirective } from './dialog-content.directive';
4
- import { DialogHeaderDirective } from './dialog-header.component';
5
2
  import { ModalBaseComponent } from '../modal-base.component';
6
3
  import * as i0 from "@angular/core";
7
4
  import * as i1 from "../../../common/sapphire-view-encapsulation";
@@ -14,20 +11,8 @@ export declare class DialogComponent extends ModalBaseComponent {
14
11
  /**
15
12
  * Dialog size, constraining the width of the dialog.
16
13
  */
17
- size: 'extra-small' | 'small' | 'medium' | 'large';
18
- /**
19
- * Type of the dialog:
20
- * - 'passive': A dialog without footer with actions. Passive dialogs are
21
- * used to display information, that doesn't require any further action.
22
- * - 'active': A dialog with a footer that contains actions. Active dialogs
23
- * are used to display information based on which the user is supposed to
24
- * decide on an action
25
- */
26
- get type(): 'passive' | 'active';
27
- footer?: DialogFooterDirective;
28
- header?: DialogHeaderDirective;
29
- content?: DialogContentDirective;
14
+ size: 'xs' | 'sm' | 'md' | 'lg';
30
15
  constructor(dialogRef: DialogRef);
31
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "sp-dialog", never, { "size": "size"; }, {}, ["footer", "header", "content"], ["sp-dialog-header, [spDialogHeader]", "sp-dialog-content, [sp-dialog-content]", "sp-dialog-footer, [spDialogFooter]"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "sp-dialog", never, { "size": "size"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
33
18
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalBackButtonDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalBackButtonDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalBackButtonDirective, "[spModalBackButton]", never, {}, {}, never, never, false, never>;
5
+ }
@@ -3,12 +3,12 @@ import { BooleanInput } from '@angular/cdk/coercion';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "../../../common/scroll-monitor.directive";
5
5
  import * as i2 from "../../../common/sapphire-view-encapsulation";
6
- export declare class PanelContentComponent {
6
+ export declare class ModalBodyComponent {
7
7
  _scrollMonitor: ScrollMonitorDirective;
8
8
  get noPadding(): boolean;
9
9
  set noPadding(value: BooleanInput);
10
10
  private _noPadding;
11
11
  constructor(_scrollMonitor: ScrollMonitorDirective);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PanelContentComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<PanelContentComponent, "sp-panel-content", never, { "noPadding": "noPadding"; }, {}, never, ["*"], false, [{ directive: typeof i1.ScrollMonitorDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalBodyComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalBodyComponent, "sp-modal-body", never, { "noPadding": "noPadding"; }, {}, never, ["*"], false, [{ directive: typeof i1.ScrollMonitorDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { DialogRef } from '@angular/cdk/dialog';
2
- import { TranslateService } from '../../common/translate.service';
2
+ import { TranslateService } from '../../../common/translate.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ModalCloseButtonDirective {
5
5
  private dialogRef;
@@ -7,5 +7,5 @@ export declare class ModalCloseButtonDirective {
7
7
  dismissLabel: string;
8
8
  close(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalCloseButtonDirective, [null, { optional: true; }]>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<ModalCloseButtonDirective, never, never, {}, {}, never, never, true, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalCloseButtonDirective, "button[spModalCloseButton]", never, {}, {}, never, never, false, never>;
11
11
  }
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../../common/sapphire-view-encapsulation";
3
+ /**
4
+ * Marks a piece of UI as modal footer (eg. dialog, panel). Use only for
5
+ * **custom** footer. For a standard modal footer with default padding,
6
+ * use {@link ModalFooterComponent sp-modal-footer} instead.
7
+ */
8
+ export declare class ModalFooterDirective {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalFooterDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalFooterDirective, "[spModalFooter]", never, {}, {}, never, never, true, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
11
+ }
12
+ /**
13
+ * Standard modal footer component (eg. dialog, panel) with default
14
+ * padding. For a custom footer, use
15
+ * {@link ModalFooterDirective spModalFooter attribute directive}.
16
+ */
17
+ export declare class ModalFooterComponent {
18
+ constructor();
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalFooterComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalFooterComponent, "sp-modal-footer", never, {}, {}, never, ["*"], false, [{ directive: typeof ModalFooterDirective; inputs: {}; outputs: {}; }]>;
21
+ }
@@ -0,0 +1,29 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { EventEmitter } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../../common/sapphire-view-encapsulation";
5
+ /**
6
+ * Marks a piece of UI as modal header (eg. dialog, panel).
7
+ * Use only for **custom** header. For standard header (a heading,
8
+ * optional subheading and a close button),
9
+ * use {@link ModalHeaderComponent sp-modal-header} instead.
10
+ */
11
+ export declare class ModalHeaderDirective {
12
+ id: string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalHeaderDirective, "[spModalHeader]", never, { "id": "id"; }, {}, never, never, true, never>;
15
+ }
16
+ /**
17
+ * Standard modal header component (eg. dialog, panel), which consists
18
+ * of a heading (the content), optional subheading and a close button.
19
+ * For a custom header, use
20
+ * {@link ModalHeaderDirective spModalHeader attribute directive}.
21
+ */
22
+ export declare class ModalHeaderComponent {
23
+ subheading?: string;
24
+ hideCloseButton?: BooleanInput;
25
+ closeEventEmitter: EventEmitter<any>;
26
+ close(event: MouseEvent): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalHeaderComponent, "sp-modal-header", never, { "subheading": "subheading"; "hideCloseButton": "hideCloseButton"; }, { "closeEventEmitter": "closeClicked"; }, never, ["[spModalBackButton]", "*"], false, [{ directive: typeof ModalHeaderDirective; inputs: { "id": "id"; }; outputs: {}; }, { directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
29
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../../common/sapphire-view-encapsulation";
3
+ export declare class ModalLayoutComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalLayoutComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalLayoutComponent, "sp-modal-layout", never, {}, {}, never, ["sp-modal-header, [spModalHeader]", "sp-modal-body", "sp-modal-footer, [spModalFooter]"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
6
+ }
@@ -1,7 +1,8 @@
1
1
  import { DialogRef, DialogRole } from '@angular/cdk/dialog';
2
- import { AfterContentChecked, AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { AfterContentChecked, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
+ import { ModalHeaderDirective } from './layout/modal-header.component';
3
4
  import * as i0 from "@angular/core";
4
- export declare abstract class ModalBaseComponent implements OnChanges, AfterContentInit, AfterContentChecked, OnDestroy {
5
+ export declare abstract class ModalBaseComponent implements OnChanges, AfterContentChecked, OnDestroy {
5
6
  protected dialogRef: DialogRef;
6
7
  /**
7
8
  * Defines a string value that labels the current element.
@@ -20,15 +21,12 @@ export declare abstract class ModalBaseComponent implements OnChanges, AfterCont
20
21
  */
21
22
  role?: DialogRole;
22
23
  protected contentInitialized: boolean;
23
- abstract header?: {
24
- id: string;
25
- };
24
+ protected header?: ModalHeaderDirective;
26
25
  constructor(dialogRef: DialogRef);
27
26
  ngOnChanges(changes: SimpleChanges): void;
28
- ngAfterContentInit(): void;
29
27
  ngAfterContentChecked(): void;
30
28
  close(): void;
31
29
  ngOnDestroy(): void;
32
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalBaseComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalBaseComponent, "ng-component", never, { "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; "ariaDescribedBy": "aria-describedby"; "role": "role"; }, {}, never, never, false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalBaseComponent, "ng-component", never, { "ariaLabel": "aria-label"; "ariaLabelledBy": "aria-labelledby"; "ariaDescribedBy": "aria-describedby"; "role": "role"; }, {}, ["header"], never, false, never>;
34
32
  }