()
| 352 | }; |
| 353 | |
| 354 | render() { |
| 355 | const { htmlAttributes } = this; |
| 356 | const mode = getIonMode(this); |
| 357 | return ( |
| 358 | <Host |
| 359 | aria-modal="true" |
| 360 | tabindex="-1" |
| 361 | {...(htmlAttributes as any)} |
| 362 | style={{ |
| 363 | zIndex: `${20000 + this.overlayIndex}`, |
| 364 | }} |
| 365 | class={{ |
| 366 | [mode]: true, |
| 367 | |
| 368 | // Used internally for styling |
| 369 | [`picker-${mode}`]: true, |
| 370 | 'overlay-hidden': true, |
| 371 | ...getClassMap(this.cssClass), |
| 372 | }} |
| 373 | onIonBackdropTap={this.onBackdropTap} |
| 374 | onIonPickerWillDismiss={this.dispatchCancelHandler} |
| 375 | > |
| 376 | <ion-backdrop visible={this.showBackdrop} tappable={this.backdropDismiss}></ion-backdrop> |
| 377 | |
| 378 | <div tabindex="0" aria-hidden="true"></div> |
| 379 | |
| 380 | <div class="picker-wrapper ion-overlay-wrapper" role="dialog"> |
| 381 | <div class="picker-toolbar"> |
| 382 | {this.buttons.map((b) => ( |
| 383 | <div class={buttonWrapperClass(b)}> |
| 384 | <button type="button" onClick={() => this.buttonClick(b)} class={buttonClass(b)}> |
| 385 | {b.text} |
| 386 | </button> |
| 387 | </div> |
| 388 | ))} |
| 389 | </div> |
| 390 | |
| 391 | <div class="picker-columns"> |
| 392 | <div class="picker-above-highlight"></div> |
| 393 | {this.presented && this.columns.map((c) => <ion-picker-legacy-column col={c}></ion-picker-legacy-column>)} |
| 394 | <div class="picker-below-highlight"></div> |
| 395 | </div> |
| 396 | </div> |
| 397 | |
| 398 | <div tabindex="0" aria-hidden="true"></div> |
| 399 | </Host> |
| 400 | ); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | const buttonWrapperClass = (button: PickerButton): CssClassMap => { |
nothing calls this directly
no test coverage detected