@momentum-ui/web-components 2.10.8-dev1.0 → 2.10.8-dev2

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.
@@ -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
- role=${this.isMulti?"checkbox":void 0}
101
- aria-label="${this.isCustomContent?this.getOptionId(t):this.getOptionValue(t)}, ${i} of ${o}"
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)}
@@ -157,6 +159,7 @@
157
159
  part="combobox-options"
158
160
  aria-label=${this.ariaLabel||this.label}
159
161
  style=${this.addStyle()}
162
+ role=${Object(p.ifDefined)(this.checkForVirtualScroll()&&this.allowSelectAll?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`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.10.8-dev1.0",
3
+ "version": "2.10.8-dev2",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",