@danske/sapphire-angular 1.21.1 → 1.24.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,5 +1,8 @@
1
1
  export * from './src/menu.component';
2
2
  export * from './src/menu.module';
3
3
  export * from './src/menu-item.component';
4
+ export * from './src/menu-primary-text.component';
5
+ export * from './src/menu-secondary-text.component';
6
+ export * from './src/menu-icon.component';
4
7
  export * from './src/menu-section.component';
5
8
  export * from './src/menu-trigger.directive';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../common/sapphire-view-encapsulation";
3
+ /**
4
+ * Icon container of a listbox option.
5
+ */
6
+ export declare class MenuIconComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuIconComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuIconComponent, "sp-menu-item-icon", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
9
+ }
@@ -8,5 +8,5 @@ export declare class MenuItemComponent {
8
8
  /** Whether the item should be styled as danger item */
9
9
  danger: BooleanInput;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "sp-menu-item", never, { "disabled": "disabled"; "danger": "danger"; }, {}, never, ["*"], false, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "sp-menu-item", never, { "disabled": "disabled"; "danger": "danger"; }, {}, never, ["sp-menu-icon", "sp-menu-primary-text", "*", "sp-menu-secondary-text"], false, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }, { directive: typeof i2.UseComponentStyles; inputs: {}; outputs: {}; }]>;
12
12
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Primary text of a listbox option. Useful when the option contains other parts
4
+ * like secondary text or icon.
5
+ */
6
+ export declare class MenuPrimaryTextComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuPrimaryTextComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuPrimaryTextComponent, "sp-menu-primary-text", never, {}, {}, never, ["*"], false, never>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../common/sapphire-view-encapsulation";
3
+ /**
4
+ * Secondary text of a listbox option.
5
+ */
6
+ export declare class MenuSecondaryTextComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuSecondaryTextComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuSecondaryTextComponent, "sp-menu-secondary-text", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStyles; inputs: {}; outputs: {}; }]>;
9
+ }
@@ -1,13 +1,16 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./menu.component";
3
3
  import * as i2 from "./menu-item.component";
4
- import * as i3 from "./menu-section.component";
5
- import * as i4 from "./menu-trigger.directive";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/cdk/menu";
8
- import * as i7 from "../../common/sapphire-view-encapsulation";
4
+ import * as i3 from "./menu-icon.component";
5
+ import * as i4 from "./menu-primary-text.component";
6
+ import * as i5 from "./menu-secondary-text.component";
7
+ import * as i6 from "./menu-section.component";
8
+ import * as i7 from "./menu-trigger.directive";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/cdk/menu";
11
+ import * as i10 from "../../common/sapphire-view-encapsulation";
9
12
  export declare class SapphireMenuModule {
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SapphireMenuModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireMenuModule, [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.MenuSectionComponent, typeof i4.MenuTriggerDirective], [typeof i5.CommonModule, typeof i6.CdkMenuModule, typeof i7.UseComponentStyles], [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.MenuSectionComponent, typeof i4.MenuTriggerDirective]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireMenuModule, [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.MenuIconComponent, typeof i4.MenuPrimaryTextComponent, typeof i5.MenuSecondaryTextComponent, typeof i6.MenuSectionComponent, typeof i7.MenuTriggerDirective], [typeof i8.CommonModule, typeof i9.CdkMenuModule, typeof i10.UseComponentStyles], [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.MenuIconComponent, typeof i4.MenuPrimaryTextComponent, typeof i5.MenuSecondaryTextComponent, typeof i6.MenuSectionComponent, typeof i7.MenuTriggerDirective]>;
12
15
  static ɵinj: i0.ɵɵInjectorDeclaration<SapphireMenuModule>;
13
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-angular",
3
- "version": "1.21.1",
3
+ "version": "1.24.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",
@@ -9,17 +9,17 @@
9
9
  "directory": "build"
10
10
  },
11
11
  "peerDependencies": {
12
- "@angular/cdk": "^15.1.3 || ^16.0.0",
13
- "@angular/common": "^15.0.0 || ^16.0.0",
14
- "@angular/core": "^15.0.0 || ^16.0.0",
15
- "@angular/forms": "^15.0.0 || ^16.0.0",
12
+ "@angular/cdk": "^15.1.3 || ^16.0.0 || ^17.0.0 || ^18.0.0",
13
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
14
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
15
+ "@angular/forms": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
16
16
  "@danske/sapphire-icons": "^1.0.2"
17
17
  },
18
18
  "dependencies": {
19
19
  "@danske/sapphire-css": "^31.0.0",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
- "gitHead": "ac09b3b908a8558628aaab2aabd701c18c3f5a11",
22
+ "gitHead": "d759e208112a7033996afa77c5c8f3c866b506df",
23
23
  "es2020": "fesm2020/danske-sapphire-angular.mjs",
24
24
  "esm2020": "esm2020/danske-sapphire-angular.mjs",
25
25
  "fesm2020": "fesm2020/danske-sapphire-angular.mjs",