@momentum-ui/web-components 3.0.0-beta.2 → 3.0.0-beta.4
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/2237.js +1 -0
- package/dist/3192.js +4 -4
- package/dist/4659.js +1 -1
- package/dist/6283.js +1 -1
- package/dist/6798.js +3 -3
- package/dist/6865.js +1 -1
- package/dist/comp/md-accordion-item-entry.js +1 -1
- package/dist/comp/md-accordion-item.js +1 -1
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +1 -1
- package/dist/comp/md-alert-banner-entry.js +1 -1
- package/dist/comp/md-alert-banner.js +1 -1
- package/dist/comp/md-alert-entry.js +45 -39
- package/dist/comp/md-alert.js +1 -1
- package/dist/comp/md-audio-player-entry.js +1 -1
- package/dist/comp/md-audio-player.js +1 -1
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-button-entry.js +3 -3
- package/dist/comp/md-button.js +1 -1
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-ai.js +1 -1
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card-v2-entry.js +1 -1
- package/dist/comp/md-card-v2.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chat-message-entry.js +6 -3
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +1 -1
- package/dist/comp/md-coachmark-entry.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +1 -1
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-coachmark.js +1 -1
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-country-code-picker-entry.js +1 -1
- package/dist/comp/md-country-code-picker.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-day-entry.js +1 -1
- package/dist/comp/md-datepicker-day.js +1 -1
- package/dist/comp/md-datepicker-entry.js +1 -1
- package/dist/comp/md-datepicker-month-entry.js +1 -1
- package/dist/comp/md-datepicker-month.js +1 -1
- package/dist/comp/md-datepicker-week-entry.js +1 -1
- package/dist/comp/md-datepicker-week.js +1 -1
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-dropdown-entry.js +2 -2
- package/dist/comp/md-dropdown.js +1 -1
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +1 -1
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +6 -4
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +12 -7
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-grabber-entry.js +1 -1
- package/dist/comp/md-grabber.js +1 -1
- package/dist/comp/md-icon-entry.js +1 -1
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-inpu.js +1 -1
- package/dist/comp/md-input-entry.js +1 -1
- package/dist/comp/md-input-file.js +1 -1
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-link-entry.js +36 -36
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +1 -1
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +1 -1
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-presence-entry.js +1 -1
- package/dist/comp/md-presence.js +1 -1
- package/dist/comp/md-radio-entry.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +1 -1
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-tabs.js +1 -1
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +1 -1
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/comp/md-tooltip-entry.js +1 -1
- package/dist/index-entry.js +308 -242
- package/dist/index.js +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +3 -3
- package/dist/types/components/badge/Badge.d.ts +1 -1
- package/dist/types/components/button/Button.d.ts +8 -3
- package/dist/types/components/chip/Chip.d.ts +3 -3
- package/dist/types/components/combobox/ComboBox.d.ts +4 -4
- package/dist/types/components/dropdown/Dropdown.d.ts +16 -4
- package/dist/types/components/editable-textfield/EditableTextfield.d.ts +1 -1
- package/dist/types/components/input/Input.d.ts +5 -5
- package/dist/types/components/link/Link.d.ts +7 -0
- package/dist/types/components/list-v2/list-item-v2.d.ts +62 -0
- package/dist/types/components/list-v2/list-v2.d.ts +56 -0
- package/dist/types/components/slider/Slider.d.ts +11 -0
- package/dist/types/components/taskitem/TaskItem.utils.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/internal-components/color-table/ColorTable.d.ts +1 -1
- package/dist/types/utils/keyboard.d.ts +1 -0
- package/package.json +2 -2
- package/dist/6633.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("./
|
|
1
|
+
require("./2237"),require("./7103"),require("./4765"),require("./1873"),require("./1890"),require("./4313"),require("./510"),require("./5087"),require("./6865"),require("./8889"),require("./8210"),require("./5630"),require("./3135"),require("./1013"),require("./3739"),require("./7819"),require("./2848"),require("./4363"),require("./2243"),require("./7919"),require("./7292"),require("./6188"),require("./15"),require("./8345"),require("./9270"),require("./8923"),require("./4548"),require("./2669"),require("./1729"),require("./9164"),require("./9480"),require("./1625"),require("./836"),require("./3625"),require("./2056"),require("./4889"),require("./9409"),require("./9654"),require("./5838"),require("./4659"),require("./6765"),require("./1626"),require("./3852"),require("./8161"),require("./6273"),require("./8391"),require("./679"),require("./8033"),require("./1564"),require("./4462"),require("./4744"),require("./8576"),require("./1092"),require("./8171"),require("./2201"),require("./2186"),require("./9425"),require("./8588"),require("./3212"),require("./622"),require("./5809"),require("./9455"),require("./759"),require("./2093"),require("./8148"),require("./5799"),require("./9312"),require("./2714"),require("./9238"),require("./7833"),require("./2924"),require("./5524"),require("./674"),require("./2314"),module.exports=require("./index-entry");
|
|
@@ -75,7 +75,7 @@ export declare namespace Avatar {
|
|
|
75
75
|
private get chatIconSize();
|
|
76
76
|
private get presenceSize();
|
|
77
77
|
private get iconSize();
|
|
78
|
-
get renderIsTyping():
|
|
78
|
+
get renderIsTyping(): import("lit").TemplateResult<1> | typeof nothing;
|
|
79
79
|
private get avatarLetter();
|
|
80
80
|
private get avatarIcon();
|
|
81
81
|
private get avatarImage();
|
|
@@ -85,8 +85,8 @@ export declare namespace Avatar {
|
|
|
85
85
|
handleKeyDown(event: KeyboardEvent): void;
|
|
86
86
|
handleClick(event: MouseEvent): void;
|
|
87
87
|
private getBrandOrDesignIconSet;
|
|
88
|
-
get avatarContent():
|
|
89
|
-
renderPresence():
|
|
88
|
+
get avatarContent(): import("lit").TemplateResult<1> | typeof nothing;
|
|
89
|
+
renderPresence(): import("lit").TemplateResult<1> | typeof nothing;
|
|
90
90
|
private renderAvatarContent;
|
|
91
91
|
render(): import("lit").TemplateResult<1>;
|
|
92
92
|
}
|
|
@@ -31,7 +31,7 @@ export declare namespace Badge {
|
|
|
31
31
|
renderTextColor: () => string | typeof nothing;
|
|
32
32
|
renderHeight: () => string | typeof nothing;
|
|
33
33
|
renderWidth: () => string | typeof nothing;
|
|
34
|
-
getStyles: () =>
|
|
34
|
+
getStyles: () => import("lit").TemplateResult<1> | typeof nothing;
|
|
35
35
|
static get styles(): import("lit").CSSResult[];
|
|
36
36
|
private get computedAriaHiddenSplits();
|
|
37
37
|
private get computedTabIndex();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import "@/components/spinner/Spinner";
|
|
9
|
-
import { LitElement, nothing } from "lit";
|
|
9
|
+
import { LitElement, nothing, PropertyValues } from "lit";
|
|
10
10
|
export declare const buttonSize: readonly ["20", "24", "28", "32", "36", "40", "44", "52", "56", "72", "68", "84", "size-none", 20, 24, 28, 32, 36, 40, 44, 52, 56, 68, 72, 68, 84];
|
|
11
11
|
export declare const buttonTag: readonly ["button", "input", "a"];
|
|
12
12
|
export declare const buttonType: readonly ["button", "reset", "submit"];
|
|
@@ -100,7 +100,12 @@ export declare namespace Button {
|
|
|
100
100
|
ariaDescribedBy?: string;
|
|
101
101
|
clickFunction?: () => void;
|
|
102
102
|
isPlaceholderText?: boolean;
|
|
103
|
+
autofocus: boolean;
|
|
103
104
|
button: HTMLButtonElement;
|
|
105
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
106
|
+
manageAutoFocus(element?: HTMLElement): void;
|
|
107
|
+
focus(): void;
|
|
108
|
+
blur(): void;
|
|
104
109
|
renderWidth: () => string | typeof nothing;
|
|
105
110
|
renderMaxWidth: () => string | typeof nothing;
|
|
106
111
|
getStyles: () => import("lit").TemplateResult<1> | undefined;
|
|
@@ -124,10 +129,10 @@ export declare namespace Button {
|
|
|
124
129
|
get slottedText(): string | null | undefined;
|
|
125
130
|
get hasIcon(): boolean;
|
|
126
131
|
iconTemplate: () => import("lit").TemplateResult<1>;
|
|
127
|
-
textTemplate: () =>
|
|
132
|
+
textTemplate: () => import("lit").TemplateResult<1> | typeof nothing;
|
|
128
133
|
childrenTemplate(): import("lit").TemplateResult<1>;
|
|
129
134
|
get computedAriaExpand(): "true" | "false" | undefined;
|
|
130
|
-
buttonTemplate(tag: Button.Tag):
|
|
135
|
+
buttonTemplate(tag: Button.Tag): import("lit").TemplateResult<1> | typeof nothing;
|
|
131
136
|
get buttonContainerClassMap(): {
|
|
132
137
|
"md-button__container": boolean;
|
|
133
138
|
"md-button__container--small": boolean;
|
|
@@ -54,10 +54,10 @@ export declare namespace Chip {
|
|
|
54
54
|
protected renderBgColor: () => string | typeof nothing;
|
|
55
55
|
protected renderTextColor: () => string | typeof nothing;
|
|
56
56
|
protected renderHeight: () => string | typeof nothing;
|
|
57
|
-
protected getStyles: () =>
|
|
57
|
+
protected getStyles: () => import("lit").TemplateResult<1> | typeof nothing;
|
|
58
58
|
static get styles(): import("lit").CSSResult[];
|
|
59
|
-
protected loadingTemplate():
|
|
60
|
-
protected iconTemplate():
|
|
59
|
+
protected loadingTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
60
|
+
protected iconTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
61
61
|
getToolTipContent(): string;
|
|
62
62
|
private get textContentClassMap();
|
|
63
63
|
private get textContentTemplate();
|
|
@@ -199,19 +199,19 @@ export declare namespace ComboBox {
|
|
|
199
199
|
arrowButtonTemplate(): TemplateResult<1>;
|
|
200
200
|
groupArrowButtonTemplate(data: string): TemplateResult<1>;
|
|
201
201
|
getSelectAllOption(): TemplateResult<1>;
|
|
202
|
-
getSelctedCount(): typeof nothing
|
|
202
|
+
getSelctedCount(): TemplateResult<1> | typeof nothing;
|
|
203
203
|
checkForVirtualScroll(): boolean;
|
|
204
204
|
rangeChanged(): void;
|
|
205
205
|
getCustomErrorContent(): DocumentFragment;
|
|
206
|
-
getCustomContent(option: string | OptionMember):
|
|
206
|
+
getCustomContent(option: string | OptionMember): TemplateResult<1> | DocumentFragment;
|
|
207
207
|
renderGroupLabelHeader(option: OptionMember, optionIndex: number): TemplateResult<1>;
|
|
208
208
|
renderWithoutVirtualScroll(): unknown;
|
|
209
209
|
highlightingSearchedText(option: OptionMember | string): TemplateResult<1>[];
|
|
210
210
|
addStyle(): import("lit-html/development/directive").DirectiveResult<typeof import("lit/directives/style-map.js").StyleMapDirective>;
|
|
211
211
|
readonly renderItem: (option: OptionMember | string, index: number) => TemplateResult;
|
|
212
212
|
inputTitle(): string;
|
|
213
|
-
helpTextTemplate(): typeof nothing
|
|
214
|
-
messagesTemplate(): typeof nothing
|
|
213
|
+
helpTextTemplate(): TemplateResult<1> | typeof nothing;
|
|
214
|
+
messagesTemplate(): TemplateResult<1> | typeof nothing;
|
|
215
215
|
get newArrowButtonTemplate(): TemplateResult<1>;
|
|
216
216
|
get renderNewMomentumArrow(): TemplateResult;
|
|
217
217
|
get renderTrailingInputControls(): TemplateResult;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import "@/components/icon/Icon";
|
|
9
9
|
import { LitElement, nothing, PropertyValues } from "lit";
|
|
10
10
|
export declare namespace Dropdown {
|
|
11
|
-
type OptionMember = {
|
|
11
|
+
export type OptionMember = {
|
|
12
12
|
[key: string]: string;
|
|
13
13
|
};
|
|
14
|
-
type Option = string | OptionMember;
|
|
14
|
+
export type Option = string | OptionMember;
|
|
15
15
|
type RenderOptionMember = {
|
|
16
16
|
key: string;
|
|
17
17
|
value: string;
|
|
@@ -138,8 +138,8 @@ export declare namespace Dropdown {
|
|
|
138
138
|
};
|
|
139
139
|
handleInput(event: Event): void;
|
|
140
140
|
private notifyInputValueChanged;
|
|
141
|
-
helpTextTemplate():
|
|
142
|
-
messagesTemplate():
|
|
141
|
+
helpTextTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
142
|
+
messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
143
143
|
iconTemplate(): import("lit").TemplateResult<1>;
|
|
144
144
|
clearButtonTemplate(): import("lit").TemplateResult<1>;
|
|
145
145
|
arrowButtonTemplate(): import("lit").TemplateResult<1>;
|
|
@@ -151,4 +151,16 @@ declare global {
|
|
|
151
151
|
interface HTMLElementTagNameMap {
|
|
152
152
|
"md-dropdown": Dropdown.ELEMENT;
|
|
153
153
|
}
|
|
154
|
+
interface HTMLElementEventMap {
|
|
155
|
+
"dropdown-focus-in": CustomEvent<undefined>;
|
|
156
|
+
"dropdown-focus-out": CustomEvent<undefined>;
|
|
157
|
+
"dropdown-selected": CustomEvent<{
|
|
158
|
+
option: Dropdown.Option;
|
|
159
|
+
}>;
|
|
160
|
+
"dropdown-input": CustomEvent<{
|
|
161
|
+
value: string;
|
|
162
|
+
}>;
|
|
163
|
+
"combobox-on-expand": CustomEvent<undefined>;
|
|
164
|
+
"remove-all-selected": CustomEvent<undefined>;
|
|
165
|
+
}
|
|
154
166
|
}
|
|
@@ -40,7 +40,7 @@ export declare namespace EditableTextfield {
|
|
|
40
40
|
showAlert(): void;
|
|
41
41
|
static get styles(): CSSResultArray;
|
|
42
42
|
get overflowStyles(): string | false | 0;
|
|
43
|
-
messagesTemplate():
|
|
43
|
+
messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
44
44
|
render(): import("lit").TemplateResult<1>;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -158,14 +158,14 @@ export declare namespace Input {
|
|
|
158
158
|
get ariaExpandedValue(): "true" | "false" | undefined;
|
|
159
159
|
get hasRightIcon(): boolean;
|
|
160
160
|
inputTemplate(): import("lit").TemplateResult<1>;
|
|
161
|
-
inputLeftTemplate():
|
|
161
|
+
inputLeftTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
162
162
|
private get inputRightTemplateClassMap();
|
|
163
163
|
inputRightTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
164
164
|
private get comboBoxButtonTemplate();
|
|
165
|
-
secondaryLabelTemplate():
|
|
166
|
-
helpTextTemplate():
|
|
167
|
-
messagesTemplate():
|
|
168
|
-
labelTemplate():
|
|
165
|
+
secondaryLabelTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
166
|
+
helpTextTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
167
|
+
messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
168
|
+
labelTemplate(): import("lit").TemplateResult<1> | typeof nothing;
|
|
169
169
|
static get styles(): import("lit").CSSResult[];
|
|
170
170
|
render(): import("lit").TemplateResult<1>;
|
|
171
171
|
}
|
|
@@ -32,7 +32,14 @@ export declare namespace Link {
|
|
|
32
32
|
private _tabIndex;
|
|
33
33
|
get tabIndex(): number;
|
|
34
34
|
set tabIndex(newValue: number);
|
|
35
|
+
autofocus: boolean;
|
|
36
|
+
linkRef: HTMLElement;
|
|
35
37
|
static get styles(): import("lit").CSSResult[];
|
|
38
|
+
firstUpdated(): void;
|
|
39
|
+
focus(): void;
|
|
40
|
+
blur(): void;
|
|
41
|
+
private get linkClassNamesInfo();
|
|
42
|
+
private get linkElement();
|
|
36
43
|
render(): import("lit").TemplateResult<1>;
|
|
37
44
|
}
|
|
38
45
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "@/components/button/Button";
|
|
2
|
+
import "@/components/icon/Icon";
|
|
3
|
+
import { LitElement } from "lit";
|
|
4
|
+
export declare namespace ListItemV2 {
|
|
5
|
+
type Variant = "full-width" | "inset-pill" | "inset-rectangle";
|
|
6
|
+
class ELEMENT extends LitElement {
|
|
7
|
+
/**
|
|
8
|
+
* The primary label of the list item.
|
|
9
|
+
* This appears on the leading side of the list item.
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Secondary label of the list item.
|
|
14
|
+
* This appears on the trailing side of the list item, under the primary label
|
|
15
|
+
*/
|
|
16
|
+
secondaryLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Tertiary label of the list item.
|
|
19
|
+
* This appears on the leading side of the list item, under the secondary label.
|
|
20
|
+
*/
|
|
21
|
+
tertiaryLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Make the list item expandable.
|
|
24
|
+
* This will allow the content inside the "panel" slot to be collapsible.
|
|
25
|
+
* It will render an expand button before the leading controls
|
|
26
|
+
*/
|
|
27
|
+
expandable: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the list item is expanded.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
expanded: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The visual style variant of the list item. This can be a pill, rectangle or a full-width
|
|
36
|
+
*/
|
|
37
|
+
variant: Variant;
|
|
38
|
+
/**
|
|
39
|
+
* The ARIA label for the expand button. Only use if `expandable` is true.
|
|
40
|
+
*/
|
|
41
|
+
expandLabel: string;
|
|
42
|
+
render(): import("lit").TemplateResult<1>;
|
|
43
|
+
private renderExpandButton;
|
|
44
|
+
private renderLeadingControls;
|
|
45
|
+
private renderTrailingControls;
|
|
46
|
+
private stopArrowKeyEventPropagation;
|
|
47
|
+
private isExpandCollapseKey;
|
|
48
|
+
protected stopEventPropagation(event: Event): void;
|
|
49
|
+
private setExpanded;
|
|
50
|
+
private _handleExpand;
|
|
51
|
+
private _handleListItemClick;
|
|
52
|
+
private _handleArrowKeyExpand;
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
static get styles(): import("lit").CSSResult;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
"md-list-item-v2": ListItemV2.ELEMENT;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare namespace ListV2 {
|
|
3
|
+
type Gap = "none" | "sm" | "md" | "lg";
|
|
4
|
+
type Orientation = "vertical" | "horizontal";
|
|
5
|
+
class ELEMENT extends LitElement {
|
|
6
|
+
/**
|
|
7
|
+
* The gap between list items.
|
|
8
|
+
*/
|
|
9
|
+
gap: Gap;
|
|
10
|
+
orientation: Orientation;
|
|
11
|
+
assignedNodes: NodeList;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
private get listItems();
|
|
15
|
+
private handleMouseClick;
|
|
16
|
+
/**
|
|
17
|
+
* Calculates a new index based on the pressed keyboard key.
|
|
18
|
+
* Supports navigation keys for moving focus within a list.
|
|
19
|
+
* @param key - The key that was pressed.
|
|
20
|
+
* @param currentIndex - The current index of the focused list item.
|
|
21
|
+
* @param wrappedDivsCount - The total number of list items.
|
|
22
|
+
* @returns The new index to focus on, or undefined if the key is not supported.
|
|
23
|
+
*/
|
|
24
|
+
private getNewIndexBasedOnKey;
|
|
25
|
+
/**
|
|
26
|
+
* Handles the keydown event on the list element.
|
|
27
|
+
* If the key is 'ArrowUp' or 'ArrowDown', it focuses to the previous or next list item
|
|
28
|
+
* and sets the active tabindex of the list item.
|
|
29
|
+
* Prevents the default event behavior.
|
|
30
|
+
* @param event - The keyboard event.
|
|
31
|
+
*/
|
|
32
|
+
private handleKeyDown;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the index of the given target in the listItems array.
|
|
35
|
+
* If the target is not a list item, but a child element of a list item,
|
|
36
|
+
* it returns the index of the parent list item.
|
|
37
|
+
* @param target - The target element to find the index of.
|
|
38
|
+
* @returns The index of the target element in the listItems array.
|
|
39
|
+
*/
|
|
40
|
+
private getCurrentIndex;
|
|
41
|
+
/**
|
|
42
|
+
* Resets all list items tabindex to -1 and sets the tabindex of the
|
|
43
|
+
* element at the given index to 0, effectively setting the active
|
|
44
|
+
* element. This is used when navigating the list via keyboard.
|
|
45
|
+
*
|
|
46
|
+
* @param newIndex - The index of the new active element in the list.
|
|
47
|
+
*/
|
|
48
|
+
private resetTabIndexAndSetActiveTabIndex;
|
|
49
|
+
static get styles(): import("lit").CSSResult;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
"md-list-v2": ListV2.ELEMENT;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from "lit";
|
|
2
2
|
export declare namespace Slider {
|
|
3
|
+
export interface SliderChangeEventDetail {
|
|
4
|
+
value: number;
|
|
5
|
+
}
|
|
6
|
+
export interface SliderChangingEventDetail {
|
|
7
|
+
oldValue: number;
|
|
8
|
+
newValue: number;
|
|
9
|
+
}
|
|
3
10
|
const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
|
|
4
11
|
export class ELEMENT extends ELEMENT_base {
|
|
5
12
|
private _disabled;
|
|
@@ -45,4 +52,8 @@ declare global {
|
|
|
45
52
|
interface HTMLElementTagNameMap {
|
|
46
53
|
"md-slider": Slider.ELEMENT;
|
|
47
54
|
}
|
|
55
|
+
interface HTMLElementEventMap {
|
|
56
|
+
"slider-change": CustomEvent<Slider.SliderChangeEventDetail>;
|
|
57
|
+
"slider-changing": CustomEvent<Slider.SliderChangingEventDetail>;
|
|
58
|
+
}
|
|
48
59
|
}
|
|
@@ -5,4 +5,4 @@ export declare const getChannelAvatar: (selected: boolean, status: string | null
|
|
|
5
5
|
export declare const renderTaskType: (mediaType: string, selected: boolean, status: string | null, iconSrc: string) => TemplateResult<1>;
|
|
6
6
|
export declare const renderStatus: (status: string) => TemplateResult<1>;
|
|
7
7
|
export declare const renderLegacyTaskType: (mediaType: string, selected: boolean, iconSrc: string) => TemplateResult<1>;
|
|
8
|
-
export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => typeof nothing
|
|
8
|
+
export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => TemplateResult<1> | typeof nothing;
|
|
@@ -30,6 +30,9 @@ export declare namespace Tooltip {
|
|
|
30
30
|
private slotContent;
|
|
31
31
|
private readonly _keyDownListener;
|
|
32
32
|
private readonly _wheelListener;
|
|
33
|
+
private hasMessage;
|
|
34
|
+
private hasSlotContent;
|
|
35
|
+
private get hasTooltipContent();
|
|
33
36
|
connectedCallback(): void;
|
|
34
37
|
disconnectedCallback(): void;
|
|
35
38
|
protected handleResize(contentRect: DOMRect): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export { InputFile } from "./components/input-file/InputFile";
|
|
|
56
56
|
export { Input } from "./components/input/Input";
|
|
57
57
|
export { Label } from "./components/label/Label";
|
|
58
58
|
export { Link } from "./components/link/Link";
|
|
59
|
+
export { ListItemV2 } from "./components/list-v2/list-item-v2";
|
|
60
|
+
export { ListV2 } from "./components/list-v2/list-v2";
|
|
59
61
|
export { List } from "./components/list/List";
|
|
60
62
|
export { ListItem } from "./components/list/ListItem";
|
|
61
63
|
export { Loading } from "./components/loading/Loading";
|
|
@@ -3,7 +3,7 @@ import { LitElement, nothing, PropertyValues } from "lit";
|
|
|
3
3
|
export declare class ColorTableSandbox extends LitElement {
|
|
4
4
|
private colorTokenTableData;
|
|
5
5
|
firstUpdated(changedProperties: PropertyValues): void;
|
|
6
|
-
renderColorTable():
|
|
6
|
+
renderColorTable(): import("lit").TemplateResult<1> | typeof nothing;
|
|
7
7
|
static get styles(): import("lit").CSSResult[];
|
|
8
8
|
render(): import("lit").TemplateResult<1>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momentum-ui/web-components",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"author": "Yana Harris",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/momentum-design/momentum-ui.git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@interactjs/interact": "1.10.3",
|
|
15
15
|
"@interactjs/modifiers": "1.10.3",
|
|
16
16
|
"@interactjs/utils": "1.10.3",
|
|
17
|
-
"@momentum-design/icons": "0.
|
|
17
|
+
"@momentum-design/icons": "0.35.0",
|
|
18
18
|
"@popperjs/core": "^2.11.8",
|
|
19
19
|
"country-codes-list": "1.6.8",
|
|
20
20
|
"country-flags-svg": "1.1.4",
|