@momentum-ui/web-components 2.25.5 → 2.26.0
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/6283.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +1 -1
- 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-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-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/index-entry.js +144 -92
- package/dist/index.js +1 -1
- package/dist/types/components/grabber/Grabber.d.ts +1 -1
- 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/index.d.ts +2 -0
- package/dist/types/utils/keyboard.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("./2237"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./
|
|
1
|
+
require("./2237"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./9217"),require("./5830"),require("./8889"),require("./8210"),require("./4977"),require("./3135"),require("./1598"),require("./1572"),require("./6366"),require("./7251"),require("./4974"),require("./2243"),require("./7919"),require("./3553"),require("./6877"),require("./6700"),require("./8004"),require("./6795"),require("./8923"),require("./4548"),require("./76"),require("./1392"),require("./9164"),require("./2019"),require("./1625"),require("./6067"),require("./3625"),require("./8841"),require("./3112"),require("./3866"),require("./1107"),require("./6953"),require("./7330"),require("./7092"),require("./9719"),require("./6979"),require("./9130"),require("./6273"),require("./9618"),require("./8612"),require("./8521"),require("./4400"),require("./779"),require("./573"),require("./5801"),require("./2043"),require("./8171"),require("./2798"),require("./5467"),require("./2984"),require("./1869"),require("./2215"),require("./7997"),require("./4392"),require("./630"),require("./3604"),require("./8728"),require("./8227"),require("./1250"),require("./1705"),require("./7833"),require("./7875"),require("./6400"),require("./587"),require("./6441"),require("./6015"),require("./3663"),module.exports=require("./index-entry");
|
|
@@ -83,7 +83,7 @@ export declare namespace Grabber {
|
|
|
83
83
|
};
|
|
84
84
|
private get grabberContainerClassMap();
|
|
85
85
|
private get isRtl();
|
|
86
|
-
get iconName(): "arrow-up-bold" | "arrow-down-bold" | "
|
|
86
|
+
get iconName(): "arrow-up-bold" | "arrow-down-bold" | "list-menu-bold" | "arrow-right-bold" | "arrow-left-bold";
|
|
87
87
|
get iconSize(): "10" | "12";
|
|
88
88
|
render(): import("lit-element").TemplateResult;
|
|
89
89
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "@/components/button/Button";
|
|
2
|
+
import "@/components/icon/Icon";
|
|
3
|
+
import { LitElement } from "lit-element";
|
|
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-element").TemplateResult;
|
|
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-element").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-element";
|
|
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-element").TemplateResult;
|
|
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-element").CSSResult;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
"md-list-v2": ListV2.ELEMENT;
|
|
55
|
+
}
|
|
56
|
+
}
|
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";
|