@momentum-ui/web-components 2.24.2 → 2.24.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/1200.js +3 -3
- package/dist/1572.js +1 -1
- package/dist/6408.js +35 -14
- package/dist/comp/md-icon-entry.js +5 -5
- package/dist/comp/md-input-entry.js +33 -12
- package/dist/index-entry.js +175 -154
- package/dist/types/components/icon/Icon.d.ts +1 -0
- package/dist/types/components/input/Input.d.ts +39 -1
- package/package.json +1 -1
|
@@ -154,6 +154,7 @@ export declare namespace Icon {
|
|
|
154
154
|
loadSvgIcon(iconName: string): Promise<void>;
|
|
155
155
|
setSvgIconAttributes(): void;
|
|
156
156
|
private get computedSvgPath();
|
|
157
|
+
private getIsMomentumDesignName;
|
|
157
158
|
private get svgIconName();
|
|
158
159
|
updated(changedProperties: PropertyValues): void;
|
|
159
160
|
_ariaLabel: string;
|
|
@@ -37,6 +37,29 @@ export declare namespace Input {
|
|
|
37
37
|
determineMessageType(array: Input.Message[]): MessageType;
|
|
38
38
|
filterMessagesByType(array: Input.Message[], value: string): string[];
|
|
39
39
|
}
|
|
40
|
+
export interface InputChangeEventDetail {
|
|
41
|
+
srcEvent: Event;
|
|
42
|
+
value: string;
|
|
43
|
+
}
|
|
44
|
+
export interface InputFocusEventDetail {
|
|
45
|
+
srcEvent: FocusEvent;
|
|
46
|
+
}
|
|
47
|
+
export interface InputBlurEventDetail {
|
|
48
|
+
srcEvent: FocusEvent;
|
|
49
|
+
}
|
|
50
|
+
export interface InputKeydownEventDetail {
|
|
51
|
+
srcEvent: KeyboardEvent;
|
|
52
|
+
}
|
|
53
|
+
export interface InputMousedownEventDetail {
|
|
54
|
+
srcEvent: MouseEvent;
|
|
55
|
+
}
|
|
56
|
+
export interface InputClearEventDetail {
|
|
57
|
+
srcEvent: MouseEvent | KeyboardEvent;
|
|
58
|
+
}
|
|
59
|
+
export interface InputDropdownClickEventDetail {
|
|
60
|
+
srcEvent: MouseEvent;
|
|
61
|
+
expanded: boolean;
|
|
62
|
+
}
|
|
40
63
|
const ELEMENT_base: typeof LitElement & import("@/mixins/FocusMixin").AnyConstructor<import("@/mixins/FocusMixin").FocusClass>;
|
|
41
64
|
export class ELEMENT extends ELEMENT_base {
|
|
42
65
|
ariaDescribedBy: string;
|
|
@@ -80,6 +103,9 @@ export declare namespace Input {
|
|
|
80
103
|
newMomentum: boolean;
|
|
81
104
|
control?: FormControl<unknown>;
|
|
82
105
|
disableUserTextInput: boolean;
|
|
106
|
+
showDropdown: boolean;
|
|
107
|
+
dropdownExpanded: boolean;
|
|
108
|
+
dropdownAriaLabel: string;
|
|
83
109
|
input: HTMLInputElement;
|
|
84
110
|
private isEditing;
|
|
85
111
|
private readonly inputSectionRightSlot;
|
|
@@ -88,6 +114,7 @@ export declare namespace Input {
|
|
|
88
114
|
connectedCallback(): void;
|
|
89
115
|
disconnectedCallback(): void;
|
|
90
116
|
select(): void;
|
|
117
|
+
focus(): void;
|
|
91
118
|
handleOutsideClick(event: MouseEvent): void;
|
|
92
119
|
handleKeyDown(event: KeyboardEvent): void;
|
|
93
120
|
handleFocus(event: FocusEvent): void;
|
|
@@ -97,6 +124,7 @@ export declare namespace Input {
|
|
|
97
124
|
handleClear(event: MouseEvent | KeyboardEvent): void;
|
|
98
125
|
handleLabelClick(): void;
|
|
99
126
|
handleRighSlotChange(): void;
|
|
127
|
+
handleDropdownClick(event: MouseEvent): void;
|
|
100
128
|
get messageType(): Input.MessageType | null;
|
|
101
129
|
get messages(): string[] | null;
|
|
102
130
|
get inputClassMap(): {
|
|
@@ -127,12 +155,13 @@ export declare namespace Input {
|
|
|
127
155
|
"md-dirty": boolean;
|
|
128
156
|
"md-has-right-icon": boolean;
|
|
129
157
|
};
|
|
130
|
-
get ariaExpandedValue(): "
|
|
158
|
+
get ariaExpandedValue(): "true" | "false" | undefined;
|
|
131
159
|
get hasRightIcon(): boolean;
|
|
132
160
|
inputTemplate(): import("lit-element").TemplateResult;
|
|
133
161
|
inputLeftTemplate(): {};
|
|
134
162
|
private get inputRightTemplateClassMap();
|
|
135
163
|
inputRightTemplate(): import("lit-element").TemplateResult | undefined;
|
|
164
|
+
private get comboBoxButtonTemplate();
|
|
136
165
|
secondaryLabelTemplate(): {};
|
|
137
166
|
helpTextTemplate(): {};
|
|
138
167
|
messagesTemplate(): {};
|
|
@@ -146,4 +175,13 @@ declare global {
|
|
|
146
175
|
interface HTMLElementTagNameMap {
|
|
147
176
|
"md-input": Input.ELEMENT;
|
|
148
177
|
}
|
|
178
|
+
interface HTMLElementEventMap {
|
|
179
|
+
"input-change": CustomEvent<Input.InputChangeEventDetail>;
|
|
180
|
+
"input-focus": CustomEvent<Input.InputFocusEventDetail>;
|
|
181
|
+
"input-blur": CustomEvent<Input.InputBlurEventDetail>;
|
|
182
|
+
"input-keydown": CustomEvent<Input.InputKeydownEventDetail>;
|
|
183
|
+
"input-mousedown": CustomEvent<Input.InputMousedownEventDetail>;
|
|
184
|
+
"input-clear": CustomEvent<Input.InputClearEventDetail>;
|
|
185
|
+
"input-dropdown-click": CustomEvent<Input.InputDropdownClickEventDetail>;
|
|
186
|
+
}
|
|
149
187
|
}
|