@inera/ids-angular 1.11.2 → 1.12.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.
Files changed (45) hide show
  1. package/bundles/inera-ids-angular.umd.js +105 -50
  2. package/bundles/inera-ids-angular.umd.js.map +1 -1
  3. package/esm2015/lib/classes/link/IDLink.js +9 -11
  4. package/esm2015/lib/classes/link/IDLinkFunction.js +7 -7
  5. package/esm2015/lib/classes/link/IDLinkProp.js +2 -0
  6. package/esm2015/lib/classes/link/IDLinkRoute.js +10 -13
  7. package/esm2015/lib/classes/link/IDLinkWeb.js +8 -10
  8. package/esm2015/lib/components/agent/agent.component.js +2 -2
  9. package/esm2015/lib/components/alert/alert.component.js +1 -1
  10. package/esm2015/lib/components/alert-global/alert-global.component.js +1 -1
  11. package/esm2015/lib/components/card/card.component.js +4 -4
  12. package/esm2015/lib/components/expandable/expandable.component.js +29 -0
  13. package/esm2015/lib/components/expandable/expandable.module.js +22 -0
  14. package/esm2015/lib/components/footer/footer.component.js +11 -2
  15. package/esm2015/lib/components/form/select-multiple/select-multiple.component.js +1 -1
  16. package/esm2015/lib/components/form/spinner/spinner.component.js +1 -1
  17. package/esm2015/lib/components/grid/column/column.component.js +1 -1
  18. package/esm2015/lib/components/header/header.component.js +5 -2
  19. package/esm2015/lib/components/icon/icon.component.js +5 -2
  20. package/esm2015/lib/components/link/link.component.js +1 -1
  21. package/esm2015/lib/components/tabs/tab/tab.component.js +1 -1
  22. package/esm2015/lib/internals/anchor.component.js +2 -2
  23. package/esm2015/public-api.js +5 -1
  24. package/fesm2015/inera-ids-angular.js +99 -45
  25. package/fesm2015/inera-ids-angular.js.map +1 -1
  26. package/lib/classes/link/IDLink.d.ts +3 -4
  27. package/lib/classes/link/IDLinkFunction.d.ts +4 -4
  28. package/lib/classes/link/IDLinkProp.d.ts +12 -0
  29. package/lib/classes/link/IDLinkRoute.d.ts +4 -7
  30. package/lib/classes/link/IDLinkWeb.d.ts +4 -5
  31. package/lib/components/agent/agent.component.d.ts +3 -3
  32. package/lib/components/alert/alert.component.d.ts +5 -5
  33. package/lib/components/alert-global/alert-global.component.d.ts +3 -3
  34. package/lib/components/expandable/expandable.component.d.ts +10 -0
  35. package/lib/components/expandable/expandable.module.d.ts +8 -0
  36. package/lib/components/footer/footer.component.d.ts +8 -5
  37. package/lib/components/form/select-multiple/select-multiple.component.d.ts +3 -3
  38. package/lib/components/form/spinner/spinner.component.d.ts +2 -2
  39. package/lib/components/grid/column/column.component.d.ts +8 -8
  40. package/lib/components/header/header.component.d.ts +9 -8
  41. package/lib/components/icon/icon.component.d.ts +9 -8
  42. package/lib/components/link/link.component.d.ts +2 -2
  43. package/lib/components/tabs/tab/tab.component.d.ts +2 -2
  44. package/package.json +2 -2
  45. package/public-api.d.ts +3 -0
@@ -1,8 +1,7 @@
1
+ import { IDLinkProps } from "./IDLinkProp";
1
2
  export declare abstract class IDLink {
2
- private _label;
3
- private _id?;
4
- private _classes?;
5
- constructor(_label: string, _id?: string | undefined, _classes?: string[] | undefined);
3
+ protected _props: IDLinkProps;
4
+ constructor(_props: IDLinkProps);
6
5
  get label(): string;
7
6
  get id(): string | undefined;
8
7
  get classes(): string[] | undefined;
@@ -1,8 +1,8 @@
1
1
  import { IDLink } from "./IDLink";
2
+ import { IDLinkProps } from "./IDLinkProp";
2
3
  export declare class IDLinkFunction extends IDLink {
3
- private _action;
4
- constructor(_label: string, _action: () => any, _id?: string, _classes?: string[]);
5
- get action(): (() => any);
6
- set action(action: (() => any));
4
+ constructor(_props: IDLinkProps);
5
+ get action(): (() => any) | undefined;
6
+ set action(action: (() => any) | undefined);
7
7
  click(): void;
8
8
  }
@@ -0,0 +1,12 @@
1
+ import { Router } from "@angular/router";
2
+ export interface IDLinkProps {
3
+ label: string;
4
+ id?: string;
5
+ classes?: string[];
6
+ action?: () => any;
7
+ route?: string;
8
+ queries?: any;
9
+ router?: Router;
10
+ url?: string;
11
+ target?: string;
12
+ }
@@ -1,12 +1,9 @@
1
1
  import { IDLink } from "./IDLink";
2
- import { Router } from '@angular/router';
2
+ import { IDLinkProps } from "./IDLinkProp";
3
3
  export declare class IDLinkRoute extends IDLink {
4
- private _route;
5
- private _queries;
6
- private router?;
7
- constructor(_label: string, _route: string, _queries?: any, router?: Router | undefined, _id?: string, _classes?: string[]);
8
- get route(): string;
9
- set route(route: string);
4
+ constructor(_props: IDLinkProps);
5
+ get route(): string | undefined;
6
+ set route(route: string | undefined);
10
7
  get queries(): any;
11
8
  set queries(_queries: any);
12
9
  click(): void;
@@ -1,11 +1,10 @@
1
1
  import { IDLink } from "./IDLink";
2
+ import { IDLinkProps } from "./IDLinkProp";
2
3
  export declare class IDLinkWeb extends IDLink {
3
- private _url;
4
- private _target?;
5
- constructor(_label: string, _url: string, _target?: string | undefined, _id?: string, _classes?: string[]);
4
+ constructor(_props: IDLinkProps);
6
5
  get target(): string | undefined;
7
6
  set target(target: string | undefined);
8
- get url(): string;
9
- set url(url: string);
7
+ get url(): string | undefined;
8
+ set url(url: string | undefined);
10
9
  click(): void;
11
10
  }
@@ -3,9 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export declare class IDAgentComponent {
4
4
  constructor();
5
5
  expanded: boolean;
6
- headline: String;
7
- showText: String;
8
- hideText: String;
6
+ headline: string;
7
+ showText: string;
8
+ hideText: string;
9
9
  didToggleExpansion: EventEmitter<boolean>;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<IDAgentComponent, never>;
11
11
  static ɵcmp: i0.ɵɵComponentDeclaration<IDAgentComponent, "id-agent", never, { "expanded": "expanded"; "headline": "headline"; "showText": "showText"; "hideText": "hideText"; }, { "didToggleExpansion": "didToggleExpansion"; }, never, ["*"]>;
@@ -3,11 +3,11 @@ import * as i0 from "@angular/core";
3
3
  export declare class IDAlertComponent {
4
4
  constructor();
5
5
  dismissible: boolean;
6
- headline: String;
7
- live: String;
8
- type: String;
9
- srCloseText: String;
10
- srIconTitle: String;
6
+ headline: string;
7
+ live: string;
8
+ type: string;
9
+ srCloseText: string;
10
+ srIconTitle: string;
11
11
  closed: EventEmitter<boolean>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<IDAlertComponent, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<IDAlertComponent, "id-alert", never, { "dismissible": "dismissible"; "headline": "headline"; "live": "live"; "type": "type"; "srCloseText": "srCloseText"; "srIconTitle": "srIconTitle"; }, { "closed": "closed"; }, never, ["*"]>;
@@ -3,9 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export declare class IDAlertGlobalComponent {
4
4
  constructor();
5
5
  expanded: boolean;
6
- headline: String;
7
- showText: String;
8
- hideText: String;
6
+ headline: string;
7
+ showText: string;
8
+ hideText: string;
9
9
  didToggleExpansion: EventEmitter<boolean>;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<IDAlertGlobalComponent, never>;
11
11
  static ɵcmp: i0.ɵɵComponentDeclaration<IDAlertGlobalComponent, "id-alert-global", never, { "expanded": "expanded"; "headline": "headline"; "showText": "showText"; "hideText": "hideText"; }, { "didToggleExpansion": "didToggleExpansion"; }, never, ["*"]>;
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class IDExpandableComponent {
3
+ constructor();
4
+ borderless: boolean;
5
+ expanded: boolean;
6
+ headline: string;
7
+ variation: '1' | '2';
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<IDExpandableComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<IDExpandableComponent, "id-expandable", never, { "borderless": "borderless"; "expanded": "expanded"; "headline": "headline"; "variation": "variation"; }, {}, never, ["*"]>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import '@inera/ids-core/components/expandable/register';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./expandable.component";
4
+ export declare class IDExpandableModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IDExpandableModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IDExpandableModule, [typeof i1.IDExpandableComponent], never, [typeof i1.IDExpandableComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<IDExpandableModule>;
8
+ }
@@ -2,11 +2,14 @@ import { IDMobileMenuItem } from '../../classes/mobile/MobileMenuItem';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class IDFooterComponent {
4
4
  constructor();
5
- type: String;
6
- headline: String;
7
- servicename: String;
8
- subheadline: String;
5
+ type: string;
6
+ headline: string;
7
+ servicename: string;
8
+ subheadline: string;
9
+ linkcol1: string;
10
+ linkcol2: string;
11
+ linkcol3: string;
9
12
  mobileMenuItems: IDMobileMenuItem[] | undefined;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<IDFooterComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<IDFooterComponent, "id-footer", never, { "type": "type"; "headline": "headline"; "servicename": "servicename"; "subheadline": "subheadline"; "mobileMenuItems": "mobileMenuItems"; }, {}, never, ["*"]>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<IDFooterComponent, "id-footer", never, { "type": "type"; "headline": "headline"; "servicename": "servicename"; "subheadline": "subheadline"; "linkcol1": "linkcol1"; "linkcol2": "linkcol2"; "linkcol3": "linkcol3"; "mobileMenuItems": "mobileMenuItems"; }, {}, never, ["*"]>;
12
15
  }
@@ -1,9 +1,9 @@
1
1
  import { IDFormBase } from '../base/IDFormBase';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class IDSelectMultipleComponent extends IDFormBase {
4
- label: String | undefined;
5
- errorMessage: String | undefined;
6
- placeholder: String;
4
+ label: string | undefined;
5
+ errorMessage: string | undefined;
6
+ placeholder: string;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<IDSelectMultipleComponent, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<IDSelectMultipleComponent, "id-select-multiple", never, { "label": "label"; "errorMessage": "errorMessage"; "placeholder": "placeholder"; }, {}, never, ["*"]>;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IDSpinnerComponent {
3
- srtext: String | undefined;
4
- live: String;
3
+ srtext: string | undefined;
4
+ live: string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<IDSpinnerComponent, never>;
6
6
  static ɵcmp: i0.ɵɵComponentDeclaration<IDSpinnerComponent, "id-spinner", never, { "srtext": "srtext"; "live": "live"; }, {}, never, ["*"]>;
7
7
  }
@@ -2,14 +2,14 @@ import { ElementRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class IDColumnComponent {
4
4
  private _elementRef;
5
- cols: String;
6
- offset: String | null;
7
- m: String;
8
- mOffset: String | null;
9
- s: String;
10
- sOffset: String | null;
11
- align: String;
12
- style: String | null;
5
+ cols: string;
6
+ offset: string | null;
7
+ m: string;
8
+ mOffset: string | null;
9
+ s: string;
10
+ sOffset: string | null;
11
+ align: string;
12
+ style: string | null;
13
13
  constructor(_elementRef: ElementRef);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<IDColumnComponent, never>;
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<IDColumnComponent, "id-col", never, { "cols": "cols"; "offset": "offset"; "m": "m"; "mOffset": "mOffset"; "s": "s"; "sOffset": "sOffset"; "align": "align"; "style": "style"; }, {}, never, ["*"]>;
@@ -6,16 +6,17 @@ import { IDMobileMenuItem } from '../../classes/mobile/MobileMenuItem';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class IDHeaderComponent {
8
8
  constructor();
9
- type: String;
10
- brandText: String;
11
- brandTextTop: String;
12
- brandTextBottom: String;
9
+ type: string;
10
+ brandText: string;
11
+ brandTextTop: string;
12
+ brandTextBottom: string;
13
+ mobileMenuText: string;
13
14
  hideRegionPicker: boolean;
14
15
  unresponsive: boolean;
15
16
  hideBrand: boolean;
16
- pickRegionText: String;
17
- regionIcon: String | undefined;
18
- srLogoLabel: String;
17
+ pickRegionText: string;
18
+ regionIcon: string | undefined;
19
+ srLogoLabel: string;
19
20
  items: IDHeaderItem[] | undefined;
20
21
  avatar: IDHeaderAvatar | undefined;
21
22
  navItems: IDHeaderNavItem[] | undefined;
@@ -23,5 +24,5 @@ export declare class IDHeaderComponent {
23
24
  mobileMenuItems: IDMobileMenuItem[] | undefined;
24
25
  didToggleRegion: EventEmitter<boolean>;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<IDHeaderComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<IDHeaderComponent, "id-header", never, { "type": "type"; "brandText": "brandText"; "brandTextTop": "brandTextTop"; "brandTextBottom": "brandTextBottom"; "hideRegionPicker": "hideRegionPicker"; "unresponsive": "unresponsive"; "hideBrand": "hideBrand"; "pickRegionText": "pickRegionText"; "regionIcon": "regionIcon"; "srLogoLabel": "srLogoLabel"; "items": "items"; "avatar": "avatar"; "navItems": "navItems"; "mobileItems": "mobileItems"; "mobileMenuItems": "mobileMenuItems"; }, { "didToggleRegion": "didToggleRegion"; }, never, ["[avatar]", "*", "[avatarMobile]"]>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<IDHeaderComponent, "id-header", never, { "type": "type"; "brandText": "brandText"; "brandTextTop": "brandTextTop"; "brandTextBottom": "brandTextBottom"; "mobileMenuText": "mobileMenuText"; "hideRegionPicker": "hideRegionPicker"; "unresponsive": "unresponsive"; "hideBrand": "hideBrand"; "pickRegionText": "pickRegionText"; "regionIcon": "regionIcon"; "srLogoLabel": "srLogoLabel"; "items": "items"; "avatar": "avatar"; "navItems": "navItems"; "mobileItems": "mobileItems"; "mobileMenuItems": "mobileMenuItems"; }, { "didToggleRegion": "didToggleRegion"; }, never, ["[avatar]", "*", "[avatarMobile]"]>;
27
28
  }
@@ -1,14 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IDIconComponent {
3
3
  constructor();
4
- name: String | undefined;
5
- color: String | undefined;
6
- color2: String | undefined;
7
- colorpreset: String | undefined;
8
- title: String | undefined;
4
+ name: string | undefined;
5
+ rotate: string | undefined;
6
+ color: string | undefined;
7
+ color2: string | undefined;
8
+ colorpreset: string | undefined;
9
+ title: string | undefined;
9
10
  size: 'm' | 's' | 'xs';
10
- width: String | undefined;
11
- height: String | undefined;
11
+ width: string | undefined;
12
+ height: string | undefined;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<IDIconComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<IDIconComponent, "id-icon", never, { "name": "name"; "color": "color"; "color2": "color2"; "colorpreset": "colorpreset"; "title": "title"; "size": "size"; "width": "width"; "height": "height"; }, {}, never, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<IDIconComponent, "id-icon", never, { "name": "name"; "rotate": "rotate"; "color": "color"; "color2": "color2"; "colorpreset": "colorpreset"; "title": "title"; "size": "size"; "width": "width"; "height": "height"; }, {}, never, never>;
14
15
  }
@@ -12,8 +12,8 @@ export declare class IDLinkComponent {
12
12
  padding: string | null;
13
13
  outline: string | null;
14
14
  block: Boolean;
15
- color: String | undefined;
16
- size: String | undefined;
15
+ color: string | undefined;
16
+ size: string | undefined;
17
17
  activeicon: Boolean;
18
18
  external: Boolean;
19
19
  slot: string | undefined;
@@ -2,8 +2,8 @@ import { ElementRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class IDTabComponent {
4
4
  private elementRef;
5
- label: String;
6
- icon: String;
5
+ label: string;
6
+ icon: string;
7
7
  selected: Boolean;
8
8
  constructor(elementRef: ElementRef<HTMLElement>);
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<IDTabComponent, never>;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@inera/ids-angular",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "*",
6
6
  "@angular/core": "*",
7
- "@inera/ids-core": "1.11.x"
7
+ "@inera/ids-core": "1.12.x"
8
8
  },
9
9
  "publishConfig": {
10
10
  "access": "public"
package/public-api.d.ts CHANGED
@@ -17,6 +17,8 @@ export * from './lib/components/date-label/date-label.module';
17
17
  export * from './lib/components/dialog/dialog.component';
18
18
  export * from './lib/components/dialog/dialog.module';
19
19
  export * from './lib/components/dialog/actions/dialog-actions.component';
20
+ export * from './lib/components/expandable/expandable.component';
21
+ export * from './lib/components/expandable/expandable.module';
20
22
  export * from './lib/classes/icon/IDIcon';
21
23
  export * from './lib/classes/icon/IDIconProps';
22
24
  export * from './lib/components/icon/icon.component';
@@ -53,6 +55,7 @@ export * from './lib/components/grid/container/container.module';
53
55
  export * from './lib/components/link/link.component';
54
56
  export * from './lib/components/link/link.module';
55
57
  export * from './lib/classes/link/IDLink';
58
+ export * from './lib/classes/link/IDLinkProp';
56
59
  export * from './lib/classes/link/IDLinkFunction';
57
60
  export * from './lib/classes/link/IDLinkRoute';
58
61
  export * from './lib/classes/link/IDLinkWeb';