@danske/sapphire-angular 1.18.1 → 1.19.1

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,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ export type ButtonGroupStretchType = 'none' | 'default' | 'autoVertical';
2
3
  /**
3
4
  * ButtonGroup is a utility component which ensures consistent spacing between
4
5
  * buttons All children must be of type Button. Icon buttons cannot be mixed
@@ -10,6 +11,18 @@ export declare class ButtonGroupComponent {
10
11
  * @default "right"
11
12
  */
12
13
  align: 'left' | 'center' | 'right';
14
+ /**
15
+ * Controls stretching of the contents.
16
+ *
17
+ * `none` - the children will not stretch and will respect the alignment set with the align prop.
18
+ *
19
+ * `default` - the children will stretch to take full width. If the children overflow, they will be wrapped vertically.
20
+ *
21
+ * `autoVertical` - same behaviour as `default`, but if there is more than 3 children, they will be wrapped vertically even if they don't overflow.
22
+ *
23
+ * @default "none"
24
+ */
25
+ stretch?: ButtonGroupStretchType;
13
26
  get iconSpacing(): this['spacing'];
14
27
  set iconSpacing(value: this['spacing']);
15
28
  /**
@@ -22,5 +35,5 @@ export declare class ButtonGroupComponent {
22
35
  */
23
36
  orientation?: 'vertical' | 'horizontal';
24
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sp-button-group", never, { "align": "align"; "iconSpacing": "iconSpacing"; "spacing": "spacing"; "orientation": "orientation"; }, {}, never, ["*"], false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sp-button-group", never, { "align": "align"; "stretch": "stretch"; "iconSpacing": "iconSpacing"; "spacing": "spacing"; "orientation": "orientation"; }, {}, never, ["*"], false, never>;
26
39
  }
@@ -1,3 +1,4 @@
1
+ import { ButtonGroupStretchType } from '../../../button/src/button-group.component';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "../../../common/sapphire-view-encapsulation";
3
4
  /**
@@ -15,6 +16,22 @@ export declare class DialogFooterDirective {
15
16
  * For a custom footer, use {@link DialogFooterDirective spDialogFooter attribute directive}.
16
17
  */
17
18
  export declare class DialogFooterComponent {
19
+ /**
20
+ * Controls stretching of the contents.
21
+ *
22
+ * `none` - the children will not stretch and will respect the alignment set with the align prop.
23
+ *
24
+ * `default` - the children will stretch to take full width. If the children overflow, they will be wrapped vertically.
25
+ *
26
+ * `autoVertical` - same behaviour as `default`, but if there is more than 3 children, they will be wrapped vertically even if they don't overflow.
27
+ *
28
+ * @default "none"
29
+ */
30
+ stretch?: ButtonGroupStretchType;
31
+ /**
32
+ * @default "horizontal"
33
+ */
34
+ orientation?: 'vertical' | 'horizontal';
18
35
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "sp-dialog-footer", never, {}, {}, never, ["*"], false, [{ directive: typeof DialogFooterDirective; inputs: {}; outputs: {}; }]>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "sp-dialog-footer", never, { "stretch": "stretch"; "orientation": "orientation"; }, {}, never, ["*"], false, [{ directive: typeof DialogFooterDirective; inputs: {}; outputs: {}; }]>;
20
37
  }
@@ -14,7 +14,7 @@ export declare class DialogComponent extends ModalBaseComponent {
14
14
  /**
15
15
  * Dialog size, constraining the width of the dialog.
16
16
  */
17
- size: 'small' | 'medium' | 'large';
17
+ size: 'extra-small' | 'small' | 'medium' | 'large';
18
18
  /**
19
19
  * Type of the dialog:
20
20
  * - 'passive': A dialog without footer with actions. Passive dialogs are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.18.1",
3
+ "version": "1.19.1",
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": "^27.0.1",
19
+ "@danske/sapphire-css": "^27.1.1",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "ed8a61f0521fe4e7601d6b962e677cd9e151a401",
22
+ "gitHead": "cd122ead963e96cd3d285da62e66a53ca7bde597",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",