@momentum-ui/web-components 2.12.5 → 2.13.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.
- package/dist/chunks/md-10.js +1 -1
- package/dist/chunks/md-12.js +1 -1
- package/dist/chunks/md-13.js +1 -1
- package/dist/chunks/md-15.js +1 -1
- package/dist/chunks/md-19.js +1 -1
- package/dist/chunks/md-2.js +1 -1
- package/dist/chunks/md-23.js +39 -21
- package/dist/chunks/md-27.js +1 -1
- package/dist/chunks/md-29.js +1 -1
- package/dist/chunks/md-30.js +1 -1
- package/dist/chunks/md-37.js +1 -1
- package/dist/chunks/md-38.js +1 -1
- package/dist/chunks/md-40.js +1 -1
- package/dist/chunks/md-41.js +1 -1
- package/dist/chunks/md-43.js +1 -1
- package/dist/chunks/md-44.js +1 -1
- package/dist/chunks/md-45.js +1 -1
- package/dist/chunks/md-46.js +1 -1
- package/dist/chunks/md-47.js +1 -1
- package/dist/chunks/md-49.js +10 -10
- package/dist/chunks/md-53.js +1 -1
- package/dist/chunks/md-58.js +1 -1
- package/dist/chunks/md-59.js +1 -1
- package/dist/chunks/md-6.js +1 -1
- package/dist/chunks/md-64.js +1 -1
- package/dist/chunks/md-65.js +1 -1
- package/dist/chunks/md-69.js +1 -1
- package/dist/chunks/md-7.js +2 -2
- package/dist/chunks/md-70.js +1 -1
- package/dist/chunks/md-71.js +1 -1
- package/dist/chunks/md-77.js +1 -1
- package/dist/chunks/md-8.js +1 -1
- package/dist/chunks/md-80.js +1 -1
- package/dist/chunks/md-81.js +1 -1
- package/dist/chunks/md-82.js +4 -4
- package/dist/chunks/md-84.js +1 -1
- package/dist/chunks/md-9.js +1 -1
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-badge-entry.js +1 -1
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-datepicker-entry.js +1 -1
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +1 -1
- package/dist/comp/md-help-text-entry.js +1 -1
- package/dist/comp/md-label-entry.js +1 -1
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-menu-item-entry.js +1 -1
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-spinner-entry.js +1 -1
- package/dist/comp/md-tab-entry.js +1 -1
- package/dist/comp/md-theme-entry.js +1 -1
- package/dist/index-entry.js +18 -2
- package/dist/types/components/avatar/Avatar.constants.d.ts +5 -0
- package/dist/types/components/avatar/Avatar.d.ts +10 -3
- package/dist/types/components/avatar/CompositeAvatar.d.ts +1 -1
- package/dist/types/components/avatar/Presence.d.ts +20 -0
- package/dist/types/components/avatar/Presence.utils.d.ts +7 -0
- package/dist/types/components/grabber/Grabber.d.ts +44 -0
- package/dist/types/components/icon/Icon.d.ts +1 -1
- package/dist/types/components/theme/Theme.d.ts +1 -1
- package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/index.d.ts +3 -2
- package/package.json +4 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "@/components/icon/Icon";
|
|
2
|
+
declare const AvatarType: readonly ["active", "away", "busy", "bot", "call", "dnd", "group", "inactive", "meeting", "ooo", "on-mobile", "on-device", "on-hold", "presenting", "self", "schedule", "typing", "engaged", "idle", "rona", "quiet-hours", ""];
|
|
3
|
+
declare const AvatarSize: number[];
|
|
4
|
+
declare const AVATAR_PRESENCE_ICON_SIZE_MAPPING: Record<number, number>;
|
|
5
|
+
export { AvatarType, AvatarSize, AVATAR_PRESENCE_ICON_SIZE_MAPPING };
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import "@/components/icon/Icon";
|
|
9
9
|
import "@/components/loading/Loading";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import "@/components/avatar/Presence";
|
|
11
|
+
import { LitElement, PropertyValues } from "lit-element";
|
|
12
|
+
import { AvatarSize, AvatarType } from "./Avatar.constants";
|
|
13
13
|
export declare namespace Avatar {
|
|
14
14
|
type Type = typeof AvatarType[number];
|
|
15
15
|
type Size = typeof AvatarSize[number];
|
|
@@ -22,11 +22,18 @@ export declare namespace Avatar {
|
|
|
22
22
|
decrypting: boolean;
|
|
23
23
|
iconName: string;
|
|
24
24
|
type: Type;
|
|
25
|
+
newMomentum: boolean;
|
|
26
|
+
typing: boolean;
|
|
25
27
|
size: Size;
|
|
26
28
|
hasNotification: boolean;
|
|
27
29
|
private imageLoaded;
|
|
28
30
|
private imageErrored;
|
|
31
|
+
presenceColor: string;
|
|
32
|
+
presenceIcon: string;
|
|
33
|
+
isCircularWrapper: boolean;
|
|
29
34
|
static get styles(): import("lit-element").CSSResult[];
|
|
35
|
+
firstUpdated(): void;
|
|
36
|
+
updated(changedProperties: PropertyValues): void;
|
|
30
37
|
private get avatarClassMap();
|
|
31
38
|
private get avatarLetterClassMap();
|
|
32
39
|
private get avatarStyleMap();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { LitElement } from "lit-element";
|
|
9
|
-
import { AvatarSize } from "./Avatar";
|
|
9
|
+
import { AvatarSize } from "./Avatar.constants";
|
|
10
10
|
export declare namespace CompositeAvatar {
|
|
11
11
|
type Size = typeof AvatarSize[number];
|
|
12
12
|
class ELEMENT extends LitElement {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "@/components/icon/Icon";
|
|
2
|
+
import { LitElement } from "lit-element";
|
|
3
|
+
import { AvatarSize } from "./Avatar.constants";
|
|
4
|
+
export declare namespace Presence {
|
|
5
|
+
type Size = typeof AvatarSize[number];
|
|
6
|
+
class ELEMENT extends LitElement {
|
|
7
|
+
name: string;
|
|
8
|
+
size: Size;
|
|
9
|
+
title: string;
|
|
10
|
+
color: string;
|
|
11
|
+
isCircularWrapper: boolean;
|
|
12
|
+
static get styles(): import("lit-element").CSSResult[];
|
|
13
|
+
render(): import("lit-element").TemplateResult;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
"md-presence": Presence.ELEMENT;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Cisco Systems, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import "@/components/icon/Icon";
|
|
9
|
+
import { LitElement } from "lit-element";
|
|
10
|
+
export declare namespace Grabber {
|
|
11
|
+
const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
|
|
12
|
+
export class ELEMENT extends ELEMENT_base {
|
|
13
|
+
label: string;
|
|
14
|
+
checkedLabel: string;
|
|
15
|
+
hovered: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
checked: boolean;
|
|
18
|
+
visible: boolean;
|
|
19
|
+
alignment: "leading" | "trailing" | "top" | "bottom";
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
static get styles(): import("lit-element").CSSResult[];
|
|
23
|
+
toggleGrabber(): void;
|
|
24
|
+
handleKeyDown(e: KeyboardEvent): void;
|
|
25
|
+
handleMouseEnter(): void;
|
|
26
|
+
handleMouseLeave(): void;
|
|
27
|
+
dispatchHoverEvent(): void;
|
|
28
|
+
get collapsed(): boolean;
|
|
29
|
+
get grabberClassMap(): {
|
|
30
|
+
[x: string]: boolean | "top" | "bottom" | "leading" | "trailing";
|
|
31
|
+
"md-grabber--active": boolean;
|
|
32
|
+
"md-grabber--disabled": boolean;
|
|
33
|
+
visible: boolean;
|
|
34
|
+
};
|
|
35
|
+
get iconName(): "arrow-down-optical_12" | "arrow-left-optical_12" | "arrow-right-optical_12" | "arrow-up-optical_12";
|
|
36
|
+
render(): import("lit-element").TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
"md-grabber": Grabber.ELEMENT;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { LitElement } from "lit-element";
|
|
9
9
|
import "@/components/button/Button";
|
|
10
|
-
export declare const iconSize: readonly ["16", "20", "36", "56", 16, 20, 36, 56];
|
|
10
|
+
export declare const iconSize: readonly ["14", "16", "18", "20", "28", "36", "56", 14, 16, 18, 20, 28, 36, 56];
|
|
11
11
|
export declare const iconType: readonly ["", "white"];
|
|
12
12
|
export declare namespace Icon {
|
|
13
13
|
type Size = typeof iconSize[number];
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { TooltipEvent } from "../tooltip/Tooltip";
|
|
9
8
|
import { LitElement, PropertyValues } from "lit-element";
|
|
9
|
+
import { TooltipEvent } from "../tooltip/Tooltip";
|
|
10
10
|
declare global {
|
|
11
11
|
interface Window {
|
|
12
12
|
ShadyCSS: {
|
|
@@ -36,7 +36,7 @@ export declare namespace TimePicker {
|
|
|
36
36
|
handleTimeBlur(event: CustomEvent, unit: TimePicker.TimeUnit): void;
|
|
37
37
|
static get styles(): import("lit-element").CSSResult[];
|
|
38
38
|
formatTimeUnit: (unit: TimePicker.TimeUnit) => void;
|
|
39
|
-
messageType: (isValid: boolean) => "" | "
|
|
39
|
+
messageType: (isValid: boolean) => "error" | "";
|
|
40
40
|
generateTimeBox: (unit: TimePicker.TimeUnit) => import("lit-element").TemplateResult;
|
|
41
41
|
generateAmPmComboBox: () => import("lit-element").TemplateResult;
|
|
42
42
|
render(): import("lit-element").TemplateResult;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -37,9 +37,10 @@ export { DraggableItem } from "./components/draggable/DraggableItem";
|
|
|
37
37
|
export { Dropdown } from "./components/dropdown/Dropdown";
|
|
38
38
|
export { EditableTextfield } from "./components/editable-textfield/EditableTextfield";
|
|
39
39
|
export { Favorite } from "./components/favorite/Favorite";
|
|
40
|
-
export { FloatingModal } from "./components/floating-modal/FloatingModal";
|
|
41
40
|
export { FloatingMinimizedModal } from "./components/floating-modal/FloatingMinimizedModal";
|
|
41
|
+
export { FloatingModal } from "./components/floating-modal/FloatingModal";
|
|
42
42
|
export { Form } from "./components/form/Form";
|
|
43
|
+
export { Grabber } from "./components/grabber/Grabber";
|
|
43
44
|
export { HelpText } from "./components/help-text/HelpText";
|
|
44
45
|
export { Icon } from "./components/icon/Icon";
|
|
45
46
|
export { InputFile } from "./components/input-file/InputFile";
|
|
@@ -61,8 +62,8 @@ export { Radio } from "./components/radio/Radio";
|
|
|
61
62
|
export { RadioGroup } from "./components/radio/RadioGroup";
|
|
62
63
|
export { Slider } from "./components/slider/Slider";
|
|
63
64
|
export { Spinner } from "./components/spinner/Spinner";
|
|
64
|
-
export { Table } from "./components/table/Table";
|
|
65
65
|
export { TableAdvanced } from "./components/table-advanced/TableAdvanced";
|
|
66
|
+
export { Table } from "./components/table/Table";
|
|
66
67
|
export { Tab } from "./components/tabs/Tab";
|
|
67
68
|
export { TabPanel } from "./components/tabs/TabPanel";
|
|
68
69
|
export { Tabs } from "./components/tabs/Tabs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momentum-ui/web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.1",
|
|
4
4
|
"author": "Yana Harris",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/momentum-design/momentum-ui.git",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"@interactjs/auto-start": "1.10.3",
|
|
12
12
|
"@interactjs/interact": "1.10.3",
|
|
13
13
|
"@interactjs/modifiers": "1.10.3",
|
|
14
|
+
"@interactjs/utils": "1.10.3",
|
|
15
|
+
"@interactjs/core": "1.10.3",
|
|
14
16
|
"@popperjs/core": "^2.4.4",
|
|
15
17
|
"country-codes-list": "1.6.8",
|
|
16
18
|
"country-flags-svg": "1.1.4",
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
"papaparse": "^5.3.0",
|
|
24
26
|
"sortablejs": "^1.13.0",
|
|
25
27
|
"lit-virtualizer": "0.4.2",
|
|
26
|
-
"@momentum-design/tokens": "0.0.
|
|
28
|
+
"@momentum-design/tokens": "0.0.62"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
31
|
"@momentum-ui/core": "19.16.0",
|