@danske/sapphire-angular 2.8.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.
Files changed (169) hide show
  1. package/esm2020/lib/avatar/public_api.mjs +3 -0
  2. package/esm2020/lib/avatar/src/avatar.component.mjs +53 -0
  3. package/esm2020/lib/avatar/src/avatar.module.mjs +16 -0
  4. package/esm2020/lib/badge/src/badge.component.mjs +11 -7
  5. package/esm2020/lib/button/src/button-group.component.mjs +3 -3
  6. package/esm2020/lib/button/src/button-icon.directive.mjs +2 -1
  7. package/esm2020/lib/button/src/button.component.mjs +19 -6
  8. package/esm2020/lib/button/src/icon-button.component.mjs +21 -8
  9. package/esm2020/lib/button/src/toggle-button-required-validator.mjs +2 -1
  10. package/esm2020/lib/button/src/toggle-button.component.mjs +19 -6
  11. package/esm2020/lib/checkbox/src/checkbox-group.component.mjs +3 -3
  12. package/esm2020/lib/checkbox/src/checkbox-required-validator.mjs +2 -1
  13. package/esm2020/lib/checkbox/src/checkbox.component.mjs +3 -3
  14. package/esm2020/lib/core.module.mjs +22 -1
  15. package/esm2020/lib/feedback-message/public_api.mjs +7 -0
  16. package/esm2020/lib/feedback-message/src/feedback-message.component.mjs +104 -0
  17. package/esm2020/lib/feedback-message/src/feedback-message.module.mjs +40 -0
  18. package/esm2020/lib/field/src/field-note.directive.mjs +18 -2
  19. package/esm2020/lib/field/src/field.component.mjs +33 -15
  20. package/esm2020/lib/field/src/field.module.mjs +7 -3
  21. package/esm2020/lib/help-button/src/help-button.component.mjs +15 -12
  22. package/esm2020/lib/icon/public_api.mjs +2 -1
  23. package/esm2020/lib/icon/src/icon-size-provider.mjs +1 -1
  24. package/esm2020/lib/icon/src/icon.component.mjs +30 -18
  25. package/esm2020/lib/icon/src/icon.module.mjs +4 -2
  26. package/esm2020/lib/icon/src/iconRegistry.service.mjs +37 -0
  27. package/esm2020/lib/icon/src/svgSanitizer.mjs +690 -0
  28. package/esm2020/lib/label/src/label.component.mjs +3 -3
  29. package/esm2020/lib/link/src/link.component.mjs +3 -8
  30. package/esm2020/lib/list/src/list.component.mjs +2 -2
  31. package/esm2020/lib/listbox/src/listbox-item.component.mjs +15 -15
  32. package/esm2020/lib/listbox/src/listbox.component.mjs +7 -10
  33. package/esm2020/lib/listbox/src/option-icon.directive.mjs +2 -1
  34. package/esm2020/lib/listbox/src/option-primary-text.directive.mjs +2 -1
  35. package/esm2020/lib/listbox/src/option-secondary-text.directive.mjs +2 -1
  36. package/esm2020/lib/listbox/src/option.component.mjs +2 -1
  37. package/esm2020/lib/listbox/src/section.directive.mjs +2 -1
  38. package/esm2020/lib/menu/src/menu-icon.component.mjs +2 -1
  39. package/esm2020/lib/menu/src/menu-item.component.mjs +4 -4
  40. package/esm2020/lib/menu/src/menu-primary-text.component.mjs +2 -1
  41. package/esm2020/lib/menu/src/menu-secondary-text.component.mjs +2 -1
  42. package/esm2020/lib/menu/src/menu-section.component.mjs +2 -2
  43. package/esm2020/lib/menu/src/menu-trigger.directive.mjs +2 -1
  44. package/esm2020/lib/menu/src/menu.component.mjs +8 -13
  45. package/esm2020/lib/modal/public_api.mjs +2 -1
  46. package/esm2020/lib/modal/src/dialog/alert-dialog.component.mjs +111 -0
  47. package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +2 -2
  48. package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +2 -2
  49. package/esm2020/lib/modal/src/dialog/dialog-trigger.directive.mjs +2 -1
  50. package/esm2020/lib/modal/src/dialog/dialog.component.mjs +3 -3
  51. package/esm2020/lib/modal/src/layout/modal-back-button.directive.mjs +2 -1
  52. package/esm2020/lib/modal/src/layout/modal-body.component.mjs +2 -1
  53. package/esm2020/lib/modal/src/layout/modal-close-button.directive.mjs +2 -1
  54. package/esm2020/lib/modal/src/layout/modal-footer.component.mjs +2 -2
  55. package/esm2020/lib/modal/src/layout/modal-header.component.mjs +15 -12
  56. package/esm2020/lib/modal/src/layout/modal-layout.component.mjs +3 -3
  57. package/esm2020/lib/modal/src/modal-base.component.mjs +2 -1
  58. package/esm2020/lib/modal/src/modal.module.mjs +27 -2
  59. package/esm2020/lib/modal/src/panel/panel-trigger.directive.mjs +2 -1
  60. package/esm2020/lib/modal/src/panel/panel.component.mjs +3 -3
  61. package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +3 -3
  62. package/esm2020/lib/pagination/src/page-selection-row.component.mjs +3 -3
  63. package/esm2020/lib/pagination/src/pagination.component.mjs +16 -13
  64. package/esm2020/lib/popover/src/popover-close-button.directive.mjs +2 -1
  65. package/esm2020/lib/popover/src/popover-title.directive.mjs +2 -1
  66. package/esm2020/lib/popover/src/popover-trigger.directive.mjs +3 -2
  67. package/esm2020/lib/popover/src/popover.component.mjs +3 -3
  68. package/esm2020/lib/radio/src/radio-group.component.mjs +3 -3
  69. package/esm2020/lib/radio/src/radio.component.mjs +3 -3
  70. package/esm2020/lib/radio/src/segmented/segmented-radio-group.component.mjs +3 -3
  71. package/esm2020/lib/radio/src/segmented/segmented-radio.component.mjs +2 -2
  72. package/esm2020/lib/segmented-tabs/src/segmented-tab-content.directive.mjs +2 -1
  73. package/esm2020/lib/segmented-tabs/src/segmented-tab-label.directive.mjs +2 -1
  74. package/esm2020/lib/segmented-tabs/src/segmented-tab.component.mjs +3 -3
  75. package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +3 -3
  76. package/esm2020/lib/select/public_api.mjs +2 -2
  77. package/esm2020/lib/select/src/common/hidden-select.component.mjs +2 -2
  78. package/esm2020/lib/select/src/select/searchable-select.directive.mjs +2 -1
  79. package/esm2020/lib/select/src/select/select.component.mjs +25 -20
  80. package/esm2020/lib/select/src/select/select.module.mjs +10 -10
  81. package/esm2020/lib/select/src/select/selection-text.directive.mjs +2 -1
  82. package/esm2020/lib/select/src/select-button/select-button.component.mjs +136 -0
  83. package/esm2020/lib/skeleton/src/skeleton-block.directive.mjs +2 -1
  84. package/esm2020/lib/skeleton/src/skeleton-circle.directive.mjs +2 -1
  85. package/esm2020/lib/skeleton/src/skeleton-text.directive.mjs +2 -1
  86. package/esm2020/lib/skeleton/src/skeleton.component.mjs +3 -3
  87. package/esm2020/lib/spinner/public_api.mjs +7 -0
  88. package/esm2020/lib/spinner/src/spinner.component.mjs +26 -0
  89. package/esm2020/lib/spinner/src/spinner.module.mjs +18 -0
  90. package/esm2020/lib/surface/src/surface.component.mjs +5 -3
  91. package/esm2020/lib/switch/src/switch-required-validator.mjs +2 -1
  92. package/esm2020/lib/switch/src/switch.component.mjs +3 -3
  93. package/esm2020/lib/table/src/table-body.directive.mjs +2 -1
  94. package/esm2020/lib/table/src/table-cell.directive.mjs +2 -1
  95. package/esm2020/lib/table/src/table-footer.directive.mjs +2 -1
  96. package/esm2020/lib/table/src/table-head-cell.component.mjs +16 -13
  97. package/esm2020/lib/table/src/table-head.directive.mjs +2 -1
  98. package/esm2020/lib/table/src/table-row.directive.mjs +2 -1
  99. package/esm2020/lib/table/src/table-sort-header.directive.mjs +2 -1
  100. package/esm2020/lib/table/src/table-sort.directive.mjs +2 -1
  101. package/esm2020/lib/table/src/table.component.mjs +3 -3
  102. package/esm2020/lib/table/src/table.directive.mjs +2 -1
  103. package/esm2020/lib/text-field/src/text-field-input.directive.mjs +2 -1
  104. package/esm2020/lib/text-field/src/text-field-postfix.directive.mjs +2 -1
  105. package/esm2020/lib/text-field/src/text-field-prefix.directive.mjs +2 -1
  106. package/esm2020/lib/text-field/src/text-field-textarea-autosize.directive.mjs +2 -1
  107. package/esm2020/lib/text-field/src/text-field.component.mjs +3 -3
  108. package/esm2020/lib/theme/src/themes.mjs +4 -4
  109. package/esm2020/lib/tooltip/src/tooltip.component.mjs +3 -3
  110. package/esm2020/lib/typography/public_api.mjs +4 -2
  111. package/esm2020/lib/typography/src/body.component.mjs +43 -0
  112. package/esm2020/lib/typography/src/caption.component.mjs +37 -0
  113. package/esm2020/lib/typography/src/heading.component.mjs +23 -13
  114. package/esm2020/lib/typography/src/subheading.component.mjs +37 -0
  115. package/esm2020/lib/typography/src/typography.module.mjs +23 -5
  116. package/esm2020/public-api.mjs +4 -1
  117. package/fesm2015/danske-sapphire-angular.mjs +1566 -235
  118. package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
  119. package/fesm2020/danske-sapphire-angular.mjs +1566 -234
  120. package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
  121. package/lib/avatar/public_api.d.ts +2 -0
  122. package/lib/avatar/src/avatar.component.d.ts +22 -0
  123. package/lib/avatar/src/avatar.module.d.ts +7 -0
  124. package/lib/badge/src/badge.component.d.ts +3 -3
  125. package/lib/button/src/button.component.d.ts +1 -1
  126. package/lib/button/src/icon-button.component.d.ts +2 -3
  127. package/lib/core.module.d.ts +23 -20
  128. package/lib/feedback-message/public_api.d.ts +2 -0
  129. package/lib/feedback-message/src/feedback-message.component.d.ts +33 -0
  130. package/lib/feedback-message/src/feedback-message.module.d.ts +10 -0
  131. package/lib/field/src/field-note.directive.d.ts +3 -1
  132. package/lib/field/src/field.component.d.ts +2 -1
  133. package/lib/field/src/field.module.d.ts +2 -1
  134. package/lib/help-button/src/help-button.component.d.ts +2 -0
  135. package/lib/icon/public_api.d.ts +1 -0
  136. package/lib/icon/src/icon-size-provider.d.ts +1 -1
  137. package/lib/icon/src/icon.component.d.ts +16 -9
  138. package/lib/icon/src/iconRegistry.service.d.ts +14 -0
  139. package/lib/icon/src/svgSanitizer.d.ts +1 -0
  140. package/lib/link/src/link.component.d.ts +1 -2
  141. package/lib/listbox/src/listbox-item.component.d.ts +3 -3
  142. package/lib/listbox/src/listbox.component.d.ts +2 -4
  143. package/lib/menu/src/menu-item.component.d.ts +1 -1
  144. package/lib/menu/src/menu.component.d.ts +1 -2
  145. package/lib/modal/public_api.d.ts +1 -0
  146. package/lib/modal/src/dialog/alert-dialog.component.d.ts +42 -0
  147. package/lib/modal/src/layout/modal-header.component.d.ts +2 -0
  148. package/lib/modal/src/modal.module.d.ts +13 -11
  149. package/lib/pagination/src/pagination.component.d.ts +2 -0
  150. package/lib/select/public_api.d.ts +1 -1
  151. package/lib/select/src/select/select.component.d.ts +3 -2
  152. package/lib/select/src/select/select.module.d.ts +2 -2
  153. package/lib/select/src/{basic-select/basic-select.component.d.ts → select-button/select-button.component.d.ts} +12 -11
  154. package/lib/spinner/public_api.d.ts +2 -0
  155. package/lib/spinner/src/spinner.component.d.ts +14 -0
  156. package/lib/spinner/src/spinner.module.d.ts +8 -0
  157. package/lib/surface/src/surface.component.d.ts +1 -1
  158. package/lib/table/src/table-head-cell.component.d.ts +3 -2
  159. package/lib/typography/public_api.d.ts +3 -1
  160. package/lib/typography/src/body.component.d.ts +16 -0
  161. package/lib/typography/src/caption.component.d.ts +14 -0
  162. package/lib/typography/src/heading.component.d.ts +5 -3
  163. package/lib/typography/src/subheading.component.d.ts +14 -0
  164. package/lib/typography/src/typography.module.d.ts +5 -3
  165. package/package.json +9 -8
  166. package/public-api.d.ts +3 -0
  167. package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +0 -132
  168. package/esm2020/lib/typography/src/paragraph.component.mjs +0 -24
  169. 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 BasicSingleSelectDirective extends SingleSelectDirectiveBase {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<BasicSingleSelectDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<BasicSingleSelectDirective, "sp-basic-select:not([multiple])", never, {}, {}, never, never, false, never>;
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-basic-select
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-basic-select>
31
+ * </sp-select-button>
31
32
  * ```
32
33
  */
33
- export declare class BasicSelectComponent extends SelectComponentBase {
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 'secondary-ghost'
43
+ * @default 'tertiary'
43
44
  */
44
- variant: 'primary' | 'secondary' | 'secondary-ghost' | 'secondary-text' | 'tertiary' | 'tertiary-ghost' | 'tertiary-text';
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<BasicSelectComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<BasicSelectComponent, "sp-basic-select", ["spBasicSelect"], { "size": "size"; "variant": "variant"; }, {}, never, ["sp-selection-text"], false, never>;
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,2 @@
1
+ export * from './src/spinner.component';
2
+ export * from './src/spinner.module';
@@ -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
  }
@@ -1,3 +1,5 @@
1
1
  export * from './src/heading.component';
2
- export * from './src/paragraph.component';
2
+ export * from './src/subheading.component';
3
+ export * from './src/caption.component';
4
+ export * from './src/body.component';
3
5
  export * from './src/typography.module';
@@ -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
- * @deprecated 'alternative' variant will not be a part of the new CVI
11
+ * The semantic color of the text
12
+ * @default 'primary'
12
13
  */
13
- fontVariant?: 'default' | 'alternative';
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"; "fontVariant": "fontVariant"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
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 "./paragraph.component";
4
- import * as i3 from "@angular/common";
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.ParagraphComponent], [typeof i3.CommonModule], [typeof i1.HeadingComponent, typeof i2.ParagraphComponent]>;
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": "2.8.0",
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",
@@ -9,18 +9,19 @@
9
9
  "directory": "build"
10
10
  },
11
11
  "peerDependencies": {
12
- "@angular/cdk": "^15.1.3 || ^16.0.0 || ^17.0.0 || ^18.0.0",
13
- "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
14
- "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
15
- "@angular/forms": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
16
- "@danske/sapphire-icons": "^2.0.0"
12
+ "@angular/cdk": "^15.1.3 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
13
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
14
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
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": "^3.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@danske/sapphire-css": "^39.0.0",
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": "f2079a7e0cd3e3c50c5b75c0aa545f8beee78d3c",
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,132 +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
- }]
42
- }] });
43
- /**
44
- * Allows user to select a single option from a list, similar to native select
45
- * component.
46
- *
47
- * Example:
48
- * ```tsx
49
- * <sp-basic-select
50
- * placeholder="Select an option"
51
- * size="sm"
52
- * variant="secondary"
53
- * >
54
- * <sp-option value="option1">First Option</sp-option>
55
- * <sp-option value="option2">Second Option</sp-option>
56
- * <sp-option value="option3">Third Option</sp-option>
57
- * </sp-basic-select>
58
- * ```
59
- */
60
- export class BasicSelectComponent extends SelectComponentBase {
61
- constructor(valueHolder, focusMonitor) {
62
- super(valueHolder);
63
- this.focusMonitor = focusMonitor;
64
- /**
65
- * Size of the button
66
- * @default 'md'
67
- */
68
- this.size = 'md';
69
- /**
70
- * Visual variations
71
- * @default 'secondary-ghost'
72
- */
73
- this.variant = 'secondary-ghost';
74
- this.focused = false;
75
- }
76
- focus(focusOrigin = 'program') {
77
- if (this.triggerElementRef) {
78
- this.focusMonitor.focusVia(this.triggerElementRef.nativeElement, focusOrigin);
79
- }
80
- }
81
- isFocused() {
82
- return this.focused;
83
- }
84
- _onFocusChange(focusOrigin) {
85
- this.focused = Boolean(focusOrigin);
86
- }
87
- }
88
- 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 });
89
- 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: [
90
- {
91
- provide: NG_VALUE_ACCESSOR,
92
- useExisting: forwardRef(() => BasicSelectComponent),
93
- multi: true,
94
- },
95
- {
96
- provide: SelectComponentBase,
97
- useExisting: forwardRef(() => BasicSelectComponent),
98
- },
99
- ViewEncapsulationProvider,
100
- ], 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" }] });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BasicSelectComponent, decorators: [{
102
- type: Component,
103
- args: [{ selector: 'sp-basic-select', exportAs: 'spBasicSelect', providers: [
104
- {
105
- provide: NG_VALUE_ACCESSOR,
106
- useExisting: forwardRef(() => BasicSelectComponent),
107
- multi: true,
108
- },
109
- {
110
- provide: SelectComponentBase,
111
- useExisting: forwardRef(() => BasicSelectComponent),
112
- },
113
- ViewEncapsulationProvider,
114
- ], host: {
115
- '[attr.aria-label]': 'null',
116
- '[attr.aria-labelledby]': 'null',
117
- }, 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"] }]
118
- }], ctorParameters: function () { return [{ type: i1.SelectValueHolder }, { type: i2.FocusMonitor }]; }, propDecorators: { size: [{
119
- type: Input
120
- }], variant: [{
121
- type: Input
122
- }], triggerRef: [{
123
- type: ViewChild,
124
- args: ['triggerRef']
125
- }], triggerElementRef: [{
126
- type: ViewChild,
127
- args: ['triggerElementRef', { read: ElementRef }]
128
- }], listbox: [{
129
- type: ViewChild,
130
- args: [ListboxComponent]
131
- }] } });
132
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtc2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VsZWN0L3NyYy9iYXNpYy1zZWxlY3QvYmFzaWMtc2VsZWN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VsZWN0L3NyYy9iYXNpYy1zZWxlY3QvYmFzaWMtc2VsZWN0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsU0FBUyxFQUNULFVBQVUsRUFDVixVQUFVLEVBQ1YsS0FBSyxFQUNMLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVuRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUUxRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUN0RSxPQUFPLEVBQ0wsaUJBQWlCLEVBQ2pCLHlCQUF5QixHQUMxQixNQUFNLCtCQUErQixDQUFDO0FBQ3ZDLE9BQU8sRUFBR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AgICAgICAgWyhzZWxlY3RlZFZhbHVlcyldPVwibGlzdGJveFZhbHVlXCJcbiAgICAgICAgKHNlbGVjdGVkKT1cIl9oYW5kbGVTZWxlY3RlZCgpXCJcbiAgICAgICAgW3NpemVdPVwic2l6ZVwiXG4gICAgICA+XG4gICAgICA8L3NwLWxpc3Rib3g+XG4gICAgPC9zcC1wb3BvdmVyPlxuICA8L25nLXRlbXBsYXRlPlxuPC9kaXY+XG4iXX0=
@@ -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], 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyYWdyYXBoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvdHlwb2dyYXBoeS9zcmMvcGFyYWdyYXBoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQzs7OztBQWFwRixNQUFNLE9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FwcGhpcmUtcGFyYWdyYXBoLS14c10nOiAnc2l6ZSA9PT0gXCJ4c1wiJyxcbiAgfSxcbiAgaG9zdERpcmVjdGl2ZXM6IFtUaGVtZUNoZWNrRGlyZWN0aXZlLCBVc2VDb21wb25lbnRTdHlsZXNPbkhvc3RdLFxufSlcbmV4cG9ydCBjbGFzcyBQYXJhZ3JhcGhDb21wb25lbnQge1xuICBASW5wdXQoKVxuICBzaXplOiAnbWQnIHwgJ3NtJyB8ICd4cycgPSAnbWQnO1xufVxuIl19
@@ -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
- }