@momentum-ui/web-components 2.10.8-dev1.0 → 2.10.8-dev3
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/chunks/md-36.js
CHANGED
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
>
|
|
51
51
|
<span><md-icon name=${e}></md-icon> </span>
|
|
52
52
|
</button>
|
|
53
|
-
`}getSelectAllOption(){return c.html`
|
|
53
|
+
`}getSelectAllOption(){const t=this.checkForVirtualScroll()?", 1 of "+(this.options.length+1):"";return c.html`
|
|
54
54
|
<div
|
|
55
55
|
id="selectAll"
|
|
56
56
|
part="combobox-option"
|
|
57
57
|
class="md-combobox-option ${Object(h.classMap)(this.listItemOptionMap)}"
|
|
58
58
|
@click=${this.handleSelectAll}
|
|
59
|
-
aria-label="${this.selectAllTextLocalization}
|
|
59
|
+
aria-label="${this.selectAllTextLocalization}${t}"
|
|
60
60
|
aria-checked=${Object(p.ifDefined)(this.isSelectAllChecked?"true":void 0)}
|
|
61
61
|
role="checkbox"
|
|
62
62
|
>
|
|
@@ -91,14 +91,16 @@
|
|
|
91
91
|
<span class="highlight-text">${t}</span>
|
|
92
92
|
`:c.html`
|
|
93
93
|
<span class="selected-label-text">${t}</span>
|
|
94
|
-
`)}addStyle(){const t=!this.expanded||this.options.length&&0===this.filteredOptions.length&&this.inputValue&&this.allowCustomValue;return this.checkForVirtualScroll()?Object(b.styleMap)({visibility:t?"hidden":"visible","z-index":t?"-1":"99",overflow:"hidden"}):Object(b.styleMap)({display:t?"none":"block","z-index":"99",overflow:"auto"})}renderItem(t,e){const i=this.allowSelectAll?e+2:e+1,o=this.allowSelectAll?this.options.length+1:this.options.length;return c.html`
|
|
94
|
+
`)}addStyle(){const t=!this.expanded||this.options.length&&0===this.filteredOptions.length&&this.inputValue&&this.allowCustomValue;return this.checkForVirtualScroll()?Object(b.styleMap)({visibility:t?"hidden":"visible","z-index":t?"-1":"99",overflow:"hidden"}):Object(b.styleMap)({display:t?"none":"block","z-index":"99",overflow:"auto"})}renderItem(t,e){const i=this.allowSelectAll?e+2:e+1,o=this.allowSelectAll?this.options.length+1:this.options.length,s=this.checkForVirtualScroll()?`, ${i} of ${o}`:"";return c.html`
|
|
95
95
|
<div
|
|
96
96
|
id=${this.getOptionId(t)}
|
|
97
97
|
title="${this.getOptionValue(t)}"
|
|
98
98
|
part="combobox-option"
|
|
99
99
|
class="md-combobox-option"
|
|
100
|
-
|
|
101
|
-
aria-
|
|
100
|
+
aria-posinset=${i}
|
|
101
|
+
aria-setsize=${o}
|
|
102
|
+
role=${this.isMulti?"checkbox":"listitem"}
|
|
103
|
+
aria-label="${this.isCustomContent?this.getOptionId(t):this.getOptionValue(t)}${s}"
|
|
102
104
|
tabindex="-1"
|
|
103
105
|
@click=${this.handleListClick}
|
|
104
106
|
aria-checked=${Object(p.ifDefined)(this.isMulti?this.isOptionChecked.call(this,t):void 0)}
|
|
@@ -155,8 +157,9 @@
|
|
|
155
157
|
<div
|
|
156
158
|
id="md-combobox-listbox"
|
|
157
159
|
part="combobox-options"
|
|
158
|
-
aria-label=${this.ariaLabel||this.label}
|
|
160
|
+
aria-label=${Object(p.ifDefined)(this.checkForVirtualScroll()?this.ariaLabel||this.label:void 0)}
|
|
159
161
|
style=${this.addStyle()}
|
|
162
|
+
role=${Object(p.ifDefined)(this.checkForVirtualScroll()&&this.isMulti?void 0:"list")}
|
|
160
163
|
>
|
|
161
164
|
${this.isMulti&&this.allowSelectAll&&this.expanded?this.getSelectAllOption():d.nothing}
|
|
162
165
|
${this.checkForVirtualScroll()?0!==this.options.length&&this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).length>0?c.html`
|
|
@@ -164,7 +164,7 @@ export declare namespace ComboBox {
|
|
|
164
164
|
checkForVirtualScroll(): boolean;
|
|
165
165
|
rangeChanged(): void;
|
|
166
166
|
getCustomErrorContent(): DocumentFragment;
|
|
167
|
-
getCustomContent(option: string | OptionMember):
|
|
167
|
+
getCustomContent(option: string | OptionMember): import("lit-element").TemplateResult | DocumentFragment;
|
|
168
168
|
renderGroupLabelHeader(option: OptionMember, optionIndex: number): import("lit-element").TemplateResult;
|
|
169
169
|
renderWithoutVirtualScroll(): import("lit-html").DirectiveFn;
|
|
170
170
|
highlightingSearchedText(option: OptionMember | string): import("lit-element").TemplateResult[];
|
|
@@ -36,7 +36,7 @@ export declare namespace TimePicker {
|
|
|
36
36
|
handleTimeBlur(event: CustomEvent, unit: TimePicker.TimeUnit): void;
|
|
37
37
|
static get styles(): import("lit-element").CSSResult[];
|
|
38
38
|
formatTimeUnit: (unit: TimePicker.TimeUnit) => void;
|
|
39
|
-
messageType: (isValid: boolean) => "
|
|
39
|
+
messageType: (isValid: boolean) => "" | "error";
|
|
40
40
|
generateTimeBox: (unit: TimePicker.TimeUnit) => import("lit-element").TemplateResult;
|
|
41
41
|
generateAmPmComboBox: () => import("lit-element").TemplateResult;
|
|
42
42
|
render(): import("lit-element").TemplateResult;
|