@momentum-ui/web-components 3.2.10 → 3.2.11
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/2245.js +12 -11
- package/dist/2273.js +10 -7
- package/dist/3639.js +0 -1
- package/dist/378.js +18 -0
- package/dist/6005.js +1 -1
- package/dist/9189.js +3 -3
- package/dist/953.js +2 -2
- package/dist/comp/md-avatar-entry.js +5 -4
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-combobox-entry.js +24 -21
- package/dist/comp/md-datepicker-calendar-entry.js +2 -2
- package/dist/comp/md-datepicker-day-entry.js +0 -1
- package/dist/comp/md-dropdown-entry.js +2 -2
- package/dist/comp/md-floating-modal-entry.js +24 -13
- package/dist/comp/md-grabber-entry.js +12 -8
- package/dist/comp/md-input-entry.js +14 -14
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-tabs-entry.js +16 -16
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +1 -1
- package/dist/esm/2245.js +5 -4
- package/dist/esm/2273.js +36 -33
- package/dist/esm/3639.js +0 -1
- package/dist/esm/378.js +18 -0
- package/dist/esm/4626.js +12 -11
- package/dist/esm/4654.js +10 -7
- package/dist/esm/6005.js +1 -1
- package/dist/esm/6020.js +0 -1
- package/dist/esm/837.js +2 -2
- package/dist/esm/9189.js +5 -5
- package/dist/esm/953.js +2 -2
- package/dist/esm/comp/md-avatar-entry.js +1 -1
- package/dist/esm/comp/md-avatar.js +1 -1
- package/dist/esm/comp/md-chat-message-entry.js +1 -1
- package/dist/esm/comp/md-chat-message.js +1 -1
- package/dist/esm/comp/md-dropdown-entry.js +1 -1
- package/dist/esm/comp/md-floating-modal-entry.js +24 -13
- package/dist/esm/comp/md-grabber-entry.js +10 -6
- package/dist/esm/comp/md-input-entry.js +4 -4
- package/dist/esm/comp/md-meeting-alert-entry.js +1 -1
- package/dist/esm/comp/md-meeting-alert.js +1 -1
- package/dist/esm/comp/md-tabs-entry.js +15 -15
- package/dist/esm/comp/md-task-item-entry.js +1 -1
- package/dist/esm/comp/md-task-item.js +1 -1
- package/dist/esm/index-entry.js +42 -27
- package/dist/index-entry.js +58 -40
- package/dist/types/components/avatar/Avatar.constants.d.ts +2 -1
- package/dist/types/components/avatar/Avatar.d.ts +3 -0
- package/dist/types/components/floating-modal/FloatingModal.d.ts +10 -1
- package/dist/types/components/grabber/Grabber.d.ts +1 -0
- package/dist/types/components/input/Input.d.ts +1 -0
- package/dist/types/components/tabs/Tabs.d.ts +1 -0
- package/package.json +1 -1
- package/dist/4621.js +0 -18
- package/dist/esm/4621.js +0 -18
|
@@ -3,4 +3,5 @@ declare const AvatarStyle: readonly ["default", "table"];
|
|
|
3
3
|
declare const AvatarChannelType: readonly ["channel-chat", "channel-chat-outbound", "channel-sms-inbound", "channel-sms-outbound", "channel-email-inbound", "channel-email-outbound", "channel-call", "channel-call-inbound", "channel-social", "channel-callback", "channel-callback-v2", "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-monitoring", "channel-we-chat", "channel-spam", "channel-custom", "channel-work-item"];
|
|
4
4
|
declare const AvatarType: readonly ["bot", "group", "self", "typing", ""];
|
|
5
5
|
declare const AvatarSize: number[];
|
|
6
|
-
|
|
6
|
+
declare const PresenceLabelMap: Record<string, string>;
|
|
7
|
+
export { AvatarChannelType, AvatarSize, AvatarState, AvatarStyle, AvatarType, PresenceLabelMap };
|
|
@@ -33,6 +33,7 @@ export declare namespace Avatar {
|
|
|
33
33
|
failurePresence: boolean;
|
|
34
34
|
type: Type;
|
|
35
35
|
presenceType?: PresenceState;
|
|
36
|
+
presenceAriaLabel: string;
|
|
36
37
|
newMomentum: boolean;
|
|
37
38
|
typing: boolean;
|
|
38
39
|
size: Size;
|
|
@@ -62,6 +63,8 @@ export declare namespace Avatar {
|
|
|
62
63
|
private presenceIcon;
|
|
63
64
|
static get styles(): import("lit").CSSResult[];
|
|
64
65
|
private isPresenceType;
|
|
66
|
+
private get presenceLabel();
|
|
67
|
+
private get computedAriaLabel();
|
|
65
68
|
firstUpdated(): void;
|
|
66
69
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
67
70
|
protected updated(changedProperties: PropertyValues): void;
|
|
@@ -20,6 +20,7 @@ export declare namespace FloatingModal {
|
|
|
20
20
|
resizeAriaLabel: string;
|
|
21
21
|
maximizeScreenLabel: string;
|
|
22
22
|
minimizeAriaLabel: string;
|
|
23
|
+
moveAriaLabel: string;
|
|
23
24
|
maximizable: boolean;
|
|
24
25
|
resizable: boolean;
|
|
25
26
|
private minimize;
|
|
@@ -40,16 +41,22 @@ export declare namespace FloatingModal {
|
|
|
40
41
|
minimizedHeader: HTMLDivElement;
|
|
41
42
|
headerSlot: HTMLSlotElement;
|
|
42
43
|
private containerTransform;
|
|
44
|
+
private previouslyFocusedElement;
|
|
43
45
|
private applyInitialPosition;
|
|
44
46
|
static get styles(): import("lit").CSSResult[];
|
|
45
47
|
protected updated(changedProperties: PropertyValues): void;
|
|
48
|
+
private getDeepActiveElementFromDocument;
|
|
49
|
+
private capturePreviouslyFocusedElement;
|
|
50
|
+
private focusModalOnOpen;
|
|
51
|
+
private restoreFocusAfterClose;
|
|
46
52
|
private isNewPositionNotSame;
|
|
47
53
|
private setInitialTargetPosition;
|
|
48
54
|
private cleanContainerStyles;
|
|
49
55
|
private getContainerTransform;
|
|
50
56
|
private setContainerRect;
|
|
51
57
|
private setInteractInstance;
|
|
52
|
-
handleClose(event:
|
|
58
|
+
handleClose(event: Event): void;
|
|
59
|
+
private handleModalKeyDown;
|
|
53
60
|
handleMinimize(): void;
|
|
54
61
|
handleToggleExpandCollapse(): void;
|
|
55
62
|
private resizeMoveListener;
|
|
@@ -59,6 +66,8 @@ export declare namespace FloatingModal {
|
|
|
59
66
|
private dragMoveListener;
|
|
60
67
|
private dragEndListener;
|
|
61
68
|
private setTargetPosition;
|
|
69
|
+
private readonly MOVE_STEP;
|
|
70
|
+
private handleMoveKeyDown;
|
|
62
71
|
private destroyInteractInstance;
|
|
63
72
|
disconnectedCallback(): void;
|
|
64
73
|
renderedCallback(): void;
|
|
@@ -72,6 +72,7 @@ export declare namespace Grabber {
|
|
|
72
72
|
handleFocus(): void;
|
|
73
73
|
handleBlur(): void;
|
|
74
74
|
dispatchHoverEvent(): void;
|
|
75
|
+
get currentLabel(): string;
|
|
75
76
|
get collapsed(): boolean;
|
|
76
77
|
get grabberClassMap(): {
|
|
77
78
|
[x: string]: boolean | "leading" | "trailing" | "top" | "bottom";
|
|
@@ -160,6 +160,7 @@ export declare namespace Input {
|
|
|
160
160
|
};
|
|
161
161
|
get ariaExpandedValue(): "true" | "false" | undefined;
|
|
162
162
|
get hasRightIcon(): boolean;
|
|
163
|
+
private get effectiveAriaLabel();
|
|
163
164
|
inputTemplate(): import("lit-html").TemplateResult<1>;
|
|
164
165
|
inputLeftTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
165
166
|
private get inputRightTemplateClassMap();
|
|
@@ -108,6 +108,7 @@ export declare namespace Tabs {
|
|
|
108
108
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/ariaControlsElements
|
|
109
109
|
*/
|
|
110
110
|
private updateAriaControlsElements;
|
|
111
|
+
private getHiddenTabFocusTarget;
|
|
111
112
|
private updateHiddenIdPositiveTabIndex;
|
|
112
113
|
private sortTabsAndPanes;
|
|
113
114
|
private linkPanelsAndTabs;
|
package/package.json
CHANGED
package/dist/4621.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[4621],{1161(e,t,i){var s,n=i(9609),o=i(4084),a=i(7161),r=i(429),l=i(5125),p=i(1392),c=function(e,t,i,s){var n,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[o.A,p.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const s=1400,n=e=>{if(!this.isAnimating)return;i||(i=e);const o=(e-i)%s;t.forEach((e,t)=>{const i=(o-200*t+s)%s;let n=0,a=.1;if(i<280){const e=.1+i/280*.9;n=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);n=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${n})`,e.style.opacity=`${a}`}),this.animationFrameId=requestAnimationFrame(n)};this.animationFrameId=requestAnimationFrame(n)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach(e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
|
|
2
|
-
<div class="md-loading ${(0,l.classMap)(this.loadingClassMap)}">
|
|
3
|
-
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
4
|
-
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
5
|
-
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
6
|
-
</div>
|
|
7
|
-
`}};c([(0,r.property)({type:String})],t.prototype,"size",void 0),t=c([(0,n.w)("md-loading")],t),e.ELEMENT=t}(s||(s={}))},3477(e,t,i){i(1821);var s,n=i(9609),o=i(4084),a=i(7161),r=i(429),l=i(5125),p=i(1618),c=i(4449),d=function(e,t,i,s){var n,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[o.A,c.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:e,presenceColor:t}=(0,p.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=e,this.color=t}return a.html`
|
|
8
|
-
<div class="${(0,l.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
|
|
9
|
-
<md-icon
|
|
10
|
-
name="${this.name}"
|
|
11
|
-
color="${this.color}"
|
|
12
|
-
size=${this.size}
|
|
13
|
-
title="${this.title}"
|
|
14
|
-
.iconSet=${"momentumDesign"}
|
|
15
|
-
>
|
|
16
|
-
</md-icon>
|
|
17
|
-
</div>
|
|
18
|
-
`}};d([(0,r.property)({type:String})],t.prototype,"name",void 0),d([(0,r.property)({type:Number})],t.prototype,"size",void 0),d([(0,r.property)({type:String})],t.prototype,"title",void 0),d([(0,r.property)({type:String})],t.prototype,"color",void 0),d([(0,r.property)({type:String,attribute:"presence-type"})],t.prototype,"presenceType",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"newMomentum",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"failurePresence",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"avatarLinked",void 0),t=d([(0,n.w)("md-presence")],t),e.ELEMENT=t}(s||(s={}))}}]);
|
package/dist/esm/4621.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const __webpack_esm_id__=4621;export const __webpack_esm_ids__=[1161,3477,4621];export const __webpack_esm_modules__={1161(e,t,i){var s,n=i(9609),o=i(4084),a=i(2927),r=i(8899),p=i(4955),l=i(1392),c=function(e,t,i,s){var n,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[o.A,l.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const s=1400,n=e=>{if(!this.isAnimating)return;i||(i=e);const o=(e-i)%s;t.forEach((e,t)=>{const i=(o-200*t+s)%s;let n=0,a=.1;if(i<280){const e=.1+i/280*.9;n=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);n=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${n})`,e.style.opacity=`${a}`}),this.animationFrameId=requestAnimationFrame(n)};this.animationFrameId=requestAnimationFrame(n)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach(e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
|
|
2
|
-
<div class="md-loading ${(0,p.classMap)(this.loadingClassMap)}">
|
|
3
|
-
<span class=${(0,p.classMap)(this.loadingIconClassMap)}></span>
|
|
4
|
-
<span class=${(0,p.classMap)(this.loadingIconClassMap)}></span>
|
|
5
|
-
<span class=${(0,p.classMap)(this.loadingIconClassMap)}></span>
|
|
6
|
-
</div>
|
|
7
|
-
`}};c([(0,r.property)({type:String})],t.prototype,"size",void 0),t=c([(0,n.w)("md-loading")],t),e.ELEMENT=t}(s||(s={}))},3477(e,t,i){i(1821);var s,n=i(9609),o=i(4084),a=i(2927),r=i(8899),p=i(4955),l=i(1618),c=i(4449),d=function(e,t,i,s){var n,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[o.A,c.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:e,presenceColor:t}=(0,l.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=e,this.color=t}return a.html`
|
|
8
|
-
<div class="${(0,p.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
|
|
9
|
-
<md-icon
|
|
10
|
-
name="${this.name}"
|
|
11
|
-
color="${this.color}"
|
|
12
|
-
size=${this.size}
|
|
13
|
-
title="${this.title}"
|
|
14
|
-
.iconSet=${"momentumDesign"}
|
|
15
|
-
>
|
|
16
|
-
</md-icon>
|
|
17
|
-
</div>
|
|
18
|
-
`}};d([(0,r.property)({type:String})],t.prototype,"name",void 0),d([(0,r.property)({type:Number})],t.prototype,"size",void 0),d([(0,r.property)({type:String})],t.prototype,"title",void 0),d([(0,r.property)({type:String})],t.prototype,"color",void 0),d([(0,r.property)({type:String,attribute:"presence-type"})],t.prototype,"presenceType",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"newMomentum",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"failurePresence",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"avatarLinked",void 0),t=d([(0,n.w)("md-presence")],t),e.ELEMENT=t}(s||(s={}))}};
|