| 42 | scoped: true, |
| 43 | }) |
| 44 | export class Loading implements ComponentInterface, OverlayInterface { |
| 45 | private readonly delegateController = createDelegateController(this); |
| 46 | private readonly lockController = createLockController(); |
| 47 | private readonly triggerController = createTriggerController(); |
| 48 | private customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT); |
| 49 | private durationTimeout?: ReturnType<typeof setTimeout>; |
| 50 | |
| 51 | presented = false; |
| 52 | lastFocus?: HTMLElement; |
| 53 | |
| 54 | @Element() el!: HTMLIonLoadingElement; |
| 55 | |
| 56 | /** @internal */ |
| 57 | @Prop() overlayIndex!: number; |
| 58 | |
| 59 | /** @internal */ |
| 60 | @Prop() delegate?: FrameworkDelegate; |
| 61 | |
| 62 | /** @internal */ |
| 63 | @Prop() hasController = false; |
| 64 | |
| 65 | /** |
| 66 | * If `true`, the keyboard will be automatically dismissed when the overlay is presented. |
| 67 | */ |
| 68 | @Prop() keyboardClose = true; |
| 69 | |
| 70 | /** |
| 71 | * Animation to use when the loading indicator is presented. |
| 72 | */ |
| 73 | @Prop() enterAnimation?: AnimationBuilder; |
| 74 | |
| 75 | /** |
| 76 | * Animation to use when the loading indicator is dismissed. |
| 77 | */ |
| 78 | @Prop() leaveAnimation?: AnimationBuilder; |
| 79 | |
| 80 | /** |
| 81 | * Optional text content to display in the loading indicator. |
| 82 | * |
| 83 | * This property accepts custom HTML as a string. |
| 84 | * Content is parsed as plaintext by default. |
| 85 | * `innerHTMLTemplatesEnabled` must be set to `true` in the Ionic config |
| 86 | * before custom HTML can be used. |
| 87 | */ |
| 88 | @Prop() message?: string | IonicSafeString; |
| 89 | |
| 90 | /** |
| 91 | * Additional classes to apply for custom CSS. If multiple classes are |
| 92 | * provided they should be separated by spaces. |
| 93 | */ |
| 94 | @Prop() cssClass?: string | string[]; |
| 95 | |
| 96 | /** |
| 97 | * Number of milliseconds to wait before dismissing the loading indicator. |
| 98 | */ |
| 99 | @Prop() duration = 0; |
| 100 | |
| 101 | /** |
nothing calls this directly
no test coverage detected