@momentum-ui/web-components 2.22.4 → 2.22.6

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,6 +1,7 @@
1
1
  import "@/components/icon/Icon";
2
2
  declare const AvatarState: readonly ["active", "rest"];
3
3
  declare const AvatarStyle: readonly ["default", "table"];
4
- declare const AvatarType: readonly ["bot", "group", "self", "typing", "channel-chat", "channel-sms-inbound", "channel-sms-outbound", "channel-email-inbound", "channel-email-outbound", "channel-call", "channel-social", "channel-callback", "channel-headset", "channel-campaign", "channel-emoji", "channel-webex", "channel-fb-messenger", "channel-apple-chat", "channel-line", "channel-twitter-x", "channel-viber", "channel-whats-app", "channel-we-chat", "channel-spam", "channel-custom", ""];
4
+ declare const AvatarChannelType: readonly ["channel-chat", "channel-sms-inbound", "channel-sms-outbound", "channel-email-inbound", "channel-email-outbound", "channel-call", "channel-call-inbound", "channel-social", "channel-callback", "channel-headset", "channel-campaign", "channel-emoji", "channel-webex", "channel-fb-messenger", "channel-facebook", "channel-apple-chat", "channel-line", "channel-twitter-x", "channel-viber", "channel-whats-app", "channel-we-chat", "channel-spam", "channel-custom"];
5
+ declare const AvatarType: readonly ["bot", "group", "self", "typing", ""];
5
6
  declare const AvatarSize: number[];
6
- export { AvatarSize, AvatarState, AvatarStyle, AvatarType };
7
+ export { AvatarChannelType, AvatarSize, AvatarState, AvatarStyle, AvatarType };
@@ -9,11 +9,12 @@ import "@/components/avatar/Presence";
9
9
  import "@/components/icon/Icon";
10
10
  import "@/components/loading/Loading";
11
11
  import { LitElement, PropertyValues } from "lit-element";
12
- import { AvatarSize, AvatarState, AvatarStyle, AvatarType } from "./Avatar.constants";
12
+ import { AvatarChannelType, AvatarSize, AvatarState, AvatarStyle, AvatarType } from "./Avatar.constants";
13
13
  import { PresenceType } from "./Presence.utils";
14
14
  export declare namespace Avatar {
15
15
  type PresenceState = (typeof PresenceType)[number];
16
- type Type = (typeof AvatarType)[number] | PresenceState;
16
+ type ChannelType = (typeof AvatarChannelType)[number];
17
+ type Type = (typeof AvatarType)[number] | PresenceState | ChannelType;
17
18
  type Size = (typeof AvatarSize)[number];
18
19
  type State = (typeof AvatarState)[number];
19
20
  type Style = (typeof AvatarStyle)[number];
@@ -81,7 +81,7 @@ export declare namespace Grabber {
81
81
  visible: boolean;
82
82
  };
83
83
  private get grabberContainerClassMap();
84
- get iconName(): "arrow-up-bold" | "arrow-down-bold" | "list-menu-bold" | "arrow-left-bold" | "arrow-right-bold";
84
+ get iconName(): "arrow-up-bold" | "arrow-down-bold" | "arrow-left-bold" | "arrow-right-bold" | "list-menu-bold";
85
85
  get iconSize(): "10" | "12";
86
86
  render(): import("lit-element").TemplateResult;
87
87
  }
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
+ import "@/components/avatar/Avatar";
8
9
  import "@/components/badge/Badge";
9
10
  import "@/components/icon/Icon";
10
11
  import { LitElement } from "lit-element";
@@ -22,6 +23,7 @@ export declare namespace TaskItem {
22
23
  customAriaLabel: string;
23
24
  iconSrc: string;
24
25
  tabIndexForContainer: string;
26
+ isRestyle: boolean;
25
27
  /**
26
28
  * @deprecated Use `itemTitle` instead.
27
29
  * Using title may cause an unwanted tooltip.
@@ -37,7 +39,10 @@ export declare namespace TaskItem {
37
39
  private displayTitle;
38
40
  private titleValue;
39
41
  private itemTitleValue;
40
- renderTaskType: () => import("lit-element").TemplateResult;
42
+ private getChannelAvatar;
43
+ private get taskTypeTemplate();
44
+ private get renderTaskType();
45
+ renderLegacyTaskType: () => import("lit-element").TemplateResult;
41
46
  renderStatus: () => import("lit-element").TemplateResult;
42
47
  handleClick(event: MouseEvent): void;
43
48
  handleKeyDown(event: KeyboardEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.22.4",
3
+ "version": "2.22.6",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",