@danske/sapphire-angular 1.20.2 → 1.21.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.
@@ -1,2 +1,4 @@
1
1
  export { ScrollMonitorDirective } from './scroll-monitor.directive';
2
2
  export { UseComponentStyles, UseComponentStylesOnHost, ViewEncapsulationProvider, } from './sapphire-view-encapsulation';
3
+ export { PressedDirective } from './pressed.directive';
4
+ export { FocusedDirective } from './focused.directive';
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
3
3
  * Used inside sp-field to provide an error message for the field.
4
4
  */
5
5
  export declare class FieldErrorDirective {
6
+ /**
7
+ * A unique id for the host DOM element.
8
+ * If none is supplied, it will be auto-generated.
9
+ */
10
+ id: string;
6
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<FieldErrorDirective, "sp-field-error", never, {}, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldErrorDirective, "sp-field-error", never, { "id": "id"; }, {}, never, never, true, never>;
8
13
  }
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
3
3
  * Used inside field to provide a note for the field.
4
4
  */
5
5
  export declare class FieldNoteDirective {
6
+ /**
7
+ * A unique id for the host DOM element.
8
+ * If none is supplied, it will be auto-generated.
9
+ */
10
+ id: string;
6
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldNoteDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteDirective, "sp-field-note", never, {}, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldNoteDirective, "sp-field-note", never, { "id": "id"; }, {}, never, never, true, never>;
8
13
  }
@@ -22,6 +22,10 @@ export declare class PopoverComponent implements AfterViewInit {
22
22
  * Whether the default behavior of moving focus to the popover content upon open should be disabled
23
23
  */
24
24
  noAutoFocus: BooleanInput;
25
+ /**
26
+ * Wheter the popover traps the focus inside.
27
+ */
28
+ trapFocus: BooleanInput;
25
29
  ID: string;
26
30
  /**
27
31
  * Keeps track of if the content is focused
@@ -32,5 +36,5 @@ export declare class PopoverComponent implements AfterViewInit {
32
36
  private handleEscape;
33
37
  _contentFocusChanged(origin: FocusOrigin): void;
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, [{ optional: true; }]>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "sp-popover", never, { "noPadding": "noPadding"; "noMaxWidth": "noMaxWidth"; "noAutoFocus": "noAutoFocus"; }, {}, ["title"], ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "sp-popover", never, { "noPadding": "noPadding"; "noMaxWidth": "noMaxWidth"; "noAutoFocus": "noAutoFocus"; "trapFocus": "trapFocus"; }, {}, ["title"], ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
36
40
  }
@@ -1,9 +1,11 @@
1
1
  import { DoCheck, ElementRef } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
+ import { FieldComponent } from '../../field/public_api';
3
4
  import * as i0 from "@angular/core";
4
5
  import * as i1 from "../../common/sapphire-view-encapsulation";
5
6
  export declare class TextFieldInputDirective implements DoCheck {
6
7
  private _elementRef;
8
+ field: FieldComponent;
7
9
  readonly textarea: boolean;
8
10
  id: string;
9
11
  disabled: BooleanInput;
@@ -15,7 +17,7 @@ export declare class TextFieldInputDirective implements DoCheck {
15
17
  private updateValueLength;
16
18
  get style(): string | undefined;
17
19
  private updateAutofillStyle;
18
- constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement>);
19
- static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldInputDirective, never>;
20
+ constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement>, field: FieldComponent);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldInputDirective, [null, { optional: true; }]>;
20
22
  static ɵdir: i0.ɵɵDirectiveDeclaration<TextFieldInputDirective, "[spTextFieldInput]", never, { "id": "id"; "disabled": "disabled"; "required": "required"; }, {}, never, never, false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.20.2",
3
+ "version": "1.21.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": "^28.4.0",
19
+ "@danske/sapphire-css": "^30.0.1",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "636a735c2f40e7f81c04987b156e02e06bc31398",
22
+ "gitHead": "a79cc70d1fbf9428858ab9b1d43c38f602e39558",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",
package/public-api.d.ts CHANGED
@@ -24,3 +24,4 @@ export * from './lib/surface/public_api';
24
24
  export * from './lib/common/public_api';
25
25
  export * from './lib/core.module';
26
26
  export * from './lib/badge/public_api';
27
+ export * from './lib/label/public_api';