@danske/sapphire-angular 3.2.0 → 3.4.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 (43) hide show
  1. package/esm2020/lib/button/src/button.component.mjs +14 -4
  2. package/esm2020/lib/button/src/toggle-button.component.mjs +2 -2
  3. package/esm2020/lib/checkbox/src/checkbox.component.mjs +2 -2
  4. package/esm2020/lib/field/src/field.component.mjs +4 -5
  5. package/esm2020/lib/icon/src/icon.component.mjs +3 -3
  6. package/esm2020/lib/label/src/label.component.mjs +3 -3
  7. package/esm2020/lib/link/src/link.component.mjs +2 -2
  8. package/esm2020/lib/list/src/list.component.mjs +15 -3
  9. package/esm2020/lib/modal/public_api.mjs +3 -1
  10. package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +1 -1
  11. package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +1 -1
  12. package/esm2020/lib/modal/src/dialog/dialog.component.mjs +2 -2
  13. package/esm2020/lib/modal/src/layout/modal-header.component.mjs +3 -3
  14. package/esm2020/lib/modal/src/layout/modal-layout.component.mjs +2 -2
  15. package/esm2020/lib/modal/src/layout/modal-section-title.directive.mjs +14 -0
  16. package/esm2020/lib/modal/src/layout/modal-section.component.mjs +25 -0
  17. package/esm2020/lib/modal/src/modal.module.mjs +14 -2
  18. package/esm2020/lib/modal/src/panel/panel.component.mjs +2 -2
  19. package/esm2020/lib/radio/src/radio.component.mjs +3 -3
  20. package/esm2020/lib/select/src/select/select.component.mjs +2 -2
  21. package/esm2020/lib/select/src/select-button/select-button.component.mjs +2 -2
  22. package/esm2020/lib/table/src/table.component.mjs +2 -2
  23. package/esm2020/lib/text-field/src/text-field-input.directive.mjs +18 -8
  24. package/esm2020/lib/text-field/src/text-field.component.mjs +4 -4
  25. package/esm2020/lib/theme/src/themes.mjs +4 -4
  26. package/esm2020/lib/typography/src/body.component.mjs +2 -2
  27. package/esm2020/lib/typography/src/caption.component.mjs +2 -2
  28. package/esm2020/lib/typography/src/heading.component.mjs +2 -2
  29. package/esm2020/lib/typography/src/subheading.component.mjs +2 -2
  30. package/fesm2015/danske-sapphire-angular.mjs +147 -766
  31. package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
  32. package/fesm2020/danske-sapphire-angular.mjs +145 -766
  33. package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
  34. package/lib/button/src/button.component.d.ts +3 -1
  35. package/lib/list/src/list.component.d.ts +7 -1
  36. package/lib/modal/public_api.d.ts +2 -0
  37. package/lib/modal/src/layout/modal-section-title.directive.d.ts +5 -0
  38. package/lib/modal/src/layout/modal-section.component.d.ts +8 -0
  39. package/lib/modal/src/modal.module.d.ts +19 -17
  40. package/lib/text-field/src/text-field-input.directive.d.ts +5 -2
  41. package/package.json +4 -4
  42. package/esm2020/lib/icon/src/svgSanitizer.mjs +0 -690
  43. package/lib/icon/src/svgSanitizer.d.ts +0 -1
@@ -16,10 +16,12 @@ export declare class ButtonComponent implements AfterContentInit {
16
16
  */
17
17
  type: 'submit' | 'button' | 'reset';
18
18
  private get variantClass();
19
+ tabindex?: number | string | null;
20
+ get hostTabIndex(): number | string | null;
19
21
  buttonIcon?: ButtonIconDirective;
20
22
  icon?: IconComponent;
21
23
  constructor(elementRef: ElementRef<HTMLButtonElement>);
22
24
  ngAfterContentInit(): void;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
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: {}; }]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[sp-button], a[sp-button]", never, { "variant": "variant"; "size": "size"; "disabled": "disabled"; "iconAlign": "iconAlign"; "type": "type"; "tabindex": "tabindex"; }, {}, ["buttonIcon", "icon"], ["*", "[spButtonIcon]"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
25
27
  }
@@ -8,7 +8,13 @@ export declare class ListComponent {
8
8
  constructor(elementRef: ElementRef<HTMLElement>);
9
9
  get isListElement(): boolean;
10
10
  hideLastDivider: BooleanInput;
11
+ /**
12
+ * Counter acts the side padding of the parent element, so that List is shifted to the left with same amount
13
+ * and having side padding * 2 added to width – resulting in full width List.
14
+ * Useful in scenarions where List is inside a padded container and desired layout has List going from edge to edge horizontally.
15
+ */
16
+ hasNegativeSideMargin?: BooleanInput;
11
17
  readonly listItems: QueryList<ListItemComponent>;
12
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "[sp-list]", never, { "hideLastDivider": "hideLastDivider"; }, {}, ["listItems"], ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "[sp-list]", never, { "hideLastDivider": "hideLastDivider"; "hasNegativeSideMargin": "hasNegativeSideMargin"; }, {}, ["listItems"], ["*"], true, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
14
20
  }
@@ -4,6 +4,8 @@ export * from './src/layout/modal-layout.component';
4
4
  export * from './src/layout/modal-header.component';
5
5
  export * from './src/layout/modal-footer.component';
6
6
  export * from './src/layout/modal-body.component';
7
+ export * from './src/layout/modal-section.component';
8
+ export * from './src/layout/modal-section-title.directive';
7
9
  export * from './src/layout/modal-header.component';
8
10
  export * from './src/layout/modal-close-button.directive';
9
11
  export * from './src/layout/modal-back-button.directive';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalSectionTitleDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalSectionTitleDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ModalSectionTitleDirective, "sp-modal-section-title", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../../common/sapphire-view-encapsulation";
4
+ export declare class ModalSectionComponent {
5
+ isFormSection: BooleanInput;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalSectionComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalSectionComponent, "sp-modal-section", never, { "isFormSection": "isFormSection"; }, {}, never, ["*", "sp-modal-section-title"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
8
+ }
@@ -5,24 +5,26 @@ import * as i3 from "./layout/modal-body.component";
5
5
  import * as i4 from "./layout/modal-footer.component";
6
6
  import * as i5 from "./layout/modal-close-button.directive";
7
7
  import * as i6 from "./layout/modal-back-button.directive";
8
- import * as i7 from "./dialog/dialog.component";
9
- import * as i8 from "./dialog/dialog-trigger.directive";
10
- import * as i9 from "./dialog/confirmation-dialog.component";
11
- import * as i10 from "./dialog/danger-dialog.component";
12
- import * as i11 from "./dialog/alert-dialog.component";
13
- import * as i12 from "./panel/panel.component";
14
- import * as i13 from "./panel/panel-trigger.directive";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "@angular/cdk/dialog";
17
- import * as i16 from "../../theme/src/theme.module";
18
- import * as i17 from "../../typography/src/typography.module";
19
- import * as i18 from "../../icon/src/icon.module";
20
- import * as i19 from "../../button/src/button.module";
21
- import * as i20 from "../../feedback-message/src/feedback-message.module";
22
- import * as i21 from "../../common/scroll-monitor.directive";
23
- import * as i22 from "../../common/sapphire-view-encapsulation";
8
+ import * as i7 from "./layout/modal-section.component";
9
+ import * as i8 from "./layout/modal-section-title.directive";
10
+ import * as i9 from "./dialog/dialog.component";
11
+ import * as i10 from "./dialog/dialog-trigger.directive";
12
+ import * as i11 from "./dialog/confirmation-dialog.component";
13
+ import * as i12 from "./dialog/danger-dialog.component";
14
+ import * as i13 from "./dialog/alert-dialog.component";
15
+ import * as i14 from "./panel/panel.component";
16
+ import * as i15 from "./panel/panel-trigger.directive";
17
+ import * as i16 from "@angular/common";
18
+ import * as i17 from "@angular/cdk/dialog";
19
+ import * as i18 from "../../theme/src/theme.module";
20
+ import * as i19 from "../../typography/src/typography.module";
21
+ import * as i20 from "../../icon/src/icon.module";
22
+ import * as i21 from "../../button/src/button.module";
23
+ import * as i22 from "../../feedback-message/src/feedback-message.module";
24
+ import * as i23 from "../../common/scroll-monitor.directive";
25
+ import * as i24 from "../../common/sapphire-view-encapsulation";
24
26
  export declare class SapphireModalModule {
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SapphireModalModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireModalModule, [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i5.ModalCloseButtonDirective, typeof i6.ModalBackButtonDirective, typeof i7.DialogComponent, typeof i8.DialogTriggerDirective, typeof i9.ConfirmationDialogComponent, typeof i10.DangerDialogComponent, typeof i11.AlertDialogComponent, typeof i11.AlertDialogIcon, typeof i11.AlertDialogBody, typeof i11.AlertDialogHeading, typeof i11.AlertDialogActions, typeof i12.PanelComponent, typeof i13.PanelTriggerDirective], [typeof i14.CommonModule, typeof i15.DialogModule, typeof i16.SapphireThemeModule, typeof i17.SapphireTypographyModule, typeof i18.SapphireIconModule, typeof i19.SapphireButtonModule, typeof i20.SapphireFeedbackMessageModule, typeof i21.ScrollMonitorDirective, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i22.UseComponentStyles], [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i6.ModalBackButtonDirective, typeof i5.ModalCloseButtonDirective, typeof i7.DialogComponent, typeof i8.DialogTriggerDirective, typeof i9.ConfirmationDialogComponent, typeof i10.DangerDialogComponent, typeof i11.AlertDialogComponent, typeof i11.AlertDialogIcon, typeof i11.AlertDialogBody, typeof i11.AlertDialogHeading, typeof i11.AlertDialogActions, typeof i12.PanelComponent, typeof i13.PanelTriggerDirective]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireModalModule, [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i5.ModalCloseButtonDirective, typeof i6.ModalBackButtonDirective, typeof i7.ModalSectionComponent, typeof i8.ModalSectionTitleDirective, typeof i9.DialogComponent, typeof i10.DialogTriggerDirective, typeof i11.ConfirmationDialogComponent, typeof i12.DangerDialogComponent, typeof i13.AlertDialogComponent, typeof i13.AlertDialogIcon, typeof i13.AlertDialogBody, typeof i13.AlertDialogHeading, typeof i13.AlertDialogActions, typeof i14.PanelComponent, typeof i15.PanelTriggerDirective], [typeof i16.CommonModule, typeof i16.NgIf, typeof i17.DialogModule, typeof i18.SapphireThemeModule, typeof i19.SapphireTypographyModule, typeof i20.SapphireIconModule, typeof i21.SapphireButtonModule, typeof i22.SapphireFeedbackMessageModule, typeof i23.ScrollMonitorDirective, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i24.UseComponentStyles], [typeof i1.ModalLayoutComponent, typeof i2.ModalHeaderComponent, typeof i3.ModalBodyComponent, typeof i4.ModalFooterComponent, typeof i2.ModalHeaderDirective, typeof i4.ModalFooterDirective, typeof i6.ModalBackButtonDirective, typeof i5.ModalCloseButtonDirective, typeof i7.ModalSectionComponent, typeof i8.ModalSectionTitleDirective, typeof i9.DialogComponent, typeof i10.DialogTriggerDirective, typeof i11.ConfirmationDialogComponent, typeof i12.DangerDialogComponent, typeof i13.AlertDialogComponent, typeof i13.AlertDialogIcon, typeof i13.AlertDialogBody, typeof i13.AlertDialogHeading, typeof i13.AlertDialogActions, typeof i14.PanelComponent, typeof i15.PanelTriggerDirective]>;
27
29
  static ɵinj: i0.ɵɵInjectorDeclaration<SapphireModalModule>;
28
30
  }
@@ -1,10 +1,12 @@
1
1
  import { DoCheck, ElementRef } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
3
  import { FieldComponent } from '../../field/public_api';
4
+ import { NgControl } from '@angular/forms';
4
5
  import * as i0 from "@angular/core";
5
6
  import * as i1 from "../../common/sapphire-view-encapsulation";
6
7
  export declare class TextFieldInputDirective implements DoCheck {
7
8
  private _elementRef;
9
+ private ngControl;
8
10
  field: FieldComponent;
9
11
  readonly textarea: boolean;
10
12
  id: string;
@@ -16,8 +18,9 @@ export declare class TextFieldInputDirective implements DoCheck {
16
18
  private onBlur;
17
19
  private updateValueLength;
18
20
  get style(): string | undefined;
21
+ get isDisabled(): boolean;
19
22
  private updateAutofillStyle;
20
- constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement>, field: FieldComponent);
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldInputDirective, [null, { optional: true; }]>;
23
+ constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement>, ngControl: NgControl, field: FieldComponent);
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldInputDirective, [null, { optional: true; self: true; }, { optional: true; }]>;
22
25
  static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldInputDirective, "[spTextFieldInput]", never, { "id": "id"; "disabled": "disabled"; "required": "required"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
23
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "3.2.0",
3
+ "version": "3.4.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",
@@ -16,12 +16,12 @@
16
16
  "@danske/sapphire-icons": "^3.1.0"
17
17
  },
18
18
  "dependencies": {
19
- "@danske/sapphire-css": "^42.0.0",
19
+ "@danske/sapphire-css": "^43.0.0",
20
20
  "@internationalized/message": "^3.1.5",
21
- "sanitize-html": "^2.17.0",
21
+ "dompurify": "^3.2.6",
22
22
  "tslib": "^2.3.0"
23
23
  },
24
- "gitHead": "afb5a25463f39012c3599e6242c8d308786d11e1",
24
+ "gitHead": "5447ed85a23a82d6d7339a1617296a648256ea3e",
25
25
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
26
26
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
27
27
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",