@danske/sapphire-angular 1.27.4 → 1.28.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,3 +1,4 @@
1
1
  export * from './src/checkbox.component';
2
+ export * from './src/checkbox-group.component';
2
3
  export * from './src/checkbox.module';
3
4
  export * from './src/checkbox-required-validator';
@@ -0,0 +1,26 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { FieldControl } from '../../field/src/field-control';
3
+ import { FieldComponent } from '../../field/src/field.component';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../theme/src/theme-check.directive";
6
+ export declare class CheckboxGroupComponent implements FieldControl {
7
+ _field: FieldComponent;
8
+ uniqueId: string;
9
+ orientation: 'vertical' | 'horizontal';
10
+ /** Whether the checkbox group is disabled */
11
+ get disabled(): boolean;
12
+ set disabled(value: BooleanInput);
13
+ private _disabled;
14
+ /** Whether the checkbox group is readonly */
15
+ get readonly(): boolean;
16
+ set readonly(value: BooleanInput);
17
+ private _readonly;
18
+ /** Whether the checkbox group is required */
19
+ get required(): boolean;
20
+ set required(value: BooleanInput);
21
+ private _required;
22
+ constructor(_field: FieldComponent);
23
+ isDisabled(): boolean;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, [{ optional: true; }]>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "sp-checkbox-group", never, { "orientation": "orientation"; "disabled": "disabled"; "readonly": "readonly"; "required": "required"; }, {}, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }]>;
26
+ }
@@ -4,6 +4,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import { HasTabIndex } from '../../common/tabindex';
6
6
  import { CanDisable } from '../../common/disabled';
7
+ import { CheckboxGroupComponent } from './checkbox-group.component';
7
8
  import * as i0 from "@angular/core";
8
9
  import * as i1 from "../../theme/src/theme-check.directive";
9
10
  /** Change event object emitted by checkbox. */
@@ -24,6 +25,7 @@ declare const _CheckboxMixinBase: import("../../common/constructor").Constructor
24
25
  };
25
26
  };
26
27
  export declare class CheckboxComponent extends _CheckboxMixinBase implements AfterViewInit, ControlValueAccessor, CanDisable, HasTabIndex, FocusableOption {
28
+ readonly checkboxGroup: CheckboxGroupComponent;
27
29
  private changeDetectorRef;
28
30
  /**
29
31
  * Attached to the aria-label attribute of the host element. In most cases,
@@ -63,7 +65,7 @@ export declare class CheckboxComponent extends _CheckboxMixinBase implements Aft
63
65
  */
64
66
  private onTouched;
65
67
  private controlValueAccessorChangeFn;
66
- constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, tabIndex: string);
68
+ constructor(checkboxGroup: CheckboxGroupComponent, elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, tabIndex: string);
67
69
  ngAfterViewInit(): void;
68
70
  /** Whether the checkbox is selected. */
69
71
  get selected(): boolean;
@@ -106,7 +108,7 @@ export declare class CheckboxComponent extends _CheckboxMixinBase implements Aft
106
108
  * `indeterminate` property so Ivy will warn during server-side rendering.
107
109
  */
108
110
  private syncIndeterminate;
109
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [null, null, { attribute: "tabindex"; }]>;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [{ optional: true; }, null, null, { attribute: "tabindex"; }]>;
110
112
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "sp-checkbox", ["spCheckbox"], { "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "id": "id"; "required": "required"; "readonly": "readonly"; "name": "name"; "size": "size"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "indeterminate": "indeterminate"; }, { "change": "change"; }, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }]>;
111
113
  }
112
114
  export {};
@@ -1,11 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./checkbox.component";
3
3
  import * as i2 from "./checkbox-required-validator";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/cdk/a11y";
4
+ import * as i3 from "./checkbox-group.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "@angular/cdk/a11y";
7
8
  export declare class SapphireCheckboxModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCheckboxModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCheckboxModule, [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.A11yModule], [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCheckboxModule, [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator, typeof i3.CheckboxGroupComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.A11yModule], [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator, typeof i3.CheckboxGroupComponent]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<SapphireCheckboxModule>;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.27.4",
3
+ "version": "1.28.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",
@@ -19,7 +19,7 @@
19
19
  "@danske/sapphire-css": "^32.1.2",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "3a67192e032d020edc7e819cf941a295987eb2f8",
22
+ "gitHead": "81d5f9d28157031158a1bf366929364ca80a5cbe",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",