| 39 | scoped: true, |
| 40 | }) |
| 41 | export class Picker implements ComponentInterface, OverlayInterface { |
| 42 | private readonly delegateController = createDelegateController(this); |
| 43 | private readonly lockController = createLockController(); |
| 44 | private readonly triggerController = createTriggerController(); |
| 45 | |
| 46 | private durationTimeout?: ReturnType<typeof setTimeout>; |
| 47 | lastFocus?: HTMLElement; |
| 48 | |
| 49 | @Element() el!: HTMLIonPickerLegacyElement; |
| 50 | |
| 51 | @State() presented = false; |
| 52 | |
| 53 | /** @internal */ |
| 54 | @Prop() overlayIndex!: number; |
| 55 | |
| 56 | /** @internal */ |
| 57 | @Prop() delegate?: FrameworkDelegate; |
| 58 | |
| 59 | /** @internal */ |
| 60 | @Prop() hasController = false; |
| 61 | |
| 62 | /** |
| 63 | * If `true`, the keyboard will be automatically dismissed when the overlay is presented. |
| 64 | */ |
| 65 | @Prop() keyboardClose = true; |
| 66 | |
| 67 | /** |
| 68 | * Animation to use when the picker is presented. |
| 69 | */ |
| 70 | @Prop() enterAnimation?: AnimationBuilder; |
| 71 | |
| 72 | /** |
| 73 | * Animation to use when the picker is dismissed. |
| 74 | */ |
| 75 | @Prop() leaveAnimation?: AnimationBuilder; |
| 76 | |
| 77 | /** |
| 78 | * Array of buttons to be displayed at the top of the picker. |
| 79 | */ |
| 80 | @Prop() buttons: PickerButton[] = []; |
| 81 | |
| 82 | /** |
| 83 | * Array of columns to be displayed in the picker. |
| 84 | */ |
| 85 | @Prop() columns: PickerColumn[] = []; |
| 86 | |
| 87 | /** |
| 88 | * Additional classes to apply for custom CSS. If multiple classes are |
| 89 | * provided they should be separated by spaces. |
| 90 | */ |
| 91 | @Prop() cssClass?: string | string[]; |
| 92 | |
| 93 | /** |
| 94 | * Number of milliseconds to wait before dismissing the picker. |
| 95 | */ |
| 96 | @Prop() duration = 0; |
| 97 | |
| 98 | /** |
nothing calls this directly
no test coverage detected