@momentum-ui/web-components 3.0.0-beta.1 → 3.0.0-beta.3
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/comp/md-alert-entry.js +8 -2
- package/dist/comp/md-chat-message-entry.js +5 -2
- package/dist/comp/md-dropdown-entry.js +1 -1
- package/dist/comp/md-radio-entry.js +1 -1
- package/dist/index-entry.js +15 -6
- 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 +2 -2
- package/dist/types/components/chip/Chip.d.ts +3 -3
- package/dist/types/components/combobox/ComboBox.d.ts +3 -3
- package/dist/types/components/dropdown/Dropdown.d.ts +2 -2
- 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/taskitem/TaskItem.utils.d.ts +1 -1
- package/dist/types/internal-components/color-table/ColorTable.d.ts +1 -1
- package/package.json +1 -1
|
@@ -80,7 +80,13 @@
|
|
|
80
80
|
</div>
|
|
81
81
|
${this.closable?s.html`
|
|
82
82
|
<div class="md-alert__button">
|
|
83
|
-
<md-button
|
|
83
|
+
<md-button
|
|
84
|
+
ariaLabel="${this.btnlabel}"
|
|
85
|
+
hasRemoveStyle
|
|
86
|
+
color="color-none"
|
|
87
|
+
circle
|
|
88
|
+
@click=${()=>this.close()}
|
|
89
|
+
>
|
|
84
90
|
<md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
|
|
85
91
|
</md-button>
|
|
86
92
|
</div>
|
|
@@ -138,7 +144,7 @@
|
|
|
138
144
|
hasRemoveStyle
|
|
139
145
|
color="color-none"
|
|
140
146
|
circle
|
|
141
|
-
@click=${this.close}
|
|
147
|
+
@click=${()=>this.close()}
|
|
142
148
|
>
|
|
143
149
|
<md-icon slot="icon" name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
144
150
|
</md-button>
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
<div class="md-chat-message_title">
|
|
15
15
|
<span>${this.isSelfType?this.computedYouLabel:this.title}</span>
|
|
16
16
|
</div>
|
|
17
|
-
${this.clickableTimestamp?a.html`<md-link
|
|
18
|
-
|
|
17
|
+
${this.clickableTimestamp?a.html`<md-link
|
|
18
|
+
class="md-chat-message_time"
|
|
19
|
+
@click=${e=>{e.preventDefault(),this.timeStampClicked()}}
|
|
20
|
+
>${this.time}</md-link
|
|
21
|
+
>`:a.html`<div class="md-chat-message_time">${this.time}</div>`}
|
|
19
22
|
<div class="md-chat-message_status">${this.status}</div>
|
|
20
23
|
<div class="md-chat-message_custom_content">
|
|
21
24
|
<slot name="custom-content"></slot>
|
package/dist/index-entry.js
CHANGED
|
@@ -797,7 +797,7 @@
|
|
|
797
797
|
aria-label="${this.title}"
|
|
798
798
|
aria-controls="md-dropdown-list"
|
|
799
799
|
aria-haspopup="listbox"
|
|
800
|
-
?disabled
|
|
800
|
+
?disabled=${this.disabled}
|
|
801
801
|
@click=${this.onLabelClick}
|
|
802
802
|
part="dropdown-header"
|
|
803
803
|
role="combobox"
|
|
@@ -2086,7 +2086,13 @@
|
|
|
2086
2086
|
</div>
|
|
2087
2087
|
${this.closable?a.html`
|
|
2088
2088
|
<div class="md-alert__button">
|
|
2089
|
-
<md-button
|
|
2089
|
+
<md-button
|
|
2090
|
+
ariaLabel="${this.btnlabel}"
|
|
2091
|
+
hasRemoveStyle
|
|
2092
|
+
color="color-none"
|
|
2093
|
+
circle
|
|
2094
|
+
@click=${()=>this.close()}
|
|
2095
|
+
>
|
|
2090
2096
|
<md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
|
|
2091
2097
|
</md-button>
|
|
2092
2098
|
</div>
|
|
@@ -2144,7 +2150,7 @@
|
|
|
2144
2150
|
hasRemoveStyle
|
|
2145
2151
|
color="color-none"
|
|
2146
2152
|
circle
|
|
2147
|
-
@click=${this.close}
|
|
2153
|
+
@click=${()=>this.close()}
|
|
2148
2154
|
>
|
|
2149
2155
|
<md-icon slot="icon" name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
2150
2156
|
</md-button>
|
|
@@ -2339,7 +2345,7 @@
|
|
|
2339
2345
|
tabindex="-1"
|
|
2340
2346
|
id="radio-label"
|
|
2341
2347
|
/>
|
|
2342
|
-
<label for="radio-label" class="md-radio-label" part="radio-label">
|
|
2348
|
+
<label for="radio-label" class="md-radio-label" part="radio-label" @click=${t=>t.preventDefault()}>
|
|
2343
2349
|
<slot></slot>
|
|
2344
2350
|
</label>
|
|
2345
2351
|
</div>
|
|
@@ -2578,8 +2584,11 @@
|
|
|
2578
2584
|
<div class="md-chat-message_title">
|
|
2579
2585
|
<span>${this.isSelfType?this.computedYouLabel:this.title}</span>
|
|
2580
2586
|
</div>
|
|
2581
|
-
${this.clickableTimestamp?a.html`<md-link
|
|
2582
|
-
|
|
2587
|
+
${this.clickableTimestamp?a.html`<md-link
|
|
2588
|
+
class="md-chat-message_time"
|
|
2589
|
+
@click=${t=>{t.preventDefault(),this.timeStampClicked()}}
|
|
2590
|
+
>${this.time}</md-link
|
|
2591
|
+
>`:a.html`<div class="md-chat-message_time">${this.time}</div>`}
|
|
2583
2592
|
<div class="md-chat-message_status">${this.status}</div>
|
|
2584
2593
|
<div class="md-chat-message_custom_content">
|
|
2585
2594
|
<slot name="custom-content"></slot>
|
|
@@ -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();
|
|
@@ -124,10 +124,10 @@ export declare namespace Button {
|
|
|
124
124
|
get slottedText(): string | null | undefined;
|
|
125
125
|
get hasIcon(): boolean;
|
|
126
126
|
iconTemplate: () => import("lit").TemplateResult<1>;
|
|
127
|
-
textTemplate: () =>
|
|
127
|
+
textTemplate: () => import("lit").TemplateResult<1> | typeof nothing;
|
|
128
128
|
childrenTemplate(): import("lit").TemplateResult<1>;
|
|
129
129
|
get computedAriaExpand(): "true" | "false" | undefined;
|
|
130
|
-
buttonTemplate(tag: Button.Tag):
|
|
130
|
+
buttonTemplate(tag: Button.Tag): import("lit").TemplateResult<1> | typeof nothing;
|
|
131
131
|
get buttonContainerClassMap(): {
|
|
132
132
|
"md-button__container": boolean;
|
|
133
133
|
"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,7 +199,7 @@ 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;
|
|
@@ -210,8 +210,8 @@ export declare namespace ComboBox {
|
|
|
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;
|
|
@@ -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>;
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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
|
}
|