@eui/components 17.3.14 → 17.3.15

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 (26) hide show
  1. package/docs/components/EuiAppSidebarHeaderUserProfileComponent.html +1 -1
  2. package/docs/components/EuiAutocompleteComponent.html +1 -1
  3. package/docs/components/EuiHeaderUserProfileComponent.html +1 -1
  4. package/docs/components/EuiUserProfileCardComponent.html +74 -46
  5. package/docs/components/EuiUserProfileComponent.html +32 -2
  6. package/docs/components/EuiUserProfileMenuComponent.html +1 -1
  7. package/docs/dependencies.html +3 -3
  8. package/docs/index.html +1 -1
  9. package/docs/interfaces/UserProfile.html +396 -0
  10. package/docs/js/menu-wc.js +3 -0
  11. package/docs/js/menu-wc_es5.js +1 -1
  12. package/docs/js/search/search_index.js +2 -2
  13. package/esm2022/eui-autocomplete/eui-autocomplete.component.mjs +3 -3
  14. package/esm2022/layout/eui-app/eui-app-sidebar/sidebar-header-user-profile/sidebar-header-user-profile.component.mjs +1 -1
  15. package/esm2022/layout/eui-header/header-user-profile/header-user-profile.component.mjs +1 -1
  16. package/esm2022/layout/eui-user-profile/user-profile-card/user-profile-card.component.mjs +35 -17
  17. package/esm2022/layout/eui-user-profile/user-profile.component.mjs +11 -3
  18. package/fesm2022/eui-components-eui-autocomplete.mjs +2 -2
  19. package/fesm2022/eui-components-eui-autocomplete.mjs.map +1 -1
  20. package/fesm2022/eui-components-layout.mjs +42 -15
  21. package/fesm2022/eui-components-layout.mjs.map +1 -1
  22. package/layout/eui-user-profile/user-profile-card/user-profile-card.component.d.ts +18 -4
  23. package/layout/eui-user-profile/user-profile-card/user-profile-card.component.d.ts.map +1 -1
  24. package/layout/eui-user-profile/user-profile.component.d.ts +25 -2
  25. package/layout/eui-user-profile/user-profile.component.d.ts.map +1 -1
  26. package/package.json +9 -9
@@ -1,26 +1,40 @@
1
1
  import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
- import { UserService, UserState } from '@eui/core';
3
+ import { UserState } from '@eui/core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class EuiUserProfileCardComponent implements OnInit, OnDestroy {
6
- private userService;
7
6
  get cssClasses(): string;
8
7
  avatarInitials: string;
9
8
  userState: UserState;
9
+ /**
10
+ * Holds the full name of the user and the impersonated user
11
+ */
12
+ fullName: {
13
+ user: string;
14
+ impersonated: string;
15
+ };
16
+ /**
17
+ * If true, the user is online
18
+ * @deprecated This property is not used anymore
19
+ */
10
20
  isOnline: boolean;
11
21
  impersonateLabel: string;
12
22
  showDetailsLabel: string;
13
23
  avatarUrl: string;
14
24
  isShowAvatarInitials: BooleanInput;
25
+ /**
26
+ * If true, the name will be displayed in reverse order (first name, first)
27
+ */
28
+ reverseNameOrder: boolean;
15
29
  showProfileInfo: EventEmitter<void>;
16
30
  closeProfileMenu: EventEmitter<void>;
17
31
  private unsubscribeSubject$;
18
- constructor(userService: UserService);
32
+ private userService;
19
33
  ngOnInit(): void;
20
34
  ngOnDestroy(): void;
21
35
  onShowInfoClick(): void;
22
36
  onClose(): void;
23
37
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiUserProfileCardComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<EuiUserProfileCardComponent, "eui-user-profile-card", never, { "impersonateLabel": { "alias": "impersonateLabel"; "required": false; }; "showDetailsLabel": { "alias": "showDetailsLabel"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "isShowAvatarInitials": { "alias": "isShowAvatarInitials"; "required": false; }; }, { "showProfileInfo": "showProfileInfo"; "closeProfileMenu": "closeProfileMenu"; }, never, never, false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<EuiUserProfileCardComponent, "eui-user-profile-card", never, { "impersonateLabel": { "alias": "impersonateLabel"; "required": false; }; "showDetailsLabel": { "alias": "showDetailsLabel"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "isShowAvatarInitials": { "alias": "isShowAvatarInitials"; "required": false; }; "reverseNameOrder": { "alias": "reverseNameOrder"; "required": false; }; }, { "showProfileInfo": "showProfileInfo"; "closeProfileMenu": "closeProfileMenu"; }, never, never, false, never>;
25
39
  }
26
40
  //# sourceMappingURL=user-profile-card.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-profile-card.component.d.ts","sourceRoot":"","sources":["../../../../layout/eui-user-profile/user-profile-card/user-profile-card.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,MAAM,EAAE,YAAY,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AACnJ,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAiB,MAAM,WAAW,CAAC;;AAIlE,qBAMa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IAuB7D,OAAO,CAAC,WAAW;IAtBvB,IACW,UAAU,IAAI,MAAM,CAE9B;IAED,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,UAAQ;IAEP,gBAAgB,SAAmB;IACnC,gBAAgB,SAA0B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAG3B,oBAAoB,EAAE,YAAY,CAAS;IAEjC,eAAe,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IACzD,gBAAgB,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IAEpE,OAAO,CAAC,mBAAmB,CAAgC;gBAG/C,WAAW,EAAE,WAAW;IAGpC,QAAQ,IAAI,IAAI;IAgBhB,WAAW,IAAI,IAAI;IAKnB,eAAe,IAAI,IAAI;IAIvB,OAAO,IAAI,IAAI;yCAnDN,2BAA2B;2CAA3B,2BAA2B;CAsDvC"}
1
+ {"version":3,"file":"user-profile-card.component.d.ts","sourceRoot":"","sources":["../../../../layout/eui-user-profile/user-profile-card/user-profile-card.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqF,MAAM,EAAE,YAAY,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAC3J,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAA4B,SAAS,EAAiB,MAAM,WAAW,CAAC;;AAI/E,qBAMa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IACjE,IACW,UAAU,IAAI,MAAM,CAE9B;IAED,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD;;;OAGG;IACH,QAAQ,UAAQ;IAEP,gBAAgB,SAAmB;IACnC,gBAAgB,SAA0B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAG3B,oBAAoB,EAAE,YAAY,CAAS;IAC3C;;OAEG;IACM,gBAAgB,UAAS;IAExB,eAAe,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IACzD,gBAAgB,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IAEpE,OAAO,CAAC,mBAAmB,CAAgC;IAC3D,OAAO,CAAC,WAAW,CAAiD;IAEpE,QAAQ,IAAI,IAAI;IA0BhB,WAAW,IAAI,IAAI;IAKnB,eAAe,IAAI,IAAI;IAIvB,OAAO,IAAI,IAAI;yCAtEN,2BAA2B;2CAA3B,2BAA2B;CAyEvC"}
@@ -6,11 +6,30 @@ import { EuiToolbarItemComponent } from '../eui-toolbar';
6
6
  import { EuiUserProfileMenuComponent } from './user-profile-menu/user-profile-menu.component';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "@eui/components/shared";
9
+ /**
10
+ * Represents an extended user profile that includes impersonation capabilities
11
+ * and organizational information.
12
+ * @extends {UserState}
13
+ *
14
+ * When using this interface with UserService, specify it as the generic type parameter:
15
+ * Example: private userService: UserService<UserProfile>
16
+ */
17
+ export interface UserProfile extends UserState {
18
+ /** The profile of another user being impersonated, if applicable */
19
+ impersonatingUser?: UserProfile;
20
+ /** The user's function or role within the system */
21
+ function?: string;
22
+ /** The organization details associated with the user */
23
+ organisation?: {
24
+ /** The unique code identifying the organization */
25
+ code: string;
26
+ };
27
+ }
9
28
  export declare class EuiUserProfileComponent implements OnInit, OnDestroy, AfterContentInit {
10
29
  private userService;
11
30
  baseStatesDirective: BaseStatesDirective;
12
31
  get cssClasses(): string;
13
- userState: UserState;
32
+ userState: UserProfile;
14
33
  isOnline: boolean;
15
34
  avatarInitials: string;
16
35
  toolbarItemParent: EuiToolbarItemComponent;
@@ -26,6 +45,10 @@ export declare class EuiUserProfileComponent implements OnInit, OnDestroy, After
26
45
  isReverse: boolean;
27
46
  hasToggle: boolean;
28
47
  isHeaderUserProfile: boolean;
48
+ /**
49
+ * If true, the name will be displayed in reverse order (first name, first)
50
+ */
51
+ reverseNameOrder: boolean;
29
52
  dropdown: EuiDropdownComponent;
30
53
  hasMenuContent: QueryList<EuiUserProfileMenuComponent>;
31
54
  private unsubscribeSubject$;
@@ -36,7 +59,7 @@ export declare class EuiUserProfileComponent implements OnInit, OnDestroy, After
36
59
  closeDropdown(): void;
37
60
  private getCssClasses;
38
61
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiUserProfileComponent, [{ optional: true; host: true; }, null, null]>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<EuiUserProfileComponent, "eui-user-profile", never, { "welcomeLabel": { "alias": "welcomeLabel"; "required": false; }; "impersonateLabel": { "alias": "impersonateLabel"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "subInfos": { "alias": "subInfos"; "required": false; }; "hasMenu": { "alias": "hasMenu"; "required": false; }; "isShowUserInfos": { "alias": "isShowUserInfos"; "required": false; }; "hasWelcomeLabel": { "alias": "hasWelcomeLabel"; "required": false; }; "isShowAvatarInitials": { "alias": "isShowAvatarInitials"; "required": false; }; "hasTabNavigation": { "alias": "hasTabNavigation"; "required": false; }; "isReverse": { "alias": "isReverse"; "required": false; }; "hasToggle": { "alias": "hasToggle"; "required": false; }; "isHeaderUserProfile": { "alias": "isHeaderUserProfile"; "required": false; }; }, {}, ["hasMenuContent"], ["*"], false, [{ directive: typeof i1.BaseStatesDirective; inputs: { "euiSizeS": "euiSizeS"; "euiInverted": "euiInverted"; }; outputs: {}; }]>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<EuiUserProfileComponent, "eui-user-profile", never, { "welcomeLabel": { "alias": "welcomeLabel"; "required": false; }; "impersonateLabel": { "alias": "impersonateLabel"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "subInfos": { "alias": "subInfos"; "required": false; }; "hasMenu": { "alias": "hasMenu"; "required": false; }; "isShowUserInfos": { "alias": "isShowUserInfos"; "required": false; }; "hasWelcomeLabel": { "alias": "hasWelcomeLabel"; "required": false; }; "isShowAvatarInitials": { "alias": "isShowAvatarInitials"; "required": false; }; "hasTabNavigation": { "alias": "hasTabNavigation"; "required": false; }; "isReverse": { "alias": "isReverse"; "required": false; }; "hasToggle": { "alias": "hasToggle"; "required": false; }; "isHeaderUserProfile": { "alias": "isHeaderUserProfile"; "required": false; }; "reverseNameOrder": { "alias": "reverseNameOrder"; "required": false; }; }, {}, ["hasMenuContent"], ["*"], false, [{ directive: typeof i1.BaseStatesDirective; inputs: { "euiSizeS": "euiSizeS"; "euiInverted": "euiInverted"; }; outputs: {}; }]>;
40
63
  static ngAcceptInputType_hasMenu: unknown;
41
64
  static ngAcceptInputType_isShowUserInfos: unknown;
42
65
  static ngAcceptInputType_hasWelcomeLabel: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"user-profile.component.d.ts","sourceRoot":"","sources":["../../../layout/eui-user-profile/user-profile.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,MAAM,EAAa,SAAS,EAAsC,gBAAgB,EAAgB,SAAS,EAAgE,MAAM,eAAe,CAAC;AACrR,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC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wB"}
1
+ {"version":3,"file":"user-profile.component.d.ts","sourceRoot":"","sources":["../../../layout/eui-user-profile/user-profile.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,MAAM,EAAa,SAAS,EAAsC,gBAAgB,EAAgB,SAAS,EAA2E,MAAM,eAAe,CAAC;AAChS,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;;;AAE9F;;;;;;;GAOG;AACH,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC1C,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,YAAY,CAAC,EAAE;QACX,mDAAmD;QACnD,IAAI,EAAE,MAAM,CAAA;KACf,CAAA;CACJ;AAED,qBAgBa,uBAAwB,YAAW,MAAM,EAAE,SAAS,EAAE,gBAAgB;IAqC3E,OAAO,CAAC,WAAW;IACZ,mBAAmB,EAAE,mBAAmB;IArCnD,IACW,UAAU,IAAI,MAAM,CAE9B;IAED,SAAS,EAAE,WAAW,CAAC;IACvB,QAAQ,UAAQ;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,uBAAuB,CAAC;IAElC,YAAY,SAAa;IACzB,gBAAgB,SAAmB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IAEc,OAAO,UAAS;IAChB,eAAe,UAAQ;IACvB,eAAe,UAAQ;IACvB,oBAAoB,UAAS;IAC7B,gBAAgB,UAAS;IACzB,SAAS,UAAS;IAClB,SAAS,UAAS;IAClB,mBAAmB,UAAS;IACpE;;OAEG;IACM,gBAAgB,UAAS;IAEX,QAAQ,EAAE,oBAAoB,CAAC;IAEtD,cAAc,EAAE,SAAS,CAAC,2BAA2B,CAAC,CAAC;IAEvD,OAAO,CAAC,mBAAmB,CAAgC;gBAGgB,iBAAiB,KAAA,EAChF,WAAW,EAAE,WAAW,EACzB,mBAAmB,EAAE,mBAAmB;IAKnD,QAAQ,IAAI,IAAI;IAgBhB,kBAAkB,IAAI,IAAI;IAU1B,WAAW,IAAI,IAAI;IAKnB,aAAa,IAAI,IAAI;IAIrB,OAAO,CAAC,aAAa;yCA9EZ,uBAAuB;2CAAvB,uBAAuB;sCAqFqtuB,OAAQ;8CAAR,OAAQ;8CAAR,OAAQ;mDAAR,OAAQ;+CAAR,OAAQ;wCAAR,OAAQ;wCAAR,OAAQ;kDAAR,OAAQ;CADhwuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/components",
3
- "version": "17.3.14",
3
+ "version": "17.3.15",
4
4
  "tag": "v17-lts",
5
5
  "description": "eUI components package",
6
6
  "homepage": "https://eui.ecdevops.eu",
@@ -10,8 +10,8 @@
10
10
  "url": "https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui"
11
11
  },
12
12
  "peerDependencies": {
13
- "@eui/core": "17.3.14",
14
- "@eui/base": "17.3.14",
13
+ "@eui/core": "17.3.15",
14
+ "@eui/base": "17.3.15",
15
15
  "@angular/common": "^17.1.0",
16
16
  "@angular/core": "^17.1.0",
17
17
  "@angular/forms": "^17.1.0",
@@ -54,12 +54,6 @@
54
54
  "esm": "./esm2022/eui-alert/eui-components-eui-alert.mjs",
55
55
  "default": "./fesm2022/eui-components-eui-alert.mjs"
56
56
  },
57
- "./eui-all": {
58
- "types": "./eui-all/index.d.ts",
59
- "esm2022": "./esm2022/eui-all/eui-components-eui-all.mjs",
60
- "esm": "./esm2022/eui-all/eui-components-eui-all.mjs",
61
- "default": "./fesm2022/eui-components-eui-all.mjs"
62
- },
63
57
  "./eui-autocomplete": {
64
58
  "types": "./eui-autocomplete/index.d.ts",
65
59
  "esm2022": "./esm2022/eui-autocomplete/eui-components-eui-autocomplete.mjs",
@@ -78,6 +72,12 @@
78
72
  "esm": "./esm2022/eui-badge/eui-components-eui-badge.mjs",
79
73
  "default": "./fesm2022/eui-components-eui-badge.mjs"
80
74
  },
75
+ "./eui-all": {
76
+ "types": "./eui-all/index.d.ts",
77
+ "esm2022": "./esm2022/eui-all/eui-components-eui-all.mjs",
78
+ "esm": "./esm2022/eui-all/eui-components-eui-all.mjs",
79
+ "default": "./fesm2022/eui-components-eui-all.mjs"
80
+ },
81
81
  "./eui-block-content": {
82
82
  "types": "./eui-block-content/index.d.ts",
83
83
  "esm2022": "./esm2022/eui-block-content/eui-components-eui-block-content.mjs",