@danske/sapphire-angular 1.16.1 → 1.17.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.
@@ -7,6 +7,7 @@ import { FieldControl } from './field-control';
7
7
  import { FieldLabelDirective } from './field-label.directive';
8
8
  import { DomPortal } from '@angular/cdk/portal';
9
9
  import { IconSizeProvider } from '../../icon/src/icon-size-provider';
10
+ import { RadioGroupComponent } from '../../radio/src/radio-group.component';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "../../common/sapphire-view-encapsulation";
12
13
  /**
@@ -15,7 +16,7 @@ import * as i1 from "../../common/sapphire-view-encapsulation";
15
16
  * In addition to the field control (sp-select, sp-radio-group, sp-text-field), the following
16
17
  * components can be used inside a field:
17
18
  * - sp-field-label: is used to provide the label text for the field.
18
- * - sp-contextual-label: is placed in the label area, next to the label text
19
+ * - sp-contextual-help: is placed in the label area, next to the label text
19
20
  * - sp-field-error: is used to provide an error message, which is placed below the field's
20
21
  * control.
21
22
  * - sp-field-note: is used to provide a note, which is placed below the field's control. Only
@@ -48,6 +49,7 @@ export declare class FieldComponent implements AfterContentInit, AfterViewChecke
48
49
  size?: 'large' | 'medium';
49
50
  note?: FieldNoteDirective;
50
51
  error?: FieldErrorDirective;
52
+ radioGroup?: RadioGroupComponent;
51
53
  label?: LabelComponent;
52
54
  _fieldLabel?: FieldLabelDirective;
53
55
  /**
@@ -70,8 +72,12 @@ export declare class FieldComponent implements AfterContentInit, AfterViewChecke
70
72
  * Whether the field contains an error message (sp-field-error).
71
73
  */
72
74
  hasError(): boolean;
75
+ /**
76
+ * Whether the field control is radio group (sp-radio-group).
77
+ */
78
+ hasFieldGroupChild(): boolean;
73
79
  get labelNecessityIndicator(): LabelComponent['necessityIndicator'];
74
80
  _setSuffixPortal(portal: DomPortal<HTMLElement> | null): void;
75
81
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "sp-field", never, { "necessityIndicator": "necessityIndicator"; "labelPlacement": "labelPlacement"; "size": "size"; }, {}, ["note", "error", "_fieldLabel", "control", "requiredValidator"], ["sp-field-label", "sp-contextual-help", "*", "sp-field-error", "sp-field-note"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "sp-field", never, { "necessityIndicator": "necessityIndicator"; "labelPlacement": "labelPlacement"; "size": "size"; }, {}, ["note", "error", "radioGroup", "_fieldLabel", "control", "requiredValidator"], ["sp-field-label", "sp-contextual-help", "*", "sp-field-error", "sp-field-note"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
77
83
  }
@@ -1,12 +1,12 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, QueryList } from '@angular/core';
2
2
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
3
3
  import { FocusOrigin } from '@angular/cdk/a11y';
4
4
  import { SegmentedTabComponent } from './segmented-tab.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class SegmentedTabsComponent implements AfterContentInit, AfterViewInit, OnInit, OnDestroy {
7
- private host;
6
+ export declare class SegmentedTabsComponent implements AfterContentInit, AfterViewInit, OnDestroy {
8
7
  private zone;
9
8
  private changeDetector;
9
+ segmentedControl: ElementRef;
10
10
  /** Size of tabs */
11
11
  size: 'small' | 'medium' | 'large';
12
12
  /** Whether tabs are activated automatically on focus or manually. */
@@ -28,8 +28,7 @@ export declare class SegmentedTabsComponent implements AfterContentInit, AfterVi
28
28
  };
29
29
  _animationEnabled: boolean;
30
30
  _focusVisible: boolean;
31
- constructor(host: ElementRef, zone: NgZone, changeDetector: ChangeDetectorRef);
32
- ngOnInit(): void;
31
+ constructor(zone: NgZone, changeDetector: ChangeDetectorRef);
33
32
  ngAfterContentInit(): void;
34
33
  ngAfterViewInit(): void;
35
34
  ngOnDestroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.16.1",
3
+ "version": "1.17.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,10 +16,10 @@
16
16
  "@danske/sapphire-icons": "^1.0.2"
17
17
  },
18
18
  "dependencies": {
19
- "@danske/sapphire-css": "^26.3.1",
19
+ "@danske/sapphire-css": "^26.6.0",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "be28d79e80e51c56d50a6ae3779232b4d58a8a38",
22
+ "gitHead": "b19a39c7159ac2ae91ddc8a94cdf8cfac71aa0f0",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",